Class CfnVolumePropsMixin.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.storagegateway.CfnVolumePropsMixin.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnVolumePropsMixin>
- Enclosing class:
CfnVolumePropsMixin
@Stability(Stable)
public static final class CfnVolumePropsMixin.Builder
extends Object
implements software.amazon.jsii.Builder<CfnVolumePropsMixin>
A fluent builder for
CfnVolumePropsMixin.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnVolumePropsMixin.Buildercreate()static CfnVolumePropsMixin.Buildercreate(CfnPropertyMixinOptions options) gatewayArn(String gatewayArn) The Amazon Resource Name (ARN) of the gateway on which to create the volume.kmsEncrypted(Boolean kmsEncrypted) Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.kmsEncrypted(IResolvable kmsEncrypted) Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.networkInterfaceId(String networkInterfaceId) The network interface of the gateway on which to expose the iSCSI target.snapshotId(String snapshotId) The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).sourceVolumeArn(String sourceVolumeArn) The ARN of an existing volume from which to create the new volume.A list of up to 50 tags to assign to the volume.targetName(String targetName) The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.volumeSizeInBytes(Number volumeSizeInBytes) The size of the volume in bytes.
-
Method Details
-
create
@Stability(Stable) public static CfnVolumePropsMixin.Builder create(CfnPropertyMixinOptions options) - Parameters:
options- Mixin options.- Returns:
- a new instance of
CfnVolumePropsMixin.Builder.
-
create
- Returns:
- a new instance of
CfnVolumePropsMixin.Builder.
-
gatewayArn
The Amazon Resource Name (ARN) of the gateway on which to create the volume.- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the gateway on which to create the volume. This parameter is required.- Returns:
this- See Also:
-
kmsEncrypted
Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.- Parameters:
kmsEncrypted- Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3. This parameter is required.- Returns:
this- See Also:
-
kmsEncrypted
Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3.- Parameters:
kmsEncrypted- Set to true to use Amazon S3 server-side encryption with your own KMS key, or false to use a key managed by Amazon S3. This parameter is required.- Returns:
this- See Also:
-
kmsKey
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.- Parameters:
kmsKey- The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. This parameter is required.- Returns:
this- See Also:
-
networkInterfaceId
The network interface of the gateway on which to expose the iSCSI target.Only IPv4 addresses are accepted.
- Parameters:
networkInterfaceId- The network interface of the gateway on which to expose the iSCSI target. This parameter is required.- Returns:
this- See Also:
-
snapshotId
The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb).- Parameters:
snapshotId- The snapshot ID of the snapshot to restore as the new cached volume (e.g., snap-1122aabb). This parameter is required.- Returns:
this- See Also:
-
sourceVolumeArn
The ARN of an existing volume from which to create the new volume.- Parameters:
sourceVolumeArn- The ARN of an existing volume from which to create the new volume. This parameter is required.- Returns:
this- See Also:
-
tags
A list of up to 50 tags to assign to the volume.- Parameters:
tags- A list of up to 50 tags to assign to the volume. This parameter is required.- Returns:
this- See Also:
-
targetName
The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN.- Parameters:
targetName- The name of the iSCSI target used by an initiator to connect to a volume and used as a suffix for the target ARN. This parameter is required.- Returns:
this- See Also:
-
volumeSizeInBytes
The size of the volume in bytes.- Parameters:
volumeSizeInBytes- The size of the volume in bytes. This parameter is required.- Returns:
this- See Also:
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnVolumePropsMixin>- Returns:
- a newly built instance of
CfnVolumePropsMixin.
-