- Navigation GuideYou are on a Command (operation) page with structural examples. Use the navigation breadcrumb if you would like to return to the Client landing page.
UpdateLocationAzureBlobCommand
Modifies the following configurations of the Microsoft Azure Blob Storage transfer location that you're using with DataSync.
For more information, see Configuring DataSync transfers with Azure Blob Storage .
Example Syntax
Use a bare-bones client and the command you need to make an API call.
import { DataSyncClient, UpdateLocationAzureBlobCommand } from "@aws-sdk/client-datasync"; // ES Modules import
// const { DataSyncClient, UpdateLocationAzureBlobCommand } = require("@aws-sdk/client-datasync"); // CommonJS import
const client = new DataSyncClient(config);
const input = { // UpdateLocationAzureBlobRequest
LocationArn: "STRING_VALUE", // required
Subdirectory: "STRING_VALUE",
AuthenticationType: "SAS",
SasConfiguration: { // AzureBlobSasConfiguration
Token: "STRING_VALUE", // required
},
BlobType: "BLOCK",
AccessTier: "HOT" || "COOL" || "ARCHIVE",
AgentArns: [ // AgentArnList
"STRING_VALUE",
],
};
const command = new UpdateLocationAzureBlobCommand(input);
const response = await client.send(command);
// {};
UpdateLocationAzureBlobCommand Input
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
LocationArn Required | string | undefined | Specifies the ARN of the Azure Blob Storage transfer location that you're updating. |
AccessTier | AzureAccessTier | undefined | Specifies the access tier that you want your objects or files transferred into. This only applies when using the location as a transfer destination. For more information, see Access tiers . |
AgentArns | string[] | undefined | Specifies the Amazon Resource Name (ARN) of the DataSync agent that can connect with your Azure Blob Storage container. You can specify more than one agent. For more information, see Using multiple agents for your transfer . |
AuthenticationType | AzureBlobAuthenticationType | undefined | Specifies the authentication method DataSync uses to access your Azure Blob Storage. DataSync can access blob storage using a shared access signature (SAS). |
BlobType | AzureBlobType | undefined | Specifies the type of blob that you want your objects or files to be when transferring them into Azure Blob Storage. 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 . |
SasConfiguration | AzureBlobSasConfiguration | undefined | Specifies the SAS configuration that allows DataSync to access your Azure Blob Storage. |
Subdirectory | string | undefined | Specifies path segments if you want to limit your transfer to a virtual directory in your container (for example, |
UpdateLocationAzureBlobCommand Output
Parameter | Type | Description |
---|
Parameter | Type | Description |
---|---|---|
$metadata Required | ResponseMetadata | Metadata pertaining to this request. |
Throws
Name | Fault | Details |
---|
Name | Fault | Details |
---|---|---|
InternalException | server | This exception is thrown when an error occurs in the DataSync service. |
InvalidRequestException | client | This exception is thrown when the client submits a malformed request. |
DataSyncServiceException | Base exception class for all service exceptions from DataSync service. |