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",
});
}
}
Inherited Members
Namespace: Pulumi.Aws.DataSync
Assembly: Pulumi.Aws.dll
Syntax
public class S3Location : CustomResource
Constructors
View SourceS3Location(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 SourceArn
Amazon Resource Name (ARN) of the DataSync Location.
Declaration
public Output<string> Arn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
S3BucketArn
Amazon Resource Name (ARN) of the S3 Bucket.
Declaration
public Output<string> S3BucketArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
S3Config
Configuration block containing information for connecting to S3.
Declaration
public Output<S3LocationS3Config> S3Config { get; }
Property Value
| Type | Description |
|---|---|
| Output<S3LocationS3Config> |
Subdirectory
Prefix to perform actions as source or destination.
Declaration
public Output<string> Subdirectory { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>> |
Uri
Declaration
public Output<string> Uri { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(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 |