Class CfnEventSource.AwsServiceEventsConfigurationProperty
Forward a single AWS service's events from the account's default event bus.
Inherited Members
Namespace: Amazon.CDK.AWS.EventsV2
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnEventSource.AwsServiceEventsConfigurationProperty : CfnEventSource.IAwsServiceEventsConfigurationProperty
Syntax (vb)
Public Class CfnEventSource.AwsServiceEventsConfigurationProperty Implements CfnEventSource.IAwsServiceEventsConfigurationProperty
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.AWS.EventsV2;
var awsServiceEventsConfigurationProperty = new AwsServiceEventsConfigurationProperty {
AwsService = "awsService",
// the properties below are optional
OnFailureConfiguration = new OnFailureConfigurationProperty {
Arn = "arn"
},
Pattern = "pattern"
};
Synopsis
Constructors
| AwsServiceEventsConfigurationProperty() | Forward a single AWS service's events from the account's default event bus. |
Properties
| AwsService | A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed. |
| OnFailureConfiguration | The destination for events that could not be forwarded by the managed forwarding target or, for partner event sources, the managed partner event bus. |
| Pattern | A filter pattern, as a JSON string, that defines which events from the specified AWS service are forwarded to the event bus. |
Constructors
AwsServiceEventsConfigurationProperty()
Forward a single AWS service's events from the account's default event bus.
public AwsServiceEventsConfigurationProperty()
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.AWS.EventsV2;
var awsServiceEventsConfigurationProperty = new AwsServiceEventsConfigurationProperty {
AwsService = "awsService",
// the properties below are optional
OnFailureConfiguration = new OnFailureConfigurationProperty {
Arn = "arn"
},
Pattern = "pattern"
};
Properties
AwsService
A single AWS service source identifier, for example aws.s3. Wildcards and lists are not allowed.
public string AwsService { get; set; }
Property Value
Remarks
OnFailureConfiguration
The destination for events that could not be forwarded by the managed forwarding target or, for partner event sources, the managed partner event bus.
public object? OnFailureConfiguration { get; set; }
Property Value
Remarks
Arn is optional. An empty object removes a configured destination on update.
Type union: either IResolvable or CfnEventSource.IOnFailureConfigurationProperty
Pattern
A filter pattern, as a JSON string, that defines which events from the specified AWS service are forwarded to the event bus.
public string? Pattern { get; set; }
Property Value
Remarks
Do not include source, account, or region as top-level fields. If you do not specify a pattern, all events from the service are forwarded.