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>
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 dictionary
The following arguments are supported:
- Rule
Arn This property is required. string - The Amazon Resource Name (ARN) of the rule.
- Rule
Arn This property is required. string - The Amazon Resource Name (ARN) of the rule.
- rule
Arn This property is required. String - The Amazon Resource Name (ARN) of the rule.
- rule
Arn 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.
- rule
Arn This property is required. 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
TriggerEventSource
is 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
TriggerEventSource
is 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
TriggerEventSource
is 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
TriggerEventSource
is 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
TriggerEventSource
is 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
TriggerEventSource
is one of the following values:OnZendeskTicketCreate
|OnZendeskTicketStatusUpdate
|OnSalesforceCaseCreate
- update
Case List<Property Map>Actions
RuleCreateCaseAction
- Fields
This property is required. List<Pulumi.Aws Native. Connect. Inputs. Rule Field> - Template
Id This property is required. string
- Fields
This property is required. []RuleField - Template
Id This property is required. string
- fields
This property is required. List<RuleField> - template
Id This property is required. String
- fields
This property is required. RuleField[] - template
Id 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> - template
Id 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.Aws Native. Connect. Inputs. Rule Field Value
- Id
This property is required. string - Value
This property is required. RuleField Value
- id
This property is required. String - value
This property is required. RuleField Value
- id
This property is required. string - value
This property is required. RuleField Value
- id
This property is required. str - value
This property is required. RuleField Value
- id
This property is required. String - value
This property is required. 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
This property is required. Pulumi.Aws Native. Connect. Rule Reference Type - 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. RuleReference Type - 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. RuleReference Type - 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. RuleReference Type - 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. RuleReference Type - 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.
- Content
Type This property is required. Pulumi.Aws Native. Connect. Rule Send Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT
- Delivery
Method This property is required. Pulumi.Aws Native. Connect. Rule Send Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL
- Recipient
This property is required. 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
This property is required. string - Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- Content
Type This property is required. RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT
- Delivery
Method This property is required. RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL
- Recipient
This property is required. 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
This property is required. String - Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content
Type This property is required. RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT
- delivery
Method This property is required. RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL
- recipient
This property is required. 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
This property is required. string - Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content
Type This property is required. RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT
- delivery
Method This property is required. RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL
- recipient
This property is required. 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
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. RuleSend Notification Action Content Type - Content type format.
Allowed value:
PLAIN_TEXT
- delivery_
method This property is required. RuleSend Notification Action Delivery Method - Notification delivery method.
Allowed value:
EMAIL
- recipient
This property is required. 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
This property is required. String - Notification content. Supports variable injection. For more information, see JSONPath reference in the Administrators Guide.
- content
Type This property is required. "PLAIN_TEXT" - Content type format.
Allowed value:
PLAIN_TEXT
- delivery
Method 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
- Evaluation
Form Arn This property is required. string
- Evaluation
Form Arn This property is required. string
- evaluation
Form Arn This property is required. String
- evaluation
Form Arn This property is required. string
- evaluation_
form_ arn This property is required. str
- evaluation
Form Arn This property is required. String
RuleTaskAction
- Contact
Flow Arn 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.
Aws Native. Connect. Inputs. Rule Reference> - Information about the reference when the
referenceType
isURL
. Otherwise, null.URL
is the only accepted type. (Supports variable injection in theValue
field.)
- Contact
Flow Arn 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]Rule
Reference - Information about the reference when the
referenceType
isURL
. Otherwise, null.URL
is the only accepted type. (Supports variable injection in theValue
field.)
- contact
Flow Arn 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,Rule
Reference> - Information about the reference when the
referenceType
isURL
. Otherwise, null.URL
is the only accepted type. (Supports variable injection in theValue
field.)
- contact
Flow Arn 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]: Rule
Reference} - Information about the reference when the
referenceType
isURL
. Otherwise, null.URL
is the only accepted type. (Supports variable injection in theValue
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, Rule
Reference] - Information about the reference when the
referenceType
isURL
. Otherwise, null.URL
is the only accepted type. (Supports variable injection in theValue
field.)
- contact
Flow Arn 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
isURL
. Otherwise, null.URL
is the only accepted type. (Supports variable injection in theValue
field.)
RuleUpdateCaseAction
- Fields
This property is required. List<Pulumi.Aws Native. Connect. Inputs. Rule Field>
- 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
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