locationf_sx_ontaps
Creates, updates, deletes or gets a locationf_sx_ontap resource or lists locationf_sx_ontaps in a region
Overview
| Name | locationf_sx_ontaps |
| Type | Resource |
| Description | Resource schema for AWS::DataSync::LocationFSxONTAP. |
| Id | awscc.datasync.locationf_sx_ontaps |
Fields
- get (all properties)
- list (identifiers only)
| Name | Datatype | Description |
|---|---|---|
storage_virtual_machine_arn | string | The Amazon Resource Name (ARN) for the FSx ONTAP SVM. |
fsx_filesystem_arn | string | The Amazon Resource Name (ARN) for the FSx ONAP file system. |
security_group_arns | array | The ARNs of the security groups that are to use to configure the FSx ONTAP file system. |
protocol | object | Configuration settings for an NFS or SMB protocol, currently only support NFS |
subdirectory | string | A subdirectory in the location's path. |
tags | array | An array of key-value pairs to apply to this resource. |
location_arn | string | The Amazon Resource Name (ARN) of the Amazon FSx ONTAP file system location that is created. |
location_uri | string | The URL of the FSx ONTAP file system that was described. |
region | string | AWS region. |
| Name | Datatype | Description |
|---|---|---|
location_arn | string | The Amazon Resource Name (ARN) of the Amazon FSx ONTAP file system location that is created. |
region | string | AWS region. |
For more information, see AWS::DataSync::LocationFSxONTAP.
Methods
| Name | Resource | Accessible by | Required Params |
|---|---|---|---|
create_resource | locationf_sx_ontaps | INSERT | SecurityGroupArns, StorageVirtualMachineArn, region |
delete_resource | locationf_sx_ontaps | DELETE | Identifier, region |
update_resource | locationf_sx_ontaps | UPDATE | Identifier, PatchDocument, region |
list_resources | locationf_sx_ontaps_list_only | SELECT | region |
get_resource | locationf_sx_ontaps | SELECT | Identifier, region |
SELECT examples
- get (all properties)
- list (identifiers only)
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 = '{{ region }}' AND
Identifier = '{{ location_arn }}';
Lists all locationf_sx_ontaps in a region.
SELECT
region,
location_arn
FROM awscc.datasync.locationf_sx_ontaps_list_only
WHERE
region = '{{ region }}';
INSERT example
Use the following StackQL query and manifest file to create a new locationf_sx_ontap resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.datasync.locationf_sx_ontaps (
StorageVirtualMachineArn,
SecurityGroupArns,
region
)
SELECT
'{{ storage_virtual_machine_arn }}',
'{{ security_group_arns }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
/*+ create */
INSERT INTO awscc.datasync.locationf_sx_ontaps (
StorageVirtualMachineArn,
SecurityGroupArns,
Protocol,
Subdirectory,
Tags,
region
)
SELECT
'{{ storage_virtual_machine_arn }}',
'{{ security_group_arns }}',
'{{ protocol }}',
'{{ subdirectory }}',
'{{ tags }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: locationf_sx_ontap
props:
- name: storage_virtual_machine_arn
value: '{{ storage_virtual_machine_arn }}'
- name: security_group_arns
value:
- '{{ security_group_arns[0] }}'
- name: protocol
value:
n_fs:
mount_options:
version: '{{ version }}'
- name: subdirectory
value: '{{ subdirectory }}'
- name: tags
value:
- key: '{{ key }}'
value: '{{ value }}'
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 }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;
DELETE example
/*+ delete */
DELETE FROM awscc.datasync.locationf_sx_ontaps
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:
| Parameter | Description |
|---|---|
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_ontaps resource, the following permissions are required:
- Create
- Read
- Update
- Delete
- List
datasync:CreateLocationFsxOntap,
datasync:DescribeLocationFsxOntap,
datasync:ListTagsForResource,
datasync:TagResource,
fsx:DescribeStorageVirtualMachines,
fsx:DescribeFileSystems,
ec2:DescribeNetworkInterfaces,
ec2:DescribeSubnets,
ec2:DescribeSecurityGroups
datasync:DescribeLocationFsxOntap,
datasync:ListTagsForResource
datasync:UpdateLocationFsxOntap,
datasync:DescribeLocationFsxOntap,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource,
fsx:DescribeFileSystems,
fsx:DescribeStorageVirtualMachines,
ec2:DescribeNetworkInterfaces
datasync:DeleteLocation
datasync:ListLocations