Class Archive
Define an EventBridge Archive.
Inherited Members
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.AWS.Events.dll
Syntax (csharp)
public class Archive : Resource, IResource, IConstruct, IDependable
Syntax (vb)
Public Class Archive
Inherits Resource
Implements IResource, IConstruct, IDependable
Remarks
Resource: AWS::Events::Archive
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Events;
using Amazon.CDK;
var detail;
EventBus eventBus;
var archive = new Archive(this, "MyArchive", new ArchiveProps {
EventPattern = new EventPattern {
Account = new [] { "account" },
Detail = new Dictionary<string, object> {
{ "detailKey", detail }
},
DetailType = new [] { "detailType" },
Id = new [] { "id" },
Region = new [] { "region" },
Resources = new [] { "resources" },
Source = new [] { "source" },
Time = new [] { "time" },
Version = new [] { "version" }
},
SourceEventBus = eventBus,
// the properties below are optional
ArchiveName = "archiveName",
Description = "description",
Retention = Duration.Minutes(30)
});
Synopsis
Constructors
Archive(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
Archive(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Archive(Construct, String, IArchiveProps) |
Properties
ArchiveArn | The ARN of the archive created. |
ArchiveName | The archive name. |
Constructors
Archive(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected Archive(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
Archive(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected Archive(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Archive(Construct, String, IArchiveProps)
public Archive(Construct scope, string id, IArchiveProps props)
Parameters
- scope Constructs.Construct
- id System.String
- props IArchiveProps
Properties
ArchiveArn
The ARN of the archive created.
public virtual string ArchiveArn { get; }
Property Value
System.String
Remarks
Attribute: true
ArchiveName
The archive name.
public virtual string ArchiveName { get; }
Property Value
System.String
Remarks
Attribute: true
Implements
Constructs.IConstruct