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 Type definition for AWS::DataSync::LocationAzureBlob.
Idawscc.datasync.location_azure_blobs

Fields

NameDatatypeDescription
agent_arnsarraySpecifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container. If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.
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.
cmk_secret_configobjectSpecifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and a customer-managed AWS KMS key.
custom_secret_configobjectSpecifies configuration information for a customer-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location, and an IAM role that DataSync can assume and access the customer-managed secret.
managed_secret_configobjectSpecifies configuration information for a DataSync-managed secret, such as an authentication token or set of credentials that DataSync uses to access a specific transfer location. DataSync uses the default AWS-managed KMS key to encrypt this secret in AWS Secrets Manager.
regionstringAWS region.

For more information, see AWS::DataSync::LocationAzureBlob.

Methods

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

SELECT examples

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,
cmk_secret_config,
custom_secret_config,
managed_secret_config
FROM awscc.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 awscc.datasync.location_azure_blobs (
AzureBlobAuthenticationType,
region
)
SELECT
'{{ AzureBlobAuthenticationType }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM awscc.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,
secretsmanager:CreateSecret,
secretsmanager:PutSecretValue,
secretsmanager:DeleteSecret,
iam:CreateServiceLinkedRole,
iam:PassRole,
kms:Encrypt,
kms:Decrypt,
kms:GenerateDataKey

Read

datasync:DescribeLocationAzureBlob,
datasync:ListTagsForResource

Update

datasync:DescribeLocationAzureBlob,
datasync:ListTagsForResource,
datasync:TagResource,
datasync:UntagResource,
datasync:UpdateLocationAzureBlob,
secretsmanager:UpdateSecret,
secretsmanager:DeleteSecret,
secretsmanager:PutSecretValue,
secretsmanager:CreateSecret,
iam:CreateServiceLinkedRole,
iam:PassRole,
kms:Encrypt,
kms:Decrypt,
kms:GenerateDataKey

Delete

datasync:DeleteLocation,
secretsmanager:DeleteSecret

List

datasync:ListLocations