update_connector
async
¶
update_connector(
connector_arn: ConnectorArn,
*,
config_overrides: Optional[AsyncInspector2ClientConfig] = 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
>>> await 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/async_inspector2.py
5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 | |