We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.38.0 published on Wednesday, Nov 5, 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>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]func LookupRule(ctx *Context, args *LookupRuleArgs, opts ...InvokeOption) (*LookupRuleResult, error)
func LookupRuleOutput(ctx *Context, args *LookupRuleOutputArgs, opts ...InvokeOption) LookupRuleResultOutput> 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)
}public static CompletableFuture<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
public static Output<GetRuleResult> getRule(GetRuleArgs args, InvokeOptions options)
fn::invoke:
function: aws-native:connect:getRule
arguments:
# arguments dictionaryThe following arguments are supported:
- Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- rule
Arn String - The Amazon Resource Name (ARN) of the rule.
- rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- rule_
arn str - The Amazon Resource Name (ARN) of the rule.
- rule
Arn String - The Amazon Resource Name (ARN) of the rule.
getRule Result
The following output properties are available:
- Actions
Pulumi.
Aws Native. Connect. Outputs. Rule Actions - 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.
- Publish
Status Pulumi.Aws Native. Connect. Rule Publish Status - The publish status of the rule.
Allowed values:
DRAFT|PUBLISHED - Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
-
List<Pulumi.
Aws Native. Outputs. Tag> - The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- Actions
Rule
Actions - 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.
- Publish
Status RulePublish Status - The publish status of the rule.
Allowed values:
DRAFT|PUBLISHED - Rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- Tag
- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- actions
Rule
Actions - 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.
- publish
Status RulePublish Status - The publish status of the rule.
Allowed values:
DRAFT|PUBLISHED - rule
Arn String - The Amazon Resource Name (ARN) of the rule.
- List<Tag>
- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- actions
Rule
Actions - 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.
- publish
Status RulePublish Status - The publish status of the rule.
Allowed values:
DRAFT|PUBLISHED - rule
Arn string - The Amazon Resource Name (ARN) of the rule.
- Tag[]
- The tags used to organize, track, or control access for this resource. For example, { "tags": {"key1":"value1", "key2":"value2"} }.
- actions
Rule
Actions - 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 RulePublish Status - The publish status of the rule.
Allowed values:
DRAFT|PUBLISHED - rule_
arn str - The Amazon Resource Name (ARN) of the rule.
- 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.
- publish
Status "DRAFT" | "PUBLISHED" - The publish status of the rule.
Allowed values:
DRAFT|PUBLISHED - rule
Arn String - The Amazon Resource Name (ARN) of the rule.
- 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
- Assign
Contact List<Pulumi.Category Actions Aws Native. Connect. Inputs. Rule Assign Contact Category Action> - Information about the contact category action. The syntax can be empty, for example,
{}. - Create
Case List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Create Case Action> - End
Associated List<Pulumi.Tasks Actions Aws Native. Connect. Inputs. Rule End Associated Tasks Action> - Event
Bridge List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Event Bridge Action> - Information about the EV action.
- Send
Notification List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Send Notification Action> - Information about the send notification action.
- Submit
Auto List<Pulumi.Evaluation Actions Aws Native. Connect. Inputs. Rule Submit Auto Evaluation Action> - Task
Actions List<Pulumi.Aws Native. Connect. Inputs. Rule Task Action> - Information about the task action. This field is required if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate - Update
Case List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Update Case Action>
- Assign
Contact []RuleCategory Actions Assign Contact Category Action - Information about the contact category action. The syntax can be empty, for example,
{}. - Create
Case []RuleActions Create Case Action - End
Associated []RuleTasks Actions End Associated Tasks Action - Event
Bridge []RuleActions Event Bridge Action - Information about the EV action.
- Send
Notification []RuleActions Send Notification Action - Information about the send notification action.
- Submit
Auto []RuleEvaluation Actions Submit Auto Evaluation Action - Task
Actions []RuleTask Action - Information about the task action. This field is required if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate - Update
Case []RuleActions Update Case Action
- assign
Contact List<RuleCategory Actions Assign Contact Category Action> - Information about the contact category action. The syntax can be empty, for example,
{}. - create
Case List<RuleActions Create Case Action> - end
Associated List<RuleTasks Actions End Associated Tasks Action> - event
Bridge List<RuleActions Event Bridge Action> - Information about the EV action.
- send
Notification List<RuleActions Send Notification Action> - Information about the send notification action.
- submit
Auto List<RuleEvaluation Actions Submit Auto Evaluation Action> - task
Actions List<RuleTask Action> - Information about the task action. This field is required if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate - update
Case List<RuleActions Update Case Action>
- assign
Contact RuleCategory Actions Assign Contact Category Action[] - Information about the contact category action. The syntax can be empty, for example,
{}. - create
Case RuleActions Create Case Action[] - end
Associated RuleTasks Actions End Associated Tasks Action[] - event
Bridge RuleActions Event Bridge Action[] - Information about the EV action.
- send
Notification RuleActions Send Notification Action[] - Information about the send notification action.
- submit
Auto RuleEvaluation Actions Submit Auto Evaluation Action[] - task
Actions RuleTask Action[] - Information about the task action. This field is required if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate - update
Case RuleActions Update Case Action[]
- assign_
contact_ Sequence[Rulecategory_ actions Assign Contact Category Action] - Information about the contact category action. The syntax can be empty, for example,
{}. - create_
case_ Sequence[Ruleactions Create Case Action] - end_
associated_ Sequence[Ruletasks_ actions End Associated Tasks Action] - event_
bridge_ Sequence[Ruleactions Event Bridge Action] - Information about the EV action.
- send_
notification_ Sequence[Ruleactions Send Notification Action] - Information about the send notification action.
- submit_
auto_ Sequence[Ruleevaluation_ actions Submit Auto Evaluation Action] - task_
actions Sequence[RuleTask Action] - Information about the task action. This field is required if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate - update_
case_ Sequence[Ruleactions Update Case Action]
- assign
Contact List<Property Map>Category Actions - Information about the contact category action. The syntax can be empty, for example,
{}. - create
Case List<Property Map>Actions - end
Associated List<Property Map>Tasks Actions - event
Bridge List<Property Map>Actions - Information about the EV action.
- send
Notification List<Property Map>Actions - Information about the send notification action.
- submit
Auto List<Property Map>Evaluation Actions - task
Actions List<Property Map> - Information about the task action. This field is required if
TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate - update
Case List<Property Map>Actions
RuleCreateCaseAction
- Fields
[]Rule
Field - Template
Id string
- fields
List<Rule
Field> - template
Id String
- fields
Rule
Field[] - template
Id string
RuleEventBridgeAction
- Name string
- The name.
- Name string
- The name.
- name String
- The name.
- name string
- The name.
- name str
- The name.
- name String
- The name.
RuleField
- Id string
- Value
Rule
Field Value
- id String
- value
Rule
Field Value
- id string
- value
Rule
Field Value
- id String
- value Property Map
RuleFieldValue
- Boolean
Value bool - Double
Value double - Empty
Value object - String
Value string
- Boolean
Value bool - Double
Value float64 - Empty
Value interface{} - String
Value string
- boolean
Value Boolean - double
Value Double - empty
Value Object - string
Value String
- boolean
Value boolean - double
Value number - empty
Value any - string
Value string
- boolean_
value bool - double_
value float - empty_
value Any - string_
value str
- boolean
Value Boolean - double
Value Number - empty
Value Any - string
Value String
RuleNotificationRecipientType
- User
Arns List<string> - The Amazon Resource Name (ARN) of the user account.
- 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.
- User
Arns []string - The Amazon Resource Name (ARN) of the user account.
- 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.
- user
Arns List<String> - The Amazon Resource Name (ARN) of the user account.
- 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.
- user
Arns string[] - The Amazon Resource Name (ARN) of the user account.
- {[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.
- 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.
- user
Arns List<String> - The Amazon Resource Name (ARN) of the user account.
- 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
Pulumi.
Aws Native. Connect. Rule Reference Type - The type of the reference.
DATEmust be of type Epoch timestamp. Allowed values:URL|ATTACHMENT|NUMBER|STRING|DATE|EMAIL - Value 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
Rule
Reference Type - The type of the reference.
DATEmust be of type Epoch timestamp. Allowed values:URL|ATTACHMENT|NUMBER|STRING|DATE|EMAIL - Value 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
Rule
Reference Type - The type of the reference.
DATEmust be of type Epoch timestamp. Allowed values:URL|ATTACHMENT|NUMBER|STRING|DATE|EMAIL - value 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
Rule
Reference Type - The type of the reference.
DATEmust be of type Epoch timestamp. Allowed values:URL|ATTACHMENT|NUMBER|STRING|DATE|EMAIL - value 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
Rule
Reference Type - The type of the reference.
DATEmust be of type Epoch timestamp. Allowed values:URL|ATTACHMENT|NUMBER|STRING|DATE|EMAIL - value 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 "URL" | "ATTACHMENT" | "NUMBER" | "STRING" | "DATE" | "EMAIL"
- The type of the reference.
DATEmust be of type Epoch timestamp. Allowed values:URL|ATTACHMENT|NUMBER|STRING|DATE|EMAIL - value 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 string
- Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- Content
Type Pulumi.Aws Native. Connect. Rule Send Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT - Delivery
Method Pulumi.Aws Native. Connect. Rule Send Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL - Recipient
Pulumi.
Aws Native. Connect. Inputs. Rule Notification Recipient Type - 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 string
- Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- Content
Type RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT - Delivery
Method RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL - Recipient
Rule
Notification Recipient Type - 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 String
- Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content
Type RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT - delivery
Method RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL - recipient
Rule
Notification Recipient Type - 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 string
- Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content
Type RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT - delivery
Method RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL - recipient
Rule
Notification Recipient Type - 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 str
- Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content_
type RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT - delivery_
method RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL - recipient
Rule
Notification Recipient Type - 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 String
- Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content
Type "PLAIN_TEXT" - Content type format.
Allowed value:
PLAIN_TEXT - delivery
Method "EMAIL" - Notification delivery method.
Allowed value:
EMAIL - recipient 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
- Evaluation
Form stringArn
- Evaluation
Form stringArn
- evaluation
Form StringArn
- evaluation
Form stringArn
- evaluation
Form StringArn
RuleTaskAction
- Contact
Flow stringArn - The Amazon Resource Name (ARN) of the flow.
- Name 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.
Aws Native. Connect. Inputs. Rule Reference> - Information about the reference when the
referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- Contact
Flow stringArn - The Amazon Resource Name (ARN) of the flow.
- Name 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]Rule
Reference - Information about the reference when the
referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contact
Flow StringArn - The Amazon Resource Name (ARN) of the flow.
- name 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,Rule
Reference> - Information about the reference when the
referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contact
Flow stringArn - The Amazon Resource Name (ARN) of the flow.
- name 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]: Rule
Reference} - Information about the reference when the
referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contact_
flow_ strarn - The Amazon Resource Name (ARN) of the flow.
- name 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, Rule
Reference] - Information about the reference when the
referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contact
Flow StringArn - The Amazon Resource Name (ARN) of the flow.
- name 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
referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
RuleUpdateCaseAction
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.38.0 published on Wednesday, Nov 5, 2025 by Pulumi
