Class CfnTargetGroup.Builder
java.lang.Object
software.amazon.awscdk.services.vpclattice.CfnTargetGroup.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTargetGroup>
- Enclosing class:
CfnTargetGroup
@Stability(Stable)
public static final class CfnTargetGroup.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTargetGroup>
A fluent builder for
CfnTargetGroup
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
config
(IResolvable config) The target group configuration.The target group configuration.static CfnTargetGroup.Builder
The name of the target group.The tags for the target group.Describes a target.targets
(IResolvable targets) Describes a target.The type of target group.
-
Method Details
-
create
@Stability(Stable) public static CfnTargetGroup.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTargetGroup.Builder
.
-
type
The type of target group.- Parameters:
type
- The type of target group. This parameter is required.- Returns:
this
- See Also:
-
config
The target group configuration.- Parameters:
config
- The target group configuration. This parameter is required.- Returns:
this
- See Also:
-
config
@Stability(Stable) public CfnTargetGroup.Builder config(CfnTargetGroup.TargetGroupConfigProperty config) The target group configuration.- Parameters:
config
- The target group configuration. This parameter is required.- Returns:
this
- See Also:
-
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.
- Parameters:
name
- The name of the target group. This parameter is required.- Returns:
this
- See Also:
-
tags
The tags for the target group.- Parameters:
tags
- The tags for the target group. This parameter is required.- Returns:
this
- See Also:
-
targets
Describes a target.- Parameters:
targets
- Describes a target. This parameter is required.- Returns:
this
- See Also:
-
targets
Describes a target.- Parameters:
targets
- Describes a target. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTargetGroup>
- Returns:
- a newly built instance of
CfnTargetGroup
.
-