Skip to main content

location_object_storages

Creates, updates, deletes or gets a location_object_storage resource or lists location_object_storages in a region

Overview

Namelocation_object_storages
TypeResource
DescriptionResource schema for AWS::DataSync::LocationObjectStorage.
Idaws.datasync.location_object_storages

Fields

NameDatatypeDescription
access_keystringOptional. The access key is used if credentials are required to access the self-managed object storage server.
agent_arnsarrayThe Amazon Resource Name (ARN) of the agents associated with the self-managed object storage server location.
bucket_namestringThe name of the bucket on the self-managed object storage server.
secret_keystringOptional. The secret key is used if credentials are required to access the self-managed object storage server.
server_certificatestringX.509 PEM content containing a certificate authority or chain to trust.
server_hostnamestringThe name of the self-managed object storage server. This value is the IP address or Domain Name Service (DNS) name of the object storage server.
server_portintegerThe port that your self-managed server accepts inbound network traffic on.
server_protocolstringThe protocol that the object storage server uses to communicate.
subdirectorystringThe subdirectory in the self-managed object storage server that is used to read data from.
tagsarrayAn array of key-value pairs to apply to this resource.
location_arnstringThe Amazon Resource Name (ARN) of the location that is created.
location_uristringThe URL of the object storage location that was described.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAgentArns, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all location_object_storages in a region.

SELECT
region,
access_key,
agent_arns,
bucket_name,
secret_key,
server_certificate,
server_hostname,
server_port,
server_protocol,
subdirectory,
tags,
location_arn,
location_uri
FROM aws.datasync.location_object_storages
WHERE region = 'us-east-1';

Gets all properties from an individual location_object_storage.

SELECT
region,
access_key,
agent_arns,
bucket_name,
secret_key,
server_certificate,
server_hostname,
server_port,
server_protocol,
subdirectory,
tags,
location_arn,
location_uri
FROM aws.datasync.location_object_storages
WHERE region = 'us-east-1' AND data__Identifier = '<LocationArn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

datasync:CreateLocationObjectStorage,
datasync:DescribeLocationObjectStorage,
datasync:ListTagsForResource,
datasync:TagResource

Read

datasync:DescribeLocationObjectStorage,
datasync:ListTagsForResource

Update

datasync:DescribeLocationObjectStorage,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource,
datasync:UpdateLocationObjectStorage

Delete

datasync:DeleteLocation

List

datasync:ListLocations