CfnEventBusLogsMixin
- class aws_cdk.mixins_preview.aws_events.mixins.CfnEventBusLogsMixin(log_type, log_delivery)
Bases:
MixinSpecifies 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. .. epigraph:
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 <https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-generate-event-bus-template.html>`_ in the *Amazon EventBridge User Guide* .
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-events-eventbus.html
- CloudformationResource:
AWS::Events::EventBus
- Mixin:
true
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk.mixins_preview import aws_logs as logs from aws_cdk.mixins_preview.aws_events import mixins as events_mixins # logs_delivery: logs.ILogsDelivery cfn_event_bus_logs_mixin = events_mixins.CfnEventBusLogsMixin("logType", logs_delivery)
Create a mixin to enable vended logs for
AWS::Events::EventBus.- Parameters:
log_type (
str) – Type of logs that are getting vended.log_delivery (
ILogsDelivery) – Object in charge of setting up the delivery source, delivery destination, and delivery connection.
Methods
- apply_to(resource)
Apply vended logs configuration to the construct.
- Parameters:
resource (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct (has vendedLogs property).
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- ERROR_LOGS = <aws_cdk.mixins_preview.aws_events.mixins.CfnEventBusErrorLogs object>
- INFO_LOGS = <aws_cdk.mixins_preview.aws_events.mixins.CfnEventBusInfoLogs object>
- TRACE_LOGS = <aws_cdk.mixins_preview.aws_events.mixins.CfnEventBusTraceLogs object>
Static Methods
- classmethod is_mixin(x)
Checks if
xis a Mixin.- Parameters:
x (
Any) – Any object.- Return type:
bool- Returns:
true if
xis an object created from a class which extendsMixin.