Remove resource tags from a Greengrass Resource.
Parameters:
-
resource_arn
(__string)
–
The Amazon Resource Name (ARN) of the resource.
-
tag_keys
(Optional[__listOf__string], default:
None
)
–
An array of tag keys to delete
Raises:
Source code in docs_src/capo_greengrass/_services/async_greengrass.py
| async def untag_resource(
self,
resource_arn: "capo_greengrass.types.__string.__string",
*,
config_overrides: Optional[AsyncGreengrassClientConfig] = None,
tag_keys: Optional[
"capo_greengrass.types.__list_of__string.__listOf__string"
] = None,
) -> None:
"""Remove resource tags from a Greengrass Resource.
Args:
resource_arn: The Amazon Resource Name (ARN) of the resource.
tag_keys: An array of tag keys to delete
Raises:
capo_greengrass.errors.bad_request_exception.BadRequestException: General error information.
capo_greengrass.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_greengrass.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[None]:
import capo_greengrass._operations.greengrass.untag_resource
(
output,
http_response,
) = await capo_greengrass._operations.greengrass.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_greengrass.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn
}
if tag_keys is not None:
input_["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
|