Removes any tags from a media pipeline.
Parameters:
-
resource_arn
(AmazonResourceName)
–
The ARN of the pipeline that you want to untag.
-
tag_keys
(TagKeyList)
–
The key/value pairs in the tag that you want to remove.
Raises:
Source code in docs_src/capo_chime_sdk_media_pipelines/_services/async_chime_sdk_media_pipelines.py
| async def untag_resource(
self,
resource_arn: "capo_chime_sdk_media_pipelines.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_chime_sdk_media_pipelines.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncChimeSDKMediaPipelinesClientConfig] = None,
) -> "capo_chime_sdk_media_pipelines.types.untag_resource_response.UntagResourceResponse":
"""<p>Removes any tags from a media pipeline.</p>
Args:
resource_arn: <p>The ARN of the pipeline that you want to untag.</p>
tag_keys: <p>The key/value pairs in the tag that you want to remove.</p>
Raises:
capo_chime_sdk_media_pipelines.errors.bad_request_exception.BadRequestException: <p>The input parameters don't match the service's restrictions.</p>
capo_chime_sdk_media_pipelines.errors.forbidden_exception.ForbiddenException: <p>The client is permanently forbidden from making the request.</p>
capo_chime_sdk_media_pipelines.errors.not_found_exception.NotFoundException: <p>One or more of the resources in the request does not exist in the system.</p>
capo_chime_sdk_media_pipelines.errors.service_failure_exception.ServiceFailureException: <p>The service encountered an unexpected error.</p>
capo_chime_sdk_media_pipelines.errors.service_unavailable_exception.ServiceUnavailableException: <p>The service is currently unavailable.</p>
capo_chime_sdk_media_pipelines.errors.throttled_client_exception.ThrottledClientException: <p>The client exceeded its request rate limit.</p>
capo_chime_sdk_media_pipelines.errors.unauthorized_client_exception.UnauthorizedClientException: <p>The client is not currently authorized to make the request.</p>
capo_chime_sdk_media_pipelines.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_chime_sdk_media_pipelines.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_chime_sdk_media_pipelines.types.untag_resource_response.UntagResourceResponse"
]:
import capo_chime_sdk_media_pipelines._operations.chime_sdk_media_pipelines_service.untag_resource
(
output,
http_response,
) = await capo_chime_sdk_media_pipelines._operations.chime_sdk_media_pipelines_service.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_chime_sdk_media_pipelines.types.untag_resource_request.UntagResourceRequest = {
"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
|