1. Packages
  2. AWS Cloud Control
  3. API Docs
  4. connect
  5. getRule

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

aws-native.connect.getRule

Explore with Pulumi AI

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi

Creates a rule for the specified CON instance.

Using getRule

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getRule(args: GetRuleArgs, opts?: InvokeOptions): Promise<GetRuleResult>
function getRuleOutput(args: GetRuleOutputArgs, opts?: InvokeOptions): Output<GetRuleResult>
Copy
def get_rule(rule_arn: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetRuleResult
def get_rule_output(rule_arn: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetRuleResult]
Copy
func LookupRule(ctx *Context, args *LookupRuleArgs, opts ...InvokeOption) (*LookupRuleResult, error)
func LookupRuleOutput(ctx *Context, args *LookupRuleOutputArgs, opts ...InvokeOption) LookupRuleResultOutput
Copy

> Note: This function is named LookupRule in the Go SDK.

public static class GetRule 
{
    public static Task<GetRuleResult> InvokeAsync(GetRuleArgs args, InvokeOptions? opts = null)
    public static Output<GetRuleResult> Invoke(GetRuleInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
public static Output<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws-native:connect:getRule
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

RuleArn This property is required. string
The Amazon Resource Name (ARN) of the rule.
RuleArn This property is required. string
The Amazon Resource Name (ARN) of the rule.
ruleArn This property is required. String
The Amazon Resource Name (ARN) of the rule.
ruleArn This property is required. string
The Amazon Resource Name (ARN) of the rule.
rule_arn This property is required. str
The Amazon Resource Name (ARN) of the rule.
ruleArn This property is required. String
The Amazon Resource Name (ARN) of the rule.

getRule Result

The following output properties are available:

Actions Pulumi.AwsNative.Connect.Outputs.RuleActions
A list of actions to be run when the rule is triggered.
Function string
The conditions of the rule.
Name string
The name of the rule.
PublishStatus Pulumi.AwsNative.Connect.RulePublishStatus
The publish status of the rule. Allowed values: DRAFT | PUBLISHED
RuleArn string
The Amazon Resource Name (ARN) of the rule.
Tags List<Pulumi.AwsNative.Outputs.Tag>
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
Actions RuleActions
A list of actions to be run when the rule is triggered.
Function string
The conditions of the rule.
Name string
The name of the rule.
PublishStatus RulePublishStatus
The publish status of the rule. Allowed values: DRAFT | PUBLISHED
RuleArn string
The Amazon Resource Name (ARN) of the rule.
Tags Tag
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
actions RuleActions
A list of actions to be run when the rule is triggered.
function String
The conditions of the rule.
name String
The name of the rule.
publishStatus RulePublishStatus
The publish status of the rule. Allowed values: DRAFT | PUBLISHED
ruleArn String
The Amazon Resource Name (ARN) of the rule.
tags List<Tag>
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
actions RuleActions
A list of actions to be run when the rule is triggered.
function string
The conditions of the rule.
name string
The name of the rule.
publishStatus RulePublishStatus
The publish status of the rule. Allowed values: DRAFT | PUBLISHED
ruleArn string
The Amazon Resource Name (ARN) of the rule.
tags Tag[]
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
actions RuleActions
A list of actions to be run when the rule is triggered.
function str
The conditions of the rule.
name str
The name of the rule.
publish_status RulePublishStatus
The publish status of the rule. Allowed values: DRAFT | PUBLISHED
rule_arn str
The Amazon Resource Name (ARN) of the rule.
tags Sequence[root_Tag]
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
actions Property Map
A list of actions to be run when the rule is triggered.
function String
The conditions of the rule.
name String
The name of the rule.
publishStatus "DRAFT" | "PUBLISHED"
The publish status of the rule. Allowed values: DRAFT | PUBLISHED
ruleArn String
The Amazon Resource Name (ARN) of the rule.
tags List<Property Map>
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.

Supporting Types

RuleActions

AssignContactCategoryActions List<Pulumi.AwsNative.Connect.Inputs.RuleAssignContactCategoryAction>
Information about the contact category action. The syntax can be empty, for example, {}.
CreateCaseActions List<Pulumi.AwsNative.Connect.Inputs.RuleCreateCaseAction>
EndAssociatedTasksActions List<Pulumi.AwsNative.Connect.Inputs.RuleEndAssociatedTasksAction>
EventBridgeActions List<Pulumi.AwsNative.Connect.Inputs.RuleEventBridgeAction>
Information about the EV action.
SendNotificationActions List<Pulumi.AwsNative.Connect.Inputs.RuleSendNotificationAction>
Information about the send notification action.
SubmitAutoEvaluationActions List<Pulumi.AwsNative.Connect.Inputs.RuleSubmitAutoEvaluationAction>
TaskActions List<Pulumi.AwsNative.Connect.Inputs.RuleTaskAction>
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
UpdateCaseActions List<Pulumi.AwsNative.Connect.Inputs.RuleUpdateCaseAction>
AssignContactCategoryActions []RuleAssignContactCategoryAction
Information about the contact category action. The syntax can be empty, for example, {}.
CreateCaseActions []RuleCreateCaseAction
EndAssociatedTasksActions []RuleEndAssociatedTasksAction
EventBridgeActions []RuleEventBridgeAction
Information about the EV action.
SendNotificationActions []RuleSendNotificationAction
Information about the send notification action.
SubmitAutoEvaluationActions []RuleSubmitAutoEvaluationAction
TaskActions []RuleTaskAction
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
UpdateCaseActions []RuleUpdateCaseAction
assignContactCategoryActions List<RuleAssignContactCategoryAction>
Information about the contact category action. The syntax can be empty, for example, {}.
createCaseActions List<RuleCreateCaseAction>
endAssociatedTasksActions List<RuleEndAssociatedTasksAction>
eventBridgeActions List<RuleEventBridgeAction>
Information about the EV action.
sendNotificationActions List<RuleSendNotificationAction>
Information about the send notification action.
submitAutoEvaluationActions List<RuleSubmitAutoEvaluationAction>
taskActions List<RuleTaskAction>
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
updateCaseActions List<RuleUpdateCaseAction>
assignContactCategoryActions RuleAssignContactCategoryAction[]
Information about the contact category action. The syntax can be empty, for example, {}.
createCaseActions RuleCreateCaseAction[]
endAssociatedTasksActions RuleEndAssociatedTasksAction[]
eventBridgeActions RuleEventBridgeAction[]
Information about the EV action.
sendNotificationActions RuleSendNotificationAction[]
Information about the send notification action.
submitAutoEvaluationActions RuleSubmitAutoEvaluationAction[]
taskActions RuleTaskAction[]
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
updateCaseActions RuleUpdateCaseAction[]
assign_contact_category_actions Sequence[RuleAssignContactCategoryAction]
Information about the contact category action. The syntax can be empty, for example, {}.
create_case_actions Sequence[RuleCreateCaseAction]
end_associated_tasks_actions Sequence[RuleEndAssociatedTasksAction]
event_bridge_actions Sequence[RuleEventBridgeAction]
Information about the EV action.
send_notification_actions Sequence[RuleSendNotificationAction]
Information about the send notification action.
submit_auto_evaluation_actions Sequence[RuleSubmitAutoEvaluationAction]
task_actions Sequence[RuleTaskAction]
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
update_case_actions Sequence[RuleUpdateCaseAction]
assignContactCategoryActions List<Property Map>
Information about the contact category action. The syntax can be empty, for example, {}.
createCaseActions List<Property Map>
endAssociatedTasksActions List<Property Map>
eventBridgeActions List<Property Map>
Information about the EV action.
sendNotificationActions List<Property Map>
Information about the send notification action.
submitAutoEvaluationActions List<Property Map>
taskActions List<Property Map>
Information about the task action. This field is required if TriggerEventSource is one of the following values: OnZendeskTicketCreate | OnZendeskTicketStatusUpdate | OnSalesforceCaseCreate
updateCaseActions List<Property Map>

RuleCreateCaseAction

Fields This property is required. List<Pulumi.AwsNative.Connect.Inputs.RuleField>
TemplateId This property is required. string
Fields This property is required. []RuleField
TemplateId This property is required. string
fields This property is required. List<RuleField>
templateId This property is required. String
fields This property is required. RuleField[]
templateId This property is required. string
fields This property is required. Sequence[RuleField]
template_id This property is required. str
fields This property is required. List<Property Map>
templateId This property is required. String

RuleEventBridgeAction

Name This property is required. string
The name.
Name This property is required. string
The name.
name This property is required. String
The name.
name This property is required. string
The name.
name This property is required. str
The name.
name This property is required. String
The name.

RuleField

Id This property is required. string
Value This property is required. Pulumi.AwsNative.Connect.Inputs.RuleFieldValue
Id This property is required. string
Value This property is required. RuleFieldValue
id This property is required. String
value This property is required. RuleFieldValue
id This property is required. string
value This property is required. RuleFieldValue
id This property is required. str
value This property is required. RuleFieldValue
id This property is required. String
value This property is required. Property Map

RuleFieldValue

BooleanValue bool
DoubleValue float64
EmptyValue interface{}
StringValue string

RuleNotificationRecipientType

UserArns List<string>
The Amazon Resource Name (ARN) of the user account.
UserTags Dictionary<string, string>
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. CON users with the specified tags will be notified.
UserArns []string
The Amazon Resource Name (ARN) of the user account.
UserTags map[string]string
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. CON users with the specified tags will be notified.
userArns List<String>
The Amazon Resource Name (ARN) of the user account.
userTags Map<String,String>
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. CON users with the specified tags will be notified.
userArns string[]
The Amazon Resource Name (ARN) of the user account.
userTags {[key: string]: string}
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. CON users with the specified tags will be notified.
user_arns Sequence[str]
The Amazon Resource Name (ARN) of the user account.
user_tags Mapping[str, str]
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. CON users with the specified tags will be notified.
userArns List<String>
The Amazon Resource Name (ARN) of the user account.
userTags Map<String>
The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }. CON users with the specified tags will be notified.

RulePublishStatus

RuleReference

Type This property is required. Pulumi.AwsNative.Connect.RuleReferenceType
The type of the reference. DATE must be of type Epoch timestamp. Allowed values: URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL
Value This property is required. string
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
Type This property is required. RuleReferenceType
The type of the reference. DATE must be of type Epoch timestamp. Allowed values: URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL
Value This property is required. string
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
type This property is required. RuleReferenceType
The type of the reference. DATE must be of type Epoch timestamp. Allowed values: URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL
value This property is required. String
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
type This property is required. RuleReferenceType
The type of the reference. DATE must be of type Epoch timestamp. Allowed values: URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL
value This property is required. string
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
type This property is required. RuleReferenceType
The type of the reference. DATE must be of type Epoch timestamp. Allowed values: URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL
value This property is required. str
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).
type This property is required. "URL" | "ATTACHMENT" | "NUMBER" | "STRING" | "DATE" | "EMAIL"
The type of the reference. DATE must be of type Epoch timestamp. Allowed values: URL | ATTACHMENT | NUMBER | STRING | DATE | EMAIL
value This property is required. String
A valid value for the reference. For example, for a URL reference, a formatted URL that is displayed to an agent in the Contact Control Panel (CCP).

RuleReferenceType

RuleSendNotificationAction

Content This property is required. string
Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
ContentType This property is required. Pulumi.AwsNative.Connect.RuleSendNotificationActionContentType
Content type format. Allowed value: PLAIN_TEXT
DeliveryMethod This property is required. Pulumi.AwsNative.Connect.RuleSendNotificationActionDeliveryMethod
Notification delivery method. Allowed value: EMAIL
Recipient This property is required. Pulumi.AwsNative.Connect.Inputs.RuleNotificationRecipientType
Notification recipient.
Subject string
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
Content This property is required. string
Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
ContentType This property is required. RuleSendNotificationActionContentType
Content type format. Allowed value: PLAIN_TEXT
DeliveryMethod This property is required. RuleSendNotificationActionDeliveryMethod
Notification delivery method. Allowed value: EMAIL
Recipient This property is required. RuleNotificationRecipientType
Notification recipient.
Subject string
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
content This property is required. String
Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
contentType This property is required. RuleSendNotificationActionContentType
Content type format. Allowed value: PLAIN_TEXT
deliveryMethod This property is required. RuleSendNotificationActionDeliveryMethod
Notification delivery method. Allowed value: EMAIL
recipient This property is required. RuleNotificationRecipientType
Notification recipient.
subject String
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
content This property is required. string
Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
contentType This property is required. RuleSendNotificationActionContentType
Content type format. Allowed value: PLAIN_TEXT
deliveryMethod This property is required. RuleSendNotificationActionDeliveryMethod
Notification delivery method. Allowed value: EMAIL
recipient This property is required. RuleNotificationRecipientType
Notification recipient.
subject string
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
content This property is required. str
Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
content_type This property is required. RuleSendNotificationActionContentType
Content type format. Allowed value: PLAIN_TEXT
delivery_method This property is required. RuleSendNotificationActionDeliveryMethod
Notification delivery method. Allowed value: EMAIL
recipient This property is required. RuleNotificationRecipientType
Notification recipient.
subject str
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
content This property is required. String
Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
contentType This property is required. "PLAIN_TEXT"
Content type format. Allowed value: PLAIN_TEXT
deliveryMethod This property is required. "EMAIL"
Notification delivery method. Allowed value: EMAIL
recipient This property is required. Property Map
Notification recipient.
subject String
The subject of the email if the delivery method is EMAIL. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.

RuleSendNotificationActionContentType

RuleSendNotificationActionDeliveryMethod

RuleSubmitAutoEvaluationAction

EvaluationFormArn This property is required. string
EvaluationFormArn This property is required. string
evaluationFormArn This property is required. String
evaluationFormArn This property is required. string
evaluation_form_arn This property is required. str
evaluationFormArn This property is required. String

RuleTaskAction

ContactFlowArn This property is required. string
The Amazon Resource Name (ARN) of the flow.
Name This property is required. string
The name. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
Description string
The description. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
References Dictionary<string, Pulumi.AwsNative.Connect.Inputs.RuleReference>
Information about the reference when the referenceType is URL. Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)
ContactFlowArn This property is required. string
The Amazon Resource Name (ARN) of the flow.
Name This property is required. string
The name. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
Description string
The description. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
References map[string]RuleReference
Information about the reference when the referenceType is URL. Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)
contactFlowArn This property is required. String
The Amazon Resource Name (ARN) of the flow.
name This property is required. String
The name. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
description String
The description. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
references Map<String,RuleReference>
Information about the reference when the referenceType is URL. Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)
contactFlowArn This property is required. string
The Amazon Resource Name (ARN) of the flow.
name This property is required. string
The name. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
description string
The description. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
references {[key: string]: RuleReference}
Information about the reference when the referenceType is URL. Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)
contact_flow_arn This property is required. str
The Amazon Resource Name (ARN) of the flow.
name This property is required. str
The name. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
description str
The description. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
references Mapping[str, RuleReference]
Information about the reference when the referenceType is URL. Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)
contactFlowArn This property is required. String
The Amazon Resource Name (ARN) of the flow.
name This property is required. String
The name. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
description String
The description. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
references Map<Property Map>
Information about the reference when the referenceType is URL. Otherwise, null. URL is the only accepted type. (Supports variable injection in the Value field.)

RuleUpdateCaseAction

Fields This property is required. []RuleField
fields This property is required. List<RuleField>
fields This property is required. RuleField[]
fields This property is required. Sequence[RuleField]
fields This property is required. List<Property Map>

Tag

Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
Key This property is required. string
The key name of the tag
Value This property is required. string
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag
key This property is required. string
The key name of the tag
value This property is required. string
The value of the tag
key This property is required. str
The key name of the tag
value This property is required. str
The value of the tag
key This property is required. String
The key name of the tag
value This property is required. String
The value of the tag

Package Details

Repository
AWS Native pulumi/pulumi-aws-native
License
Apache-2.0

We recommend new projects start with resources from the AWS provider.

AWS Cloud Control v1.27.0 published on Monday, Apr 14, 2025 by Pulumi