Class CfnTargetGroupProps
Properties for defining a CfnTargetGroup
.
Inheritance
System.Object
CfnTargetGroupProps
Implements
Namespace: Amazon.CDK.AWS.VpcLattice
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class CfnTargetGroupProps : Object, ICfnTargetGroupProps
Syntax (vb)
Public Class CfnTargetGroupProps
Inherits Object
Implements ICfnTargetGroupProps
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.VpcLattice;
var cfnTargetGroupProps = new CfnTargetGroupProps {
Type = "type",
// the properties below are optional
Config = new TargetGroupConfigProperty {
HealthCheck = new HealthCheckConfigProperty {
Enabled = false,
HealthCheckIntervalSeconds = 123,
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
Matcher = new MatcherProperty {
HttpCode = "httpCode"
},
Path = "path",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
UnhealthyThresholdCount = 123
},
IpAddressType = "ipAddressType",
LambdaEventStructureVersion = "lambdaEventStructureVersion",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
VpcIdentifier = "vpcIdentifier"
},
Name = "name",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
Targets = new [] { new TargetProperty {
Id = "id",
// the properties below are optional
Port = 123
} }
};
Synopsis
Constructors
CfnTargetGroupProps() |
Properties
Config | The target group configuration. |
Name | The name of the target group. |
Tags | The tags for the target group. |
Targets | Describes a target. |
Type | The type of target group. |
Constructors
CfnTargetGroupProps()
public CfnTargetGroupProps()
Properties
Config
The target group configuration.
public object Config { get; set; }
Property Value
System.Object
Remarks
Name
The name of the target group.
public string Name { get; set; }
Property Value
System.String
Remarks
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.
Tags
Targets
Describes a target.
public object Targets { get; set; }
Property Value
System.Object
Remarks
Type
The type of target group.
public string Type { get; set; }
Property Value
System.String