CfnRuleMixinProps

class aws_cdk.mixins_preview.aws_connect.mixins.CfnRuleMixinProps(*, actions=None, function=None, instance_arn=None, name=None, publish_status=None, tags=None, trigger_event_source=None)

Bases: object

Properties for CfnRulePropsMixin.

Parameters:
  • actions (Union[IResolvable, ActionsProperty, Dict[str, Any], None]) – A list of actions to be run when the rule is triggered.

  • function (Optional[str]) – The conditions of the rule.

  • instance_arn (Optional[str]) – The Amazon Resource Name (ARN) of the instance.

  • name (Optional[str]) – The name of the rule.

  • publish_status (Optional[str]) – The publish status of the rule. Allowed values : DRAFT | PUBLISHED

  • tags (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags used to organize, track, or control access for this resource. For example, { “tags”: {“key1”:”value1”, “key2”:”value2”} }.

  • trigger_event_source (Union[IResolvable, RuleTriggerEventSourceProperty, Dict[str, Any], None]) – The event source to trigger the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html

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_connect import mixins as connect_mixins

# assign_contact_category_actions: Any
# empty_value: Any
# end_associated_tasks_actions: Any

cfn_rule_mixin_props = connect_mixins.CfnRuleMixinProps(
    actions=connect_mixins.CfnRulePropsMixin.ActionsProperty(
        assign_contact_category_actions=[assign_contact_category_actions],
        create_case_actions=[connect_mixins.CfnRulePropsMixin.CreateCaseActionProperty(
            fields=[connect_mixins.CfnRulePropsMixin.FieldProperty(
                id="id",
                value=connect_mixins.CfnRulePropsMixin.FieldValueProperty(
                    boolean_value=False,
                    double_value=123,
                    empty_value=empty_value,
                    string_value="stringValue"
                )
            )],
            template_id="templateId"
        )],
        end_associated_tasks_actions=[end_associated_tasks_actions],
        event_bridge_actions=[connect_mixins.CfnRulePropsMixin.EventBridgeActionProperty(
            name="name"
        )],
        send_notification_actions=[connect_mixins.CfnRulePropsMixin.SendNotificationActionProperty(
            content="content",
            content_type="contentType",
            delivery_method="deliveryMethod",
            recipient=connect_mixins.CfnRulePropsMixin.NotificationRecipientTypeProperty(
                user_arns=["userArns"],
                user_tags={
                    "user_tags_key": "userTags"
                }
            ),
            subject="subject"
        )],
        submit_auto_evaluation_actions=[connect_mixins.CfnRulePropsMixin.SubmitAutoEvaluationActionProperty(
            evaluation_form_arn="evaluationFormArn"
        )],
        task_actions=[connect_mixins.CfnRulePropsMixin.TaskActionProperty(
            contact_flow_arn="contactFlowArn",
            description="description",
            name="name",
            references={
                "references_key": connect_mixins.CfnRulePropsMixin.ReferenceProperty(
                    type="type",
                    value="value"
                )
            }
        )],
        update_case_actions=[connect_mixins.CfnRulePropsMixin.UpdateCaseActionProperty(
            fields=[connect_mixins.CfnRulePropsMixin.FieldProperty(
                id="id",
                value=connect_mixins.CfnRulePropsMixin.FieldValueProperty(
                    boolean_value=False,
                    double_value=123,
                    empty_value=empty_value,
                    string_value="stringValue"
                )
            )]
        )]
    ),
    function="function",
    instance_arn="instanceArn",
    name="name",
    publish_status="publishStatus",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    trigger_event_source=connect_mixins.CfnRulePropsMixin.RuleTriggerEventSourceProperty(
        event_source_name="eventSourceName",
        integration_association_arn="integrationAssociationArn"
    )
)

Attributes

actions

A list of actions to be run when the rule is triggered.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-actions

function

The conditions of the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-function

instance_arn

The Amazon Resource Name (ARN) of the instance.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-instancearn

name

The name of the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-name

publish_status

The publish status of the rule.

Allowed values : DRAFT | PUBLISHED

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-publishstatus

tags

The tags used to organize, track, or control access for this resource.

For example, { “tags”: {“key1”:”value1”, “key2”:”value2”} }.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-tags

trigger_event_source

The event source to trigger the rule.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-connect-rule.html#cfn-connect-rule-triggereventsource