paws.storage (version 0.1.0)

efs_create_tags: Creates or overwrites tags associated with a file system

Description

Creates or overwrites tags associated with a file system. Each tag is a key-value pair. If a tag key specified in the request already exists on the file system, this operation overwrites its value with the value provided in the request. If you add the Name tag to your file system, Amazon EFS returns it in the response to the DescribeFileSystems operation.

Usage

efs_create_tags(FileSystemId, Tags)

Arguments

FileSystemId

[required] The ID of the file system whose tags you want to modify (String). This operation modifies the tags only, not the file system.

Tags

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

Request syntax

svc$create_tags(
  FileSystemId = "string",
  Tags = list(
    list(
      Key = "string",
      Value = "string"
    )
  )
)

Details

This operation requires permission for the elasticfilesystem:CreateTags action.

Examples

Run this code
# NOT RUN {
# This operation creates a new tag for an EFS file system.
# }
# NOT RUN {
svc$create_tags(
  FileSystemId = "fs-01234567",
  Tags = list(
    list(
      Key = "Name",
      Value = "MyFileSystem"
    )
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataLab