Cancels the specified tag-sync task.
Minimum permissions
To run this command, you must have the following permissions:
Parameters:
-
task_arn
(TagSyncTaskArn)
–
The Amazon resource name (ARN) of the tag-sync task.
Raises:
Source code in docs_src/capo_resource_groups/_services/async_resource_groups.py
| async def cancel_tag_sync_task(
self,
task_arn: "capo_resource_groups.types.tag_sync_task_arn.TagSyncTaskArn",
*,
config_overrides: Optional[AsyncResourceGroupsClientConfig] = None,
) -> None:
"""<p>Cancels the specified tag-sync task. </p> <p> <b>Minimum permissions</b> </p> <p>To run this command, you must have the following permissions:</p> <ul> <li> <p> <code>resource-groups:CancelTagSyncTask</code> on the application group</p> </li> <li> <p> <code>resource-groups:DeleteGroup</code> </p> </li> </ul>
Args:
task_arn: <p>The Amazon resource name (ARN) of the tag-sync task. </p>
Raises:
capo_resource_groups.errors.bad_request_exception.BadRequestException: <p>The request includes one or more parameters that violate validation rules.</p>
capo_resource_groups.errors.forbidden_exception.ForbiddenException: <p>The caller isn't authorized to make the request. Check permissions.</p>
capo_resource_groups.errors.internal_server_error_exception.InternalServerErrorException: <p>An internal error occurred while processing the request. Try again later.</p>
capo_resource_groups.errors.method_not_allowed_exception.MethodNotAllowedException: <p>The request uses an HTTP method that isn't allowed for the specified resource.</p>
capo_resource_groups.errors.too_many_requests_exception.TooManyRequestsException: <p>You've exceeded throttling limits by making too many requests in a period of time.</p>
capo_resource_groups.errors.unauthorized_exception.UnauthorizedException: <p>The request was rejected because it doesn't have valid credentials for the target resource.</p>
capo_resource_groups.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_resource_groups.types.cancel_tag_sync_task_input.CancelTagSyncTaskInput]",
) -> AsyncOperationResponse[None]:
import capo_resource_groups._operations.ardi.cancel_tag_sync_task
(
output,
http_response,
) = await capo_resource_groups._operations.ardi.cancel_tag_sync_task.async_cancel_tag_sync_task(
req.options, req.input
)
return AsyncOperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("CancelTagSyncTask")
)
input_: capo_resource_groups.types.cancel_tag_sync_task_input.CancelTagSyncTaskInput = {
"task_arn": task_arn
}
response = await aexecute_pipeline(
AsyncOperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
await response.response.aclose()
return response.output
|