@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.252Z") @Stability(value=Stable) public class CfnArchive extends CfnResource implements IInspectable
Creates an archive of events with the specified settings. When you create an archive, incoming events might not immediately start being sent to the archive. Allow a short period of time for changes to take effect. If you do not specify a pattern to filter events sent to the archive, all events are sent to the archive except replayed events. Replayed events are not sent to an 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.events.*;
Object eventPattern;
CfnArchive cfnArchive = CfnArchive.Builder.create(this, "MyCfnArchive")
.sourceArn("sourceArn")
// the properties below are optional
.archiveName("archiveName")
.description("description")
.eventPattern(eventPattern)
.retentionDays(123)
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnArchive.Builder
A fluent builder for
CfnArchive. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnArchive(software.constructs.Construct scope,
String id,
CfnArchiveProps props)
Create a new `AWS::Events::Archive`.
|
protected |
CfnArchive(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnArchive(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getArchiveName()
The name for the archive to create.
|
String |
getAttrArchiveName()
The archive name.
|
String |
getAttrArn()
The ARN of the archive created.
|
protected Map<String,Object> |
getCfnProperties() |
String |
getDescription()
A description for the archive.
|
Object |
getEventPattern()
An event pattern to use to filter events sent to the archive.
|
Number |
getRetentionDays()
The number of days to retain events for.
|
String |
getSourceArn()
The ARN of the event bus that sends events to the archive.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setArchiveName(String value)
The name for the archive to create.
|
void |
setDescription(String value)
A description for the archive.
|
void |
setEventPattern(Object value)
An event pattern to use to filter events sent to the archive.
|
void |
setRetentionDays(Number value)
The number of days to retain events for.
|
void |
setSourceArn(String value)
The ARN of the event bus that sends events to the archive.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnArchive(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnArchive(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnArchive(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnArchiveProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArchiveName()
@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public Object getEventPattern()
@Stability(value=Stable)
public void setEventPattern(@NotNull
Object value)
@Stability(value=Stable) @NotNull public String getSourceArn()
@Stability(value=Stable)
public void setSourceArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getArchiveName()
@Stability(value=Stable)
public void setArchiveName(@Nullable
String value)
@Stability(value=Stable) @Nullable public String getDescription()
@Stability(value=Stable)
public void setDescription(@Nullable
String value)
@Stability(value=Stable) @Nullable public Number getRetentionDays()
Default value is 0. If set to 0, events are retained indefinitely
@Stability(value=Stable)
public void setRetentionDays(@Nullable
Number value)
Default value is 0. If set to 0, events are retained indefinitely
Copyright © 2022. All rights reserved.