MWAA / Client / tag_resource
tag_resource#
- MWAA.Client.tag_resource(**kwargs)#
Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.
See also: AWS API Documentation
Request Syntax
response = client.tag_resource( ResourceArn='string', Tags={ 'string': 'string' } )
- Parameters:
ResourceArn (string) –
[REQUIRED]
The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example,
arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment
.Tags (dict) –
[REQUIRED]
The key-value tag pairs you want to associate to your environment. For example,
"Environment": "Staging"
. For more information, see Tagging Amazon Web Services resources.(string) –
(string) –
- Return type:
dict
- Returns:
Response Syntax
{}
Response Structure
(dict) –
Exceptions
MWAA.Client.exceptions.ResourceNotFoundException
MWAA.Client.exceptions.ValidationException
MWAA.Client.exceptions.InternalServerException