Show / Hide Table of Contents

Class AWSEventMetadataProps

Properties for AWS EventBridge event metadata.

Inheritance
object
AWSEventMetadataProps
Implements
IAWSEventMetadataProps
Inherited Members
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Amazon.CDK
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class AWSEventMetadataProps : IAWSEventMetadataProps
Syntax (vb)
Public Class AWSEventMetadataProps Implements IAWSEventMetadataProps
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.Mixins.Preview.AWS.S3.Events;

            Bucket bucket;

            var bucketEvents = BucketEvents.FromBucket(bucket);

            var pattern = bucketEvents.ObjectCreatedPattern(new ObjectCreatedProps {
                EventMetadata = new AWSEventMetadataProps {
                    Region = new [] { "us-east-1", "us-west-2" },
                    Version = new [] { "0" }
                }
            });

Synopsis

Constructors

AWSEventMetadataProps()

Properties for AWS EventBridge event metadata.

Properties

Region

Identifies the AWS region where the event originated.

Resources

This JSON array contains ARNs that identify resources that are involved in the event.

Version

By default, this is set to 0 (zero) in all events.

Constructors

AWSEventMetadataProps()

Properties for AWS EventBridge event metadata.

public AWSEventMetadataProps()
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.Mixins.Preview.AWS.S3.Events;

            Bucket bucket;

            var bucketEvents = BucketEvents.FromBucket(bucket);

            var pattern = bucketEvents.ObjectCreatedPattern(new ObjectCreatedProps {
                EventMetadata = new AWSEventMetadataProps {
                    Region = new [] { "us-east-1", "us-west-2" },
                    Version = new [] { "0" }
                }
            });

Properties

Region

Identifies the AWS region where the event originated.

public string[]? Region { get; set; }
Property Value

string[]

Remarks

Default: - No filtering on region

Resources

This JSON array contains ARNs that identify resources that are involved in the event.

public string[]? Resources { get; set; }
Property Value

string[]

Remarks

Inclusion of these ARNs is at the discretion of the service.

For example, Amazon EC2 instance state-changes include Amazon EC2 instance ARNs, Auto Scaling events include ARNs for both instances and Auto Scaling groups, but API calls with AWS CloudTrail do not include resource ARNs.

Default: - No filtering on resource

Version

By default, this is set to 0 (zero) in all events.

public string[]? Version { get; set; }
Property Value

string[]

Remarks

Default: - No filtering on version

Implements

IAWSEventMetadataProps
Back to top Generated by DocFX