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'
},
]
)
[REQUIRED]
The ID specifying the EFS resource that you want to create a tag for.
[REQUIRED]
An array of Tag
objects to add. Each Tag
object is a key-value pair.
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: + - = . _ : /
.
The tag key (String). The key can't start with aws:
.
The value of the tag key.
None
Exceptions
EFS.Client.exceptions.BadRequest
EFS.Client.exceptions.InternalServerError
EFS.Client.exceptions.FileSystemNotFound
EFS.Client.exceptions.AccessPointNotFound