Skip to main content

storage_systems

Creates, updates, deletes or gets a storage_system resource or lists storage_systems in a region

Overview

Namestorage_systems
TypeResource
DescriptionResource schema for AWS::DataSync::StorageSystem.
Idaws.datasync.storage_systems

Fields

NameDatatypeDescription
server_configurationobjectThe server name and network port required to connect with the management interface of the on-premises storage system.
server_credentialsobjectThe username and password for accessing your on-premises storage system's management interface.
secrets_manager_arnstringThe ARN of a secret stored by AWS Secrets Manager.
system_typestringThe type of on-premises storage system that DataSync Discovery will analyze.
agent_arnsarrayThe ARN of the DataSync agent that connects to and reads from the on-premises storage system's management interface.
cloud_watch_log_group_arnstringThe ARN of the Amazon CloudWatch log group used to monitor and log discovery job events.
namestringA familiar name for the on-premises storage system.
tagsarrayAn array of key-value pairs to apply to this resource.
storage_system_arnstringThe ARN of the on-premises storage system added to DataSync Discovery.
connectivity_statusstringIndicates whether the DataSync agent can access the on-premises storage system.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTServerConfiguration, SystemType, AgentArns, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all storage_systems in a region.

SELECT
region,
server_configuration,
server_credentials,
secrets_manager_arn,
system_type,
agent_arns,
cloud_watch_log_group_arn,
name,
tags,
storage_system_arn,
connectivity_status
FROM aws.datasync.storage_systems
WHERE region = 'us-east-1';

Gets all properties from an individual storage_system.

SELECT
region,
server_configuration,
server_credentials,
secrets_manager_arn,
system_type,
agent_arns,
cloud_watch_log_group_arn,
name,
tags,
storage_system_arn,
connectivity_status
FROM aws.datasync.storage_systems
WHERE region = 'us-east-1' AND data__Identifier = '<StorageSystemArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.datasync.storage_systems (
ServerConfiguration,
SystemType,
AgentArns,
region
)
SELECT
'{{ ServerConfiguration }}',
'{{ SystemType }}',
'{{ AgentArns }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.datasync.storage_systems
WHERE data__Identifier = '<StorageSystemArn>'
AND region = 'us-east-1';

Permissions

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

Create

datasync:AddStorageSystem,
datasync:DescribeStorageSystem,
datasync:ListTagsForResource,
datasync:TagResource,
secretsmanager:CreateSecret,
secretsmanager:DescribeSecret,
iam:CreateServiceLinkedRole

Read

datasync:DescribeStorageSystem,
datasync:ListTagsForResource,
secretsmanager:DescribeSecret

Update

datasync:UpdateStorageSystem,
datasync:DescribeStorageSystem,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource,
secretsmanager:DescribeSecret,
secretsmanager:PutSecretValue

Delete

datasync:DescribeStorageSystem,
datasync:RemoveStorageSystem,
secretsmanager:DescribeSecret,
secretsmanager:DeleteSecret

List

datasync:ListStorageSystems