Class: AWSCDK::Interfaces::AWSECS::CapacityProviderReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSECS::CapacityProviderReference
- Defined in:
- interfaces/awsecs/capacity_provider_reference.rb
Overview
A reference to a CapacityProvider resource.
Instance Attribute Summary collapse
-
#capacity_provider_name ⇒ String
readonly
The Name of the CapacityProvider resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(capacity_provider_name:) ⇒ CapacityProviderReference
constructor
A new instance of CapacityProviderReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(capacity_provider_name:) ⇒ CapacityProviderReference
Returns a new instance of CapacityProviderReference.
8 9 10 11 |
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 8 def initialize(capacity_provider_name:) @capacity_provider_name = capacity_provider_name Jsii::Type.check_type(@capacity_provider_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "capacityProviderName") end |
Instance Attribute Details
#capacity_provider_name ⇒ String (readonly)
The Name of the CapacityProvider resource.
16 17 18 |
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 16 def capacity_provider_name @capacity_provider_name end |
Class Method Details
.jsii_properties ⇒ Object
18 19 20 21 22 |
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 18 def self.jsii_properties { :capacity_provider_name => "capacityProviderName", } end |
Instance Method Details
#to_jsii ⇒ Object
24 25 26 27 28 29 30 |
# File 'interfaces/awsecs/capacity_provider_reference.rb', line 24 def to_jsii result = {} result.merge!({ "capacityProviderName" => @capacity_provider_name, }) result.compact end |