Class: AWSCDK::EC2::CfnLaunchTemplate::LicenseSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnLaunchTemplate::LicenseSpecificationProperty
- Defined in:
- ec2/cfn_launch_template.rb
Overview
Specifies a license configuration for an instance.
LicenseSpecification is a property of AWS::EC2::LaunchTemplate LaunchTemplateData .
Instance Attribute Summary collapse
-
#license_configuration_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the license configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(license_configuration_arn: nil) ⇒ LicenseSpecificationProperty
constructor
A new instance of LicenseSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(license_configuration_arn: nil) ⇒ LicenseSpecificationProperty
Returns a new instance of LicenseSpecificationProperty.
2636 2637 2638 2639 |
# File 'ec2/cfn_launch_template.rb', line 2636 def initialize(license_configuration_arn: nil) @license_configuration_arn = license_configuration_arn Jsii::Type.check_type(@license_configuration_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "licenseConfigurationArn") unless @license_configuration_arn.nil? end |
Instance Attribute Details
#license_configuration_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the license configuration.
2645 2646 2647 |
# File 'ec2/cfn_launch_template.rb', line 2645 def license_configuration_arn @license_configuration_arn end |
Class Method Details
.jsii_properties ⇒ Object
2647 2648 2649 2650 2651 |
# File 'ec2/cfn_launch_template.rb', line 2647 def self.jsii_properties { :license_configuration_arn => "licenseConfigurationArn", } end |
Instance Method Details
#to_jsii ⇒ Object
2653 2654 2655 2656 2657 2658 2659 |
# File 'ec2/cfn_launch_template.rb', line 2653 def to_jsii result = {} result.merge!({ "licenseConfigurationArn" => @license_configuration_arn, }) result.compact end |