Class: AWSCDK::ECS::CfnCapacityProvider::CapacityReservationRequestProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ecs/cfn_capacity_provider.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(reservation_group_arn: nil, reservation_preference: nil) ⇒ CapacityReservationRequestProperty

Returns a new instance of CapacityReservationRequestProperty.

Parameters:

  • reservation_group_arn (String, nil) (defaults to: nil)
  • reservation_preference (String, nil) (defaults to: nil)


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_arnString? (readonly)



835
836
837
# File 'ecs/cfn_capacity_provider.rb', line 835

def reservation_group_arn
  @reservation_group_arn
end

#reservation_preferenceString? (readonly)



838
839
840
# File 'ecs/cfn_capacity_provider.rb', line 838

def reservation_preference
  @reservation_preference
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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