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
8621 8622 8623 8624 8625 8626 8627 8628 8629 8630 8631 8632 8633 8634 8635 8636 8637 8638 8639 8640 8641 8642 8643 8644 8645 8646 8647 8648 8649 8650 8651 8652 8653 8654 8655 8656 8657 8658 8659 8660 8661 8662 8663 8664 8665 8666 8667 8668 8669 8670 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682 8683 8684 8685 8686 8687 8688 8689 | |