import * as core from "@terrascript/core"; export interface OnPremConfigArgs extends core.SchemaArgs { agentArns: core.Array | core.ArrayOut; } export class OnPremConfig extends core.Schema { @core.attr(String, { kind: "array" }) public agentArns!: core.Array | core.ArrayOut; } export interface MountOptionsArgs extends core.SchemaArgs { version?: string | core.StringOut; } export class MountOptions extends core.Schema { @core.attr(String) public version?: string | core.StringOut; } export interface LocationNfsArgs extends core.ResourceArgs { /** * (Optional) Configuration block containing mount options used by DataSync to access the NFS Server. */ mountOptions?: MountOptions; /** * (Required) Configuration block containing information for connecting to the NFS File System. */ onPremConfig: OnPremConfig; /** * (Required) Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to * mount the NFS server. */ serverHostname: string | core.StringOut; /** * (Required) Subdirectory to perform actions as source or destination. Should be exported by the NFS s * erver. */ 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 LocationNfs extends core.Resource { /** * 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; /** * (Optional) Configuration block containing mount options used by DataSync to access the NFS Server. */ @core.attr(MountOptions) public mountOptions?: MountOptions; /** * (Required) Configuration block containing information for connecting to the NFS File System. */ @core.attr(OnPremConfig) public onPremConfig!: OnPremConfig; /** * (Required) Specifies the IP address or DNS name of the NFS server. The DataSync Agent(s) use this to * mount the NFS server. */ @core.attr(String) public serverHostname!: string | core.StringOut; /** * (Required) Subdirectory to perform actions as source or destination. Should be exported by the NFS s * erver. */ @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?: LocationNfsArgs) { super(name, "aws_datasync_location_nfs", args); } public override getNamespace(): string { return "aws_datasync"; } }