Remove tags from the specified Amazon SNS topic. For an overview, see Amazon SNS Tags in the Amazon SNS Developer Guide.
Parameters:
-
resource_arn
(AmazonResourceName)
–
The ARN of the topic from which to remove tags.
-
tag_keys
(TagKeyList)
–
The list of tag keys to remove from the specified topic.
Raises:
Source code in docs_src/capo_sns/_services/async_sns.py
| async def untag_resource(
self,
resource_arn: "capo_sns.types.amazon_resource_name.AmazonResourceName",
tag_keys: "capo_sns.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncSNSClientConfig] = None,
) -> "capo_sns.types.untag_resource_response.UntagResourceResponse":
"""<p>Remove tags from the specified Amazon SNS topic. For an overview, see <a href="https://docs.aws.amazon.com/sns/latest/dg/sns-tags.html">Amazon SNS Tags</a> in the <i>Amazon SNS Developer Guide</i>.</p>
Args:
resource_arn: <p>The ARN of the topic from which to remove tags.</p>
tag_keys: <p>The list of tag keys to remove from the specified topic.</p>
Raises:
capo_sns.errors.authorization_error_exception.AuthorizationErrorException: <p>Indicates that the user has been denied access to the requested resource.</p>
capo_sns.errors.concurrent_access_exception.ConcurrentAccessException: <p>Can't perform multiple operations on a tag simultaneously. Perform the operations sequentially.</p>
capo_sns.errors.invalid_parameter_exception.InvalidParameterException: <p>Indicates that a request parameter does not comply with the associated constraints.</p>
capo_sns.errors.resource_not_found_exception.ResourceNotFoundException: <p>Can’t perform the action on the specified resource. Make sure that the resource exists.</p>
capo_sns.errors.stale_tag_exception.StaleTagException: <p>A tag has been added to a resource with the same ARN as a deleted resource. Wait a short while and then retry the operation.</p>
capo_sns.errors.tag_limit_exceeded_exception.TagLimitExceededException: <p>Can't add more than 50 tags to a topic.</p>
capo_sns.errors.tag_policy_exception.TagPolicyException: <p>The request doesn't comply with the IAM tag policy. Correct your request and then retry it.</p>
capo_sns.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_sns.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_sns.types.untag_resource_response.UntagResourceResponse"
]:
import capo_sns._operations.amazon_simple_notification_service.untag_resource
(
output,
http_response,
) = await capo_sns._operations.amazon_simple_notification_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_sns.types.untag_resource_request.UntagResourceRequest = {
"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
|