CfnTargetGroupProps

class aws_cdk.aws_vpclattice.CfnTargetGroupProps(*, type, config=None, name=None, tags=None, targets=None)

Bases: object

Properties for defining a CfnTargetGroup.

Parameters:
  • type (str) – The type of target group.

  • config (Union[IResolvable, TargetGroupConfigProperty, Dict[str, Any], None]) – The target group configuration.

  • name (Optional[str]) – 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 (Optional[Sequence[Union[CfnTag, Dict[str, Any]]]]) – The tags for the target group.

  • targets (Union[IResolvable, Sequence[Union[IResolvable, TargetProperty, Dict[str, Any]]], None]) – Describes a target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-targetgroup.html

ExampleMetadata:

fixture=_generated

Example:

# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_vpclattice as vpclattice

cfn_target_group_props = vpclattice.CfnTargetGroupProps(
    type="type",

    # the properties below are optional
    config=vpclattice.CfnTargetGroup.TargetGroupConfigProperty(
        health_check=vpclattice.CfnTargetGroup.HealthCheckConfigProperty(
            enabled=False,
            health_check_interval_seconds=123,
            health_check_timeout_seconds=123,
            healthy_threshold_count=123,
            matcher=vpclattice.CfnTargetGroup.MatcherProperty(
                http_code="httpCode"
            ),
            path="path",
            port=123,
            protocol="protocol",
            protocol_version="protocolVersion",
            unhealthy_threshold_count=123
        ),
        ip_address_type="ipAddressType",
        lambda_event_structure_version="lambdaEventStructureVersion",
        port=123,
        protocol="protocol",
        protocol_version="protocolVersion",
        vpc_identifier="vpcIdentifier"
    ),
    name="name",
    tags=[CfnTag(
        key="key",
        value="value"
    )],
    targets=[vpclattice.CfnTargetGroup.TargetProperty(
        id="id",

        # the properties below are optional
        port=123
    )]
)

Attributes

config

The target group configuration.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-targetgroup.html#cfn-vpclattice-targetgroup-config

name

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.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-targetgroup.html#cfn-vpclattice-targetgroup-name

tags

The tags for the target group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-targetgroup.html#cfn-vpclattice-targetgroup-tags

targets

Describes a target.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-targetgroup.html#cfn-vpclattice-targetgroup-targets

type

The type of target group.

See:

http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-vpclattice-targetgroup.html#cfn-vpclattice-targetgroup-type