Show / Hide Table of Contents

Class S3Location

Manages an S3 Location within AWS DataSync.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
public MyStack()
{
    var example = new Aws.DataSync.S3Location("example", new Aws.DataSync.S3LocationArgs
    {
        S3BucketArn = aws_s3_bucket.Example.Arn,
        S3Config = new Aws.DataSync.Inputs.S3LocationS3ConfigArgs
        {
            BucketAccessRoleArn = aws_iam_role.Example.Arn,
        },
        Subdirectory = "/example/prefix",
    });
}

}
Inheritance
System.Object
Resource
CustomResource
S3Location
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.DataSync
Assembly: Pulumi.Aws.dll
Syntax
public class S3Location : CustomResource

Constructors

View Source

S3Location(String, S3LocationArgs, CustomResourceOptions)

Create a S3Location resource with the given unique name, arguments, and options.

Declaration
public S3Location(string name, S3LocationArgs args, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

S3LocationArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Arn

Amazon Resource Name (ARN) of the DataSync Location.

Declaration
public Output<string> Arn { get; }
Property Value
Type Description
Output<System.String>
View Source

S3BucketArn

Amazon Resource Name (ARN) of the S3 Bucket.

Declaration
public Output<string> S3BucketArn { get; }
Property Value
Type Description
Output<System.String>
View Source

S3Config

Configuration block containing information for connecting to S3.

Declaration
public Output<S3LocationS3Config> S3Config { get; }
Property Value
Type Description
Output<S3LocationS3Config>
View Source

Subdirectory

Prefix to perform actions as source or destination.

Declaration
public Output<string> Subdirectory { get; }
Property Value
Type Description
Output<System.String>
View Source

Tags

Key-value pairs of resource tags to assign to the DataSync Location.

Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>
View Source

Uri

Declaration
public Output<string> Uri { get; }
Property Value
Type Description
Output<System.String>

Methods

View Source

Get(String, Input<String>, S3LocationState, CustomResourceOptions)

Get an existing S3Location resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static S3Location Get(string name, Input<string> id, S3LocationState state = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resulting resource.

Input<System.String> id

The unique provider ID of the resource to lookup.

S3LocationState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
S3Location
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.