Class CfnTargetGroup
- All Implemented Interfaces:
IConstruct
,IDependable
,IInspectable
,software.amazon.jsii.JsiiSerializable
,software.constructs.IConstruct
AWS::VpcLattice::TargetGroup
.
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() .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 TypeClassDescriptionstatic final class
A fluent builder forCfnTargetGroup
.static interface
The health check configuration of a target group.static interface
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.amazon.awscdk.core.IConstruct
IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$Default
Nested classes/interfaces inherited from interface software.amazon.awscdk.core.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$Proxy
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
The CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionCfnTargetGroup
(Construct scope, String id, CfnTargetGroupProps props) Create a newAWS::VpcLattice::TargetGroup
.protected
CfnTargetGroup
(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protected
CfnTargetGroup
(software.amazon.jsii.JsiiObjectRef objRef) -
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()
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
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.core.CfnResource
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, isCfnResource, shouldSynthesize, toString, validateProperties
Methods inherited from class software.amazon.awscdk.core.CfnRefElement
getRef
Methods inherited from class software.amazon.awscdk.core.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalId
Methods inherited from class software.amazon.awscdk.core.Construct
getNode, isConstruct, onPrepare, onSynthesize, onValidate, prepare, synthesize, validate
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 Construct scope, @NotNull String id, @NotNull CfnTargetGroupProps props) Create a newAWS::VpcLattice::TargetGroup
.- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
props
-- resource properties.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspect
in interfaceIInspectable
- Parameters:
inspector
-- tree inspector to collect and process attributes.
-
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
The tags for the target group. -
getType
The type of target group. -
setType
The type of target group. -
getConfig
The target group configuration.If
type
is set toLAMBDA
, this parameter doesn't apply. -
setConfig
The target group configuration.If
type
is set toLAMBDA
, this parameter doesn't apply. -
setConfig
The target group configuration.If
type
is 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.
-
setName
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.
-
getTargets
Describes a target. -
setTargets
Describes a target. -
setTargets
Describes a target.
-