Class CfnTargetGroup
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.vpclattice.CfnTargetGroup
- All Implemented Interfaces:
IInspectable
,ITaggable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.104.0 (build e79254c)",
date="2024-12-06T14:43:28.217Z")
@Stability(Stable)
public class CfnTargetGroup
extends CfnResource
implements IInspectable, ITaggable
Creates a target group.
A target group is a collection of targets, or compute resources, that run your application or service. A target group can only be used by a single service.
For more information, see Target groups in the Amazon VPC Lattice User Guide .
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.*; CfnTargetGroup cfnTargetGroup = CfnTargetGroup.Builder.create(this, "MyCfnTargetGroup") .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 TypeClassDescriptionstatic final class
A fluent builder forCfnTargetGroup
.static interface
Describes the health check configuration of a target group.static interface
Describes the codes to use when checking for a successful response from a target for health checks.static interface
Describes the configuration of a target group.static interface
Describes a target.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationMode
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
Nested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ModifierConstructorDescriptionprotected
CfnTargetGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTargetGroup
(software.amazon.jsii.JsiiObjectRef objRef) CfnTargetGroup
(software.constructs.Construct scope, String id, CfnTargetGroupProps props) -
Method Summary
Modifier and TypeMethodDescriptionThe Amazon Resource Name (ARN) of the target group.The date and time that the target group was created, specified in ISO-8601 format.The ID of the target group.The date and time that the target group was last updated, specified in ISO-8601 format.The operation's status.The target group configuration.getName()
The name of the target group.getTags()
Tag Manager which manages the tags for this resource.The tags for the target group.Describes a target.getType()
The type of target group.void
inspect
(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties
(Map<String, Object> props) void
setConfig
(IResolvable value) The target group configuration.void
The target group configuration.void
The name of the target group.void
setTagsRaw
(List<CfnTag> value) The tags for the target group.void
setTargets
(List<Object> value) Describes a target.void
setTargets
(IResolvable value) Describes a target.void
The type of target group.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.constructs.Construct
getNode, isConstruct
Methods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnTargetGroup
protected CfnTargetGroup(software.amazon.jsii.JsiiObjectRef objRef) -
CfnTargetGroup
protected CfnTargetGroup(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnTargetGroup
@Stability(Stable) public CfnTargetGroup(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnTargetGroupProps props) - 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.props
- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderProperties
in classCfnResource
- Parameters:
props
- This parameter is required.
-
getAttrArn
The Amazon Resource Name (ARN) of the target group. -
getAttrCreatedAt
The date and time that the target group was created, specified in ISO-8601 format. -
getAttrId
The ID of the target group. -
getAttrLastUpdatedAt
The date and time that the target group was last updated, specified in ISO-8601 format. -
getAttrStatus
The operation's status.You can retry the operation if the status is
CREATE_FAILED
. However, if you retry it while the status isCREATE_IN_PROGRESS
, there is no change in the status. -
getCfnProperties
- Overrides:
getCfnProperties
in classCfnResource
-
getTags
Tag Manager which manages the tags for this resource. -
getType
The type of target group. -
setType
The type of target group. -
getConfig
The target group configuration. -
setConfig
The target group configuration. -
setConfig
The target group configuration. -
getName
The name of the target group. -
setName
The name of the target group. -
getTagsRaw
The tags for the target group. -
setTagsRaw
The tags for the target group. -
getTargets
Describes a target. -
setTargets
Describes a target. -
setTargets
Describes a target.
-