Organizations.Client.
untag_resource
(**kwargs)¶Removes any tags with the specified keys from the specified resource.
You can attach tags to the following resources in Organizations.
This operation can be called only from the organization's management account.
See also: AWS API Documentation
Request Syntax
response = client.untag_resource(
ResourceId='string',
TagKeys=[
'string',
]
)
[REQUIRED]
The ID of the resource to remove a tag from.
You can specify any of the following taggable resources.
ou-
and looks similar to: ou-1a2b-34uvwxyz
r-
and looks similar to: r-1a2b
p-
andlooks similar to: p-12abcdefg3
[REQUIRED]
The list of keys for tags to remove from the specified resource.
None
Exceptions
Organizations.Client.exceptions.AccessDeniedException
Organizations.Client.exceptions.ConcurrentModificationException
Organizations.Client.exceptions.AWSOrganizationsNotInUseException
Organizations.Client.exceptions.TargetNotFoundException
Organizations.Client.exceptions.ConstraintViolationException
Organizations.Client.exceptions.InvalidInputException
Organizations.Client.exceptions.ServiceException
Organizations.Client.exceptions.TooManyRequestsException