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:
IResource
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.113.0 (build fc68b25)",
date="2025-09-02T11:25:31.888Z")
@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.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IResource
IResource.Jsii$Default
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
Archive
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
Archive
(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, isResource
Methods inherited from class software.constructs.Construct
getNode, isConstruct, toString
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.constructs.IConstruct
getNode
Methods 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.
-