Removes one or more tags from a Managed Service for Apache Flink application. For more information, see Using Tagging.
Parameters:
-
resource_arn
(KinesisAnalyticsARN)
–
The ARN of the Managed Service for Apache Flink application from which to remove the tags.
-
tag_keys
(TagKeys)
–
A list of keys of tags to remove from the specified application.
Raises:
-
ConcurrentModificationException
–
Exception thrown as a result of concurrent modifications to an application. This error can be the result of attempting to modify an application without using the current application ID.
-
InvalidArgumentException
–
The specified input parameter value is not valid.
-
ResourceInUseException
–
The application is not available for this operation.
-
ResourceNotFoundException
–
Specified application can't be found.
-
TooManyTagsException
–
Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis_analytics_v2/_services/async_kinesis_analytics_v2.py
| async def untag_resource(
self,
resource_arn: "capo_kinesis_analytics_v2.types.kinesis_analytics_arn.KinesisAnalyticsARN",
tag_keys: "capo_kinesis_analytics_v2.types.tag_keys.TagKeys",
*,
config_overrides: Optional[AsyncKinesisAnalyticsV2ClientConfig] = None,
) -> (
"capo_kinesis_analytics_v2.types.untag_resource_response.UntagResourceResponse"
):
"""<p>Removes one or more tags from a Managed Service for Apache Flink application. For more information, see <a href="https://docs.aws.amazon.com/kinesisanalytics/latest/java/how-tagging.html">Using Tagging</a>.</p>
Args:
resource_arn: <p>The ARN of the Managed Service for Apache Flink application from which to remove the tags.</p>
tag_keys: <p>A list of keys of tags to remove from the specified application.</p>
Raises:
capo_kinesis_analytics_v2.errors.concurrent_modification_exception.ConcurrentModificationException: <p>Exception thrown as a result of concurrent modifications to an application. This error can be the result of attempting to modify an application without using the current application ID.</p>
capo_kinesis_analytics_v2.errors.invalid_argument_exception.InvalidArgumentException: <p>The specified input parameter value is not valid.</p>
capo_kinesis_analytics_v2.errors.resource_in_use_exception.ResourceInUseException: <p>The application is not available for this operation.</p>
capo_kinesis_analytics_v2.errors.resource_not_found_exception.ResourceNotFoundException: <p>Specified application can't be found.</p>
capo_kinesis_analytics_v2.errors.too_many_tags_exception.TooManyTagsException: <p>Application created with too many tags, or too many tags added to an application. Note that the maximum number of application tags includes system tags. The maximum number of user-defined application tags is 50.</p>
capo_kinesis_analytics_v2.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
async def _handler(
req: "AsyncOperationRequest[capo_kinesis_analytics_v2.types.untag_resource_request.UntagResourceRequest]",
) -> AsyncOperationResponse[
"capo_kinesis_analytics_v2.types.untag_resource_response.UntagResourceResponse"
]:
import capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.untag_resource
(
output,
http_response,
) = await capo_kinesis_analytics_v2._operations.kinesis_analytics_20180523.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_kinesis_analytics_v2.types.untag_resource_request.UntagResourceRequest = {
"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
|