delete_aggregation_authorization(
authorized_account_id: AccountId,
authorized_aws_region: AwsRegion,
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
) -> None
Deletes the authorization granted to the specified configuration aggregator account in a specified region.
Parameters:
-
authorized_account_id
(AccountId)
–
The 12-digit account ID of the account authorized to aggregate data.
-
authorized_aws_region
(AwsRegion)
–
The region authorized to collect aggregated data.
Raises:
Source code in docs_src/capo_config_service/_services/async_config_service.py
| async def delete_aggregation_authorization(
self,
authorized_account_id: "capo_config_service.types.account_id.AccountId",
authorized_aws_region: "capo_config_service.types.aws_region.AwsRegion",
*,
config_overrides: Optional[AsyncConfigServiceClientConfig] = None,
) -> None:
"""<p>Deletes the authorization granted to the specified configuration aggregator account in a specified region.</p>
Args:
authorized_account_id: <p>The 12-digit account ID of the account authorized to aggregate data.</p>
authorized_aws_region: <p>The region authorized to collect aggregated data.</p>
Raises:
capo_config_service.errors.invalid_parameter_value_exception.InvalidParameterValueException: <p>One or more of the specified parameters are not valid. Verify that your parameters are valid and try again.</p>
capo_config_service.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_config_service.types.delete_aggregation_authorization_request.DeleteAggregationAuthorizationRequest]",
) -> AsyncOperationResponse[None]:
import capo_config_service._operations.starling_dove_service.delete_aggregation_authorization
(
output,
http_response,
) = await capo_config_service._operations.starling_dove_service.delete_aggregation_authorization.async_delete_aggregation_authorization(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("DeleteAggregationAuthorization")
)
input_: capo_config_service.types.delete_aggregation_authorization_request.DeleteAggregationAuthorizationRequest = {
"authorized_account_id": authorized_account_id,
"authorized_aws_region": authorized_aws_region,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|