CfnChannelFlowPropsMixin
- class aws_cdk.cfn_property_mixins.aws_chime.CfnChannelFlowPropsMixin(props, *, strategy=None)
Bases:
MixinCreates a channel flow in the Amazon Chime SDK Messaging service.
A channel flow is a container for processors (Lambda functions) that perform actions on chat messages.
- See:
http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-chime-channelflow.html
- CloudformationResource:
AWS::Chime::ChannelFlow
- 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.cfn_property_mixins import aws_chime as chime import aws_cdk as cdk # merge_strategy: cdk.IMergeStrategy cfn_channel_flow_props_mixin = chime.CfnChannelFlowPropsMixin(chime.CfnChannelFlowMixinProps( app_instance_arn="appInstanceArn", name="name", processors=[chime.CfnChannelFlowPropsMixin.ProcessorProperty( configuration=chime.CfnChannelFlowPropsMixin.ProcessorConfigurationProperty( lambda_=chime.CfnChannelFlowPropsMixin.LambdaConfigurationProperty( invocation_type="invocationType", resource_arn="resourceArn" ) ), execution_order=123, fallback_action="fallbackAction", name="name" )], tags=[cdk.CfnTag( key="key", value="value" )] ), strategy=merge_strategy )
Create a mixin to apply properties to
AWS::Chime::ChannelFlow.- Parameters:
props (
Union[CfnChannelFlowMixinProps,Dict[str,Any]]) – L1 properties to apply.strategy (
Optional[IMergeStrategy]) – Strategy for merging nested properties. Default: - PropertyMergeStrategy.combine()
Methods
- apply_to(construct)
Apply the mixin properties to the construct.
- Parameters:
construct (
IConstruct)- Return type:
None
- supports(construct)
Check if this mixin supports the given construct.
- Parameters:
construct (
IConstruct)- Return type:
bool
Attributes
- CFN_PROPERTY_KEYS = ['appInstanceArn', 'name', 'processors', 'tags']
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.
LambdaConfigurationProperty
- class CfnChannelFlowPropsMixin.LambdaConfigurationProperty(*, invocation_type=None, resource_arn=None)
Bases:
objectStores metadata about a Lambda processor.
- Parameters:
invocation_type (
Optional[str]) – Controls how the Lambda function is invoked.resource_arn (
Optional[str]) – The ARN of the Lambda message processing function.
- 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.cfn_property_mixins import aws_chime as chime lambda_configuration_property = chime.CfnChannelFlowPropsMixin.LambdaConfigurationProperty( invocation_type="invocationType", resource_arn="resourceArn" )
Attributes
- invocation_type
Controls how the Lambda function is invoked.
- resource_arn
The ARN of the Lambda message processing function.
ProcessorConfigurationProperty
- class CfnChannelFlowPropsMixin.ProcessorConfigurationProperty(*, lambda_=None)
Bases:
objectA processor’s metadata.
- Parameters:
lambda – Stores metadata about a Lambda processor.
- 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.cfn_property_mixins import aws_chime as chime processor_configuration_property = chime.CfnChannelFlowPropsMixin.ProcessorConfigurationProperty( lambda_=chime.CfnChannelFlowPropsMixin.LambdaConfigurationProperty( invocation_type="invocationType", resource_arn="resourceArn" ) )
Attributes
- lambda_
Stores metadata about a Lambda processor.
ProcessorProperty
- class CfnChannelFlowPropsMixin.ProcessorProperty(*, configuration=None, execution_order=None, fallback_action=None, name=None)
Bases:
objectInformation about a processor in a channel flow.
- Parameters:
configuration (
Union[IResolvable,ProcessorConfigurationProperty,Dict[str,Any],None]) – A processor’s metadata.execution_order (
Union[int,float,None]) – The sequence in which processors run.fallback_action (
Optional[str]) – Determines whether to continue or stop processing when communication with a processor fails.name (
Optional[str]) – The name of the processor.
- 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.cfn_property_mixins import aws_chime as chime processor_property = chime.CfnChannelFlowPropsMixin.ProcessorProperty( configuration=chime.CfnChannelFlowPropsMixin.ProcessorConfigurationProperty( lambda_=chime.CfnChannelFlowPropsMixin.LambdaConfigurationProperty( invocation_type="invocationType", resource_arn="resourceArn" ) ), execution_order=123, fallback_action="fallbackAction", name="name" )
Attributes
- configuration
A processor’s metadata.
- execution_order
The sequence in which processors run.
- fallback_action
Determines whether to continue or stop processing when communication with a processor fails.
- name
The name of the processor.