Class: AWSCDK::OpsWorks::CfnElasticLoadBalancerAttachmentProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::OpsWorks::CfnElasticLoadBalancerAttachmentProps
- Defined in:
- ops_works/cfn_elastic_load_balancer_attachment_props.rb
Overview
Properties for defining a CfnElasticLoadBalancerAttachment.
Instance Attribute Summary collapse
-
#elastic_load_balancer_name ⇒ String
readonly
The Elastic Load Balancing instance name.
-
#layer_id ⇒ String
readonly
The OpsWorks layer ID to which the Elastic Load Balancing load balancer is attached.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(elastic_load_balancer_name:, layer_id:) ⇒ CfnElasticLoadBalancerAttachmentProps
constructor
A new instance of CfnElasticLoadBalancerAttachmentProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(elastic_load_balancer_name:, layer_id:) ⇒ CfnElasticLoadBalancerAttachmentProps
Returns a new instance of CfnElasticLoadBalancerAttachmentProps.
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_name ⇒ String (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_id ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |