import * as core from "@terrascript/core"; export interface StoredIscsiVolumeArgs extends core.ResourceArgs { /** * (Required) The unique identifier for the gateway local disk that is configured as a stored volume. */ diskId: string | core.StringOut; /** * (Required) The Amazon Resource Name (ARN) of the gateway. */ gatewayArn: string | core.StringOut; /** * (Optional) `true` to use Amazon S3 server side encryption with your own AWS KMS key, or `false` to u * se a key managed by Amazon S3. Optional. */ kmsEncrypted?: boolean | core.BooleanOut; /** * (Optional) The Amazon Resource Name (ARN) of the AWS KMS key used for Amazon S3 server side encrypti * on. This value can only be set when `kms_encrypted` is `true`. */ 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; /** * (Required) Specify this field as `true` if you want to preserve the data on the local disk. Otherwis * e, specifying this field as false creates an empty volume. */ preserveExistingData: boolean | core.BooleanOut; /** * (Optional) The snapshot ID of the snapshot to restore as the new stored volumeE.g., `snap-1122aabb`. */ snapshotId?: string | core.StringOut; /** * (Optional) Key-value mapping of resource tags. If configured with a provider [`default_tags` configu * ration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configu * ration-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; } export class StoredIscsiVolume 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 unique identifier for the gateway local disk that is configured as a stored volume. */ @core.attr(String) public diskId!: string | core.StringOut; /** * (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) `true` to use Amazon S3 server side encryption with your own AWS KMS key, or `false` to u * se a key managed by Amazon S3. Optional. */ @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. This value can only be set when `kms_encrypted` is `true`. */ @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; /** * (Required) Specify this field as `true` if you want to preserve the data on the local disk. Otherwis * e, specifying this field as false creates an empty volume. */ @core.attr(Boolean) public preserveExistingData!: boolean | core.BooleanOut; /** * (Optional) The snapshot ID of the snapshot to restore as the new stored volumeE.g., `snap-1122aabb`. */ @core.attr(String) public snapshotId?: string | core.StringOut; /** * (Optional) Key-value mapping of resource tags. If configured with a provider [`default_tags` configu * ration block](https://registry.terraform.io/providers/hashicorp/aws/latest/docs#default_tags-configu * ration-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; /** * A value that indicates whether a storage volume is attached to, detached from, or is in the process * of detaching from a gateway. */ @core.attr(String, { computed: true }) public volumeAttachmentStatus!: string | core.StringOut; /** * Volume ID, e.g., `vol-12345678`. */ @core.attr(String, { computed: true }) public volumeId!: string | core.StringOut; /** * The size of the data stored on the volume in bytes. */ @core.attr(Number, { computed: true }) public volumeSizeInBytes!: number | core.NumberOut; /** * indicates the state of the storage volume. */ @core.attr(String, { computed: true }) public volumeStatus!: string | core.StringOut; /** * indicates the type of the volume. */ @core.attr(String, { computed: true }) public volumeType!: string | core.StringOut; constructor(name: string, args?: StoredIscsiVolumeArgs) { super(name, "aws_storagegateway_stored_iscsi_volume", args); } public override getNamespace(): string { return "aws_storagegateway"; } }