Interface CfnTargetGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTargetGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2025-01-15T21:09:28.293Z")
@Stability(Stable)
public interface CfnTargetGroupProps
extends software.amazon.jsii.JsiiSerializable
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 software.amazon.awscdk.services.vpclattice.*; CfnTargetGroupProps cfnTargetGroupProps = CfnTargetGroupProps.builder() .type("type") // the properties below are optional .config(TargetGroupConfigProperty.builder() .healthCheck(HealthCheckConfigProperty.builder() .enabled(false) .healthCheckIntervalSeconds(123) .healthCheckTimeoutSeconds(123) .healthyThresholdCount(123) .matcher(MatcherProperty.builder() .httpCode("httpCode") .build()) .path("path") .port(123) .protocol("protocol") .protocolVersion("protocolVersion") .unhealthyThresholdCount(123) .build()) .ipAddressType("ipAddressType") .lambdaEventStructureVersion("lambdaEventStructureVersion") .port(123) .protocol("protocol") .protocolVersion("protocolVersion") .vpcIdentifier("vpcIdentifier") .build()) .name("name") .tags(List.of(CfnTag.builder() .key("key") .value("value") .build())) .targets(List.of(TargetProperty.builder() .id("id") // the properties below are optional .port(123) .build())) .build();
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forCfnTargetGroupProps
static final class
An implementation forCfnTargetGroupProps
-
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of target group.- See Also:
-
getConfig
The target group configuration.- See Also:
-
getName
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 Also:
-
getTags
The tags for the target group.- See Also:
-
getTargets
Describes a target.- See Also:
-
builder
- Returns:
- a
CfnTargetGroupProps.Builder
ofCfnTargetGroupProps
-