Creates an endpoint for an Amazon EFS file system that DataSync can access for a transfer. For more information, see Creating a location for Amazon EFS .
See also: AWS API Documentation
See ‘aws help’ for descriptions of global parameters.
create-location-efs
[--subdirectory <value>]
--efs-filesystem-arn <value>
--ec2-config <value>
[--tags <value>]
[--access-point-arn <value>]
[--file-system-access-role-arn <value>]
[--in-transit-encryption <value>]
[--cli-input-json | --cli-input-yaml]
[--generate-cli-skeleton <value>]
--subdirectory
(string)
Specifies a mount path for your Amazon EFS file system. This is where DataSync reads or writes data (depending on if this is a source or destination location). By default, DataSync uses the root directory, but you can also include subdirectories.
Note
You must specify a value with forward slashes (for example,
/path/to/folder
).
--efs-filesystem-arn
(string)
Specifies the ARN for the Amazon EFS file system.
--ec2-config
(structure)
Specifies the subnet and security groups DataSync uses to access your Amazon EFS file system.
SubnetArn -> (string)
Specifies the ARN of a subnet where DataSync creates the network interfaces for managing traffic during your transfer.
The subnet must be located:
In the same virtual private cloud (VPC) as the Amazon EFS file system.
In the same Availability Zone as at least one mount target for the Amazon EFS file system.
Note
You don’t need to specify a subnet that includes a file system mount target.
SecurityGroupArns -> (list)
Specifies the Amazon Resource Names (ARNs) of the security groups associated with an Amazon EFS file system’s mount target.
(string)
Shorthand Syntax:
SubnetArn=string,SecurityGroupArns=string,string
JSON Syntax:
{
"SubnetArn": "string",
"SecurityGroupArns": ["string", ...]
}
--tags
(list)
Specifies the key-value pair that represents a tag that you want to add to the resource. The value can be an empty string. This value helps you manage, filter, and search for your resources. We recommend that you create a name tag for your location.
(structure)
Represents a single entry in a list of Amazon Web Services resource tags.
TagListEntry
returns an array that contains a list of tasks when the ListTagsForResource operation is called.Key -> (string)
The key for an Amazon Web Services resource tag.
Value -> (string)
The value for an Amazon Web Services resource tag.
Shorthand Syntax:
Key=string,Value=string ...
JSON Syntax:
[
{
"Key": "string",
"Value": "string"
}
...
]
--access-point-arn
(string)
Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access the Amazon EFS file system.
--file-system-access-role-arn
(string)
Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounting the Amazon EFS file system.
--in-transit-encryption
(string)
Specifies whether you want DataSync to use Transport Layer Security (TLS) 1.2 encryption when it copies data to or from the Amazon EFS file system.
If you specify an access point using
AccessPointArn
or an IAM role usingFileSystemAccessRoleArn
, you must set this parameter toTLS1_2
.Possible values:
NONE
TLS1_2
--cli-input-json
| --cli-input-yaml
(string)
Reads arguments from the JSON string provided. The JSON string follows the format provided by --generate-cli-skeleton
. If other arguments are provided on the command line, those values will override the JSON-provided values. It is not possible to pass arbitrary binary values using a JSON-provided value as the string will be taken literally. This may not be specified along with --cli-input-yaml
.
--generate-cli-skeleton
(string)
Prints a JSON skeleton to standard output without sending an API request. If provided with no value or the value input
, prints a sample input JSON that can be used as an argument for --cli-input-json
. Similarly, if provided yaml-input
it will print a sample input YAML that can be used with --cli-input-yaml
. If provided with the value output
, it validates the command inputs and returns a sample output JSON for that command. The generated JSON skeleton is not stable between versions of the AWS CLI and there are no backwards compatibility guarantees in the JSON skeleton generated.
See ‘aws help’ for descriptions of global parameters.
LocationArn -> (string)
The Amazon Resource Name (ARN) of the Amazon EFS file system location that you create.