import * as core from "@terrascript/core"; export interface Ec2ConfigArgs extends core.SchemaArgs { securityGroupArns: core.Array | core.ArrayOut; subnetArn: string | core.StringOut; } export class Ec2Config extends core.Schema { @core.attr(String, { kind: "array" }) public securityGroupArns!: core.Array | core.ArrayOut; @core.attr(String) public subnetArn!: string | core.StringOut; } export interface LocationEfsArgs extends core.ResourceArgs { /** * (Optional) Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access * the Amazon EFS file system. */ accessPointArn?: string | core.StringOut; /** * (Required) Configuration block containing EC2 configurations for connecting to the EFS File System. */ ec2Config: Ec2Config; /** * (Required) Amazon Resource Name (ARN) of EFS File System. */ efsFileSystemArn: string | core.StringOut; /** * (Optional) Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounti * ng the Amazon EFS file system. */ fileSystemAccessRoleArn?: string | core.StringOut; /** * (Optional) Specifies whether you want DataSync to use TLS encryption when transferring data to or fr * om your Amazon EFS file system. Valid values are `NONE` and `TLS1_2`. */ inTransitEncryption?: string | core.StringOut; /** * (Optional) Subdirectory to perform actions as source or destination. Default `/`. */ 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 LocationEfs extends core.Resource { /** * (Optional) Specifies the Amazon Resource Name (ARN) of the access point that DataSync uses to access * the Amazon EFS file system. */ @core.attr(String) public accessPointArn?: string | core.StringOut; /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Required) Configuration block containing EC2 configurations for connecting to the EFS File System. */ @core.attr(Ec2Config) public ec2Config!: Ec2Config; /** * (Required) Amazon Resource Name (ARN) of EFS File System. */ @core.attr(String) public efsFileSystemArn!: string | core.StringOut; /** * (Optional) Specifies an Identity and Access Management (IAM) role that DataSync assumes when mounti * ng the Amazon EFS file system. */ @core.attr(String) public fileSystemAccessRoleArn?: string | core.StringOut; /** * Amazon Resource Name (ARN) of the DataSync Location. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Specifies whether you want DataSync to use TLS encryption when transferring data to or fr * om your Amazon EFS file system. Valid values are `NONE` and `TLS1_2`. */ @core.attr(String) public inTransitEncryption?: string | core.StringOut; /** * (Optional) Subdirectory to perform actions as source or destination. Default `/`. */ @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?: LocationEfsArgs) { super(name, "aws_datasync_location_efs", args); } public override getNamespace(): string { return "aws_datasync"; } }