Deletes tags associated with an existing data export definition.
Parameters:
-
resource_arn
(Arn)
–
The unique identifier for the resource.
-
resource_tag_keys
(ResourceTagKeyList)
–
The tag keys that are associated with the resource ARN.
Raises:
Source code in docs_src/capo_bcm_data_exports/_services/bcm_data_exports.py
| def untag_resource(
self,
resource_arn: "capo_bcm_data_exports.types.arn.Arn",
resource_tag_keys: "capo_bcm_data_exports.types.resource_tag_key_list.ResourceTagKeyList",
*,
config_overrides: Optional[BCMDataExportsClientConfig] = None,
) -> "capo_bcm_data_exports.types.untag_resource_response.UntagResourceResponse":
"""<p>Deletes tags associated with an existing data export definition.</p>
Args:
resource_arn: <p>The unique identifier for the resource.</p>
resource_tag_keys: <p>The tag keys that are associated with the resource ARN.</p>
Raises:
capo_bcm_data_exports.errors.access_denied_exception.AccessDeniedException: <p>You don't have sufficient access to perform this action.</p>
capo_bcm_data_exports.errors.internal_server_exception.InternalServerException: <p>An error on the server occurred during the processing of your request. Try again later.</p>
capo_bcm_data_exports.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified Amazon Resource Name (ARN) in the request doesn't exist.</p>
capo_bcm_data_exports.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_bcm_data_exports.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_bcm_data_exports.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_bcm_data_exports.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_bcm_data_exports.types.untag_resource_response.UntagResourceResponse"
]:
import capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.untag_resource
output, http_response = (
capo_bcm_data_exports._operations.aws_billing_and_cost_management_data_exports.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_bcm_data_exports.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"resource_tag_keys": resource_tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|