Interface CfnTargetGroupProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTargetGroupProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)",
date="2023-06-19T16:30:36.035Z")
@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()
.port(123)
.protocol("protocol")
.vpcIdentifier("vpcIdentifier")
// the properties below are optional
.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")
.protocolVersion("protocolVersion")
.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();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTargetGroupPropsstatic final classAn implementation forCfnTargetGroupProps -
Method Summary
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getType
The type of target group. -
getConfig
The target group configuration.If
typeis set toLAMBDA, this parameter doesn't apply. -
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.
-
getTags
The tags for the target group. -
getTargets
Describes a target. -
builder
- Returns:
- a
CfnTargetGroupProps.BuilderofCfnTargetGroupProps
-