We recommend new projects start with resources from the AWS provider.
AWS Cloud Control v1.26.0 published on Wednesday, Mar 12, 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.26.0 published on Wednesday, Mar 12, 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:
- RuleArn string
- The Amazon Resource Name (ARN) of the rule.
- RuleArn string
- The Amazon Resource Name (ARN) of the rule.
- ruleArn String
- The Amazon Resource Name (ARN) of the rule.
- ruleArn string
- The Amazon Resource Name (ARN) of the rule.
- rule_arn str
- The Amazon Resource Name (ARN) of the rule.
- ruleArn 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.
- PublishStatus Pulumi.Aws Native. Connect. Rule Publish Status 
- The publish status of the rule.
Allowed values: DRAFT|PUBLISHED
- RuleArn 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
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 RulePublish Status 
- The publish status of the rule.
Allowed values: DRAFT|PUBLISHED
- RuleArn 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
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 RulePublish Status 
- The publish status of the rule.
Allowed values: DRAFT|PUBLISHED
- ruleArn 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
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 RulePublish Status 
- The publish status of the rule.
Allowed values: DRAFT|PUBLISHED
- ruleArn 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
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 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.
- publishStatus "DRAFT" | "PUBLISHED"
- The publish status of the rule.
Allowed values: DRAFT|PUBLISHED
- ruleArn 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 
- AssignContact 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, {}.
- CreateCase List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Create Case Action> 
- EndAssociated List<Pulumi.Tasks Actions Aws Native. Connect. Inputs. Rule End Associated Tasks Action> 
- EventBridge List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Event Bridge Action> 
- Information about the EV action.
- SendNotification List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Send Notification Action> 
- Information about the send notification action.
- SubmitAuto List<Pulumi.Evaluation Actions Aws Native. Connect. Inputs. Rule Submit Auto Evaluation Action> 
- TaskActions 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
- UpdateCase List<Pulumi.Actions Aws Native. Connect. Inputs. Rule Update Case Action> 
- AssignContact []RuleCategory Actions Assign Contact Category Action 
- Information about the contact category action. The syntax can be empty, for example, {}.
- CreateCase []RuleActions Create Case Action 
- EndAssociated []RuleTasks Actions End Associated Tasks Action 
- EventBridge []RuleActions Event Bridge Action 
- Information about the EV action.
- SendNotification []RuleActions Send Notification Action 
- Information about the send notification action.
- SubmitAuto []RuleEvaluation Actions Submit Auto Evaluation Action 
- TaskActions []RuleTask Action 
- Information about the task action. This field is required if TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate
- UpdateCase []RuleActions Update Case Action 
- assignContact List<RuleCategory Actions Assign Contact Category Action> 
- Information about the contact category action. The syntax can be empty, for example, {}.
- createCase List<RuleActions Create Case Action> 
- endAssociated List<RuleTasks Actions End Associated Tasks Action> 
- eventBridge List<RuleActions Event Bridge Action> 
- Information about the EV action.
- sendNotification List<RuleActions Send Notification Action> 
- Information about the send notification action.
- submitAuto List<RuleEvaluation Actions Submit Auto Evaluation Action> 
- taskActions List<RuleTask Action> 
- Information about the task action. This field is required if TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate
- updateCase List<RuleActions Update Case Action> 
- assignContact RuleCategory Actions Assign Contact Category Action[] 
- Information about the contact category action. The syntax can be empty, for example, {}.
- createCase RuleActions Create Case Action[] 
- endAssociated RuleTasks Actions End Associated Tasks Action[] 
- eventBridge RuleActions Event Bridge Action[] 
- Information about the EV action.
- sendNotification RuleActions Send Notification Action[] 
- Information about the send notification action.
- submitAuto RuleEvaluation Actions Submit Auto Evaluation Action[] 
- taskActions RuleTask Action[] 
- Information about the task action. This field is required if TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate
- updateCase 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] 
- assignContact List<Property Map>Category Actions 
- Information about the contact category action. The syntax can be empty, for example, {}.
- createCase List<Property Map>Actions 
- endAssociated List<Property Map>Tasks Actions 
- eventBridge List<Property Map>Actions 
- Information about the EV action.
- sendNotification List<Property Map>Actions 
- Information about the send notification action.
- submitAuto List<Property Map>Evaluation Actions 
- taskActions List<Property Map>
- Information about the task action. This field is required if TriggerEventSourceis one of the following values:OnZendeskTicketCreate|OnZendeskTicketStatusUpdate|OnSalesforceCaseCreate
- updateCase List<Property Map>Actions 
RuleCreateCaseAction   
- Fields
[]RuleField 
- TemplateId string
- fields
List<RuleField> 
- templateId String
- fields
RuleField[] 
- templateId 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
RuleField Value 
- id String
- value
RuleField Value 
- id string
- value
RuleField Value 
- id String
- value Property Map
RuleFieldValue  
- BooleanValue bool
- DoubleValue double
- EmptyValue object
- StringValue string
- BooleanValue bool
- DoubleValue float64
- EmptyValue interface{}
- StringValue string
- booleanValue Boolean
- doubleValue Double
- emptyValue Object
- stringValue String
- booleanValue boolean
- doubleValue number
- emptyValue any
- stringValue string
- boolean_value bool
- double_value float
- empty_value Any
- string_value str
- booleanValue Boolean
- doubleValue Number
- emptyValue Any
- stringValue String
RuleNotificationRecipientType   
- UserArns 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.
- UserArns []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.
- userArns 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.
- userArns 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.
- userArns 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
RuleReference 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
RuleReference 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
RuleReference 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
RuleReference 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.
- ContentType Pulumi.Aws Native. Connect. Rule Send Notification Action Content Type 
- Content type format.
Allowed value: PLAIN_TEXT
- DeliveryMethod 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.
- ContentType RuleSend Notification Action Content Type 
- Content type format.
Allowed value: PLAIN_TEXT
- DeliveryMethod RuleSend Notification Action Delivery Method 
- Notification delivery method.
Allowed value: EMAIL
- Recipient
RuleNotification 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.
- contentType RuleSend Notification Action Content Type 
- Content type format.
Allowed value: PLAIN_TEXT
- deliveryMethod RuleSend Notification Action Delivery Method 
- Notification delivery method.
Allowed value: EMAIL
- recipient
RuleNotification 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.
- contentType RuleSend Notification Action Content Type 
- Content type format.
Allowed value: PLAIN_TEXT
- deliveryMethod RuleSend Notification Action Delivery Method 
- Notification delivery method.
Allowed value: EMAIL
- recipient
RuleNotification 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
RuleNotification 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.
- contentType "PLAIN_TEXT"
- Content type format.
Allowed value: PLAIN_TEXT
- deliveryMethod "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    
- EvaluationForm stringArn 
- EvaluationForm stringArn 
- evaluationForm StringArn 
- evaluationForm stringArn 
- evaluationForm StringArn 
RuleTaskAction  
- ContactFlow 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.)
- ContactFlow 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]RuleReference 
- Information about the reference when the referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contactFlow 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,RuleReference> 
- Information about the reference when the referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contactFlow 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]: RuleReference} 
- 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, RuleReference] 
- Information about the reference when the referenceTypeisURL. Otherwise, null.URLis the only accepted type. (Supports variable injection in theValuefield.)
- contactFlow 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.26.0 published on Wednesday, Mar 12, 2025 by Pulumi