Class: AWSCDK::LicenseManager::CfnLicense::EntitlementProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::LicenseManager::CfnLicense::EntitlementProperty
- Defined in:
- license_manager/cfn_license.rb
Overview
Describes a resource entitled for use with a license.
Instance Attribute Summary collapse
-
#allow_check_in ⇒ Boolean, ...
readonly
Indicates whether check-ins are allowed.
-
#max_count ⇒ Numeric?
readonly
Maximum entitlement count.
-
#name ⇒ String
readonly
Entitlement name.
-
#overage ⇒ Boolean, ...
readonly
Indicates whether overages are allowed.
-
#unit ⇒ String
readonly
Entitlement unit.
-
#value ⇒ String?
readonly
Entitlement resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, unit:, allow_check_in: nil, max_count: nil, overage: nil, value: nil) ⇒ EntitlementProperty
constructor
A new instance of EntitlementProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, unit:, allow_check_in: nil, max_count: nil, overage: nil, value: nil) ⇒ EntitlementProperty
Returns a new instance of EntitlementProperty.
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_in ⇒ Boolean, ... (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_count ⇒ Numeric? (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 |
#name ⇒ String (readonly)
Entitlement name.
793 794 795 |
# File 'license_manager/cfn_license.rb', line 793 def name @name end |
#overage ⇒ Boolean, ... (readonly)
Indicates whether overages are allowed.
815 816 817 |
# File 'license_manager/cfn_license.rb', line 815 def overage @overage end |
#unit ⇒ String (readonly)
Entitlement unit.
798 799 800 |
# File 'license_manager/cfn_license.rb', line 798 def unit @unit end |
#value ⇒ String? (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_properties ⇒ Object
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_jsii ⇒ Object
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 |