Skip to content

Create Tags

efs_create_tags R Documentation

DEPRECATED - CreateTags is deprecated and not maintained

Description

DEPRECATED - create_tags is deprecated and not maintained. To create tags for EFS resources, use the API action.

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 describe_file_systems operation.

This operation requires permission for the elasticfilesystem:CreateTags action.

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.

Value

An empty list.

Request syntax

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

Examples

## Not run: 
# This operation creates a new tag for an EFS file system.
svc$create_tags(
  FileSystemId = "fs-01234567",
  Tags = list(
    list(
      Key = "Name",
      Value = "MyFileSystem"
    )
  )
)

## End(Not run)