untag_resource(
resource_arn: Arn,
tag_keys: TagKeyList,
*,
config_overrides: Optional[AsyncDSQLClientConfig] = None,
) -> None
Removes a tag from a resource.
Parameters:
-
resource_arn
(Arn)
–
The ARN of the resource from which to remove tags.
-
tag_keys
(TagKeyList)
–
The array of keys of the tags that you want to remove.
Raises:
Examples:
Untag Resource
>>> await client.untag_resource(resource_arn='arn:aws:dsql:us-east-1:111111222222:cluster/kiqenqglxyl2snyvkvnj2c3s2e', tag_keys=['MyKeyA', 'MyKeyB'])
Source code in docs_src/capo_dsql/_services/async_dsql.py
| async def untag_resource(
self,
resource_arn: "capo_dsql.types.arn.Arn",
tag_keys: "capo_dsql.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncDSQLClientConfig] = None,
) -> None:
"""<p>Removes a tag from a resource.</p>
Args:
resource_arn: <p>The ARN of the resource from which to remove tags.</p>
tag_keys: <p>The array of keys of the tags that you want to remove.</p>
Raises:
capo_dsql.errors.access_denied_exception.AccessDeniedException: <p>You do not have sufficient access to perform this action.</p>
capo_dsql.errors.internal_server_exception.InternalServerException: <p>The request processing has failed because of an unknown error, exception or failure.</p>
capo_dsql.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_dsql.errors.validation_exception.ValidationException: <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_dsql.errors.resource_not_found_exception.ResourceNotFoundException: <p>The resource could not be found.</p>
capo_dsql.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
Untag Resource
>>> await client.untag_resource(resource_arn='arn:aws:dsql:us-east-1:111111222222:cluster/kiqenqglxyl2snyvkvnj2c3s2e', tag_keys=['MyKeyA', 'MyKeyB'])
"""
async def _handler(
req: "AsyncOperationRequest[capo_dsql.types.untag_resource_input.UntagResourceInput]",
) -> AsyncOperationResponse[None]:
import capo_dsql._operations.dsql.untag_resource
(
output,
http_response,
) = await capo_dsql._operations.dsql.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_dsql.types.untag_resource_input.UntagResourceInput = {
"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
|