Class: AWSCDK::EC2::CfnLaunchTemplate::LicenseSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(license_configuration_arn: nil) ⇒ LicenseSpecificationProperty

Returns a new instance of LicenseSpecificationProperty.

Parameters:

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

    The Amazon Resource Name (ARN) of the license configuration.



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_arnString? (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_propertiesObject



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_jsiiObject



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