CfnLocationAzureBlobProps Struct
Properties for defining a CfnLocationAzureBlob.
| Source | |
|---|---|
| Type last changed |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_datasync as datasync } from 'aws-cdk-lib';
const cfnLocationAzureBlobProps: datasync.CfnLocationAzureBlobProps = {
azureBlobAuthenticationType: 'azureBlobAuthenticationType',
// the properties below are optional
agentArns: ['agentArns'],
azureAccessTier: 'azureAccessTier',
azureBlobContainerUrl: 'azureBlobContainerUrl',
azureBlobSasConfiguration: {
azureBlobSasToken: 'azureBlobSasToken',
},
azureBlobType: 'azureBlobType',
cmkSecretConfig: {
kmsKeyArn: 'kmsKeyArn',
secretArn: 'secretArn',
},
customSecretConfig: {
secretAccessRoleArn: 'secretAccessRoleArn',
secretArn: 'secretArn',
},
federatedIdentity: {
awsIamRole: 'awsIamRole',
azureOidc: {
clientId: 'clientId',
tenantId: 'tenantId',
},
},
subdirectory: 'subdirectory',
tags: [{
key: 'key',
value: 'value',
}],
};
from aws_cdk import CfnTag
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_datasync as datasync
cfn_location_azure_blob_props = datasync.CfnLocationAzureBlobProps(
azure_blob_authentication_type="azureBlobAuthenticationType",
# the properties below are optional
agent_arns=["agentArns"],
azure_access_tier="azureAccessTier",
azure_blob_container_url="azureBlobContainerUrl",
azure_blob_sas_configuration=datasync.CfnLocationAzureBlob.AzureBlobSasConfigurationProperty(
azure_blob_sas_token="azureBlobSasToken"
),
azure_blob_type="azureBlobType",
cmk_secret_config=datasync.CfnLocationAzureBlob.CmkSecretConfigProperty(
kms_key_arn="kmsKeyArn",
secret_arn="secretArn"
),
custom_secret_config=datasync.CfnLocationAzureBlob.CustomSecretConfigProperty(
secret_access_role_arn="secretAccessRoleArn",
secret_arn="secretArn"
),
federated_identity=datasync.CfnLocationAzureBlob.AzureFederatedIdentityConfigProperty(
aws_iam_role="awsIamRole",
azure_oidc=datasync.CfnLocationAzureBlob.AzureOidcConfigProperty(
client_id="clientId",
tenant_id="tenantId"
)
),
subdirectory="subdirectory",
tags=[CfnTag(
key="key",
value="value"
)]
)
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.datasync.*;
CfnLocationAzureBlobProps cfnLocationAzureBlobProps = CfnLocationAzureBlobProps.builder()
.azureBlobAuthenticationType("azureBlobAuthenticationType")
// the properties below are optional
.agentArns(List.of("agentArns"))
.azureAccessTier("azureAccessTier")
.azureBlobContainerUrl("azureBlobContainerUrl")
.azureBlobSasConfiguration(AzureBlobSasConfigurationProperty.builder()
.azureBlobSasToken("azureBlobSasToken")
.build())
.azureBlobType("azureBlobType")
.cmkSecretConfig(CmkSecretConfigProperty.builder()
.kmsKeyArn("kmsKeyArn")
.secretArn("secretArn")
.build())
.customSecretConfig(CustomSecretConfigProperty.builder()
.secretAccessRoleArn("secretAccessRoleArn")
.secretArn("secretArn")
.build())
.federatedIdentity(AzureFederatedIdentityConfigProperty.builder()
.awsIamRole("awsIamRole")
.azureOidc(AzureOidcConfigProperty.builder()
.clientId("clientId")
.tenantId("tenantId")
.build())
.build())
.subdirectory("subdirectory")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.DataSync;
var cfnLocationAzureBlobProps = new CfnLocationAzureBlobProps {
AzureBlobAuthenticationType = "azureBlobAuthenticationType",
// the properties below are optional
AgentArns = new [] { "agentArns" },
AzureAccessTier = "azureAccessTier",
AzureBlobContainerUrl = "azureBlobContainerUrl",
AzureBlobSasConfiguration = new AzureBlobSasConfigurationProperty {
AzureBlobSasToken = "azureBlobSasToken"
},
AzureBlobType = "azureBlobType",
CmkSecretConfig = new CmkSecretConfigProperty {
KmsKeyArn = "kmsKeyArn",
SecretArn = "secretArn"
},
CustomSecretConfig = new CustomSecretConfigProperty {
SecretAccessRoleArn = "secretAccessRoleArn",
SecretArn = "secretArn"
},
FederatedIdentity = new AzureFederatedIdentityConfigProperty {
AwsIamRole = "awsIamRole",
AzureOidc = new AzureOidcConfigProperty {
ClientId = "clientId",
TenantId = "tenantId"
}
},
Subdirectory = "subdirectory",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
cfnLocationAzureBlobProps := &CfnLocationAzureBlobProps{
AzureBlobAuthenticationType: jsii.String("azureBlobAuthenticationType"),
// the properties below are optional
AgentArns: []*string{
jsii.String("agentArns"),
},
AzureAccessTier: jsii.String("azureAccessTier"),
AzureBlobContainerUrl: jsii.String("azureBlobContainerUrl"),
AzureBlobSasConfiguration: &AzureBlobSasConfigurationProperty{
AzureBlobSasToken: jsii.String("azureBlobSasToken"),
},
AzureBlobType: jsii.String("azureBlobType"),
CmkSecretConfig: &CmkSecretConfigProperty{
KmsKeyArn: jsii.String("kmsKeyArn"),
SecretArn: jsii.String("secretArn"),
},
CustomSecretConfig: &CustomSecretConfigProperty{
SecretAccessRoleArn: jsii.String("secretAccessRoleArn"),
SecretArn: jsii.String("secretArn"),
},
FederatedIdentity: &AzureFederatedIdentityConfigProperty{
AwsIamRole: jsii.String("awsIamRole"),
AzureOidc: &AzureOidcConfigProperty{
ClientId: jsii.String("clientId"),
TenantId: jsii.String("tenantId"),
},
},
Subdirectory: jsii.String("subdirectory"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
agentArnsoptionalstring[]agent_arnsoptionaltyping.List[str]agentArnsoptionalList<String>AgentArnsoptionalstring[]AgentArnsoptional*[]*string #notes
If you are setting up an agentless cross-cloud transfer, you do not need to specify a value for this parameter.
You can specify more than one agent. For more information, see Using multiple agents for your transfer .
Make sure you configure this parameter correctly when you first create your storage location. You cannot add or remove agents from a storage location after you create it.
azureAccessTieroptionalstringazure_access_tieroptionalstrazureAccessTieroptionalStringAzureAccessTieroptionalstringAzureAccessTieroptional*string = "HOT" #This only applies when using the location as a transfer destination. For more information, see Access tiers .
azureBlobAuthenticationTypestringazure_blob_authentication_typestrazureBlobAuthenticationTypeStringAzureBlobAuthenticationTypestringAzureBlobAuthenticationType*string = "SAS" required #DataSync can access blob storage using a shared access signature (SAS).
azureBlobContainerUrloptionalstringazure_blob_container_urloptionalstrazureBlobContainerUrloptionalStringAzureBlobContainerUrloptionalstringAzureBlobContainerUrloptional*string #azureBlobSasConfigurationoptionalIResolvable | CfnLocationAzureBlob.azure_blob_sas_configurationoptionaltyping.Union[IResolvable, AzureBlobSasConfigurationProperty]azureBlobSasConfigurationoptionalIResolvableAzureBlobSasConfigurationoptionalIResolvableAzureBlobSasConfigurationoptionalinterface{} #notes
If you provide an authentication token using
SasConfiguration, but do not provide secret configuration details usingCmkSecretConfigorCustomSecretConfig, then DataSync stores the token using your AWS account's secrets manager secret.
azureBlobTypeoptionalstringazure_blob_typeoptionalstrazureBlobTypeoptionalStringAzureBlobTypeoptionalstringAzureBlobTypeoptional*string = "BLOCK" #notes
Currently, DataSync only supports moving data into Azure Blob Storage as block blobs. For more information on blob types, see the Azure Blob Storage documentation .
cmkSecretConfigoptionalIResolvable | CfnLocationAzureBlob.cmk_secret_configoptionaltyping.Union[IResolvable, CmkSecretConfigProperty]cmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalIResolvableCmkSecretConfigoptionalinterface{} #You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
customSecretConfigoptionalIResolvable | CfnLocationAzureBlob.custom_secret_configoptionaltyping.Union[IResolvable, CustomSecretConfigProperty]customSecretConfigoptionalIResolvableCustomSecretConfigoptionalIResolvableCustomSecretConfigoptionalinterface{} #notes
This configuration includes the secret ARN, and the ARN for an IAM role that provides access to the secret.
You can use either
CmkSecretConfigorCustomSecretConfigto provide credentials for aCreateLocationrequest. Do not provide both parameters for the same request.
federatedIdentityoptionalIResolvable | CfnLocationAzureBlob.federated_identityoptionaltyping.Union[IResolvable, AzureFederatedIdentityConfigProperty]federatedIdentityoptionalIResolvableFederatedIdentityoptionalIResolvableFederatedIdentityoptionalinterface{} #subdirectoryoptionalstringsubdirectoryoptionalstrsubdirectoryoptionalStringSubdirectoryoptionalstringSubdirectoryoptional*string #