Skip to main content

locationf_sx_open_zfs

Creates, updates, deletes or gets a locationf_sx_open_zf resource or lists locationf_sx_open_zfs in a region

Overview

Namelocationf_sx_open_zfs
TypeResource
DescriptionResource schema for AWS::DataSync::LocationFSxOpenZFS.
Idawscc.datasync.locationf_sx_open_zfs

Fields

NameDatatypeDescription
fsx_filesystem_arnstringThe Amazon Resource Name (ARN) for the FSx OpenZFS file system.
security_group_arnsarrayThe ARNs of the security groups that are to use to configure the FSx OpenZFS 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 OpenZFS file system location that is created.
location_uristringThe URL of the FSx OpenZFS that was described.
regionstringAWS region.

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

Methods

NameResourceAccessible byRequired Params
create_resourcelocationf_sx_open_zfsINSERTSecurityGroupArns, Protocol, region
delete_resourcelocationf_sx_open_zfsDELETEIdentifier, region
update_resourcelocationf_sx_open_zfsUPDATEIdentifier, PatchDocument, region
list_resourceslocationf_sx_open_zfs_list_onlySELECTregion
get_resourcelocationf_sx_open_zfsSELECTIdentifier, region

SELECT examples

Gets all properties from an individual locationf_sx_open_zf.

SELECT
region,
fsx_filesystem_arn,
security_group_arns,
protocol,
subdirectory,
tags,
location_arn,
location_uri
FROM awscc.datasync.locationf_sx_open_zfs
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}';

INSERT example

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

/*+ create */
INSERT INTO awscc.datasync.locationf_sx_open_zfs (
SecurityGroupArns,
Protocol,
region
)
SELECT
'{{ security_group_arns }}',
'{{ protocol }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

UPDATE example

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

/*+ update */
UPDATE awscc.datasync.locationf_sx_open_zfs
SET PatchDocument = string('{{ {
"Protocol": protocol,
"Subdirectory": subdirectory,
"Tags": tags
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.datasync.locationf_sx_open_zfs
WHERE
Identifier = '{{ location_arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

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

datasync:CreateLocationFsxOpenZfs,
datasync:DescribeLocationFsxOpenZfs,
datasync:ListTagsForResource,
datasync:TagResource,
fsx:DescribeFileSystems,
ec2:DescribeNetworkInterfaces,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups