CfnEventRulePropsMixin
- class aws_cdk.mixins_preview.aws_notifications.mixins.CfnEventRulePropsMixin(props, *, strategy=None)
Bases:
MixinCreates an
`EventRule<https://docs.aws.amazon.com/notifications/latest/userguide/glossary.html>`_ that is associated with a specifiedNotificationConfiguration.- See:
- CloudformationResource:
AWS::Notifications::EventRule
- 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 mixins from aws_cdk.mixins_preview.aws_notifications import mixins as notifications_mixins cfn_event_rule_props_mixin = notifications_mixins.CfnEventRulePropsMixin(notifications_mixins.CfnEventRuleMixinProps( event_pattern="eventPattern", event_type="eventType", notification_configuration_arn="notificationConfigurationArn", regions=["regions"], source="source" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::Notifications::EventRule.- Parameters:
props (
Union[CfnEventRuleMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[PropertyMergeStrategy]) – (experimental) Strategy for merging nested properties. Default: - PropertyMergeStrategy.MERGE
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['eventPattern', 'eventType', 'notificationConfigurationArn', 'regions', 'source']
Static Methods
- classmethod is_mixin(x)
(experimental) 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.- Stability:
experimental
EventRuleStatusSummaryProperty
- class CfnEventRulePropsMixin.EventRuleStatusSummaryProperty(*, reason=None, status=None)
Bases:
objectProvides additional information about the current
EventRulestatus.- Parameters:
reason (
Optional[str]) – A human-readable reason forEventRuleStatus.status (
Optional[str]) – The status of theEventRule. - Values: -ACTIVE- TheEventRulecan process events. -INACTIVE- TheEventRulemay be unable to process events. -CREATING- TheEventRuleis being created. OnlyGETandLISTcalls can be run. -UPDATING- TheEventRuleis being updated. OnlyGETandLISTcalls can be run. -DELETING- TheEventRuleis being deleted. OnlyGETandLISTcalls can be run.
- See:
- 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.aws_notifications import mixins as notifications_mixins event_rule_status_summary_property = notifications_mixins.CfnEventRulePropsMixin.EventRuleStatusSummaryProperty( reason="reason", status="status" )
Attributes
- reason
A human-readable reason for
EventRuleStatus.
- status
The status of the
EventRule.Values:
ACTIVEThe
EventRulecan process events.INACTIVEThe
EventRulemay be unable to process events.CREATINGThe
EventRuleis being created.
Only
GETandLISTcalls can be run.UPDATINGThe
EventRuleis being updated.
Only
GETandLISTcalls can be run.DELETINGThe
EventRuleis being deleted.
Only
GETandLISTcalls can be run.