Skip to content

delete_aggregation_authorization

delete_aggregation_authorization(
    authorized_account_id: AccountId,
    authorized_aws_region: AwsRegion,
    *,
    config_overrides: Optional[ConfigServiceClientConfig] = 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/config_service.py
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[ConfigServiceClientConfig] = 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.
    """

    def _handler(
        req: "OperationRequest[capo_config_service.types.delete_aggregation_authorization_request.DeleteAggregationAuthorizationRequest]",
    ) -> OperationResponse[None]:
        import capo_config_service._operations.starling_dove_service.delete_aggregation_authorization

        output, http_response = (
            capo_config_service._operations.starling_dove_service.delete_aggregation_authorization.delete_aggregation_authorization(
                req.options, req.input
            )
        )
        return OperationResponse(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 = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output