untag_resource
¶
untag_resource(
tag_keys: TagKeyList,
*,
config_overrides: Optional[RAMClientConfig] = None,
resource_share_arn: Optional[String] = None,
resource_arn: Optional[String] = None,
) -> UntagResourceResponse
Removes the specified tag key and value pairs from the specified resource share or managed permission.
Parameters:
-
resource_share_arn(Optional[String], default:None) –Specifies the Amazon Resource Name (ARN) of the resource share that you want to remove tags from. The tags are removed from the resource share, not the resources in the resource share. You must specify either
resourceShareArn, orresourceArn, but not both. -
tag_keys(TagKeyList) –Specifies a list of one or more tag keys that you want to remove.
-
resource_arn(Optional[String], default:None) –Specifies the Amazon Resource Name (ARN) of the managed permission that you want to remove tags from. You must specify either
resourceArn, orresourceShareArn, but not both.
Raises:
-
InvalidParameterException–The operation failed because a parameter you specified isn't valid.
-
MalformedArnException–The operation failed because the specified Amazon Resource Name (ARN) has a format that isn't valid.
-
ServerInternalException–The operation failed because the service could not respond to the request due to an internal problem. Try again later.
-
ServiceUnavailableException–The operation failed because the service isn't available. Try again later.
-
UnknownResourceException–The operation failed because a specified resource couldn't be found.
-
UnknownServiceError–The service returned an error code this client does not model.