Interface IArchiveProps
The event archive properties.
Inherited Members
Namespace: Amazon.CDK.AWS.Events
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IArchiveProps : IBaseArchiveProps
Syntax (vb)
Public Interface IArchiveProps
Inherits IBaseArchiveProps
Remarks
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;
using Amazon.CDK.AWS.Events;
var detail;
EventBus eventBus;
var archiveProps = 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
Properties
SourceEventBus | The event source associated with the archive. |
Properties
SourceEventBus
The event source associated with the archive.
IEventBus SourceEventBus { get; }
Property Value