import * as core from "@terrascript/core"; export interface CachedIscsiVolumeArgs extends core.ResourceArgs { /** * (Required) The Amazon Resource Name (ARN) of the gateway. */ gatewayArn: string | core.StringOut; /** * (Optional) Set to `true` to use Amazon S3 server side encryption with your own AWS KMS key, or `fals * e` to use a key managed by Amazon S3. */ kmsEncrypted?: boolean | core.BooleanOut; /** * (Optional) The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encrypti * on. Is required when `kms_encrypted` is set. */ kmsKey?: string | core.StringOut; /** * (Required) The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addre * sses are accepted. */ networkInterfaceId: string | core.StringOut; /** * (Optional) The snapshot ID of the snapshot to restore as the new cached volumeE.g., `snap-1122aabb`. */ snapshotId?: string | core.StringOut; /** * (Optional) The ARN for an existing volume. Specifying this ARN makes the new volume into an exact co * py of the specified existing volume's latest recovery point. The `volume_size_in_bytes` value for th * is new volume must be equal to or larger than the size of the existing volume, in bytes. */ sourceVolumeArn?: 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 name of the iSCSI target used by initiators to connect to the target and as a suffix * for the target ARN. The target name must be unique across all volumes of a gateway. */ targetName: string | core.StringOut; /** * (Required) The size of the volume in bytes. */ volumeSizeInBytes: number | core.NumberOut; } export class CachedIscsiVolume extends core.Resource { /** * Volume Amazon Resource Name (ARN), e.g., `arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw- * 12345678/volume/vol-12345678`. */ @core.attr(String, { computed: true }) public arn!: string | core.StringOut; /** * Whether mutual CHAP is enabled for the iSCSI target. */ @core.attr(Boolean, { computed: true }) public chapEnabled!: boolean | core.BooleanOut; /** * (Required) The Amazon Resource Name (ARN) of the gateway. */ @core.attr(String) public gatewayArn!: string | core.StringOut; /** * Volume Amazon Resource Name (ARN), e.g., `arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw- * 12345678/volume/vol-12345678`. */ @core.attr(String, { computed: true }) public id!: string | core.StringOut; /** * (Optional) Set to `true` to use Amazon S3 server side encryption with your own AWS KMS key, or `fals * e` to use a key managed by Amazon S3. */ @core.attr(Boolean) public kmsEncrypted?: boolean | core.BooleanOut; /** * (Optional) The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encrypti * on. Is required when `kms_encrypted` is set. */ @core.attr(String) public kmsKey?: string | core.StringOut; /** * Logical disk number. */ @core.attr(Number, { computed: true }) public lunNumber!: number | core.NumberOut; /** * (Required) The network interface of the gateway on which to expose the iSCSI target. Only IPv4 addre * sses are accepted. */ @core.attr(String) public networkInterfaceId!: string | core.StringOut; /** * The port used to communicate with iSCSI targets. */ @core.attr(Number, { computed: true }) public networkInterfacePort!: number | core.NumberOut; /** * (Optional) The snapshot ID of the snapshot to restore as the new cached volumeE.g., `snap-1122aabb`. */ @core.attr(String) public snapshotId?: string | core.StringOut; /** * (Optional) The ARN for an existing volume. Specifying this ARN makes the new volume into an exact co * py of the specified existing volume's latest recovery point. The `volume_size_in_bytes` value for th * is new volume must be equal to or larger than the size of the existing volume, in bytes. */ @core.attr(String) public sourceVolumeArn?: 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; /** * Target Amazon Resource Name (ARN), e.g., `arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw- * 12345678/target/iqn.1997-05.com.amazon:TargetName`. */ @core.attr(String, { computed: true }) public targetArn!: string | core.StringOut; /** * (Required) The name of the iSCSI target used by initiators to connect to the target and as a suffix * for the target ARN. The target name must be unique across all volumes of a gateway. */ @core.attr(String) public targetName!: string | core.StringOut; /** * Volume Amazon Resource Name (ARN), e.g., `arn:aws:storagegateway:us-east-1:123456789012:gateway/sgw- * 12345678/volume/vol-12345678`. */ @core.attr(String, { computed: true }) public volumeArn!: string | core.StringOut; /** * Volume ID, e.g., `vol-12345678`. */ @core.attr(String, { computed: true }) public volumeId!: string | core.StringOut; /** * (Required) The size of the volume in bytes. */ @core.attr(Number) public volumeSizeInBytes!: number | core.NumberOut; constructor(name: string, args?: CachedIscsiVolumeArgs) { super(name, "aws_storagegateway_cached_iscsi_volume", args); } public override getNamespace(): string { return "aws_storagegateway"; } }