Class CfnTape.Builder
java.lang.Object
software.amazon.awscdk.services.storagegateway.CfnTape.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTape>
- Enclosing class:
CfnTape
@Stability(Stable)
public static final class CfnTape.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTape>
A fluent builder for
CfnTape.-
Method Summary
Modifier and TypeMethodDescriptionbuild()static CfnTape.BuildergatewayArn(String gatewayArn) The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape.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.The ID of the pool that you want to add your tape to for archiving.A list of up to 50 tags to assign to the virtual tape.tapeBarcode(String tapeBarcode) The barcode that you want to assign to the virtual tape.tapeSizeInBytes(Number tapeSizeInBytes) The size, in bytes, of the virtual tape that you want to create.Set to true to create a write-once-read-many (WORM) virtual tape.worm(IResolvable worm) Set to true to create a write-once-read-many (WORM) virtual tape.
-
Method Details
-
create
@Stability(Stable) public static CfnTape.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTape.Builder.
-
gatewayArn
The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape.- Parameters:
gatewayArn- The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape. This parameter is required.- Returns:
this- See Also:
-
tapeSizeInBytes
The size, in bytes, of the virtual tape that you want to create.- Parameters:
tapeSizeInBytes- The size, in bytes, of the virtual tape that you want to create. 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.Optional.
- 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.Optional.
- 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.This value must be set if KMSEncrypted is true.
- 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:
-
poolId
The ID of the pool that you want to add your tape to for archiving.Tapes in this pool are archived in the S3 storage class that is associated with the pool.
- Parameters:
poolId- The ID of the pool that you want to add your tape to for archiving. This parameter is required.- Returns:
this- See Also:
-
tags
A list of up to 50 tags to assign to the virtual tape.- Parameters:
tags- A list of up to 50 tags to assign to the virtual tape. This parameter is required.- Returns:
this- See Also:
-
tapeBarcode
The barcode that you want to assign to the virtual tape.Barcodes cannot be reused, even after a tape is deleted.
- Parameters:
tapeBarcode- The barcode that you want to assign to the virtual tape. This parameter is required.- Returns:
this- See Also:
-
worm
Set to true to create a write-once-read-many (WORM) virtual tape.- Parameters:
worm- Set to true to create a write-once-read-many (WORM) virtual tape. This parameter is required.- Returns:
this- See Also:
-
worm
Set to true to create a write-once-read-many (WORM) virtual tape.- Parameters:
worm- Set to true to create a write-once-read-many (WORM) virtual tape. This parameter is required.- Returns:
this- See Also:
-
build
-