Skip to main content

location_efs

Creates, updates, deletes or gets a location_ef resource or lists location_efs in a region

Overview

Namelocation_efs
TypeResource
DescriptionResource schema for AWS::DataSync::LocationEFS.
Idaws.datasync.location_efs

Fields

NameDatatypeDescription
ec2_configobjectThe subnet and security group that DataSync uses to access target EFS file system.
efs_filesystem_arnstringThe Amazon Resource Name (ARN) for the Amazon EFS file system.
access_point_arnstringThe Amazon Resource Name (ARN) for the Amazon EFS Access point that DataSync uses when accessing the EFS file system.
file_system_access_role_arnstringThe Amazon Resource Name (ARN) of the AWS IAM role that the DataSync will assume when mounting the EFS file system.
in_transit_encryptionstringProtocol that is used for encrypting the traffic exchanged between the DataSync Agent and the EFS file system.
subdirectorystringA subdirectory in the location's path. This subdirectory in the EFS file system is used to read data from the EFS source location or write data to the EFS destination.
tagsarrayAn array of key-value pairs to apply to this resource.
location_arnstringThe Amazon Resource Name (ARN) of the Amazon EFS file system location that is created.
location_uristringThe URL of the EFS location that was described.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTEc2Config, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all location_efs in a region.

SELECT
region,
ec2_config,
efs_filesystem_arn,
access_point_arn,
file_system_access_role_arn,
in_transit_encryption,
subdirectory,
tags,
location_arn,
location_uri
FROM aws.datasync.location_efs
WHERE region = 'us-east-1';

Gets all properties from an individual location_ef.

SELECT
region,
ec2_config,
efs_filesystem_arn,
access_point_arn,
file_system_access_role_arn,
in_transit_encryption,
subdirectory,
tags,
location_arn,
location_uri
FROM aws.datasync.location_efs
WHERE region = 'us-east-1' AND data__Identifier = '<LocationArn>';

INSERT example

Use the following StackQL query and manifest file to create a new location_ef resource, using stack-deploy.

/*+ create */
INSERT INTO aws.datasync.location_efs (
Ec2Config,
region
)
SELECT
'{{ Ec2Config }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.datasync.location_efs
WHERE data__Identifier = '<LocationArn>'
AND region = 'us-east-1';

Permissions

To operate on the location_efs resource, the following permissions are required:

Create

datasync:CreateLocationEfs,
datasync:DescribeLocationEfs,
datasync:ListTagsForResource,
datasync:TagResource,
elasticfilesystem:DescribeFileSystems,
elasticfilesystem:DescribeMountTargets,
elasticfilesystem:DescribeAccessPoints,
iam:PassRole,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups

Read

datasync:DescribeLocationEfs,
datasync:ListTagsForResource

Update

datasync:DescribeLocationEfs,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource

Delete

datasync:DeleteLocation

List

datasync:ListLocations