Skip to main content

locationf_sx_windows

Creates, updates, deletes or gets a locationf_sx_window resource or lists locationf_sx_windows in a region

Overview

Namelocationf_sx_windows
TypeResource
DescriptionResource schema for AWS::DataSync::LocationFSxWindows.
Idawscc.datasync.locationf_sx_windows

Fields

NameDatatypeDescription
domainstringThe name of the Windows domain that the FSx for Windows server belongs to.
fsx_filesystem_arnstringThe Amazon Resource Name (ARN) for the FSx for Windows file system.
passwordstringThe password of the user who has the permissions to access files and folders in the FSx for Windows file system.
security_group_arnsarrayThe ARNs of the security groups that are to use to configure the FSx for Windows file system.
subdirectorystringA subdirectory in the location's path.
userstringThe user who has the permissions to access files and folders in the FSx for Windows file system.
tagsarrayAn array of key-value pairs to apply to this resource.
location_arnstringThe Amazon Resource Name (ARN) of the Amazon FSx for Windows file system location that is created.
location_uristringThe URL of the FSx for Windows location that was described.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcelocationf_sx_windowsINSERTUser, SecurityGroupArns, region
delete_resourcelocationf_sx_windowsDELETEIdentifier, region
update_resourcelocationf_sx_windowsUPDATEIdentifier, PatchDocument, region
list_resourceslocationf_sx_windows_list_onlySELECTregion
get_resourcelocationf_sx_windowsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual locationf_sx_window.

SELECT
region,
domain,
fsx_filesystem_arn,
password,
security_group_arns,
subdirectory,
user,
tags,
location_arn,
location_uri
FROM awscc.datasync.locationf_sx_windows
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_window resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.datasync.locationf_sx_windows (
SecurityGroupArns,
User,
region
)
SELECT
'{{ security_group_arns }}',
'{{ user }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.datasync.locationf_sx_windows
SET PatchDocument = string('{{ {
"Domain": domain,
"Password": password,
"Subdirectory": subdirectory,
"User": user,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}';

DELETE example

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

Permissions

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

datasync:CreateLocationFsxWindows,
datasync:DescribeLocationFsxWindows,
datasync:ListTagsForResource,
datasync:TagResource,
fsx:DescribeFileSystems,
ec2:DescribeNetworkInterfaces,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups