update_connector
async
¶
update_connector(
connector_id: NonEmptyString,
*,
config_overrides: Optional[AsyncSecurityHubClientConfig] = None,
description: Optional[NonEmptyString] = None,
provider: Optional[CspmProviderUpdateConfiguration] = None,
) -> UpdateConnectorResponse
Updates a CSPM connector's configuration, such as the scope or regions for the connected cloud provider.
Parameters:
-
connector_id(NonEmptyString) –The unique identifier of the connector to update.
-
description(Optional[NonEmptyString], default:None) –The updated description of the connector.
-
provider(Optional[CspmProviderUpdateConfiguration], default:None) –The updated cloud provider configuration for the connector.
Raises:
-
AccessDeniedException–You don't have permission to perform the action specified in the request.
-
ConflictException–The request causes conflict with the current state of the service resource.
-
InternalServerException–The request has failed due to an internal failure of the service.
-
InvalidAccessException–The account doesn't have permission to perform this action.
-
ResourceNotFoundException–The request was rejected because we can't find the specified resource.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation because it's missing required fields or has invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To update a CSPM connector This operation updates the configuration of a CSPM connector.
>>> await client.update_connector(connector_id='cspm-a1b2c3d4-5678-90ab-cdef-EXAMPLE11111', description='Updated connector description', provider={'Azure': {'ScopeConfiguration': {'ScopeType': 'SUBSCRIPTION', 'ScopeValues': ['sub-1234-5678-abcd', 'sub-9012-3456-efgh']}, 'AzureRegions': ['eastus', 'westus2', 'northeurope']}})
Source code in docs_src/capo_securityhub/_services/async_security_hub.py
8274 8275 8276 8277 8278 8279 8280 8281 8282 8283 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 8312 8313 8314 8315 8316 8317 8318 8319 8320 8321 8322 8323 8324 8325 8326 8327 8328 8329 8330 8331 8332 8333 8334 8335 8336 8337 8338 8339 8340 8341 8342 | |