Removes one or more tags from the specified EventBridge Scheduler schedule group.
Parameters:
-
resource_arn
(TagResourceArn)
–
The Amazon Resource Name (ARN) of the schedule group from which you are removing tags.
-
tag_keys
(TagKeyList)
–
The list of tag keys to remove from the resource.
Raises:
Source code in docs_src/capo_scheduler/_services/async_scheduler.py
| async def untag_resource(
self,
resource_arn: "capo_scheduler.types.tag_resource_arn.TagResourceArn",
tag_keys: "capo_scheduler.types.tag_key_list.TagKeyList",
*,
config_overrides: Optional[AsyncSchedulerClientConfig] = None,
) -> "capo_scheduler.types.untag_resource_output.UntagResourceOutput":
"""<p>Removes one or more tags from the specified EventBridge Scheduler schedule group.</p>
Args:
resource_arn: <p>The Amazon Resource Name (ARN) of the schedule group from which you are removing tags.</p>
tag_keys: <p>The list of tag keys to remove from the resource.</p>
Raises:
capo_scheduler.errors.conflict_exception.ConflictException: <p>Updating or deleting the resource can cause an inconsistent state.</p>
capo_scheduler.errors.internal_server_exception.InternalServerException: <p>Unexpected error encountered while processing the request.</p>
capo_scheduler.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource which does not exist.</p>
capo_scheduler.errors.throttling_exception.ThrottlingException: <p>The request was denied due to request throttling.</p>
capo_scheduler.errors.validation_exception.ValidationException: <p>The input fails to satisfy the constraints specified by an AWS service.</p>
capo_scheduler.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_scheduler.types.untag_resource_input.UntagResourceInput]",
) -> AsyncOperationResponse[
"capo_scheduler.types.untag_resource_output.UntagResourceOutput"
]:
import capo_scheduler._operations.aws_chronos_service.untag_resource
(
output,
http_response,
) = await capo_scheduler._operations.aws_chronos_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_scheduler.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
|