@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.249Z") @Stability(value=Stable) public class Archive extends Resource
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.events.*;
Object detail;
EventBus eventBus;
Archive archive = Archive.Builder.create(this, "MyArchive")
.eventPattern(EventPattern.builder()
.account(List.of("account"))
.detail(Map.of(
"detailKey", detail))
.detailType(List.of("detailType"))
.id(List.of("id"))
.region(List.of("region"))
.resources(List.of("resources"))
.source(List.of("source"))
.time(List.of("time"))
.version(List.of("version"))
.build())
.sourceEventBus(eventBus)
// the properties below are optional
.archiveName("archiveName")
.description("description")
.retention(Duration.minutes(30))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
Archive.Builder
A fluent builder for
Archive. |
software.amazon.jsii.JsiiObject.InitializationModeIResource.Jsii$Default| Modifier | Constructor and Description |
|---|---|
|
Archive(software.constructs.Construct scope,
String id,
ArchiveProps props) |
protected |
Archive(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
Archive(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArchiveArn()
The ARN of the archive created.
|
String |
getArchiveName()
The archive name.
|
applyRemovalPolicy, generatePhysicalName, getEnv, getPhysicalName, getResourceArnAttribute, getResourceNameAttribute, getStack, isOwnedResource, isResourcejsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetprotected Archive(software.amazon.jsii.JsiiObjectRef objRef)
protected Archive(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public Archive(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
ArchiveProps props)
scope - This parameter is required.id - This parameter is required.props - This parameter is required.Copyright © 2022. All rights reserved.