import * as core from "@terrascript/core"; export interface CacheAttributesArgs extends core.SchemaArgs { cacheStaleTimeoutInSeconds?: number | core.NumberOut; } export class CacheAttributes extends core.Schema { @core.attr(Number) public cacheStaleTimeoutInSeconds?: number | core.NumberOut; } export interface FileSystemAssociationArgs extends core.ResourceArgs { /** * (Optional) The Amazon Resource Name (ARN) of the storage used for the audit logs. */ auditDestinationArn?: string | core.StringOut; /** * (Optional) Refresh cache information. see [Cache Attributes](#cache_attributes) for more details. */ cacheAttributes?: CacheAttributes; /** * (Required) The Amazon Resource Name (ARN) of the gateway. */ gatewayArn: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of the Amazon FSx file system to associate with the FSx Fi * le Gateway. */ locationArn: string | core.StringOut; /** * (Required, sensitive) The password of the user credential. */ password: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-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; /** * (Required) The user name of the user credential that has permission to access the root share of the * Amazon FSx file system. The user account must belong to the Amazon FSx delegated admin user group. */ username: string | core.StringOut; } export class FileSystemAssociation extends core.Resource { /** * Amazon Resource Name (ARN) of the newly created file system association. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * (Optional) The Amazon Resource Name (ARN) of the storage used for the audit logs. */ @core.attr(String) public auditDestinationArn?: string | core.StringOut; /** * (Optional) Refresh cache information. see [Cache Attributes](#cache_attributes) for more details. */ @core.attr(CacheAttributes) public cacheAttributes?: CacheAttributes; /** * (Required) The Amazon Resource Name (ARN) of the gateway. */ @core.attr(String) public gatewayArn!: string | core.StringOut; /** * Amazon Resource Name (ARN) of the FSx file system association */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of the Amazon FSx file system to associate with the FSx Fi * le Gateway. */ @core.attr(String) public locationArn!: string | core.StringOut; /** * (Required, sensitive) The password of the user credential. */ @core.attr(String) public password!: string | core.StringOut; /** * (Optional) Key-value map of resource tags. If configured with a provider [`default_tags` configurati * on block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configurati * on-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; /** * (Required) The user name of the user credential that has permission to access the root share of the * Amazon FSx file system. The user account must belong to the Amazon FSx delegated admin user group. */ @core.attr(String) public username!: string | core.StringOut; constructor(name: string, args?: FileSystemAssociationArgs) { super(name, "aws_storagegateway_file_system_association", args); } public override getNamespace(): string { return "aws_storagegateway"; } }