Class: AWSCDK::LicenseManager::CfnLicense::BorrowConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
license_manager/cfn_license.rb

Overview

Details about a borrow configuration.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(allow_early_check_in:, max_time_to_live_in_minutes:) ⇒ BorrowConfigurationProperty

Returns a new instance of BorrowConfigurationProperty.

Parameters:

  • allow_early_check_in (Boolean, AWSCDK::IResolvable)

    Indicates whether early check-ins are allowed.

  • max_time_to_live_in_minutes (Numeric)

    Maximum time for the borrow configuration, in minutes.



674
675
676
677
678
679
# File 'license_manager/cfn_license.rb', line 674

def initialize(allow_early_check_in:, max_time_to_live_in_minutes:)
  @allow_early_check_in = allow_early_check_in
  Jsii::Type.check_type(@allow_early_check_in, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowEarlyCheckIn")
  @max_time_to_live_in_minutes = max_time_to_live_in_minutes
  Jsii::Type.check_type(@max_time_to_live_in_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxTimeToLiveInMinutes")
end

Instance Attribute Details

#allow_early_check_inBoolean, AWSCDK::IResolvable (readonly)

Indicates whether early check-ins are allowed.



685
686
687
# File 'license_manager/cfn_license.rb', line 685

def allow_early_check_in
  @allow_early_check_in
end

#max_time_to_live_in_minutesNumeric (readonly)

Maximum time for the borrow configuration, in minutes.



690
691
692
# File 'license_manager/cfn_license.rb', line 690

def max_time_to_live_in_minutes
  @max_time_to_live_in_minutes
end

Class Method Details

.jsii_propertiesObject



692
693
694
695
696
697
# File 'license_manager/cfn_license.rb', line 692

def self.jsii_properties
  {
    :allow_early_check_in => "allowEarlyCheckIn",
    :max_time_to_live_in_minutes => "maxTimeToLiveInMinutes",
  }
end

Instance Method Details

#to_jsiiObject



699
700
701
702
703
704
705
706
# File 'license_manager/cfn_license.rb', line 699

def to_jsii
  result = {}
  result.merge!({
    "allowEarlyCheckIn" => @allow_early_check_in,
    "maxTimeToLiveInMinutes" => @max_time_to_live_in_minutes,
  })
  result.compact
end