Removes tags from a SimSpace Weaver resource. For more information about tags, see Tagging Amazon Web Services resources in the Amazon Web Services General Reference.
Parameters:
-
resource_arn
(SimSpaceWeaverArn)
–
The Amazon Resource Name (ARN) of the resource that you want to remove tags from. For more information about ARNs, see Amazon Resource Names (ARNs) in the Amazon Web Services General Reference.
-
tag_keys
(TagKeyList)
–
A list of tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_simspaceweaver/_services/sim_space_weaver.py
| def untag_resource(
self,
resource_arn: "capo_simspaceweaver.types.sim_space_weaver_arn.SimSpaceWeaverArn",
tag_keys: "capo_simspaceweaver.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[SimSpaceWeaverClientConfig] = None,
) -> "capo_simspaceweaver.types.untag_resource_output.UntagResourceOutput":
"""<p>Removes tags from a SimSpace Weaver resource. For more information about tags, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws_tagging.html">Tagging Amazon Web Services resources</a> in the <i>Amazon Web Services General Reference</i>.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from. For more information about ARNs, see <a href="https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html">Amazon Resource Names (ARNs)</a> in the <i>Amazon Web Services General Reference</i>.</p>
tag_keys: <p>A list of tag keys to remove from the resource.</p>
Raises:
capo_simspaceweaver.errors.resource_not_found_exception.ResourceNotFoundException: <p/>
capo_simspaceweaver.errors.validation_exception.ValidationException: <p/>
capo_simspaceweaver.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_simspaceweaver.types.untag_resource_input.UntagResourceInput]",
) -> OperationResponse[
"capo_simspaceweaver.types.untag_resource_output.UntagResourceOutput"
]:
import capo_simspaceweaver._operations.sim_space_weaver.untag_resource
output, http_response = (
capo_simspaceweaver._operations.sim_space_weaver.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_simspaceweaver.types.untag_resource_input.UntagResourceInput = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|