Class: AWSCDK::EC2::CfnInstance::LicenseSpecificationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
ec2/cfn_instance.rb

Overview

Specifies the license configuration to use.

LicenseSpecification is a property of the AWS::EC2::Instance resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(license_configuration_arn:) ⇒ LicenseSpecificationProperty

Returns a new instance of LicenseSpecificationProperty.

Parameters:

  • license_configuration_arn (String)

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



1847
1848
1849
1850
# File 'ec2/cfn_instance.rb', line 1847

def initialize(license_configuration_arn:)
  @license_configuration_arn = license_configuration_arn
  Jsii::Type.check_type(@license_configuration_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "licenseConfigurationArn")
end

Instance Attribute Details

#license_configuration_arnString (readonly)

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



1856
1857
1858
# File 'ec2/cfn_instance.rb', line 1856

def license_configuration_arn
  @license_configuration_arn
end

Class Method Details

.jsii_propertiesObject



1858
1859
1860
1861
1862
# File 'ec2/cfn_instance.rb', line 1858

def self.jsii_properties
  {
    :license_configuration_arn => "licenseConfigurationArn",
  }
end

Instance Method Details

#to_jsiiObject



1864
1865
1866
1867
1868
1869
1870
# File 'ec2/cfn_instance.rb', line 1864

def to_jsii
  result = {}
  result.merge!({
    "licenseConfigurationArn" => @license_configuration_arn,
  })
  result.compact
end