location_azure_blobs
Creates, updates, deletes or gets a location_azure_blob
resource or lists location_azure_blobs
in a region
Overview
Name | location_azure_blobs |
Type | Resource |
Description | Resource schema for AWS::DataSync::LocationAzureBlob. |
Id | aws.datasync.location_azure_blobs |
Fields
Name | Datatype | Description |
---|---|---|
agent_arns | array | The Amazon Resource Names (ARNs) of agents to use for an Azure Blob Location. |
azure_blob_authentication_type | string | The specific authentication type that you want DataSync to use to access your Azure Blob Container. |
azure_blob_sas_configuration | object | Specifies the shared access signature (SAS) that DataSync uses to access your Azure Blob Storage container. |
azure_blob_container_url | string | The URL of the Azure Blob container that was described. |
azure_blob_type | string | Specifies a blob type for the objects you're transferring into your Azure Blob Storage container. |
azure_access_tier | string | Specifies an access tier for the objects you're transferring into your Azure Blob Storage container. |
subdirectory | string | The subdirectory in the Azure Blob Container that is used to read data from the Azure Blob Source Location. |
tags | array | An array of key-value pairs to apply to this resource. |
location_arn | string | The Amazon Resource Name (ARN) of the Azure Blob Location that is created. |
location_uri | string | The URL of the Azure Blob Location that was described. |
region | string | AWS region. |
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | AzureBlobAuthenticationType, AgentArns, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__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
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.datasync.location_azure_blobs (
AgentArns,
AzureBlobAuthenticationType,
region
)
SELECT
'{{ AgentArns }}',
'{{ AzureBlobAuthenticationType }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.datasync.location_azure_blobs (
AgentArns,
AzureBlobAuthenticationType,
AzureBlobSasConfiguration,
AzureBlobContainerUrl,
AzureBlobType,
AzureAccessTier,
Subdirectory,
Tags,
region
)
SELECT
'{{ AgentArns }}',
'{{ AzureBlobAuthenticationType }}',
'{{ AzureBlobSasConfiguration }}',
'{{ AzureBlobContainerUrl }}',
'{{ AzureBlobType }}',
'{{ AzureAccessTier }}',
'{{ Subdirectory }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: location_azure_blob
props:
- name: AgentArns
value:
- '{{ AgentArns[0] }}'
- name: AzureBlobAuthenticationType
value: '{{ AzureBlobAuthenticationType }}'
- name: AzureBlobSasConfiguration
value:
AzureBlobSasToken: '{{ AzureBlobSasToken }}'
- name: AzureBlobContainerUrl
value: '{{ AzureBlobContainerUrl }}'
- name: AzureBlobType
value: '{{ AzureBlobType }}'
- name: AzureAccessTier
value: '{{ AzureAccessTier }}'
- name: Subdirectory
value: '{{ Subdirectory }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
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