Remove tags from an App Runner resource.
Parameters:
-
resource_arn
(AppRunnerResourceArn)
–
The Amazon Resource Name (ARN) of the resource that you want to remove tags from.
It must be the ARN of an App Runner resource.
-
tag_keys
(TagKeyList)
–
A list of tag keys that you want to remove.
Raises:
Source code in docs_src/capo_apprunner/_services/app_runner.py
| def untag_resource(
self,
resource_arn: "capo_apprunner.types.app_runner_resource_arn.AppRunnerResourceArn",
tag_keys: "capo_apprunner.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AppRunnerClientConfig] = None,
) -> "capo_apprunner.types.untag_resource_response.UntagResourceResponse":
"""<p>Remove tags from an App Runner resource.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the resource that you want to remove tags from.</p> <p>It must be the ARN of an App Runner resource.</p>
tag_keys: <p>A list of tag keys that you want to remove.</p>
Raises:
capo_apprunner.errors.internal_service_error_exception.InternalServiceErrorException: <p>An unexpected service exception occurred.</p>
capo_apprunner.errors.invalid_request_exception.InvalidRequestException: <p>One or more input parameters aren't valid. Refer to the API action's document page, correct the input parameters, and try the action again.</p>
capo_apprunner.errors.invalid_state_exception.InvalidStateException: <p>You can't perform this action when the resource is in its current state.</p>
capo_apprunner.errors.resource_not_found_exception.ResourceNotFoundException: <p>A resource doesn't exist for the specified Amazon Resource Name (ARN) in your Amazon Web Services account.</p>
capo_apprunner.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_apprunner.types.untag_resource_request.UntagResourceRequest]",
) -> OperationResponse[
"capo_apprunner.types.untag_resource_response.UntagResourceResponse"
]:
import capo_apprunner._operations.app_runner.untag_resource
output, http_response = (
capo_apprunner._operations.app_runner.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_apprunner.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
|