CfnNotificationChannelPropsMixin
- class aws_cdk.mixins_preview.aws_fms.mixins.CfnNotificationChannelPropsMixin(props, *, strategy=None)
Bases:
MixinDesignates the IAM role and Amazon Simple Notification Service (SNS) topic to use to record SNS logs.
To perform this action outside of the console, you must configure the SNS topic to allow the role
AWSServiceRoleForFMSto publish SNS logs. For more information, see Firewall Manager required permissions for API actions in the AWS Firewall Manager Developer Guide .- See:
- CloudformationResource:
AWS::FMS::NotificationChannel
- 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_fms import mixins as fms_mixins cfn_notification_channel_props_mixin = fms_mixins.CfnNotificationChannelPropsMixin(fms_mixins.CfnNotificationChannelMixinProps( sns_role_name="snsRoleName", sns_topic_arn="snsTopicArn" ), strategy=mixins.PropertyMergeStrategy.OVERRIDE )
Create a mixin to apply properties to
AWS::FMS::NotificationChannel.- Parameters:
props (
Union[CfnNotificationChannelMixinProps,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 = ['snsRoleName', 'snsTopicArn']
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