import * as core from "@terrascript/core"; export interface S3ConfigArgs extends core.SchemaArgs { bucketAccessRoleArn: string | core.StringOut; } export class S3Config extends core.Schema { @core.attr(String) public bucketAccessRoleArn!: string | core.StringOut; } export interface LocationS3Args extends core.ResourceArgs { /** * (Optional) A list of DataSync Agent ARNs with which this location will be associated. */ agentArns?: core.Array | core.ArrayOut; /** * (Required) Amazon Resource Name (ARN) of the S3 Bucket. */ s3BucketArn: string | core.StringOut; /** * (Required) Configuration block containing information for connecting to S3. */ s3Config: S3Config; /** * (Optional) The Amazon S3 storage class that you want to store your files in when this location is us * ed as a task destination. [Valid values](https://docs.aws.amazon.com/datasync/latest/userguide/creat * e-s3-location.html#using-storage-classes) */ s3StorageClass?: string | core.StringOut; /** * (Required) Prefix to perform actions as source or destination. */ subdirectory: string | core.StringOut; /** * (Optional) Key-value pairs of resource tags to assign to the DataSync Location. If configured with a * provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws * /latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those * defined at the provider-level. */ tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ tagsAll?: core.Map | core.MapOut; } export class LocationS3 extends core.Resource { /** * (Optional) A list of DataSync Agent ARNs with which this location will be associated. */ @core.attr(String, { kind: "array" }) public agentArns?: core.Array | core.ArrayOut; /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) Amazon Resource Name (ARN) of the S3 Bucket. */ @core.attr(String) public s3BucketArn!: string | core.StringOut; /** * (Required) Configuration block containing information for connecting to S3. */ @core.attr(S3Config) public s3Config!: S3Config; /** * (Optional) The Amazon S3 storage class that you want to store your files in when this location is us * ed as a task destination. [Valid values](https://docs.aws.amazon.com/datasync/latest/userguide/creat * e-s3-location.html#using-storage-classes) */ @core.attr(String, { computed: true }) public s3StorageClass?: string | core.StringOut; /** * (Required) Prefix to perform actions as source or destination. */ @core.attr(String) public subdirectory!: string | core.StringOut; /** * (Optional) Key-value pairs of resource tags to assign to the DataSync Location. If configured with a * provider [`default_tags` configuration block](https://registry.terraform.io/providers/hashicorp/aws * /latest/docs#default_tags-configuration-block) present, tags with matching keys will overwrite those * defined at the provider-level. */ @core.attr(String, { kind: "map" }) public tags?: core.Map | core.MapOut; /** * A map of tags assigned to the resource, including those inherited from the provider [`default_tags` * configuration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags- * configuration-block). */ @core.attr(String, { computed: true, kind: "map" }) public tagsAll?: core.Map | core.MapOut; @core.attr(String, { computed: true }) public uri!: string | core.StringOut; constructor(name: string, args?: LocationS3Args) { super(name, "aws_datasync_location_s3", args); } public override getNamespace(): string { return "aws_datasync"; } }