Skip to content

Update Rule

vpclattice_update_rule R Documentation

Updates a rule for the listener

Description

Updates a 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(action, listenerIdentifier, match, priority,
  ruleIdentifier, serviceIdentifier)

Arguments

action

Information about the action for the specified listener rule.

listenerIdentifier

[required] The ID or Amazon Resource Name (ARN) of the listener.

match

The rule match.

priority

The rule priority. A listener can't have multiple rules with the same priority.

ruleIdentifier

[required] The ID or Amazon Resource Name (ARN) of the rule.

serviceIdentifier

[required] The ID or Amazon Resource Name (ARN) of the service.

Value

A list with the following syntax:

list(
  action = list(
    fixedResponse = list(
      statusCode = 123
    ),
    forward = list(
      targetGroups = list(
        list(
          targetGroupIdentifier = "string",
          weight = 123
        )
      )
    )
  ),
  arn = "string",
  id = "string",
  isDefault = TRUE|FALSE,
  match = list(
    httpMatch = list(
      headerMatches = list(
        list(
          caseSensitive = TRUE|FALSE,
          match = list(
            contains = "string",
            exact = "string",
            prefix = "string"
          ),
          name = "string"
        )
      ),
      method = "string",
      pathMatch = list(
        caseSensitive = TRUE|FALSE,
        match = list(
          exact = "string",
          prefix = "string"
        )
      )
    )
  ),
  name = "string",
  priority = 123
)

Request syntax

svc$update_rule(
  action = list(
    fixedResponse = list(
      statusCode = 123
    ),
    forward = list(
      targetGroups = list(
        list(
          targetGroupIdentifier = "string",
          weight = 123
        )
      )
    )
  ),
  listenerIdentifier = "string",
  match = list(
    httpMatch = list(
      headerMatches = list(
        list(
          caseSensitive = TRUE|FALSE,
          match = list(
            contains = "string",
            exact = "string",
            prefix = "string"
          ),
          name = "string"
        )
      ),
      method = "string",
      pathMatch = list(
        caseSensitive = TRUE|FALSE,
        match = list(
          exact = "string",
          prefix = "string"
        )
      )
    )
  ),
  priority = 123,
  ruleIdentifier = "string",
  serviceIdentifier = "string"
)