CfnTargetGroupProps
- class aws_cdk.aws_vpclattice.CfnTargetGroupProps(*, type, config=None, name=None, tags=None, targets=None)
Bases:
objectProperties for defining a
CfnTargetGroup.- Parameters:
type (
str) – The type of target group.config (
Union[IResolvable,TargetGroupConfigProperty,Dict[str,Any],None]) – The target group configuration. Iftypeis set toLAMBDA, this parameter doesn’t apply.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.
- Link:
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_vpclattice as vpclattice cfn_target_group_props = vpclattice.CfnTargetGroupProps( type="type", # the properties below are optional config=vpclattice.CfnTargetGroup.TargetGroupConfigProperty( port=123, protocol="protocol", vpc_identifier="vpcIdentifier", # the properties below are optional 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", protocol_version="protocolVersion" ), 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.
If
typeis set toLAMBDA, this parameter doesn’t apply.
- 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.
- tags
The tags for the target group.
- targets
Describes a target.
- type
The type of target group.