AWS Native

Pulumi Official
Package maintained by Pulumi
v0.19.0 published on Wednesday, Jun 8, 2022 by Pulumi

LocationS3

Resource schema for AWS::DataSync::LocationS3

Example Usage

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var locationS3 = new AwsNative.DataSync.LocationS3("locationS3", new AwsNative.DataSync.LocationS3Args
        {
            S3BucketArn = "arn:aws:s3:::MyBucket",
            S3Config = new AwsNative.DataSync.Inputs.LocationS3S3ConfigArgs
            {
                BucketAccessRoleArn = "arn:aws:iam::111222333444:role/MyBucketAccessRole",
            },
            S3StorageClass = AwsNative.DataSync.LocationS3S3StorageClass.Standard,
            Subdirectory = "/MyFolder",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasync.NewLocationS3(ctx, "locationS3", &datasync.LocationS3Args{
			S3BucketArn: pulumi.String("arn:aws:s3:::MyBucket"),
			S3Config: &datasync.LocationS3S3ConfigArgs{
				BucketAccessRoleArn: pulumi.String("arn:aws:iam::111222333444:role/MyBucketAccessRole"),
			},
			S3StorageClass: datasync.LocationS3S3StorageClassStandard,
			Subdirectory:   pulumi.String("/MyFolder"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

location_s3 = aws_native.datasync.LocationS3("locationS3",
    s3_bucket_arn="arn:aws:s3:::MyBucket",
    s3_config=aws_native.datasync.LocationS3S3ConfigArgs(
        bucket_access_role_arn="arn:aws:iam::111222333444:role/MyBucketAccessRole",
    ),
    s3_storage_class=aws_native.datasync.LocationS3S3StorageClass.STANDARD,
    subdirectory="/MyFolder")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const locationS3 = new aws_native.datasync.LocationS3("locationS3", {
    s3BucketArn: "arn:aws:s3:::MyBucket",
    s3Config: {
        bucketAccessRoleArn: "arn:aws:iam::111222333444:role/MyBucketAccessRole",
    },
    s3StorageClass: aws_native.datasync.LocationS3S3StorageClass.Standard,
    subdirectory: "/MyFolder",
});

Coming soon!

Example

using Pulumi;
using AwsNative = Pulumi.AwsNative;

class MyStack : Stack
{
    public MyStack()
    {
        var locationS3 = new AwsNative.DataSync.LocationS3("locationS3", new AwsNative.DataSync.LocationS3Args
        {
            S3BucketArn = "arn:aws:s3:::MyBucket",
            S3Config = new AwsNative.DataSync.Inputs.LocationS3S3ConfigArgs
            {
                BucketAccessRoleArn = "arn:aws:iam::111222333444:role/MyBucketAccessRole",
            },
            S3StorageClass = AwsNative.DataSync.LocationS3S3StorageClass.Standard,
            Subdirectory = "/MyFolder",
        });
    }

}
package main

import (
	"github.com/pulumi/pulumi-aws-native/sdk/go/aws/datasync"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := datasync.NewLocationS3(ctx, "locationS3", &datasync.LocationS3Args{
			S3BucketArn: pulumi.String("arn:aws:s3:::MyBucket"),
			S3Config: &datasync.LocationS3S3ConfigArgs{
				BucketAccessRoleArn: pulumi.String("arn:aws:iam::111222333444:role/MyBucketAccessRole"),
			},
			S3StorageClass: datasync.LocationS3S3StorageClassStandard,
			Subdirectory:   pulumi.String("/MyFolder"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}

Coming soon!

import pulumi
import pulumi_aws_native as aws_native

location_s3 = aws_native.datasync.LocationS3("locationS3",
    s3_bucket_arn="arn:aws:s3:::MyBucket",
    s3_config=aws_native.datasync.LocationS3S3ConfigArgs(
        bucket_access_role_arn="arn:aws:iam::111222333444:role/MyBucketAccessRole",
    ),
    s3_storage_class=aws_native.datasync.LocationS3S3StorageClass.STANDARD,
    subdirectory="/MyFolder")
import * as pulumi from "@pulumi/pulumi";
import * as aws_native from "@pulumi/aws-native";

const locationS3 = new aws_native.datasync.LocationS3("locationS3", {
    s3BucketArn: "arn:aws:s3:::MyBucket",
    s3Config: {
        bucketAccessRoleArn: "arn:aws:iam::111222333444:role/MyBucketAccessRole",
    },
    s3StorageClass: aws_native.datasync.LocationS3S3StorageClass.Standard,
    subdirectory: "/MyFolder",
});

Coming soon!

Create a LocationS3 Resource

new LocationS3(name: string, args: LocationS3Args, opts?: CustomResourceOptions);
@overload
def LocationS3(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               s3_bucket_arn: Optional[str] = None,
               s3_config: Optional[LocationS3S3ConfigArgs] = None,
               s3_storage_class: Optional[LocationS3S3StorageClass] = None,
               subdirectory: Optional[str] = None,
               tags: Optional[Sequence[LocationS3TagArgs]] = None)
@overload
def LocationS3(resource_name: str,
               args: LocationS3Args,
               opts: Optional[ResourceOptions] = None)
func NewLocationS3(ctx *Context, name string, args LocationS3Args, opts ...ResourceOption) (*LocationS3, error)
public LocationS3(string name, LocationS3Args args, CustomResourceOptions? opts = null)
public LocationS3(String name, LocationS3Args args)
public LocationS3(String name, LocationS3Args args, CustomResourceOptions options)
type: aws-native:datasync:LocationS3
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args LocationS3Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
args LocationS3Args
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args LocationS3Args
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args LocationS3Args
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args LocationS3Args
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

LocationS3 Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

The LocationS3 resource accepts the following input properties:

S3BucketArn string

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

S3Config Pulumi.AwsNative.DataSync.Inputs.LocationS3S3ConfigArgs
S3StorageClass Pulumi.AwsNative.DataSync.LocationS3S3StorageClass

The Amazon S3 storage class you want to store your files in when this location is used as a task destination.

Subdirectory string

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 List<Pulumi.AwsNative.DataSync.Inputs.LocationS3TagArgs>

An array of key-value pairs to apply to this resource.

S3BucketArn string

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

S3Config LocationS3S3ConfigArgs
S3StorageClass LocationS3S3StorageClass

The Amazon S3 storage class you want to store your files in when this location is used as a task destination.

Subdirectory string

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 []LocationS3TagArgs

An array of key-value pairs to apply to this resource.

s3BucketArn String

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

s3Config LocationS3S3ConfigArgs
s3StorageClass LocationS3S3StorageClass

The Amazon S3 storage class you want to store your files in when this location is used as a task destination.

subdirectory String

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 List<LocationS3TagArgs>

An array of key-value pairs to apply to this resource.

s3BucketArn string

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

s3Config LocationS3S3ConfigArgs
s3StorageClass LocationS3S3StorageClass

The Amazon S3 storage class you want to store your files in when this location is used as a task destination.

subdirectory string

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 LocationS3TagArgs[]

An array of key-value pairs to apply to this resource.

s3_bucket_arn str

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

s3_config LocationS3S3ConfigArgs
s3_storage_class LocationS3S3StorageClass

The Amazon S3 storage class you want to store your files in when this location is used as a task destination.

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 Sequence[LocationS3TagArgs]

An array of key-value pairs to apply to this resource.

s3BucketArn String

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

s3Config Property Map
s3StorageClass "STANDARD" | "STANDARD_IA" | "ONEZONE_IA" | "INTELLIGENT_TIERING" | "GLACIER" | "DEEP_ARCHIVE"

The Amazon S3 storage class you want to store your files in when this location is used as a task destination.

subdirectory String

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 List<Property Map>

An array of key-value pairs to apply to this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the LocationS3 resource produces the following output properties:

Id string

The provider-assigned unique ID for this managed resource.

LocationArn string

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

LocationUri string

The URL of the S3 location that was described.

Id string

The provider-assigned unique ID for this managed resource.

LocationArn string

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

LocationUri string

The URL of the S3 location that was described.

id String

The provider-assigned unique ID for this managed resource.

locationArn String

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

locationUri String

The URL of the S3 location that was described.

id string

The provider-assigned unique ID for this managed resource.

locationArn string

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

locationUri string

The URL of the S3 location that was described.

id str

The provider-assigned unique ID for this managed resource.

location_arn str

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

location_uri str

The URL of the S3 location that was described.

id String

The provider-assigned unique ID for this managed resource.

locationArn String

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

locationUri String

The URL of the S3 location that was described.

Supporting Types

LocationS3S3Config

BucketAccessRoleArn string

The ARN of the IAM role of the Amazon S3 bucket.

BucketAccessRoleArn string

The ARN of the IAM role of the Amazon S3 bucket.

bucketAccessRoleArn String

The ARN of the IAM role of the Amazon S3 bucket.

bucketAccessRoleArn string

The ARN of the IAM role of the Amazon S3 bucket.

bucket_access_role_arn str

The ARN of the IAM role of the Amazon S3 bucket.

bucketAccessRoleArn String

The ARN of the IAM role of the Amazon S3 bucket.

LocationS3S3StorageClass

Standard
STANDARD
StandardIa
STANDARD_IA
OnezoneIa
ONEZONE_IA
IntelligentTiering
INTELLIGENT_TIERING
Glacier
GLACIER
DeepArchive
DEEP_ARCHIVE
LocationS3S3StorageClassStandard
STANDARD
LocationS3S3StorageClassStandardIa
STANDARD_IA
LocationS3S3StorageClassOnezoneIa
ONEZONE_IA
LocationS3S3StorageClassIntelligentTiering
INTELLIGENT_TIERING
LocationS3S3StorageClassGlacier
GLACIER
LocationS3S3StorageClassDeepArchive
DEEP_ARCHIVE
Standard
STANDARD
StandardIa
STANDARD_IA
OnezoneIa
ONEZONE_IA
IntelligentTiering
INTELLIGENT_TIERING
Glacier
GLACIER
DeepArchive
DEEP_ARCHIVE
Standard
STANDARD
StandardIa
STANDARD_IA
OnezoneIa
ONEZONE_IA
IntelligentTiering
INTELLIGENT_TIERING
Glacier
GLACIER
DeepArchive
DEEP_ARCHIVE
STANDARD
STANDARD
STANDARD_IA
STANDARD_IA
ONEZONE_IA
ONEZONE_IA
INTELLIGENT_TIERING
INTELLIGENT_TIERING
GLACIER
GLACIER
DEEP_ARCHIVE
DEEP_ARCHIVE
"STANDARD"
STANDARD
"STANDARD_IA"
STANDARD_IA
"ONEZONE_IA"
ONEZONE_IA
"INTELLIGENT_TIERING"
INTELLIGENT_TIERING
"GLACIER"
GLACIER
"DEEP_ARCHIVE"
DEEP_ARCHIVE

LocationS3Tag

Key string

The key for an AWS resource tag.

Value string

The value for an AWS resource tag.

Key string

The key for an AWS resource tag.

Value string

The value for an AWS resource tag.

key String

The key for an AWS resource tag.

value String

The value for an AWS resource tag.

key string

The key for an AWS resource tag.

value string

The value for an AWS resource tag.

key str

The key for an AWS resource tag.

value str

The value for an AWS resource tag.

key String

The key for an AWS resource tag.

value String

The value for an AWS resource tag.

Package Details

Repository
https://github.com/pulumi/pulumi-aws-native
License
Apache-2.0