Method: Aws::MWAA::Client#tag_resource

Defined in:
lib/aws-sdk-mwaa/client.rb

#tag_resource(params = {}) ⇒ Struct

Associates key-value tag pairs to your Amazon Managed Workflows for Apache Airflow (MWAA) environment.

Examples:

Request syntax with placeholder values


resp = client.tag_resource({
  resource_arn: "EnvironmentArn", # required
  tags: { # required
    "TagKey" => "TagValue",
  },
})

Parameters:

  • params (Hash) (defaults to: {})

    ({})

Options Hash (params):

  • :resource_arn (required, String)

    The Amazon Resource Name (ARN) of the Amazon MWAA environment. For example, ‘arn:aws:airflow:us-east-1:123456789012:environment/MyMWAAEnvironment`.

  • :tags (required, Hash<String,String>)

    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].

    [1]: docs.aws.amazon.com/general/latest/gr/aws_tagging.html

Returns:

  • (Struct)

    Returns an empty response.

See Also:



1195
1196
1197
1198
# File 'lib/aws-sdk-mwaa/client.rb', line 1195

def tag_resource(params = {}, options = {})
  req = build_request(:tag_resource, params)
  req.send_request(options)
end