Show / Hide Table of Contents

Class CfnTargetGroupPropsMixin

Specifies a target group for an Application Load Balancer, a Network Load Balancer, or a Gateway Load Balancer.

Inheritance
object
Mixin
CfnTargetGroupPropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

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 AWS::ElasticLoadBalancingV2::TargetGroup.

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

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

ICfnTargetGroupMixinProps

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

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

PropertyMergeStrategy

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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

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
Mixin.ApplyTo(IConstruct)
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

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

bool

Overrides
Mixin.Supports(IConstruct)
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.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancingv2-targetgroup.html

CloudformationResource: AWS::ElasticLoadBalancingV2::TargetGroup

Mixin: true

ExampleMetadata: fixture=_generated

Implements

IMixin
Back to top Generated by DocFX