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

NameResourceAccessible byRequired Params
create_resourcelocation_azure_blobsINSERTAzureBlobAuthenticationType, region
delete_resourcelocation_azure_blobsDELETEIdentifier, region
update_resourcelocation_azure_blobsUPDATEIdentifier, PatchDocument, region
list_resourceslocation_azure_blobs_list_onlySELECTregion
get_resourcelocation_azure_blobsSELECTIdentifier, 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
Identifier = '{{ location_arn }}';

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
'{{ azure_blob_authentication_type }}',
'{{ region }}';

UPDATE example

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

/*+ update */
UPDATE awscc.datasync.location_azure_blobs
SET PatchDocument = string('{{ {
"AgentArns": agent_arns,
"AzureBlobAuthenticationType": azure_blob_authentication_type,
"AzureBlobSasConfiguration": azure_blob_sas_configuration,
"AzureBlobType": azure_blob_type,
"AzureAccessTier": azure_access_tier,
"Subdirectory": subdirectory,
"Tags": tags,
"CustomSecretConfig": custom_secret_config
} | generate_patch_document }}')
WHERE
region = '{{ region }}' AND
Identifier = '{{ location_arn }}';

DELETE example

/*+ delete */
DELETE FROM awscc.datasync.location_azure_blobs
WHERE
Identifier = '{{ location_arn }}' AND
region = 'us-east-1';

Permissions

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

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