update_connector
¶
update_connector(
connector_arn: ConnectorArn,
*,
config_overrides: Optional[Inspector2ClientConfig] = None,
description: Optional[ConnectorDescription] = None,
provider_detail: Optional[ProviderDetailUpdate] = None,
) -> UpdateConnectorResponse
Updates the description or provider-specific configuration details of an existing connector.
Parameters:
-
connector_arn(ConnectorArn) –The Amazon Resource Name (ARN) of the connector to update.
-
description(Optional[ConnectorDescription], default:None) –The updated description of the connector.
-
provider_detail(Optional[ProviderDetailUpdate], default:None) –The updated provider-specific configuration details for the connector.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
For
Enable, you receive this error if you attempt to use a feature in an unsupported Amazon Web Services Region. -
ConflictException–A conflict occurred. This exception occurs when the same resource is being modified by concurrent requests.
-
InternalServerException–The request has failed due to an internal failure of the Amazon Inspector service.
-
ResourceNotFoundException–The operation tried to access an invalid resource. Make sure the resource is specified correctly.
-
ThrottlingException–The limit on the number of requests per second was exceeded.
-
ValidationException–The request has failed validation due to missing required fields or having invalid inputs.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
Expand the Azure regions covered by a connector
>>> client.update_connector(connector_arn='arn:aws:inspector2:us-east-1:123456789012:connector/6ccf8549-b52b-57ca-bf52-a2266da3c53a', provider_detail={'azure': {'azureRegions': ['eastus', 'westus']}})
Source code in docs_src/capo_inspector2/_services/inspector2.py
5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 | |