EFS / Client / tag_resource

tag_resource#

EFS.Client.tag_resource(**kwargs)#

Creates a tag for an EFS resource. You can create tags for EFS file systems and access points using this API operation.

This operation requires permissions for the elasticfilesystem:TagResource action.

See also: AWS API Documentation

Request Syntax

response = client.tag_resource(
    ResourceId='string',
    Tags=[
        {
            'Key': 'string',
            'Value': 'string'
        },
    ]
)
Parameters:
  • ResourceId (string) –

    [REQUIRED]

    The ID specifying the EFS resource that you want to create a tag for.

  • Tags (list) –

    [REQUIRED]

    An array of Tag objects to add. Each Tag object is a key-value pair.

    • (dict) –

      A tag is a key-value pair. Allowed characters are letters, white space, and numbers that can be represented in UTF-8, and the following characters: `` + - = . _ : /``.

      • Key (string) – [REQUIRED]

        The tag key (String). The key can’t start with aws:.

      • Value (string) – [REQUIRED]

        The value of the tag key.

Returns:

None

Exceptions