Skip to content

Create Target Group

vpclattice_create_target_group R Documentation

Creates a target group

Description

Creates a target group. A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.

For more information, see Target groups in the Amazon VPC Lattice User Guide.

Usage

vpclattice_create_target_group(clientToken, config, name, tags, type)

Arguments

clientToken

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you retry a request that completed successfully using the same client token and parameters, the retry succeeds without performing any actions. If the parameters aren't identical, the retry fails.

config

The target group configuration.

name

[required] The name of the target group. The name must be unique within the account. The valid characters are a-z, 0-9, and hyphens (-). You can't use a hyphen as the first or last character, or immediately after another hyphen.

tags

The tags for the target group.

type

[required] The type of target group.

Value

A list with the following syntax:

list(
  arn = "string",
  config = list(
    healthCheck = list(
      enabled = TRUE|FALSE,
      healthCheckIntervalSeconds = 123,
      healthCheckTimeoutSeconds = 123,
      healthyThresholdCount = 123,
      matcher = list(
        httpCode = "string"
      ),
      path = "string",
      port = 123,
      protocol = "HTTP"|"HTTPS"|"TCP",
      protocolVersion = "HTTP1"|"HTTP2",
      unhealthyThresholdCount = 123
    ),
    ipAddressType = "IPV4"|"IPV6",
    lambdaEventStructureVersion = "V1"|"V2",
    port = 123,
    protocol = "HTTP"|"HTTPS"|"TCP",
    protocolVersion = "HTTP1"|"HTTP2"|"GRPC",
    vpcIdentifier = "string"
  ),
  id = "string",
  name = "string",
  status = "CREATE_IN_PROGRESS"|"ACTIVE"|"DELETE_IN_PROGRESS"|"CREATE_FAILED"|"DELETE_FAILED",
  type = "IP"|"LAMBDA"|"INSTANCE"|"ALB"
)

Request syntax

svc$create_target_group(
  clientToken = "string",
  config = list(
    healthCheck = list(
      enabled = TRUE|FALSE,
      healthCheckIntervalSeconds = 123,
      healthCheckTimeoutSeconds = 123,
      healthyThresholdCount = 123,
      matcher = list(
        httpCode = "string"
      ),
      path = "string",
      port = 123,
      protocol = "HTTP"|"HTTPS"|"TCP",
      protocolVersion = "HTTP1"|"HTTP2",
      unhealthyThresholdCount = 123
    ),
    ipAddressType = "IPV4"|"IPV6",
    lambdaEventStructureVersion = "V1"|"V2",
    port = 123,
    protocol = "HTTP"|"HTTPS"|"TCP",
    protocolVersion = "HTTP1"|"HTTP2"|"GRPC",
    vpcIdentifier = "string"
  ),
  name = "string",
  tags = list(
    "string"
  ),
  type = "IP"|"LAMBDA"|"INSTANCE"|"ALB"
)