Class CfnTape
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.storagegateway.CfnTape
- All Implemented Interfaces:
IInspectable,IEnvironmentAware,ITapeRef,ITaggableV2,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.140.0 (build 79fd58c)",
date="2026-09-30T11:05:02.741Z")
@Stability(Stable)
public class CfnTape
extends CfnResource
implements IInspectable, ITapeRef, ITaggableV2
Creates a virtual tape with a user-defined barcode on a Tape Gateway (VTL).
A virtual tape is stored in Amazon S3 and can be archived to S3 Glacier or S3 Glacier Deep Archive.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.storagegateway.*;
CfnTape cfnTape = CfnTape.Builder.create(this, "MyCfnTape")
.gatewayArn("gatewayArn")
.tapeSizeInBytes(123)
// the properties below are optional
.kmsEncrypted(false)
.kmsKey("kmsKey")
.poolId("poolId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tapeBarcode("tapeBarcode")
.worm(false)
.build();
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggableV2
ITaggableV2.Jsii$Default, ITaggableV2.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.interfaces.storagegateway.ITapeRef
ITapeRef.Jsii$Default, ITapeRef.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnTape(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnTape(software.amazon.jsii.JsiiObjectRef objRef) CfnTape(software.constructs.Construct scope, String id, CfnTapeProps props) Create a newAWS::StorageGateway::Tape. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringarnForTape(ITapeRef resource) The Amazon Resource Name (ARN) of the virtual tape.The date and time that the virtual tape was created.The current status of the virtual tape.The size, in bytes, of data stored on the virtual tape.Tag Manager which manages the tags for this resource.The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape.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.getTags()A list of up to 50 tags to assign to the virtual tape.The barcode that you want to assign to the virtual tape.A reference to a Tape resource.The size, in bytes, of the virtual tape that you want to create.getWorm()Set to true to create a write-once-read-many (WORM) virtual tape.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.static BooleanChecks whether the given object is a CfnTape.renderProperties(Map<String, Object> props) voidsetGatewayArn(String value) The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape.voidsetKmsEncrypted(Boolean value) 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.voidsetKmsEncrypted(IResolvable value) 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.voidThe Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption.voidThe ID of the pool that you want to add your tape to for archiving.voidA list of up to 50 tags to assign to the virtual tape.voidsetTapeBarcode(String value) The barcode that you want to assign to the virtual tape.voidsetTapeSizeInBytes(Number value) The size, in bytes, of the virtual tape that you want to create.voidSet to true to create a write-once-read-many (WORM) virtual tape.voidsetWorm(IResolvable value) Set to true to create a write-once-read-many (WORM) virtual tape.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, addResourceDependency, addResourceDependency, applyCrossStackReferenceStrength, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, cfnPropertyName, getAtt, getAtt, getCfnOptions, getCfnResourceType, getEnv, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, removeDependency, removeResourceDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId, withMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNode, withMethods inherited from interface software.amazon.awscdk.interfaces.IEnvironmentAware
getEnvMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTape
protected CfnTape(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTape
protected CfnTape(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTape
@Stability(Stable) public CfnTape(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTapeProps props) Create a newAWS::StorageGateway::Tape.- 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.props- Resource properties. This parameter is required.
-
-
Method Details
-
arnForTape
- Parameters:
resource- This parameter is required.
-
isCfnTape
Checks whether the given object is a CfnTape.- Parameters:
x- This parameter is required.
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getAttrTapeArn
The Amazon Resource Name (ARN) of the virtual tape. -
getAttrTapeCreatedDate
The date and time that the virtual tape was created. -
getAttrTapeStatus
The current status of the virtual tape. -
getAttrTapeUsedInBytes
The size, in bytes, of data stored on the virtual tape. -
getCdkTagManager
Tag Manager which manages the tags for this resource.- Specified by:
getCdkTagManagerin interfaceITaggableV2
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getCfnPropertyNames
- Overrides:
getCfnPropertyNamesin classCfnResource
-
getTapeRef
A reference to a Tape resource.- Specified by:
getTapeRefin interfaceITapeRef
-
getGatewayArn
The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape. -
setGatewayArn
The Amazon Resource Name (ARN) of the Tape Gateway that hosts the virtual tape. -
getTapeSizeInBytes
The size, in bytes, of the virtual tape that you want to create. -
setTapeSizeInBytes
The size, in bytes, of the virtual tape that you want to create. -
getKmsEncrypted
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.Returns union: either
BooleanorIResolvable -
setKmsEncrypted
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. -
setKmsEncrypted
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. -
getKmsKey
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. -
setKmsKey
The Amazon Resource Name (ARN) of a symmetric customer master key (CMK) used for Amazon S3 server-side encryption. -
getPoolId
The ID of the pool that you want to add your tape to for archiving. -
setPoolId
The ID of the pool that you want to add your tape to for archiving. -
getTags
A list of up to 50 tags to assign to the virtual tape. -
setTags
A list of up to 50 tags to assign to the virtual tape. -
getTapeBarcode
The barcode that you want to assign to the virtual tape. -
setTapeBarcode
The barcode that you want to assign to the virtual tape. -
getWorm
Set to true to create a write-once-read-many (WORM) virtual tape.Returns union: either
BooleanorIResolvable -
setWorm
Set to true to create a write-once-read-many (WORM) virtual tape. -
setWorm
Set to true to create a write-once-read-many (WORM) virtual tape.
-