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.
elasticfilesystem:TagResource
Use a bare-bones client and the command you need to make an API call.
import { EFSClient, TagResourceCommand } from "@aws-sdk/client-efs"; // ES Modules import // const { EFSClient, TagResourceCommand } = require("@aws-sdk/client-efs"); // CommonJS import const client = new EFSClient(config); const command = new TagResourceCommand(input); const response = await client.send(command);
TagResourceCommandInput for command's input shape.
input
TagResourceCommandOutput for command's response shape.
response
config for EFSClient's config shape.
config
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.Use a bare-bones client and the command you need to make an API call.
import { EFSClient, TagResourceCommand } from "@aws-sdk/client-efs"; // ES Modules import // const { EFSClient, TagResourceCommand } = require("@aws-sdk/client-efs"); // CommonJS import const client = new EFSClient(config); const command = new TagResourceCommand(input); const response = await client.send(command);
TagResourceCommandInput for command's
input
shape.TagResourceCommandOutput for command's
response
shape.config for EFSClient's
config
shape.