Disassociates one or more specified tags from the specified WorkSpaces Applications resource.
To list the current tags for your resources, use ListTagsForResource.
For more information about tags, see Tagging Your Resources in the Amazon WorkSpaces Applications Administration Guide.
Parameters:
-
resource_arn
(Optional[Arn], default:
None
)
–
The Amazon Resource Name (ARN) of the resource.
-
tag_keys
(Optional[TagKeyList], default:
None
)
–
The tag keys for the tags to disassociate.
Raises:
Source code in docs_src/capo_appstream/_services/async_app_stream.py
| async def untag_resource(
self,
*,
config_overrides: Optional[AsyncAppStreamClientConfig] = None,
resource_arn: Optional["capo_appstream.types.arn.Arn"] = None,
tag_keys: Optional["capo_appstream.types.tag_key_list.TagKeyList"] = None,
) -> "capo_appstream.types.untag_resource_response.UntagResourceResponse":
"""<p>Disassociates one or more specified tags from the specified WorkSpaces Applications resource.</p> <p>To list the current tags for your resources, use <a>ListTagsForResource</a>.</p> <p>For more information about tags, see <a href="https://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic.html">Tagging Your Resources</a> in the <i>Amazon WorkSpaces Applications Administration Guide</i>.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource.</p>
tag_keys: <p>The tag keys for the tags to disassociate.</p>
Raises:
capo_appstream.errors.resource_not_found_exception.ResourceNotFoundException: <p>The specified resource was not found.</p>
capo_appstream.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_appstream.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_appstream.types.untag_resource_response.UntagResourceResponse"
]:
import capo_appstream._operations.photon_admin_proxy_service.untag_resource
(
output,
http_response,
) = await capo_appstream._operations.photon_admin_proxy_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_appstream.types.untag_resource_request.UntagResourceRequest = {}
if resource_arn is not None:
input_["resource_arn"] = resource_arn
if tag_keys is not None:
input_["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
|