LocationAzureBlobArgs

data class LocationAzureBlobArgs(val accessTier: Output<String>? = null, val agentArns: Output<List<String>>? = null, val authenticationType: Output<String>? = null, val blobType: Output<String>? = null, val containerUrl: Output<String>? = null, val sasConfiguration: Output<LocationAzureBlobSasConfigurationArgs>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<LocationAzureBlobArgs>

Manages a Microsoft Azure Blob Storage Location within AWS DataSync.

NOTE: The DataSync Agents must be available before creating this resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.datasync.LocationAzureBlob("example", {
agentArns: [exampleAwsDatasyncAgent&#46;arn],
authenticationType: "SAS",
containerUrl: "https://myaccount.blob.core.windows.net/mycontainer",
sasConfiguration: {
token: "sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D",
},
});
import pulumi
import pulumi_aws as aws
example = aws.datasync.LocationAzureBlob("example",
agent_arns=[example_aws_datasync_agent["arn"]],
authentication_type="SAS",
container_url="https://myaccount.blob.core.windows.net/mycontainer",
sas_configuration={
"token": "sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D",
})
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;
return await Deployment.RunAsync(() =>
{
var example = new Aws.DataSync.LocationAzureBlob("example", new()
{
AgentArns = new[]
{
exampleAwsDatasyncAgent.Arn,
},
AuthenticationType = "SAS",
ContainerUrl = "https://myaccount.blob.core.windows.net/mycontainer",
SasConfiguration = new Aws.DataSync.Inputs.LocationAzureBlobSasConfigurationArgs
{
Token = "sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D",
},
});
});
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/datasync"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := datasync.NewLocationAzureBlob(ctx, "example", &datasync.LocationAzureBlobArgs{
AgentArns: pulumi.StringArray{
exampleAwsDatasyncAgent.Arn,
},
AuthenticationType: pulumi.String("SAS"),
ContainerUrl: pulumi.String("https://myaccount.blob.core.windows.net/mycontainer"),
SasConfiguration: &datasync.LocationAzureBlobSasConfigurationArgs{
Token: pulumi.String("sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D"),
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.LocationAzureBlob;
import com.pulumi.aws.datasync.LocationAzureBlobArgs;
import com.pulumi.aws.datasync.inputs.LocationAzureBlobSasConfigurationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new LocationAzureBlob("example", LocationAzureBlobArgs.builder()
.agentArns(exampleAwsDatasyncAgent.arn())
.authenticationType("SAS")
.containerUrl("https://myaccount.blob.core.windows.net/mycontainer")
.sasConfiguration(LocationAzureBlobSasConfigurationArgs.builder()
.token("sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D")
.build())
.build());
}
}
resources:
example:
type: aws:datasync:LocationAzureBlob
properties:
agentArns:
- ${exampleAwsDatasyncAgent.arn}
authenticationType: SAS
containerUrl: https://myaccount.blob.core.windows.net/mycontainer
sasConfiguration:
token: sp=r&st=2023-12-20T14:54:52Z&se=2023-12-20T22:54:52Z&spr=https&sv=2021-06-08&sr=c&sig=aBBKDWQvyuVcTPH9EBp%2FXTI9E%2F%2Fmq171%2BZU178wcwqU%3D

Import

Using pulumi import, import aws_datasync_location_azure_blob using the Amazon Resource Name (ARN). For example:

$ pulumi import aws:datasync/locationAzureBlob:LocationAzureBlob example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567

Constructors

Link copied to clipboard
constructor(accessTier: Output<String>? = null, agentArns: Output<List<String>>? = null, authenticationType: Output<String>? = null, blobType: Output<String>? = null, containerUrl: Output<String>? = null, sasConfiguration: Output<LocationAzureBlobSasConfigurationArgs>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val accessTier: Output<String>? = null

The access tier that you want your objects or files transferred into. Valid values: HOT, COOL and ARCHIVE. Default: HOT.

Link copied to clipboard
val agentArns: Output<List<String>>? = null

A list of DataSync Agent ARNs with which this location will be associated.

Link copied to clipboard
val authenticationType: Output<String>? = null

The authentication method DataSync uses to access your Azure Blob Storage. Valid values: SAS.

Link copied to clipboard
val blobType: Output<String>? = null

The type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. Valid values: BLOB. Default: BLOB.

Link copied to clipboard
val containerUrl: Output<String>? = null

The URL of the Azure Blob Storage container involved in your transfer.

Link copied to clipboard

The SAS configuration that allows DataSync to access your Azure Blob Storage. See configuration below.

Link copied to clipboard
val subdirectory: Output<String>? = null

Path segments if you want to limit your transfer to a virtual directory in the container.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): LocationAzureBlobArgs