Paws::Datasync::CreateLocationS3 - Arguments for method CreateLocationS3 on Paws::Datasync


This class represents the parameters used for calling the method CreateLocationS3 on the AWS DataSync service. Use the attributes of this class as arguments to method CreateLocationS3.

You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateLocationS3.


    my $datasync = Paws->service('Datasync');
    my $CreateLocationS3Response = $datasync->CreateLocationS3(
      S3BucketArn => 'MyS3BucketArn',
      S3Config    => {
        BucketAccessRoleArn => 'MyIamRoleArn',    # max: 2048

      Subdirectory => 'MySubdirectory',           # OPTIONAL
      Tags         => [
          Key   => 'MyTagKey',                    # min: 1, max: 256
          Value => 'MyTagValue',                  # min: 1, max: 256; OPTIONAL
      ],                                          # OPTIONAL

    # Results:
    my $LocationArn = $CreateLocationS3Response->LocationArn;

    # Returns a L<Paws::Datasync::CreateLocationS3Response> object.

Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. For the AWS API documentation, see


REQUIRED S3BucketArn => Str

The Amazon Resource Name (ARN) of the Amazon S3 bucket.

REQUIRED S3Config => Paws::Datasync::S3Config

Subdirectory => Str

A subdirectory in the Amazon S3 bucket. This subdirectory in Amazon S3 is used to read data from the S3 source location or write data to the S3 destination.

Tags => ArrayRef[Paws::Datasync::TagListEntry]

The key-value pair that represents the tag that you want to add to the location. The value can be an empty string. We recommend using tags to name your resources.


This class forms part of Paws, documenting arguments for method CreateLocationS3 in Paws::Datasync


The source code is located here:

Please report bugs to: