Class: AWSCDK::LicenseManager::CfnLicense::EntitlementProperty

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

Overview

Describes a resource entitled for use with a license.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, unit:, allow_check_in: nil, max_count: nil, overage: nil, value: nil) ⇒ EntitlementProperty

Returns a new instance of EntitlementProperty.

Parameters:

  • name (String)

    Entitlement name.

  • unit (String)

    Entitlement unit.

  • allow_check_in (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether check-ins are allowed.

  • max_count (Numeric, nil) (defaults to: nil)

    Maximum entitlement count.

  • overage (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether overages are allowed.

  • value (String, nil) (defaults to: nil)

    Entitlement resource.



774
775
776
777
778
779
780
781
782
783
784
785
786
787
# File 'license_manager/cfn_license.rb', line 774

def initialize(name:, unit:, allow_check_in: nil, max_count: nil, overage: nil, value: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @unit = unit
  Jsii::Type.check_type(@unit, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "unit")
  @allow_check_in = allow_check_in
  Jsii::Type.check_type(@allow_check_in, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "allowCheckIn") unless @allow_check_in.nil?
  @max_count = max_count
  Jsii::Type.check_type(@max_count, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxCount") unless @max_count.nil?
  @overage = overage
  Jsii::Type.check_type(@overage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "overage") unless @overage.nil?
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value") unless @value.nil?
end

Instance Attribute Details

#allow_check_inBoolean, ... (readonly)

Indicates whether check-ins are allowed.



803
804
805
# File 'license_manager/cfn_license.rb', line 803

def allow_check_in
  @allow_check_in
end

#max_countNumeric? (readonly)

Maximum entitlement count.

Use if the unit is not None.



810
811
812
# File 'license_manager/cfn_license.rb', line 810

def max_count
  @max_count
end

#nameString (readonly)

Entitlement name.



793
794
795
# File 'license_manager/cfn_license.rb', line 793

def name
  @name
end

#overageBoolean, ... (readonly)

Indicates whether overages are allowed.



815
816
817
# File 'license_manager/cfn_license.rb', line 815

def overage
  @overage
end

#unitString (readonly)

Entitlement unit.



798
799
800
# File 'license_manager/cfn_license.rb', line 798

def unit
  @unit
end

#valueString? (readonly)

Entitlement resource.

Use only if the unit is None.



822
823
824
# File 'license_manager/cfn_license.rb', line 822

def value
  @value
end

Class Method Details

.jsii_propertiesObject



824
825
826
827
828
829
830
831
832
833
# File 'license_manager/cfn_license.rb', line 824

def self.jsii_properties
  {
    :name => "name",
    :unit => "unit",
    :allow_check_in => "allowCheckIn",
    :max_count => "maxCount",
    :overage => "overage",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



835
836
837
838
839
840
841
842
843
844
845
846
# File 'license_manager/cfn_license.rb', line 835

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "unit" => @unit,
    "allowCheckIn" => @allow_check_in,
    "maxCount" => @max_count,
    "overage" => @overage,
    "value" => @value,
  })
  result.compact
end