Class CfnEventDataStore
A CloudFormation AWS::CloudTrail::EventDataStore
.
Inherited Members
Namespace: Amazon.CDK.AWS.CloudTrail
Assembly: Amazon.CDK.AWS.CloudTrail.dll
Syntax (csharp)
public class CfnEventDataStore : CfnResource, IConstruct, IDependable, IInspectable
Syntax (vb)
Public Class CfnEventDataStore
Inherits CfnResource
Implements IConstruct, IDependable, IInspectable
Remarks
Creates a new event data store.
CloudformationResource: AWS::CloudTrail::EventDataStore
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.CloudTrail;
var cfnEventDataStore = new CfnEventDataStore(this, "MyCfnEventDataStore", new CfnEventDataStoreProps {
AdvancedEventSelectors = new [] { new AdvancedEventSelectorProperty {
FieldSelectors = new [] { new AdvancedFieldSelectorProperty {
Field = "field",
// the properties below are optional
EndsWith = new [] { "endsWith" },
EqualTo = new [] { "equalTo" },
NotEndsWith = new [] { "notEndsWith" },
NotEquals = new [] { "notEquals" },
NotStartsWith = new [] { "notStartsWith" },
StartsWith = new [] { "startsWith" }
} },
// the properties below are optional
Name = "name"
} },
IngestionEnabled = false,
KmsKeyId = "kmsKeyId",
MultiRegionEnabled = false,
Name = "name",
OrganizationEnabled = false,
RetentionPeriod = 123,
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TerminationProtectionEnabled = false
});
Synopsis
Constructors
CfnEventDataStore(Construct, String, ICfnEventDataStoreProps) | Create a new |
CfnEventDataStore(ByRefValue) | Used by jsii to construct an instance of this class from a Javascript-owned object reference |
CfnEventDataStore(DeputyBase.DeputyProps) | Used by jsii to construct an instance of this class from DeputyProps |
Properties
AdvancedEventSelectors | The advanced event selectors to use to select the events for the data store. |
AttrCreatedTimestamp |
|
AttrEventDataStoreArn |
|
AttrStatus |
|
AttrUpdatedTimestamp |
|
CFN_RESOURCE_TYPE_NAME | The CloudFormation resource type name for this resource class. |
CfnProperties | |
IngestionEnabled | Specifies whether the event data store should start ingesting live events. |
KmsKeyId | Specifies the AWS KMS key ID to use to encrypt the events delivered by CloudTrail. |
MultiRegionEnabled | Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created. |
Name | The name of the event data store. |
OrganizationEnabled | Specifies whether an event data store collects events logged for an organization in AWS Organizations . |
RetentionPeriod | The retention period of the event data store, in days. |
Tags | A list of tags. |
TerminationProtectionEnabled | Specifies whether termination protection is enabled for the event data store. |
Methods
Inspect(TreeInspector) | Examines the CloudFormation resource and discloses attributes. |
RenderProperties(IDictionary<String, Object>) |
Constructors
CfnEventDataStore(Construct, String, ICfnEventDataStoreProps)
Create a new AWS::CloudTrail::EventDataStore
.
public CfnEventDataStore(Construct scope, string id, ICfnEventDataStoreProps props = null)
Parameters
- scope Construct
- scope in which this resource is defined.
- id System.String
- scoped id of the resource.
- props ICfnEventDataStoreProps
- resource properties.
CfnEventDataStore(ByRefValue)
Used by jsii to construct an instance of this class from a Javascript-owned object reference
protected CfnEventDataStore(ByRefValue reference)
Parameters
- reference Amazon.JSII.Runtime.Deputy.ByRefValue
The Javascript-owned object reference
CfnEventDataStore(DeputyBase.DeputyProps)
Used by jsii to construct an instance of this class from DeputyProps
protected CfnEventDataStore(DeputyBase.DeputyProps props)
Parameters
- props Amazon.JSII.Runtime.Deputy.DeputyBase.DeputyProps
The deputy props
Properties
AdvancedEventSelectors
The advanced event selectors to use to select the events for the data store.
public virtual object AdvancedEventSelectors { get; set; }
Property Value
System.Object
Remarks
You can configure up to five advanced event selectors for each event data store.
For more information about how to use advanced event selectors to log CloudTrail events, see Log events by using advanced event selectors in the CloudTrail User Guide.
For more information about how to use advanced event selectors to include AWS Config configuration items in your event data store, see Create an event data store for AWS Config configuration items in the CloudTrail User Guide.
For more information about how to use advanced event selectors to include non- AWS events in your event data store, see Create an integration to log events from outside AWS in the CloudTrail User Guide.
AttrCreatedTimestamp
Ref
returns the time stamp of the creation of the event data store, such as 1248496624
.
public virtual string AttrCreatedTimestamp { get; }
Property Value
System.String
Remarks
CloudformationAttribute: CreatedTimestamp
AttrEventDataStoreArn
Ref
returns the ARN of the CloudTrail event data store, such as arn:aws:cloudtrail:us-east-1:12345678910:eventdatastore/EXAMPLE-f852-4e8f-8bd1-bcf6cEXAMPLE
.
public virtual string AttrEventDataStoreArn { get; }
Property Value
System.String
Remarks
CloudformationAttribute: EventDataStoreArn
AttrStatus
Ref
returns the status of the event data store, such as ENABLED
.
public virtual string AttrStatus { get; }
Property Value
System.String
Remarks
CloudformationAttribute: Status
AttrUpdatedTimestamp
Ref
returns the time stamp that updates were made to an event data store, such as 1598296624
.
public virtual string AttrUpdatedTimestamp { get; }
Property Value
System.String
Remarks
CloudformationAttribute: UpdatedTimestamp
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
public static string CFN_RESOURCE_TYPE_NAME { get; }
Property Value
System.String
CfnProperties
protected override IDictionary<string, object> CfnProperties { get; }
Property Value
System.Collections.Generic.IDictionary<System.String, System.Object>
Overrides
IngestionEnabled
Specifies whether the event data store should start ingesting live events.
public virtual object IngestionEnabled { get; set; }
Property Value
System.Object
Remarks
KmsKeyId
Specifies the AWS KMS key ID to use to encrypt the events delivered by CloudTrail.
public virtual string KmsKeyId { get; set; }
Property Value
System.String
Remarks
The value can be an alias name prefixed by alias/
, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.
Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store.
CloudTrail also supports AWS KMS multi-Region keys. For more information about multi-Region keys, see Using multi-Region keys in the AWS Key Management Service Developer Guide .
Examples:
MultiRegionEnabled
Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created.
public virtual object MultiRegionEnabled { get; set; }
Property Value
System.Object
Remarks
Name
The name of the event data store.
public virtual string Name { get; set; }
Property Value
System.String
Remarks
OrganizationEnabled
Specifies whether an event data store collects events logged for an organization in AWS Organizations .
public virtual object OrganizationEnabled { get; set; }
Property Value
System.Object
Remarks
RetentionPeriod
The retention period of the event data store, in days.
public virtual Nullable<double> RetentionPeriod { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
You can set a retention period of up to 2557 days, the equivalent of seven years.
Tags
A list of tags.
public virtual TagManager Tags { get; }
Property Value
Remarks
TerminationProtectionEnabled
Specifies whether termination protection is enabled for the event data store.
public virtual object TerminationProtectionEnabled { get; set; }
Property Value
System.Object
Remarks
If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.
Methods
Inspect(TreeInspector)
Examines the CloudFormation resource and discloses attributes.
public virtual void Inspect(TreeInspector inspector)
Parameters
- inspector TreeInspector
- tree inspector to collect and process attributes.
RenderProperties(IDictionary<String, Object>)
protected override IDictionary<string, object> RenderProperties(IDictionary<string, object> props)
Parameters
- props System.Collections.Generic.IDictionary<System.String, System.Object>
Returns
System.Collections.Generic.IDictionary<System.String, System.Object>