S3LocationArgs

data class S3LocationArgs(val agentArns: Output<List<String>>? = null, val s3BucketArn: Output<String>? = null, val s3Config: Output<S3LocationS3ConfigArgs>? = null, val s3StorageClass: Output<String>? = null, val subdirectory: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<S3LocationArgs>

Manages an S3 Location within AWS DataSync.

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.datasync.S3Location;
import com.pulumi.aws.datasync.S3LocationArgs;
import com.pulumi.aws.datasync.inputs.S3LocationS3ConfigArgs;
import java.util.List;
import java.util.ArrayList;
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 S3Location("example", S3LocationArgs.builder()
.s3BucketArn(aws_s3_bucket.example().arn())
.subdirectory("/example/prefix")
.s3Config(S3LocationS3ConfigArgs.builder()
.bucketAccessRoleArn(aws_iam_role.example().arn())
.build())
.build());
}
}

Import

aws_datasync_location_s3 can be imported by using the DataSync Task Amazon Resource Name (ARN), e.g.,

$ pulumi import aws:datasync/s3Location:S3Location example arn:aws:datasync:us-east-1:123456789012:location/loc-12345678901234567

Constructors

Link copied to clipboard
constructor(agentArns: Output<List<String>>? = null, s3BucketArn: Output<String>? = null, s3Config: Output<S3LocationS3ConfigArgs>? = null, s3StorageClass: Output<String>? = null, subdirectory: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val agentArns: Output<List<String>>? = null

A list of DataSync Agent ARNs with which this location will be associated.

Link copied to clipboard
val s3BucketArn: Output<String>? = null

Amazon Resource Name (ARN) of the S3 Bucket.

Link copied to clipboard
val s3Config: Output<S3LocationS3ConfigArgs>? = null

Configuration block containing information for connecting to S3.

Link copied to clipboard
val s3StorageClass: Output<String>? = null

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

Link copied to clipboard
val subdirectory: Output<String>? = null

Prefix to perform actions as source or destination.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Key-value pairs of resource tags to assign to the DataSync Location. If configured with a provider default_tags configuration block present, tags with matching keys will overwrite those defined at the provider-level.

Functions

Link copied to clipboard
open override fun toJava(): S3LocationArgs