Skip to main content

location_azure_blobs

Creates, updates, deletes or gets a location_azure_blob resource or lists location_azure_blobs in a region

Overview

Namelocation_azure_blobs
TypeResource
DescriptionResource schema for AWS::DataSync::LocationAzureBlob.
Idaws.datasync.location_azure_blobs

Fields

NameDatatypeDescription
agent_arnsarrayThe Amazon Resource Names (ARNs) of agents to use for an Azure Blob Location.
azure_blob_authentication_typestringThe specific authentication type that you want DataSync to use to access your Azure Blob Container.
azure_blob_sas_configurationobjectSpecifies the shared access signature (SAS) that DataSync uses to access your Azure Blob Storage container.
azure_blob_container_urlstringThe URL of the Azure Blob container that was described.
azure_blob_typestringSpecifies a blob type for the objects you're transferring into your Azure Blob Storage container.
azure_access_tierstringSpecifies an access tier for the objects you're transferring into your Azure Blob Storage container.
subdirectorystringThe subdirectory in the Azure Blob Container that is used to read data from the Azure Blob Source Location.
tagsarrayAn array of key-value pairs to apply to this resource.
location_arnstringThe Amazon Resource Name (ARN) of the Azure Blob Location that is created.
location_uristringThe URL of the Azure Blob Location that was described.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTAzureBlobAuthenticationType, AgentArns, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all location_azure_blobs in a region.

SELECT
region,
agent_arns,
azure_blob_authentication_type,
azure_blob_sas_configuration,
azure_blob_container_url,
azure_blob_type,
azure_access_tier,
subdirectory,
tags,
location_arn,
location_uri
FROM aws.datasync.location_azure_blobs
WHERE region = 'us-east-1';

Gets all properties from an individual location_azure_blob.

SELECT
region,
agent_arns,
azure_blob_authentication_type,
azure_blob_sas_configuration,
azure_blob_container_url,
azure_blob_type,
azure_access_tier,
subdirectory,
tags,
location_arn,
location_uri
FROM aws.datasync.location_azure_blobs
WHERE region = 'us-east-1' AND data__Identifier = '<LocationArn>';

INSERT example

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

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

DELETE example

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

Permissions

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

Create

datasync:CreateLocationAzureBlob,
datasync:DescribeLocationAzureBlob,
datasync:TagResource,
datasync:ListTagsForResource

Read

datasync:DescribeLocationAzureBlob,
datasync:ListTagsForResource

Update

datasync:DescribeLocationAzureBlob,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource,
datasync:UpdateLocationAzureBlob

Delete

datasync:DeleteLocation

List

datasync:ListLocations