Class LocationAzureBlob


  • public class LocationAzureBlob
    extends com.pulumi.resources.CustomResource
    Manages a Microsoft Azure Blob Storage Location within AWS DataSync. > **NOTE:** The DataSync Agents must be available before creating this resource. ## Example Usage
     
     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.ArrayList;
     import java.util.Arrays;
     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()
                 .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())
                 .agentArns(exampleAwsDatasyncAgent.arn())
                 .authenticationType("SAS")
                 .containerUrl("https://myaccount.blob.core.windows.net/mycontainer")
                 .build());
     
         }
     }
     
     
    ## Import ### Identity Schema #### Required - `arn` (String) ARN of the DataSync Azure Blob location. Using `pulumi import`, import `aws.datasync.LocationAzureBlob` using the ARN. For example: ```sh $ pulumi import aws:datasync/locationAzureBlob:LocationAzureBlob example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567 ```
    • Nested Class Summary

      • Nested classes/interfaces inherited from class com.pulumi.resources.CustomResource

        com.pulumi.resources.CustomResource.CustomResourceInternal
      • Nested classes/interfaces inherited from class com.pulumi.resources.Resource

        com.pulumi.resources.Resource.LazyField<T extends java.lang.Object>, com.pulumi.resources.Resource.LazyFields, com.pulumi.resources.Resource.ResourceInternal
    • Field Summary

      • Fields inherited from class com.pulumi.resources.Resource

        childResources, remote
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> accessTier()  
      com.pulumi.core.Output<java.util.List<java.lang.String>> agentArns()  
      com.pulumi.core.Output<java.lang.String> arn()  
      com.pulumi.core.Output<java.lang.String> authenticationType()  
      com.pulumi.core.Output<java.util.Optional<java.lang.String>> blobType()  
      com.pulumi.core.Output<java.lang.String> containerUrl()  
      static LocationAzureBlob get​(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, LocationAzureBlobState state, com.pulumi.resources.CustomResourceOptions options)
      Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
      com.pulumi.core.Output<java.lang.String> region()  
      com.pulumi.core.Output<java.util.Optional<LocationAzureBlobSasConfiguration>> sasConfiguration()  
      com.pulumi.core.Output<java.lang.String> subdirectory()  
      com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()  
      com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()  
      com.pulumi.core.Output<java.lang.String> uri()  
      • Methods inherited from class com.pulumi.resources.CustomResource

        getId, id, idFuture
      • Methods inherited from class com.pulumi.resources.Resource

        getChildResources, getResourceName, getResourceType, getUrn, pulumiChildResources, pulumiResourceName, pulumiResourceType, urn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LocationAzureBlob

        public LocationAzureBlob​(java.lang.String name)
        Parameters:
        name - The _unique_ name of the resulting resource.
      • LocationAzureBlob

        public LocationAzureBlob​(java.lang.String name,
                                 LocationAzureBlobArgs args)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
      • LocationAzureBlob

        public LocationAzureBlob​(java.lang.String name,
                                 LocationAzureBlobArgs args,
                                 @Nullable
                                 com.pulumi.resources.CustomResourceOptions options)
        Parameters:
        name - The _unique_ name of the resulting resource.
        args - The arguments to use to populate this resource's properties.
        options - A bag of options that control this resource's behavior.
    • Method Detail

      • accessTier

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> accessTier()
        Returns:
        The access tier that you want your objects or files transferred into. Valid values: `HOT`, `COOL` and `ARCHIVE`. Default: `HOT`.
      • agentArns

        public com.pulumi.core.Output<java.util.List<java.lang.String>> agentArns()
        Returns:
        A list of DataSync Agent ARNs with which this location will be associated.
      • arn

        public com.pulumi.core.Output<java.lang.String> arn()
        Returns:
        ARN of the DataSync Location.
      • authenticationType

        public com.pulumi.core.Output<java.lang.String> authenticationType()
        Returns:
        The authentication method DataSync uses to access your Azure Blob Storage. Valid values: `SAS`.
      • blobType

        public com.pulumi.core.Output<java.util.Optional<java.lang.String>> blobType()
        Returns:
        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`.
      • containerUrl

        public com.pulumi.core.Output<java.lang.String> containerUrl()
        Returns:
        The URL of the Azure Blob Storage container involved in your transfer.
      • region

        public com.pulumi.core.Output<java.lang.String> region()
        Returns:
        Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.
      • sasConfiguration

        public com.pulumi.core.Output<java.util.Optional<LocationAzureBlobSasConfiguration>> sasConfiguration()
        Returns:
        The SAS configuration that allows DataSync to access your Azure Blob Storage. See configuration below.
      • subdirectory

        public com.pulumi.core.Output<java.lang.String> subdirectory()
        Returns:
        Path segments if you want to limit your transfer to a virtual directory in the container.
      • tags

        public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,​java.lang.String>>> tags()
        Returns:
        Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
      • tagsAll

        public com.pulumi.core.Output<java.util.Map<java.lang.String,​java.lang.String>> tagsAll()
        Returns:
        A map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.
      • uri

        public com.pulumi.core.Output<java.lang.String> uri()
      • get

        public static LocationAzureBlob get​(java.lang.String name,
                                            com.pulumi.core.Output<java.lang.String> id,
                                            @Nullable
                                            LocationAzureBlobState state,
                                            @Nullable
                                            com.pulumi.resources.CustomResourceOptions options)
        Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
        Parameters:
        name - The _unique_ name of the resulting resource.
        id - The _unique_ provider ID of the resource to lookup.
        state -
        options - Optional settings to control the behavior of the CustomResource.