Skip to main content

location_fsx_windows

Creates, updates, deletes, gets or lists a location_fsx_windows resource.

Overview

Namelocation_fsx_windows
TypeResource
Idaws.datasync.location_fsx_windows

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
cmk_secret_configobjectDescribes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location, with a customer-managed KMS key.
creation_timestring (date-time)The time that the FSx for Windows File Server location was created.
custom_secret_configobjectDescribes configuration information for a customer-managed secret, such as a Password that DataSync uses to access a specific storage location, with a customer-managed Identity and Access Management (IAM) role that provides access to the secret.
domainstringThe name of the Microsoft Active Directory domain that the FSx for Windows File Server file system belongs to. (pattern: <code>^[A-Za-z0-9]((.|-+)?[A-Za-z0-9]){0,252}$</code>)
location_arnstringThe ARN of the FSx for Windows File Server location. (pattern: <code>^arn:(aws|aws-cn|aws-us-gov|aws-eusc|aws-iso|aws-iso-b):datasync:[a-z-0-9]+:[0-9]{12}:location/loc-[0-9a-z]{17}$</code>)
location_uristringThe uniform resource identifier (URI) of the FSx for Windows File Server location. (pattern: <code>^(efs|nfs|s3|smb|hdfs|fsx[a-z0-9-]+):​//[a-zA-Z0-9.:/-]+$</code>)
managed_secret_configobjectDescribes configuration information for a DataSync-managed secret, such as a Password that DataSync uses to access a specific storage location. DataSync uses the default Amazon Web Services-managed KMS key to encrypt this secret in Secrets Manager.
security_group_arnsarrayThe ARNs of the Amazon EC2 security groups that provide access to your file system's preferred subnet. For information about configuring security groups for file system access, see the Amazon FSx for Windows File Server User Guide .
userstringThe user with the permissions to mount and access the FSx for Windows File Server file system. (pattern: <code>^[^\x22\x5B\x5D/\:;|=,+*?\x3C\x3E]{1,104}$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_location_fsx_windowsselectregionProvides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured.
create_location_fsx_windowsinsertregion, FsxFilesystemArn, SecurityGroupArnsCreates a transfer location for an Amazon FSx for Windows File Server file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Windows File Server file systems.
update_location_fsx_windowsupdateregion, LocationArnModifies the following configuration parameters of the Amazon FSx for Windows File Server transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Windows File Server.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Provides details about how an DataSync transfer location for an Amazon FSx for Windows File Server file system is configured.

SELECT
cmk_secret_config,
creation_time,
custom_secret_config,
domain,
location_arn,
location_uri,
managed_secret_config,
security_group_arns,
user
FROM aws.datasync.location_fsx_windows
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a transfer location for an Amazon FSx for Windows File Server file system. DataSync can use this location as a source or destination for transferring data. Before you begin, make sure that you understand how DataSync accesses FSx for Windows File Server file systems.

INSERT INTO aws.datasync.location_fsx_windows (
Subdirectory,
FsxFilesystemArn,
SecurityGroupArns,
Tags,
User,
Domain,
Password,
CmkSecretConfig,
CustomSecretConfig,
region
)
SELECT
'{{ Subdirectory }}',
'{{ FsxFilesystemArn }}' /* required */,
'{{ SecurityGroupArns }}' /* required */,
'{{ Tags }}',
'{{ User }}',
'{{ Domain }}',
'{{ Password }}',
'{{ CmkSecretConfig }}',
'{{ CustomSecretConfig }}',
'{{ region }}'
RETURNING
location_arn
;

UPDATE examples

Modifies the following configuration parameters of the Amazon FSx for Windows File Server transfer location that you're using with DataSync. For more information, see Configuring DataSync transfers with FSx for Windows File Server.

UPDATE aws.datasync.location_fsx_windows
SET
LocationArn = '{{ LocationArn }}',
Subdirectory = '{{ Subdirectory }}',
Domain = '{{ Domain }}',
User = '{{ User }}',
Password = '{{ Password }}',
CmkSecretConfig = '{{ CmkSecretConfig }}',
CustomSecretConfig = '{{ CustomSecretConfig }}'
WHERE
region = '{{ region }}' --required
AND LocationArn = '{{ LocationArn }}' --required;