class CfnEventBusLogsMixin (mixin)
| Language | Type name |
|---|---|
.NET | Amazon.CDK.Mixins.Preview.AWS.Events.Mixins.CfnEventBusLogsMixin |
Go | github.com/aws/aws-cdk-go/awscdkmixinspreview/v2/awsevents/mixins#CfnEventBusLogsMixin |
Java | software.amazon.awscdk.mixins.preview.services.events.mixins.CfnEventBusLogsMixin |
Python | aws_cdk.mixins_preview.aws_events.mixins.CfnEventBusLogsMixin |
TypeScript | @aws-cdk/mixins-preview » aws_events » mixins » CfnEventBusLogsMixin |
Implements
IMixin
Extends
Mixin
Specifies an event bus within your account.
This can be a custom event bus which you can use to receive events from your custom applications and services, or it can be a partner event bus which can be matched to a partner event source.
As an aid to help you jumpstart developing CloudFormation templates, the EventBridge console enables you to create templates from the existing event buses in your account. For more information, see Generating CloudFormation templates from an EventBridge event bus in the Amazon EventBridge User Guide .
See also: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from '@aws-cdk/mixins-preview';
import { mixins as events_mixins } from '@aws-cdk/mixins-preview/aws-events';
declare const logsDelivery: logs.ILogsDelivery;
const cfnEventBusLogsMixin = new events_mixins.CfnEventBusLogsMixin('logType', logsDelivery);
Initializer
new CfnEventBusLogsMixin(logType: string, logDelivery: ILogsDelivery)
Parameters
- logType
string— Type of logs that are getting vended. - logDelivery
ILogs— Object in charge of setting up the delivery source, delivery destination, and delivery connection.Delivery
Create a mixin to enable vended logs for AWS::Events::EventBus.
Properties
| Name | Type | Description |
|---|---|---|
| log | ILogs | |
| log | string | |
| static ERROR_LOGS | Cfn | |
| static INFO_LOGS | Cfn | |
| static TRACE_LOGS | Cfn |
logDelivery
Type:
ILogs
logType
Type:
string
static ERROR_LOGS
Type:
Cfn
static INFO_LOGS
Type:
Cfn
static TRACE_LOGS
Type:
Cfn
Methods
| Name | Description |
|---|---|
| apply | Apply vended logs configuration to the construct. |
| supports(construct) | Check if this mixin supports the given construct (has vendedLogs property). |
applyTo(resource)
public applyTo(resource: IConstruct): void
Parameters
- resource
IConstruct
Apply vended logs configuration to the construct.
supports(construct)
public supports(construct: IConstruct): boolean
Parameters
- construct
IConstruct
Returns
boolean
Check if this mixin supports the given construct (has vendedLogs property).

.NET
Go
Java
Python
TypeScript