Class: AWSCDK::OpsWorks::CfnElasticLoadBalancerAttachmentProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ops_works/cfn_elastic_load_balancer_attachment_props.rb

Overview

Properties for defining a CfnElasticLoadBalancerAttachment.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(elastic_load_balancer_name:, layer_id:) ⇒ CfnElasticLoadBalancerAttachmentProps

Returns a new instance of CfnElasticLoadBalancerAttachmentProps.

Parameters:

  • elastic_load_balancer_name (String)

    The Elastic Load Balancing instance name.

  • layer_id (String)

    The OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.



11
12
13
14
15
16
# File 'ops_works/cfn_elastic_load_balancer_attachment_props.rb', line 11

def initialize(elastic_load_balancer_name:, layer_id:)
  @elastic_load_balancer_name = elastic_load_balancer_name
  Jsii::Type.check_type(@elastic_load_balancer_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "elasticLoadBalancerName")
  @layer_id = layer_id
  Jsii::Type.check_type(@layer_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "layerId")
end

Instance Attribute Details

#elastic_load_balancer_nameString (readonly)

The Elastic Load Balancing instance name.



22
23
24
# File 'ops_works/cfn_elastic_load_balancer_attachment_props.rb', line 22

def elastic_load_balancer_name
  @elastic_load_balancer_name
end

#layer_idString (readonly)

The OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.



27
28
29
# File 'ops_works/cfn_elastic_load_balancer_attachment_props.rb', line 27

def layer_id
  @layer_id
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'ops_works/cfn_elastic_load_balancer_attachment_props.rb', line 29

def self.jsii_properties
  {
    :elastic_load_balancer_name => "elasticLoadBalancerName",
    :layer_id => "layerId",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'ops_works/cfn_elastic_load_balancer_attachment_props.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "elasticLoadBalancerName" => @elastic_load_balancer_name,
    "layerId" => @layer_id,
  })
  result.compact
end