Class: AWSCDK::ElasticLoadBalancingv2::ApplicationLoadBalancer

Inherits:
BaseLoadBalancer
  • Object
show all
Includes:
IApplicationLoadBalancer
Defined in:
elastic_load_balancingv2/application_load_balancer.rb

Overview

Define an Application Load Balancer.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(scope, id, props) ⇒ ApplicationLoadBalancer

Returns a new instance of ApplicationLoadBalancer.

Parameters:



12
13
14
15
16
17
18
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 12

def initialize(scope, id, props)
  props = props.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::ApplicationLoadBalancerProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5BcHBsaWNhdGlvbkxvYWRCYWxhbmNlclByb3BzIn0=")), "props")
  Jsii::Object.instance_method(:initialize).bind(self).call(scope, id, props)
end

Class Method Details

.from_application_load_balancer_attributes(scope, id, attrs) ⇒ AWSCDK::ElasticLoadBalancingv2::IApplicationLoadBalancer

Import an existing Application Load Balancer.



87
88
89
90
91
92
93
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 87

def self.from_application_load_balancer_attributes(scope, id, attrs)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  attrs = attrs.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::ApplicationLoadBalancerAttributes.new(**attrs.transform_keys(&:to_sym)) : attrs
  Jsii::Type.check_type(attrs, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5BcHBsaWNhdGlvbkxvYWRCYWxhbmNlckF0dHJpYnV0ZXMifQ==")), "attrs")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer", "fromApplicationLoadBalancerAttributes", [scope, id, attrs])
end

.from_lookup(scope, id, options) ⇒ AWSCDK::ElasticLoadBalancingv2::IApplicationLoadBalancer

Look up an application load balancer.



101
102
103
104
105
106
107
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 101

