update_connector
¶
update_connector(
connector_id: NonEmptyString,
*,
config_overrides: Optional[SecurityHubClientConfig] = 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.
>>> 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/security_hub.py
8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 | |