untag_resource(
resource_arn: ResourceARN,
tag_keys: TagKeyList,
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = None,
) -> None
Removes one or more tags from the specified resource.
Parameters:
-
resource_arn
(ResourceARN)
–
The Amazon Resource Name (ARN) of the resource to remove tags from.
-
tag_keys
(TagKeyList)
–
The tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_partnercentral_revenue_measurement/_services/async_partner_central_revenue_measurement.py
| async def untag_resource(
self,
resource_arn: "capo_partnercentral_revenue_measurement.types.resource_arn.ResourceARN",
tag_keys: "capo_partnercentral_revenue_measurement.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[
AsyncPartnerCentralRevenueMeasurementClientConfig
] = None,
) -> None:
"""<p>Removes one or more tags from the specified resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource to remove tags from.</p>
tag_keys: <p>The tag keys to remove from the resource.</p>
Raises:
capo_partnercentral_revenue_measurement.errors.access_denied_exception.AccessDeniedException: <p>The request was denied due to insufficient permissions.</p>
capo_partnercentral_revenue_measurement.errors.conflict_exception.ConflictException: <p>The request could not be completed due to a conflict with the current state of the resource.</p>
capo_partnercentral_revenue_measurement.errors.internal_server_exception.InternalServerException: <p>An internal server error occurred. Retry your request.</p>
capo_partnercentral_revenue_measurement.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_partnercentral_revenue_measurement.errors.throttling_exception.ThrottlingException: <p>The request was throttled due to too many requests. Retry your request.</p>
capo_partnercentral_revenue_measurement.errors.validation_exception.ValidationException: <p>The request failed validation due to invalid input parameters.</p>
capo_partnercentral_revenue_measurement.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_partnercentral_revenue_measurement.types.untag_resource_input.UntagResourceInput]",
) -> AsyncOperationResponse[None]:
import capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.untag_resource
(
output,
http_response,
) = await capo_partnercentral_revenue_measurement._operations.partner_central_revenue_measurement.untag_resource.async_untag_resource(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_partnercentral_revenue_measurement.types.untag_resource_input.UntagResourceInput = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|