S3Location

class S3Location : KotlinCustomResource

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

Properties

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

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

Link copied to clipboard
val arn: Output<String>

Amazon Resource Name (ARN) of the DataSync Location.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val s3BucketArn: Output<String>

Amazon Resource Name (ARN) of the S3 Bucket.

Link copied to clipboard

Configuration block containing information for connecting to S3.

Link copied to clipboard
val s3StorageClass: Output<String>

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>

Prefix to perform actions as source or destination.

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

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.

Link copied to clipboard
val tagsAll: Output<Map<String, String>>

A map of tags assigned to the resource, including those inherited from the provider default_tags configuration block.

Link copied to clipboard
val uri: Output<String>
Link copied to clipboard
val urn: Output<String>