Skip to main content

locationf_sx_ontaps

Creates, updates, deletes or gets a locationf_sx_ontap resource or lists locationf_sx_ontaps in a region

Overview

Namelocationf_sx_ontaps
TypeResource
DescriptionResource schema for AWS::DataSync::LocationFSxONTAP.
Idawscc.datasync.locationf_sx_ontaps

Fields

NameDatatypeDescription
storage_virtual_machine_arnstringThe Amazon Resource Name (ARN) for the FSx ONTAP SVM.
fsx_filesystem_arnstringThe Amazon Resource Name (ARN) for the FSx ONAP file system.
security_group_arnsarrayThe ARNs of the security groups that are to use to configure the FSx ONTAP file system.
protocolobjectConfiguration settings for an NFS or SMB protocol, currently only support NFS
subdirectorystringA subdirectory in the location's path.
tagsarrayAn array of key-value pairs to apply to this resource.
location_arnstringThe Amazon Resource Name (ARN) of the Amazon FSx ONTAP file system location that is created.
location_uristringThe URL of the FSx ONTAP file system that was described.
regionstringAWS region.

For more information, see AWS::DataSync::LocationFSxONTAP.

Methods

NameResourceAccessible byRequired Params
create_resourcelocationf_sx_ontapsINSERTSecurityGroupArns, StorageVirtualMachineArn, region
delete_resourcelocationf_sx_ontapsDELETEIdentifier, region
update_resourcelocationf_sx_ontapsUPDATEIdentifier, PatchDocument, region
list_resourceslocationf_sx_ontaps_list_onlySELECTregion
get_resourcelocationf_sx_ontapsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual locationf_sx_ontap.

SELECT
region,
storage_virtual_machine_arn,
fsx_filesystem_arn,
security_group_arns,
protocol,
subdirectory,
tags,
location_arn,
location_uri
FROM awscc.datasync.locationf_sx_ontaps
WHERE
region = 'us-east-1' AND
Identifier = '{{ location_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.datasync.locationf_sx_ontaps (
StorageVirtualMachineArn,
SecurityGroupArns,
region
)
SELECT
'{{ storage_virtual_machine_arn }}',
'{{ security_group_arns }}',
'{{ region }}';

UPDATE example

Use the following StackQL query and manifest file to update a locationf_sx_ontap resource, using stack-deploy.

/*+ update */
UPDATE awscc.datasync.locationf_sx_ontaps
SET PatchDocument = string('{{ {
"Protocol": protocol,
"Subdirectory": subdirectory,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.datasync.locationf_sx_ontaps
WHERE
Identifier = '{{ location_arn }}' AND
region = 'us-east-1';

Permissions

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

datasync:CreateLocationFsxOntap,
datasync:DescribeLocationFsxOntap,
datasync:ListTagsForResource,
datasync:TagResource,
fsx:DescribeStorageVirtualMachines,
fsx:DescribeFileSystems,
ec2:DescribeNetworkInterfaces,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups