aws-cdk-lib.aws_vpclattice.CfnTargetGroupProps

interface CfnTargetGroupProps

LanguageType name
.NETAmazon.CDK.AWS.VpcLattice.CfnTargetGroupProps
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsvpclattice#CfnTargetGroupProps
Javasoftware.amazon.awscdk.services.vpclattice.CfnTargetGroupProps
Pythonaws_cdk.aws_vpclattice.CfnTargetGroupProps
TypeScript aws-cdk-lib » aws_vpclattice » CfnTargetGroupProps

Properties for defining a CfnTargetGroup.

Example

// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_vpclattice as vpclattice } from 'aws-cdk-lib';
const cfnTargetGroupProps: vpclattice.CfnTargetGroupProps = {
  type: 'type',

  // the properties below are optional
  config: {
    port: 123,
    protocol: 'protocol',
    vpcIdentifier: 'vpcIdentifier',

    // the properties below are optional
    healthCheck: {
      enabled: false,
      healthCheckIntervalSeconds: 123,
      healthCheckTimeoutSeconds: 123,
      healthyThresholdCount: 123,
      matcher: {
        httpCode: 'httpCode',
      },
      path: 'path',
      port: 123,
      protocol: 'protocol',
      protocolVersion: 'protocolVersion',
      unhealthyThresholdCount: 123,
    },
    ipAddressType: 'ipAddressType',
    protocolVersion: 'protocolVersion',
  },
  name: 'name',
  tags: [{
    key: 'key',
    value: 'value',
  }],
  targets: [{
    id: 'id',

    // the properties below are optional
    port: 123,
  }],
};

Properties

NameTypeDescription
typestringThe type of target group.
config?IResolvable | TargetGroupConfigPropertyThe target group configuration.
name?stringThe name of the target group.
tags?CfnTag[]The tags for the target group.
targets?IResolvable | IResolvable | TargetProperty[]Describes a target.

type

Type: string

The type of target group.


config?

Type: IResolvable | TargetGroupConfigProperty (optional)

The target group configuration.

If type is set to LAMBDA , this parameter doesn't apply.


name?

Type: string (optional)

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.

If you don't specify a name, CloudFormation generates one. However, if you specify a name, and later want to replace the resource, you must specify a new name.


tags?

Type: CfnTag[] (optional)

The tags for the target group.


targets?

Type: IResolvable | IResolvable | TargetProperty[] (optional)

Describes a target.