Class Archive
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.Resource
software.amazon.awscdk.services.events.Archive
- All Implemented Interfaces:
IEnvironmentAware,IResource,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.120.0 (build 192dc88)",
date="2025-12-05T22:26:36.893Z")
@Stability(Stable)
public class Archive
extends Resource
Define an EventBridge Archive.
Example:
import software.amazon.awscdk.services.kms.*;
import software.amazon.awscdk.services.events.Archive;
import software.amazon.awscdk.services.events.EventBus;
IKey kmsKey;
Stack stack = new Stack();
EventBus eventBus = new EventBus(stack, "Bus");
Archive archive = Archive.Builder.create(stack, "Archive")
.kmsKey(kmsKey)
.sourceEventBus(eventBus)
.eventPattern(EventPattern.builder()
.source(List.of("aws.ec2"))
.build())
.build();
-
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.IResource
IResource.Jsii$Default -
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedArchive(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedArchive(software.amazon.jsii.JsiiObjectRef objRef) Archive(software.constructs.Construct scope, String id, ArchiveProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe ARN of the archive created.The archive name.Methods inherited from class software.amazon.awscdk.Resource
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourceMethods inherited from class software.constructs.Construct
getNode, isConstruct, toStringMethods 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
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
PROPERTY_INJECTION_ID
Uniquely identifies this class.
-
-
Constructor Details
-
Archive
protected Archive(software.amazon.jsii.JsiiObjectRef objRef) -
Archive
protected Archive(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
Archive
@Stability(Stable) public Archive(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull ArchiveProps props) - Parameters:
scope- This parameter is required.id- This parameter is required.props- This parameter is required.
-
-
Method Details
-
getArchiveArn
The ARN of the archive created. -
getArchiveName
The archive name.
-