Remove a tag from a Amazon SWF domain.
Parameters:
-
resource_arn
(Arn)
–
The Amazon Resource Name (ARN) for the Amazon SWF domain.
-
tag_keys
(ResourceTagKeyList)
–
The list of tags to remove from the Amazon SWF domain.
Raises:
-
LimitExceededFault
–
Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.
-
OperationNotPermittedFault
–
Returned when the caller doesn't have sufficient permissions to invoke the action.
-
UnknownResourceFault
–
Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_swf/_services/async_swf.py
| async def untag_resource(
self,
resource_arn: "capo_swf.types.arn.Arn",
tag_keys: "capo_swf.types.resource_tag_key_list.ResourceTagKeyList",
*,
config_overrides: Optional[AsyncSWFClientConfig] = None,
) -> None:
"""<p>Remove a tag from a Amazon SWF domain.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) for the Amazon SWF domain.</p>
tag_keys: <p>The list of tags to remove from the Amazon SWF domain.</p>
Raises:
capo_swf.errors.limit_exceeded_fault.LimitExceededFault: <p>Returned by any operation if a system imposed limitation has been reached. To address this fault you should either clean up unused resources or increase the limit by contacting AWS.</p>
capo_swf.errors.operation_not_permitted_fault.OperationNotPermittedFault: <p>Returned when the caller doesn't have sufficient permissions to invoke the action.</p>
capo_swf.errors.unknown_resource_fault.UnknownResourceFault: <p>Returned when the named resource cannot be found with in the scope of this operation (region or domain). This could happen if the named resource was never created or is no longer available for this operation.</p>
capo_swf.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_swf.types.untag_resource_input.UntagResourceInput]",
) -> AsyncOperationResponse[None]:
import capo_swf._operations.simple_workflow_service.untag_resource
(
output,
http_response,
) = await capo_swf._operations.simple_workflow_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_swf.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
|