def self.from_lookup(scope, id, options)
  Jsii::Type.check_type(scope, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLkNvbnN0cnVjdCJ9")), "scope")
  Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  options = options.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::ApplicationLoadBalancerLookupOptions.new(**options.transform_keys(&:to_sym)) : options
  Jsii::Type.check_type(options, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5BcHBsaWNhdGlvbkxvYWRCYWxhbmNlckxvb2t1cE9wdGlvbnMifQ==")), "options")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer", "fromLookup", [scope, id, options])
end

.jsii_overridable_methodsObject



20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 20

def self.jsii_overridable_methods
  {
    :node => { kind: :property, name: "node", is_optional: false },
    :env => { kind: :property, name: "env", is_optional: false },
    :physical_name => { kind: :property, name: "physicalName", is_optional: false },
    :stack => { kind: :property, name: "stack", is_optional: false },
    :load_balancer_arn => { kind: :property, name: "loadBalancerArn", is_optional: false },
    :load_balancer_canonical_hosted_zone_id => { kind: :property, name: "loadBalancerCanonicalHostedZoneId", is_optional: false },
    :load_balancer_dns_name => { kind: :property, name: "loadBalancerDnsName", is_optional: false },
    :load_balancer_full_name => { kind: :property, name: "loadBalancerFullName", is_optional: false },
    :load_balancer_name => { kind: :property, name: "loadBalancerName", is_optional: false },
    :load_balancer_ref => { kind: :property, name: "loadBalancerRef", is_optional: false },
    :load_balancer_security_groups => { kind: :property, name: "loadBalancerSecurityGroups", is_optional: false },
    :vpc => { kind: :property, name: "vpc", is_optional: true },
    :connections => { kind: :property, name: "connections", is_optional: false },
    :is_application_load_balancer => { kind: :property, name: "isApplicationLoadBalancer", is_optional: false },
    :listeners => { kind: :property, name: "listeners", is_optional: false },
    :metrics => { kind: :property, name: "metrics", is_optional: false },
    :ip_address_type => { kind: :property, name: "ipAddressType", is_optional: true },
    :to_string => { kind: :method, name: "toString", is_optional: false },
    :with => { kind: :method, name: "with", is_optional: false },
    :apply_cross_stack_reference_strength => { kind: :method, name: "applyCrossStackReferenceStrength", is_optional: false },
    :apply_removal_policy => { kind: :method, name: "applyRemovalPolicy", is_optional: false },
    :generate_physical_name => { kind: :method, name: "generatePhysicalName", is_optional: false },
    :get_resource_arn_attribute => { kind: :method, name: "getResourceArnAttribute", is_optional: false },
    :get_resource_name_attribute => { kind: :method, name: "getResourceNameAttribute", is_optional: false },
    :log_access_logs => { kind: :method, name: "logAccessLogs", is_optional: false },
    :remove_attribute => { kind: :method, name: "removeAttribute", is_optional: false },
    :resource_policy_principal => { kind: :method, name: "resourcePolicyPrincipal", is_optional: false },
    :set_attribute => { kind: :method, name: "setAttribute", is_optional: false },
    :validate_load_balancer => { kind: :method, name: "validateLoadBalancer", is_optional: false },
    :add_listener => { kind: :method, name: "addListener", is_optional: false },
    :add_redirect => { kind: :method, name: "addRedirect", is_optional: false },
    :add_security_group => { kind: :method, name: "addSecurityGroup", is_optional: false },
    :log_connection_logs => { kind: :method, name: "logConnectionLogs", is_optional: false },
    :metric => { kind: :method, name: "metric", is_optional: false },
    :metric_active_connection_count => { kind: :method, name: "metricActiveConnectionCount", is_optional: false },
    :metric_client_tls_negotiation_error_count => { kind: :method, name: "metricClientTlsNegotiationErrorCount", is_optional: false },
    :metric_consumed_lc_us => { kind: :method, name: "metricConsumedLCUs", is_optional: false },
    :metric_elb_auth_error => { kind: :method, name: "metricElbAuthError", is_optional: false },
    :metric_elb_auth_failure => { kind: :method, name: "metricElbAuthFailure", is_optional: false },
    :metric_elb_auth_latency => { kind: :method, name: "metricElbAuthLatency", is_optional: false },
    :metric_elb_auth_success => { kind: :method, name: "metricElbAuthSuccess", is_optional: false },
    :metric_http_code_elb => { kind: :method, name: "metricHttpCodeElb", is_optional: false },
    :metric_http_code_target => { kind: :method, name: "metricHttpCodeTarget", is_optional: false },
    :metric_http_fixed_response_count => { kind: :method, name: "metricHttpFixedResponseCount", is_optional: false },
    :metric_http_redirect_count => { kind: :method, name: "metricHttpRedirectCount", is_optional: false },
    :metric_http_redirect_url_limit_exceeded_count => { kind: :method, name: "metricHttpRedirectUrlLimitExceededCount", is_optional: false },
    :metric_ipv6_processed_bytes => { kind: :method, name: "metricIpv6ProcessedBytes", is_optional: false },
    :metric_ipv6_request_count => { kind: :method, name: "metricIpv6RequestCount", is_optional: false },
    :metric_new_connection_count => { kind: :method, name: "metricNewConnectionCount", is_optional: false },
    :metric_processed_bytes => { kind: :method, name: "metricProcessedBytes", is_optional: false },
    :metric_rejected_connection_count => { kind: :method, name: "metricRejectedConnectionCount", is_optional: false },
    :metric_request_count => { kind: :method, name: "metricRequestCount", is_optional: false },
    :metric_rule_evaluations => { kind: :method, name: "metricRuleEvaluations", is_optional: false },
    :metric_target_connection_error_count => { kind: :method, name: "metricTargetConnectionErrorCount", is_optional: false },
    :metric_target_response_time => { kind: :method, name: "metricTargetResponseTime", is_optional: false },
    :metric_target_tls_negotiation_error_count => { kind: :method, name: "metricTargetTLSNegotiationErrorCount", is_optional: false },
  }
end

.PROPERTY_INJECTION_IDString

Uniquely identifies this class.

Returns:

  • (String)


221
222
223
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 221

def self.PROPERTY_INJECTION_ID()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_elasticloadbalancingv2.ApplicationLoadBalancer", "PROPERTY_INJECTION_ID")
end

Instance Method Details

#add_listener(id, props) ⇒ AWSCDK::ElasticLoadBalancingv2::ApplicationListener

Add a new listener to this load balancer.



414
415
416
417
418
419
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 414

def add_listener(id, props)
  Jsii::Type.check_type(id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "id")
  props = props.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::BaseApplicationListenerProps.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5CYXNlQXBwbGljYXRpb25MaXN0ZW5lclByb3BzIn0=")), "props")
  jsii_call_method("addListener", [id, props])
end

#add_redirect(props = nil) ⇒ AWSCDK::ElasticLoadBalancingv2::ApplicationListener

Add a redirection listener to this load balancer.



425
426
427
428
429
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 425

def add_redirect(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::ApplicationLoadBalancerRedirectConfig.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5BcHBsaWNhdGlvbkxvYWRCYWxhbmNlclJlZGlyZWN0Q29uZmlnIn0=")), "props") unless props.nil?
  jsii_call_method("addRedirect", [props])
end

#add_security_group(security_group) ⇒ void

This method returns an undefined value.

Add a security group to this load balancer.

Parameters:



435
436
437
438
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 435

def add_security_group(security_group)
  Jsii::Type.check_type(security_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWMyLklTZWN1cml0eUdyb3VwIn0=")), "securityGroup")
  jsii_call_method("addSecurityGroup", [security_group])
end

#apply_cross_stack_reference_strength(strength) ⇒ void

This method returns an undefined value.

Override the cross-stack reference strength for this resource.

When set, any cross-stack reference to this resource will use the specified mechanism instead of the global default determined by the @aws-cdk/core:defaultCrossStackReferences context key. This is useful for selectively weakening specific references to avoid the "deadly embrace" problem without changing the app-wide default.

Parameters:



307
308
309
310
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 307

def apply_cross_stack_reference_strength(strength)
  Jsii::Type.check_type(strength, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZWZlcmVuY2VTdHJlbmd0aCJ9")), "strength")
  jsii_call_method("applyCrossStackReferenceStrength", [strength])
end

#apply_removal_policy(policy) ⇒ void

This method returns an undefined value.

Apply the given removal policy to this resource.

The Removal Policy controls what happens to this resource when it stops being managed by CloudFormation, either because you've removed it from the CDK application or because you've made a change that requires the resource to be replaced.

The resource can be deleted (RemovalPolicy.DESTROY), or left in your AWS account for data recovery and cleanup later (RemovalPolicy.RETAIN).

Parameters:



324
325
326
327
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 324

def apply_removal_policy(policy)
  Jsii::Type.check_type(policy, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5SZW1vdmFsUG9saWN5In0=")), "policy")
  jsii_call_method("applyRemovalPolicy", [policy])
end

#connectionsAWSCDK::EC2::Connections

The network connections associated with this resource.



228
229
230
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 228

def connections()
  jsii_get_property("connections")
end

#envAWSCDK::Interfaces::ResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.



127
128
129
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 127

def env()
  jsii_get_property("env")
end

#generate_physical_nameString

Returns:

  • (String)


330
331
332
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 330

def generate_physical_name()
  jsii_call_method("generatePhysicalName", [])
end

#get_resource_arn_attribute(arn_attr, arn_components) ⇒ String

Returns an environment-sensitive token that should be used for the resource's "ARN" attribute (e.g. bucket.bucketArn).

Normally, this token will resolve to arn_attr, but if the resource is referenced across environments, arn_components will be used to synthesize a concrete ARN with the resource's physical name. Make sure to reference this.physicalName in arn_components.

Parameters:

  • arn_attr (String)

    The CFN attribute which resolves to the ARN of the resource.

  • arn_components (AWSCDK::ARNComponents)

    The format of the ARN of this resource.

Returns:

  • (String)


344
345
346
347
348
349
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 344

def get_resource_arn_attribute(arn_attr, arn_components)
  Jsii::Type.check_type(arn_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "arnAttr")
  arn_components = arn_components.is_a?(Hash) ? ::AWSCDK::ARNComponents.new(**arn_components.transform_keys(&:to_sym)) : arn_components
  Jsii::Type.check_type(arn_components, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5Bcm5Db21wb25lbnRzIn0=")), "arnComponents")
  jsii_call_method("getResourceArnAttribute", [arn_attr, arn_components])
end

#get_resource_name_attribute(name_attr) ⇒ String

Returns an environment-sensitive token that should be used for the resource's "name" attribute (e.g. bucket.bucketName).

Normally, this token will resolve to name_attr, but if the resource is referenced across environments, it will be resolved to this.physicalName, which will be a concrete name.

Parameters:

  • name_attr (String)

    The CFN attribute which resolves to the resource's name.

Returns:

  • (String)


359
360
361
362
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 359

def get_resource_name_attribute(name_attr)
  Jsii::Type.check_type(name_attr, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "nameAttr")
  jsii_call_method("getResourceNameAttribute", [name_attr])
end

#ip_address_typeAWSCDK::ElasticLoadBalancingv2::IPAddressType?

The IP Address Type for this load balancer.

If the @aws-cdk/aws-elasticloadbalancingV2:albDualstackWithoutPublicIpv4SecurityGroupRulesDefault feature flag is set (the default for new projects), and add_listener() is called with open: true, the load balancer's security group will automatically include both IPv4 and IPv6 ingress rules when using IpAddressType.DUAL_STACK_WITHOUT_PUBLIC_IPV4.

For existing projects that only have IPv4 rules, you can opt-in to IPv6 ingress rules by enabling the feature flag in your cdk.json file. Note that enabling this feature flag will modify existing security group rules.



270
271
272
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 270

def ip_address_type()
  jsii_get_property("ipAddressType")
end

#is_application_load_balancerBoolean

Indicates that this is an Application Load Balancer.

Will always return true, but is necessary to prevent accidental structural equality in TypeScript.

Returns:

  • (Boolean)


238
239
240
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 238

def is_application_load_balancer()
  jsii_get_property("isApplicationLoadBalancer")
end

#listenersArray<AWSCDK::ElasticLoadBalancingv2::ApplicationListener>

A list of listeners that have been added to the load balancer.

This list is only valid for owned constructs.



247
248
249
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 247

def listeners()
  jsii_get_property("listeners")
end

#load_balancer_arnString

The ARN of this load balancer.

Example value: arn:aws:elasticloadbalancing:us-west-2:123456789012:loadbalancer/app/my-internal-load-balancer/50dc6c495c0c9188

Returns:

  • (String)


157
158
159
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 157

def load_balancer_arn()
  jsii_get_property("loadBalancerArn")
end

#load_balancer_canonical_hosted_zone_idString

The canonical hosted zone ID of this load balancer.

Example value: Z2P70J7EXAMPLE

Returns:

  • (String)


166
167
168
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 166

def load_balancer_canonical_hosted_zone_id()
  jsii_get_property("loadBalancerCanonicalHostedZoneId")
end

#load_balancer_dns_nameString

The DNS name of this load balancer.

Example value: my-load-balancer-424835706.us-west-2.elb.amazonaws.com

Returns:

  • (String)


175
176
177
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 175

def load_balancer_dns_name()
  jsii_get_property("loadBalancerDnsName")
end

#load_balancer_full_nameString

The full name of this load balancer.

Example value: app/my-load-balancer/50dc6c495c0c9188

Returns:

  • (String)


184
185
186
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 184

def load_balancer_full_name()
  jsii_get_property("loadBalancerFullName")
end

#load_balancer_nameString

The name of this load balancer.

Example value: my-load-balancer

Returns:

  • (String)


193
194
195
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 193

def load_balancer_name()
  jsii_get_property("loadBalancerName")
end

#load_balancer_refAWSCDK::Interfaces::AWSElasticloadbalancingv2::LoadBalancerReference

A reference to this load balancer.



200
201
202
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 200

def load_balancer_ref()
  jsii_get_property("loadBalancerRef")
end

#load_balancer_security_groupsArray<String>

Returns:

  • (Array<String>)


205
206
207
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 205

def load_balancer_security_groups()
  jsii_get_property("loadBalancerSecurityGroups")
end

#log_access_logs(bucket, prefix = nil) ⇒ void

This method returns an undefined value.

Enable access logging for this load balancer.

A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks. See https://docs.aws.amazon.com/cdk/latest/guide/environments.html

Parameters:



372
373
374
375
376
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 372

def log_access_logs(bucket, prefix = nil)
  Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket")
  Jsii::Type.check_type(prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless prefix.nil?
  jsii_call_method("logAccessLogs", [bucket, prefix])
end

#log_connection_logs(bucket, prefix = nil) ⇒ void

This method returns an undefined value.

Enable connection logging for this load balancer.

A region must be specified on the stack containing the load balancer; you cannot enable logging on environment-agnostic stacks.

Parameters:

See Also:



449
450
451
452
453
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 449

def log_connection_logs(bucket, prefix = nil)
  Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket")
  Jsii::Type.check_type(prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "prefix") unless prefix.nil?
  jsii_call_method("logConnectionLogs", [bucket, prefix])
end

#metric(metric_name, props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.custom instead

Note:

Default: Average over 5 minutes

Return the given named metric for this Application Load Balancer.

Parameters:

Returns:



462
463
464
465
466
467
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 462

def metric(metric_name, props = nil)
  Jsii::Type.check_type(metric_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "metricName")
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metric", [metric_name, props])
end

#metric_active_connection_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.activeConnectionCount instead

Note:

Default: Sum over 5 minutes

The total number of concurrent TCP connections active from clients to the load balancer and from the load balancer to targets.

Parameters:

Returns:



475
476
477
478
479
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 475

def metric_active_connection_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricActiveConnectionCount", [props])
end

#metric_client_tls_negotiation_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.clientTlsNegotiationErrorCount instead

Note:

Default: Sum over 5 minutes

The number of TLS connections initiated by the client that did not establish a session with the load balancer.

Possible causes include a mismatch of ciphers or protocols.

Parameters:

Returns:



490
491
492
493
494
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 490

def metric_client_tls_negotiation_error_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricClientTlsNegotiationErrorCount", [props])
end

#metric_consumed_lc_us(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.consumedLCUs instead

Note:

Default: Sum over 5 minutes

The number of load balancer capacity units (LCU) used by your load balancer.

Parameters:

Returns:



502
503
504
505
506
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 502

def metric_consumed_lc_us(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricConsumedLCUs", [props])
end

#metric_elb_auth_error(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.elbAuthError instead

Note:

Default: Sum over 5 minutes

The number of user authentications that could not be completed.

Because an authenticate action was misconfigured, the load balancer couldn't establish a connection with the IdP, or the load balancer couldn't complete the authentication flow due to an internal error.

Parameters:

Returns:



518
519
520
521
522
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 518

def metric_elb_auth_error(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricElbAuthError", [props])
end

#metric_elb_auth_failure(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.elbAuthFailure instead

Note:

Default: Sum over 5 minutes

The number of user authentications that could not be completed because the IdP denied access to the user or an authorization code was used more than once.

Parameters:

Returns:



530
531
532
533
534
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 530

def metric_elb_auth_failure(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricElbAuthFailure", [props])
end

#metric_elb_auth_latency(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.elbAuthLatency instead

Note:

Default: Average over 5 minutes

The time elapsed, in milliseconds, to query the IdP for the ID token and user info.

If one or more of these operations fail, this is the time to failure.

Parameters:

Returns:



544
545
546
547
548
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 544

def metric_elb_auth_latency(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricElbAuthLatency", [props])
end

#metric_elb_auth_success(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.elbAuthSuccess instead

Note:

Default: Sum over 5 minutes

The number of authenticate actions that were successful.

This metric is incremented at the end of the authentication workflow, after the load balancer has retrieved the user claims from the IdP.

Parameters:

Returns:



559
560
561
562
563
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 559

def metric_elb_auth_success(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricElbAuthSuccess", [props])
end

#metric_http_code_elb(code, props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.httpCodeElb instead

Note:

Default: Sum over 5 minutes

The number of HTTP 3xx/4xx/5xx codes that originate from the load balancer.

This does not include any response codes generated by the targets.



574
575
576
577
578
579
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 574

def metric_http_code_elb(code, props = nil)
  Jsii::Type.check_type(code, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5IdHRwQ29kZUVsYiJ9")), "code")
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricHttpCodeElb", [code, props])
end

#metric_http_code_target(code, props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.httpCodeTarget instead

Note:

Default: Sum over 5 minutes

The number of HTTP 2xx/3xx/4xx/5xx response codes generated by all targets in the load balancer.

This does not include any response codes generated by the load balancer.



590
591
592
593
594
595
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 590

def metric_http_code_target(code, props = nil)
  Jsii::Type.check_type(code, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5IdHRwQ29kZVRhcmdldCJ9")), "code")
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricHttpCodeTarget", [code, props])
end

#metric_http_fixed_response_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.httpFixedResponseCount instead

Note:

Default: Sum over 5 minutes

The number of fixed-response actions that were successful.

Parameters:

Returns:



603
604
605
606
607
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 603

def metric_http_fixed_response_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricHttpFixedResponseCount", [props])
end

#metric_http_redirect_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.httpRedirectCount instead

Note:

Default: Sum over 5 minutes

The number of redirect actions that were successful.

Parameters:

Returns:



615
616
617
618
619
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 615

def metric_http_redirect_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricHttpRedirectCount", [props])
end

#metric_http_redirect_url_limit_exceeded_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.httpRedirectUrlLimitExceededCount instead

Note:

Default: Sum over 5 minutes

The number of redirect actions that couldn't be completed because the URL in the response location header is larger than 8K.

Parameters:

Returns:



627
628
629
630
631
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 627

def metric_http_redirect_url_limit_exceeded_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricHttpRedirectUrlLimitExceededCount", [props])
end

#metric_ipv6_processed_bytes(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.ipv6ProcessedBytes instead

Note:

Default: Sum over 5 minutes

The total number of bytes processed by the load balancer over IPv6.

Parameters:

Returns:



639
640
641
642
643
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 639

def metric_ipv6_processed_bytes(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricIpv6ProcessedBytes", [props])
end

#metric_ipv6_request_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.ipv6RequestCount instead

Note:

Default: Sum over 5 minutes

The number of IPv6 requests received by the load balancer.

Parameters:

Returns:



651
652
653
654
655
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 651

def metric_ipv6_request_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricIpv6RequestCount", [props])
end

#metric_new_connection_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.newConnectionCount instead

Note:

Default: Sum over 5 minutes

The total number of new TCP connections established from clients to the load balancer and from the load balancer to targets.

Parameters:

Returns:



663
664
665
666
667
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 663

def metric_new_connection_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricNewConnectionCount", [props])
end

#metric_processed_bytes(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.processedBytes instead

Note:

Default: Sum over 5 minutes

The total number of bytes processed by the load balancer over IPv4 and IPv6.

Parameters:

Returns:



675
676
677
678
679
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 675

def metric_processed_bytes(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricProcessedBytes", [props])
end

#metric_rejected_connection_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.rejectedConnectionCount instead

Note:

Default: Sum over 5 minutes

The number of connections that were rejected because the load balancer had reached its maximum number of connections.

Parameters:

Returns:



687
688
689
690
691
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 687

def metric_rejected_connection_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricRejectedConnectionCount", [props])
end

#metric_request_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.requestCount instead

Note:

Default: Sum over 5 minutes

The number of requests processed over IPv4 and IPv6.

This count includes only the requests with a response generated by a target of the load balancer.

Parameters:

Returns:



701
702
703
704
705
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 701

def metric_request_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricRequestCount", [props])
end

#metric_rule_evaluations(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.ruleEvaluations instead

Note:

Default: Sum over 5 minutes

The number of rules processed by the load balancer given a request rate averaged over an hour.

Parameters:

Returns:



713
714
715
716
717
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 713

def metric_rule_evaluations(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricRuleEvaluations", [props])
end

#metric_target_connection_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.targetConnectionErrorCount instead

Note:

Default: Sum over 5 minutes

The number of connections that were not successfully established between the load balancer and target.

Parameters:

Returns:



725
726
727
728
729
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 725

def metric_target_connection_error_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricTargetConnectionErrorCount", [props])
end

#metric_target_response_time(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.targetResponseTime instead

Note:

Default: Average over 5 minutes

The time elapsed, in seconds, after the request leaves the load balancer until a response from the target is received.

Parameters:

Returns:



737
738
739
740
741
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 737

def metric_target_response_time(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricTargetResponseTime", [props])
end

#metric_target_tls_negotiation_error_count(props = nil) ⇒ AWSCDK::CloudWatch::Metric

Deprecated.

Use ApplicationLoadBalancer.metrics.targetTLSNegotiationErrorCount instead

Note:

Default: Sum over 5 minutes

The number of TLS connections initiated by the load balancer that did not establish a session with the target.

Possible causes include a mismatch of ciphers or protocols.

Parameters:

Returns:



751
752
753
754
755
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 751

def metric_target_tls_negotiation_error_count(props = nil)
  props = props.is_a?(Hash) ? ::AWSCDK::CloudWatch::MetricOptions.new(**props.transform_keys(&:to_sym)) : props
  Jsii::Type.check_type(props, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWR3YXRjaC5NZXRyaWNPcHRpb25zIn0=")), "props") unless props.nil?
  jsii_call_method("metricTargetTLSNegotiationErrorCount", [props])
end

#metricsAWSCDK::ElasticLoadBalancingv2::IApplicationLoadBalancerMetrics

All metrics available for this load balancer.



254
255
256
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 254

def metrics()
  jsii_get_property("metrics")
end

#nodeConstructs::Node

The tree node.

Returns:

  • (Constructs::Node)


112
113
114
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 112

def node()
  jsii_get_property("node")
end

#physical_nameString

Returns a string-encoded token that resolves to the physical name that should be passed to the CloudFormation resource.

This value will resolve to one of the following:

  • a concrete value (e.g. "my-awesome-bucket")
  • undefined, when a name should be generated by CloudFormation
  • a concrete name generated automatically during synthesis, in cross-environment scenarios.

Returns:

  • (String)


141
142
143
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 141

def physical_name()
  jsii_get_property("physicalName")
end

#remove_attribute(key) ⇒ void

This method returns an undefined value.

Remove an attribute from the load balancer.

Parameters:

  • key (String)


382
383
384
385
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 382

def remove_attribute(key)
  Jsii::Type.check_type(key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  jsii_call_method("removeAttribute", [key])
end

#resource_policy_principalAWSCDK::IAM::IPrincipal



388
389
390
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 388

def resource_policy_principal()
  jsii_call_method("resourcePolicyPrincipal", [])
end

#set_attribute(key, value = nil) ⇒ void

This method returns an undefined value.

Set a non-standard attribute on the load balancer.



398
399
400
401
402
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 398

def set_attribute(key, value = nil)
  Jsii::Type.check_type(key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "key")
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless value.nil?
  jsii_call_method("setAttribute", [key, value])
end

#stackAWSCDK::Stack

The stack in which this resource is defined.

Returns:



148
149
150
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 148

def stack()
  jsii_get_property("stack")
end

#to_stringString

Returns a string representation of this construct.

Returns:

  • (String)


277
278
279
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 277

def to_string()
  jsii_call_method("toString", [])
end

#validate_load_balancerArray<String>

Returns:

  • (Array<String>)


405
406
407
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 405

def validate_load_balancer()
  jsii_call_method("validateLoadBalancer", [])
end

#vpcAWSCDK::EC2::IVPC?

The VPC this load balancer has been created in.

This property is always defined (not null or undefined) for sub-classes of BaseLoadBalancer.

Returns:



214
215
216
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 214

def vpc()
  jsii_get_property("vpc")
end

#with(*mixins) ⇒ Constructs::IConstruct

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited. Use multiple with() calls if subsequent mixins should apply to added constructs.

Parameters:

  • mixins (Array<Constructs::IMixin>)

Returns:

  • (Constructs::IConstruct)


290
291
292
293
294
295
# File 'elastic_load_balancingv2/application_load_balancer.rb', line 290

def with(*mixins)
  mixins.each_with_index do |item, index|
    Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]")
  end
  jsii_call_method("with", [*mixins])
end