Class CfnTargetGroupPropsMixin
Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
Implements
Inherited Members
Namespace: Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins
Assembly: Amazon.CDK.Mixins.Preview.dll
Syntax (csharp)
public class CfnTargetGroupPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnTargetGroupPropsMixin Inherits Mixin Implements IMixin
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins;
var cfnTargetGroupPropsMixin = new CfnTargetGroupPropsMixin(new CfnTargetGroupMixinProps {
HealthCheckEnabled = false,
HealthCheckIntervalSeconds = 123,
HealthCheckPath = "healthCheckPath",
HealthCheckPort = "healthCheckPort",
HealthCheckProtocol = "healthCheckProtocol",
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
IpAddressType = "ipAddressType",
Matcher = new MatcherProperty {
GrpcCode = "grpcCode",
HttpCode = "httpCode"
},
Name = "name",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetControlPort = 123,
TargetGroupAttributes = new [] { new TargetGroupAttributeProperty {
Key = "key",
Value = "value"
} },
Targets = new [] { new TargetDescriptionProperty {
AvailabilityZone = "availabilityZone",
Id = "id",
Port = 123,
QuicServerId = "quicServerId"
} },
TargetType = "targetType",
UnhealthyThresholdCount = 123,
VpcId = "vpcId"
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Synopsis
Constructors
| CfnTargetGroupPropsMixin(ICfnTargetGroupMixinProps, ICfnPropertyMixinOptions?) | Create a mixin to apply properties to |
Properties
| CFN_PROPERTY_KEYS | Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer. |
| Props | Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer. |
| Strategy | Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer. |
Methods
| ApplyTo(IConstruct) | Apply the mixin properties to the construct. |
| Supports(IConstruct) | Check if this mixin supports the given construct. |
Constructors
CfnTargetGroupPropsMixin(ICfnTargetGroupMixinProps, ICfnPropertyMixinOptions?)
Create a mixin to apply properties to AWS::ElasticLoadBalancingV2::TargetGroup.
public CfnTargetGroupPropsMixin(ICfnTargetGroupMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
- props ICfnTargetGroupMixinProps
L1 properties to apply.
- options ICfnPropertyMixinOptions
Mixin options.
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
ExampleMetadata: fixture=_generated
Properties
CFN_PROPERTY_KEYS
Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value
string[]
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins;
var cfnTargetGroupPropsMixin = new CfnTargetGroupPropsMixin(new CfnTargetGroupMixinProps {
HealthCheckEnabled = false,
HealthCheckIntervalSeconds = 123,
HealthCheckPath = "healthCheckPath",
HealthCheckPort = "healthCheckPort",
HealthCheckProtocol = "healthCheckProtocol",
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
IpAddressType = "ipAddressType",
Matcher = new MatcherProperty {
GrpcCode = "grpcCode",
HttpCode = "httpCode"
},
Name = "name",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetControlPort = 123,
TargetGroupAttributes = new [] { new TargetGroupAttributeProperty {
Key = "key",
Value = "value"
} },
Targets = new [] { new TargetDescriptionProperty {
AvailabilityZone = "availabilityZone",
Id = "id",
Port = 123,
QuicServerId = "quicServerId"
} },
TargetType = "targetType",
UnhealthyThresholdCount = 123,
VpcId = "vpcId"
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Props
Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
protected virtual ICfnTargetGroupMixinProps Props { get; }
Property Value
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins;
var cfnTargetGroupPropsMixin = new CfnTargetGroupPropsMixin(new CfnTargetGroupMixinProps {
HealthCheckEnabled = false,
HealthCheckIntervalSeconds = 123,
HealthCheckPath = "healthCheckPath",
HealthCheckPort = "healthCheckPort",
HealthCheckProtocol = "healthCheckProtocol",
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
IpAddressType = "ipAddressType",
Matcher = new MatcherProperty {
GrpcCode = "grpcCode",
HttpCode = "httpCode"
},
Name = "name",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetControlPort = 123,
TargetGroupAttributes = new [] { new TargetGroupAttributeProperty {
Key = "key",
Value = "value"
} },
Targets = new [] { new TargetDescriptionProperty {
AvailabilityZone = "availabilityZone",
Id = "id",
Port = 123,
QuicServerId = "quicServerId"
} },
TargetType = "targetType",
UnhealthyThresholdCount = 123,
VpcId = "vpcId"
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Strategy
Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.
protected virtual PropertyMergeStrategy Strategy { get; }
Property Value
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
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.Mixins.Preview.Mixins;
using Amazon.CDK.Mixins.Preview.AWS.ElasticLoadBalancingV2.Mixins;
var cfnTargetGroupPropsMixin = new CfnTargetGroupPropsMixin(new CfnTargetGroupMixinProps {
HealthCheckEnabled = false,
HealthCheckIntervalSeconds = 123,
HealthCheckPath = "healthCheckPath",
HealthCheckPort = "healthCheckPort",
HealthCheckProtocol = "healthCheckProtocol",
HealthCheckTimeoutSeconds = 123,
HealthyThresholdCount = 123,
IpAddressType = "ipAddressType",
Matcher = new MatcherProperty {
GrpcCode = "grpcCode",
HttpCode = "httpCode"
},
Name = "name",
Port = 123,
Protocol = "protocol",
ProtocolVersion = "protocolVersion",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} },
TargetControlPort = 123,
TargetGroupAttributes = new [] { new TargetGroupAttributeProperty {
Key = "key",
Value = "value"
} },
Targets = new [] { new TargetDescriptionProperty {
AvailabilityZone = "availabilityZone",
Id = "id",
Port = 123,
QuicServerId = "quicServerId"
} },
TargetType = "targetType",
UnhealthyThresholdCount = 123,
VpcId = "vpcId"
}, new CfnPropertyMixinOptions {
Strategy = PropertyMergeStrategy.OVERRIDE
});
Methods
ApplyTo(IConstruct)
Apply the mixin properties to the construct.
public override IConstruct ApplyTo(IConstruct construct)
Parameters
- construct IConstruct
Returns
IConstruct
Overrides
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
ExampleMetadata: fixture=_generated
Supports(IConstruct)
Check if this mixin supports the given construct.
public override bool Supports(IConstruct construct)
Parameters
- construct IConstruct
Returns
Overrides
Remarks
Before you register a Lambda function as a target, you must create a AWS::Lambda::Permission resource that grants the Elastic Load Balancing service principal permission to invoke the Lambda function.
CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup
Mixin: true
ExampleMetadata: fixture=_generated