Class: AWSCDK::ECS::CfnCapacityProvider::CapacityReservationRequestProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnCapacityProvider::CapacityReservationRequestProperty
- Defined in:
- ecs/cfn_capacity_provider.rb
Overview
Instance Attribute Summary collapse
- #reservation_group_arn ⇒ String? readonly
- #reservation_preference ⇒ String? readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(reservation_group_arn: nil, reservation_preference: nil) ⇒ CapacityReservationRequestProperty
constructor
A new instance of CapacityReservationRequestProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(reservation_group_arn: nil, reservation_preference: nil) ⇒ CapacityReservationRequestProperty
Returns a new instance of CapacityReservationRequestProperty.
826 827 828 829 830 831 |
# File 'ecs/cfn_capacity_provider.rb', line 826 def initialize(reservation_group_arn: nil, reservation_preference: nil) @reservation_group_arn = reservation_group_arn Jsii::Type.check_type(@reservation_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "reservationGroupArn") unless @reservation_group_arn.nil? @reservation_preference = reservation_preference Jsii::Type.check_type(@reservation_preference, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "reservationPreference") unless @reservation_preference.nil? end |
Instance Attribute Details
#reservation_group_arn ⇒ String? (readonly)
835 836 837 |
# File 'ecs/cfn_capacity_provider.rb', line 835 def reservation_group_arn @reservation_group_arn end |
#reservation_preference ⇒ String? (readonly)
838 839 840 |
# File 'ecs/cfn_capacity_provider.rb', line 838 def reservation_preference @reservation_preference end |
Class Method Details
.jsii_properties ⇒ Object
840 841 842 843 844 845 |
# File 'ecs/cfn_capacity_provider.rb', line 840 def self.jsii_properties { :reservation_group_arn => "reservationGroupArn", :reservation_preference => "reservationPreference", } end |
Instance Method Details
#to_jsii ⇒ Object
847 848 849 850 851 852 853 854 |
# File 'ecs/cfn_capacity_provider.rb', line 847 def to_jsii result = {} result.merge!({ "reservationGroupArn" => @reservation_group_arn, "reservationPreference" => @reservation_preference, }) result.compact end |