Show / Hide Table of Contents

Class CfnLoadBalancerPropsMixin

Specifies a Classic Load Balancer.

Inheritance
object
Mixin
CfnLoadBalancerPropsMixin
Implements
IMixin
Inherited Members
Mixin.IsMixin(object)
Namespace: Amazon.CDK.CfnPropertyMixins.AWS.ElasticLoadBalancing
Assembly: Amazon.CDK.CfnPropertyMixins.dll
Syntax (csharp)
public class CfnLoadBalancerPropsMixin : Mixin, IMixin
Syntax (vb)
Public Class CfnLoadBalancerPropsMixin Inherits Mixin Implements IMixin
Remarks

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

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.CfnPropertyMixins.AWS.ElasticLoadBalancing;
             using Amazon.CDK;

             var attributes;
             IMergeStrategy mergeStrategy;

             var cfnLoadBalancerPropsMixin = new CfnLoadBalancerPropsMixin(new CfnLoadBalancerMixinProps {
                 AccessLoggingPolicy = new AccessLoggingPolicyProperty {
                     EmitInterval = 123,
                     Enabled = false,
                     S3BucketName = "s3BucketName",
                     S3BucketPrefix = "s3BucketPrefix"
                 },
                 AppCookieStickinessPolicy = new [] { new AppCookieStickinessPolicyProperty {
                     CookieName = "cookieName",
                     PolicyName = "policyName"
                 } },
                 AvailabilityZones = new [] { "availabilityZones" },
                 ConnectionDrainingPolicy = new ConnectionDrainingPolicyProperty {
                     Enabled = false,
                     Timeout = 123
                 },
                 ConnectionSettings = new ConnectionSettingsProperty {
                     IdleTimeout = 123
                 },
                 CrossZone = false,
                 HealthCheck = new HealthCheckProperty {
                     HealthyThreshold = "healthyThreshold",
                     Interval = "interval",
                     Target = "target",
                     Timeout = "timeout",
                     UnhealthyThreshold = "unhealthyThreshold"
                 },
                 Instances = new [] { "instances" },
                 LbCookieStickinessPolicy = new [] { new LBCookieStickinessPolicyProperty {
                     CookieExpirationPeriod = "cookieExpirationPeriod",
                     PolicyName = "policyName"
                 } },
                 Listeners = new [] { new ListenersProperty {
                     InstancePort = "instancePort",
                     InstanceProtocol = "instanceProtocol",
                     LoadBalancerPort = "loadBalancerPort",
                     PolicyNames = new [] { "policyNames" },
                     Protocol = "protocol",
                     SslCertificateId = "sslCertificateId"
                 } },
                 LoadBalancerName = "loadBalancerName",
                 Policies = new [] { new PoliciesProperty {
                     Attributes = new [] { attributes },
                     InstancePorts = new [] { "instancePorts" },
                     LoadBalancerPorts = new [] { "loadBalancerPorts" },
                     PolicyName = "policyName",
                     PolicyType = "policyType"
                 } },
                 Scheme = "scheme",
                 SecurityGroups = new [] { "securityGroups" },
                 Subnets = new [] { "subnets" },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Synopsis

Constructors

CfnLoadBalancerPropsMixin(ICfnLoadBalancerMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::ElasticLoadBalancing::LoadBalancer.

Properties

CFN_PROPERTY_KEYS

Specifies a Classic Load Balancer.

Props

Specifies a Classic Load Balancer.

Strategy

Specifies a Classic Load Balancer.

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

Supports(IConstruct)

Check if this mixin supports the given construct.

Constructors

CfnLoadBalancerPropsMixin(ICfnLoadBalancerMixinProps, ICfnPropertyMixinOptions?)

Create a mixin to apply properties to AWS::ElasticLoadBalancing::LoadBalancer.

public CfnLoadBalancerPropsMixin(ICfnLoadBalancerMixinProps props, ICfnPropertyMixinOptions? options = null)
Parameters
props ICfnLoadBalancerMixinProps

L1 properties to apply.

options ICfnPropertyMixinOptions

Mixin options.

Remarks

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

Mixin: true

ExampleMetadata: fixture=_generated

Properties

CFN_PROPERTY_KEYS

Specifies a Classic Load Balancer.

protected static string[] CFN_PROPERTY_KEYS { get; }
Property Value

string[]

Remarks

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

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.CfnPropertyMixins.AWS.ElasticLoadBalancing;
             using Amazon.CDK;

             var attributes;
             IMergeStrategy mergeStrategy;

             var cfnLoadBalancerPropsMixin = new CfnLoadBalancerPropsMixin(new CfnLoadBalancerMixinProps {
                 AccessLoggingPolicy = new AccessLoggingPolicyProperty {
                     EmitInterval = 123,
                     Enabled = false,
                     S3BucketName = "s3BucketName",
                     S3BucketPrefix = "s3BucketPrefix"
                 },
                 AppCookieStickinessPolicy = new [] { new AppCookieStickinessPolicyProperty {
                     CookieName = "cookieName",
                     PolicyName = "policyName"
                 } },
                 AvailabilityZones = new [] { "availabilityZones" },
                 ConnectionDrainingPolicy = new ConnectionDrainingPolicyProperty {
                     Enabled = false,
                     Timeout = 123
                 },
                 ConnectionSettings = new ConnectionSettingsProperty {
                     IdleTimeout = 123
                 },
                 CrossZone = false,
                 HealthCheck = new HealthCheckProperty {
                     HealthyThreshold = "healthyThreshold",
                     Interval = "interval",
                     Target = "target",
                     Timeout = "timeout",
                     UnhealthyThreshold = "unhealthyThreshold"
                 },
                 Instances = new [] { "instances" },
                 LbCookieStickinessPolicy = new [] { new LBCookieStickinessPolicyProperty {
                     CookieExpirationPeriod = "cookieExpirationPeriod",
                     PolicyName = "policyName"
                 } },
                 Listeners = new [] { new ListenersProperty {
                     InstancePort = "instancePort",
                     InstanceProtocol = "instanceProtocol",
                     LoadBalancerPort = "loadBalancerPort",
                     PolicyNames = new [] { "policyNames" },
                     Protocol = "protocol",
                     SslCertificateId = "sslCertificateId"
                 } },
                 LoadBalancerName = "loadBalancerName",
                 Policies = new [] { new PoliciesProperty {
                     Attributes = new [] { attributes },
                     InstancePorts = new [] { "instancePorts" },
                     LoadBalancerPorts = new [] { "loadBalancerPorts" },
                     PolicyName = "policyName",
                     PolicyType = "policyType"
                 } },
                 Scheme = "scheme",
                 SecurityGroups = new [] { "securityGroups" },
                 Subnets = new [] { "subnets" },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Props

Specifies a Classic Load Balancer.

protected virtual ICfnLoadBalancerMixinProps Props { get; }
Property Value

ICfnLoadBalancerMixinProps

Remarks

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

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.CfnPropertyMixins.AWS.ElasticLoadBalancing;
             using Amazon.CDK;

             var attributes;
             IMergeStrategy mergeStrategy;

             var cfnLoadBalancerPropsMixin = new CfnLoadBalancerPropsMixin(new CfnLoadBalancerMixinProps {
                 AccessLoggingPolicy = new AccessLoggingPolicyProperty {
                     EmitInterval = 123,
                     Enabled = false,
                     S3BucketName = "s3BucketName",
                     S3BucketPrefix = "s3BucketPrefix"
                 },
                 AppCookieStickinessPolicy = new [] { new AppCookieStickinessPolicyProperty {
                     CookieName = "cookieName",
                     PolicyName = "policyName"
                 } },
                 AvailabilityZones = new [] { "availabilityZones" },
                 ConnectionDrainingPolicy = new ConnectionDrainingPolicyProperty {
                     Enabled = false,
                     Timeout = 123
                 },
                 ConnectionSettings = new ConnectionSettingsProperty {
                     IdleTimeout = 123
                 },
                 CrossZone = false,
                 HealthCheck = new HealthCheckProperty {
                     HealthyThreshold = "healthyThreshold",
                     Interval = "interval",
                     Target = "target",
                     Timeout = "timeout",
                     UnhealthyThreshold = "unhealthyThreshold"
                 },
                 Instances = new [] { "instances" },
                 LbCookieStickinessPolicy = new [] { new LBCookieStickinessPolicyProperty {
                     CookieExpirationPeriod = "cookieExpirationPeriod",
                     PolicyName = "policyName"
                 } },
                 Listeners = new [] { new ListenersProperty {
                     InstancePort = "instancePort",
                     InstanceProtocol = "instanceProtocol",
                     LoadBalancerPort = "loadBalancerPort",
                     PolicyNames = new [] { "policyNames" },
                     Protocol = "protocol",
                     SslCertificateId = "sslCertificateId"
                 } },
                 LoadBalancerName = "loadBalancerName",
                 Policies = new [] { new PoliciesProperty {
                     Attributes = new [] { attributes },
                     InstancePorts = new [] { "instancePorts" },
                     LoadBalancerPorts = new [] { "loadBalancerPorts" },
                     PolicyName = "policyName",
                     PolicyType = "policyType"
                 } },
                 Scheme = "scheme",
                 SecurityGroups = new [] { "securityGroups" },
                 Subnets = new [] { "subnets" },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Strategy

Specifies a Classic Load Balancer.

protected virtual IMergeStrategy Strategy { get; }
Property Value

IMergeStrategy

Remarks

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

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.CfnPropertyMixins.AWS.ElasticLoadBalancing;
             using Amazon.CDK;

             var attributes;
             IMergeStrategy mergeStrategy;

             var cfnLoadBalancerPropsMixin = new CfnLoadBalancerPropsMixin(new CfnLoadBalancerMixinProps {
                 AccessLoggingPolicy = new AccessLoggingPolicyProperty {
                     EmitInterval = 123,
                     Enabled = false,
                     S3BucketName = "s3BucketName",
                     S3BucketPrefix = "s3BucketPrefix"
                 },
                 AppCookieStickinessPolicy = new [] { new AppCookieStickinessPolicyProperty {
                     CookieName = "cookieName",
                     PolicyName = "policyName"
                 } },
                 AvailabilityZones = new [] { "availabilityZones" },
                 ConnectionDrainingPolicy = new ConnectionDrainingPolicyProperty {
                     Enabled = false,
                     Timeout = 123
                 },
                 ConnectionSettings = new ConnectionSettingsProperty {
                     IdleTimeout = 123
                 },
                 CrossZone = false,
                 HealthCheck = new HealthCheckProperty {
                     HealthyThreshold = "healthyThreshold",
                     Interval = "interval",
                     Target = "target",
                     Timeout = "timeout",
                     UnhealthyThreshold = "unhealthyThreshold"
                 },
                 Instances = new [] { "instances" },
                 LbCookieStickinessPolicy = new [] { new LBCookieStickinessPolicyProperty {
                     CookieExpirationPeriod = "cookieExpirationPeriod",
                     PolicyName = "policyName"
                 } },
                 Listeners = new [] { new ListenersProperty {
                     InstancePort = "instancePort",
                     InstanceProtocol = "instanceProtocol",
                     LoadBalancerPort = "loadBalancerPort",
                     PolicyNames = new [] { "policyNames" },
                     Protocol = "protocol",
                     SslCertificateId = "sslCertificateId"
                 } },
                 LoadBalancerName = "loadBalancerName",
                 Policies = new [] { new PoliciesProperty {
                     Attributes = new [] { attributes },
                     InstancePorts = new [] { "instancePorts" },
                     LoadBalancerPorts = new [] { "loadBalancerPorts" },
                     PolicyName = "policyName",
                     PolicyType = "policyType"
                 } },
                 Scheme = "scheme",
                 SecurityGroups = new [] { "securityGroups" },
                 Subnets = new [] { "subnets" },
                 Tags = new [] { new CfnTag {
                     Key = "key",
                     Value = "value"
                 } }
             }, new CfnPropertyMixinOptions {
                 Strategy = mergeStrategy
             });

Methods

ApplyTo(IConstruct)

Apply the mixin properties to the construct.

public override void ApplyTo(IConstruct construct)
Parameters
construct IConstruct
Overrides
Mixin.ApplyTo(IConstruct)
Remarks

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

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

If this resource has a public IP address and is also in a VPC that is defined in the same template, you must use the DependsOn attribute to declare a dependency on the VPC-gateway attachment.

See: http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-elasticloadbalancing-loadbalancer.html

CloudformationResource: AWS::ElasticLoadBalancing::LoadBalancer

Mixin: true

ExampleMetadata: fixture=_generated

Implements

Constructs.IMixin
Back to top Generated by DocFX