untag_resource(
resource_arn: Arn,
tag_keys: TagKeyList,
*,
config_overrides: Optional[AppConfigClientConfig] = None,
) -> None
Deletes a tag key and value from an AppConfig resource.
Parameters:
-
resource_arn
(Arn)
–
The ARN of the resource for which to remove tags.
-
tag_keys
(TagKeyList)
–
Raises:
Examples:
To remove a tag from an application
The following untag-resource example removes the group1 tag from the specified application.
>>> client.untag_resource(resource_arn='arn:aws:appconfig:us-east-1:111122223333:application/339ohji', tag_keys=['group1'])
Source code in docs_src/capo_appconfig/_services/app_config.py
| def untag_resource(
self,
resource_arn: "capo_appconfig.types.arn.Arn",
tag_keys: "capo_appconfig.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AppConfigClientConfig] = None,
) -> None:
"""<p>Deletes a tag key and value from an AppConfig resource.</p>
Args:
resource_arn: <p>The ARN of the resource for which to remove tags.</p>
tag_keys: <p>The tag keys to delete.</p>
Raises:
capo_appconfig.errors.bad_request_exception.BadRequestException: <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
capo_appconfig.errors.internal_server_exception.InternalServerException: <p>There was an internal failure in the AppConfig service.</p>
capo_appconfig.errors.resource_not_found_exception.ResourceNotFoundException: <p>The requested resource could not be found.</p>
capo_appconfig.errors.UnknownServiceError: The service returned an error code this client does not model.
Examples:
To remove a tag from an application
The following untag-resource example removes the group1 tag from the specified application.
>>> client.untag_resource(resource_arn='arn:aws:appconfig:us-east-1:111122223333:application/339ohji', tag_keys=['group1'])
"""
def _handler(
req: "OperationRequest[capo_appconfig.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[None]:
import capo_appconfig._operations.amazon_app_config.untag_resource
output, http_response = (
capo_appconfig._operations.amazon_app_config.untag_resource.untag_resource(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("UntagResource")
)
input_: capo_appconfig.types.untag_resource_request.UntagResourceRequest = {
"resource_arn": resource_arn,
"tag_keys": tag_keys,
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|