tag_resource
async
¶
tag_resource(
resource_arn: EnvironmentArn,
tags: TagMap,
*,
config_overrides: Optional[AsyncMWAAClientConfig] = None,
) -> TagResourceOutput
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
Parameters:
-
resource_arn(EnvironmentArn) –The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example,
arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment. -
tags(TagMap) –The key-value tag pairs you want to associate to your environment. For example,
"Environment": "Staging". For more information, refer to Tagging Amazon Web Services resources.
Raises:
-
InternalServerException–InternalServerException: An internal error has occurred.
-
ResourceNotFoundException–ResourceNotFoundException: The resource is not available.
-
ValidationException–ValidationException: The provided input is not valid.
-
UnknownServiceError–The service returned an error code this client does not model.