Update Rule
| vpclattice_update_rule | R Documentation |
Updates a specified rule for the listener¶
Description¶
Updates a specified rule for the listener. You can't modify a default
listener rule. To modify a default listener rule, use update_listener.
Usage¶
vpclattice_update_rule(serviceIdentifier, listenerIdentifier,
ruleIdentifier, match, priority, action)
Arguments¶
serviceIdentifier |
[required] The ID or ARN of the service. |
listenerIdentifier |
[required] The ID or ARN of the listener. |
ruleIdentifier |
[required] The ID or ARN of the rule. |
match |
The rule match. |
priority |
The rule priority. A listener can't have multiple rules with the same priority. |
action |
Information about the action for the specified listener rule. |
Value¶
A list with the following syntax:
list(
arn = "string",
id = "string",
name = "string",
isDefault = TRUE|FALSE,
match = list(
httpMatch = list(
method = "string",
pathMatch = list(
match = list(
exact = "string",
prefix = "string"
),
caseSensitive = TRUE|FALSE
),
headerMatches = list(
list(
name = "string",
match = list(
exact = "string",
prefix = "string",
contains = "string"
),
caseSensitive = TRUE|FALSE
)
)
)
),
priority = 123,
action = list(
forward = list(
targetGroups = list(
list(
targetGroupIdentifier = "string",
weight = 123
)
)
),
fixedResponse = list(
statusCode = 123
)
)
)
Request syntax¶
svc$update_rule(
serviceIdentifier = "string",
listenerIdentifier = "string",
ruleIdentifier = "string",
match = list(
httpMatch = list(
method = "string",
pathMatch = list(
match = list(
exact = "string",
prefix = "string"
),
caseSensitive = TRUE|FALSE
),
headerMatches = list(
list(
name = "string",
match = list(
exact = "string",
prefix = "string",
contains = "string"
),
caseSensitive = TRUE|FALSE
)
)
)
),
priority = 123,
action = list(
forward = list(
targetGroups = list(
list(
targetGroupIdentifier = "string",
weight = 123
)
)
),
fixedResponse = list(
statusCode = 123
)
)
)