Class: AWSCDK::LicenseManager::CfnLicenseProps

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

Overview

Properties for defining a CfnLicense.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(beneficiary:, consumption_configuration:, entitlements:, home_region:, issuer:, license_name:, product_name:, product_sku:, validity:, license_metadata: nil, status: nil, tags: nil) ⇒ CfnLicenseProps

Returns a new instance of CfnLicenseProps.

Parameters:



21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'license_manager/cfn_license_props.rb', line 21

def initialize(beneficiary:, consumption_configuration:, entitlements:, home_region:, issuer:, license_name:, product_name:, product_sku:, validity:, license_metadata: nil, status: nil, tags: nil)
  @beneficiary = beneficiary
  Jsii::Type.check_type(@beneficiary, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "beneficiary")
  @consumption_configuration = consumption_configuration.is_a?(Hash) ? ::AWSCDK::LicenseManager::CfnLicense::ConsumptionConfigurationProperty.new(**consumption_configuration.transform_keys(&:to_sym)) : consumption_configuration
  Jsii::Type.check_type(@consumption_configuration, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19saWNlbnNlbWFuYWdlci5DZm5MaWNlbnNlLkNvbnN1bXB0aW9uQ29uZmlndXJhdGlvblByb3BlcnR5In1dfX0=")), "consumptionConfiguration")
  @entitlements = entitlements
  Jsii::Type.check_type(@entitlements, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGljZW5zZW1hbmFnZXIuQ2ZuTGljZW5zZS5FbnRpdGxlbWVudFByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "entitlements")
  @home_region = home_region
  Jsii::Type.check_type(@home_region, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "homeRegion")
  @issuer = issuer.is_a?(Hash) ? ::AWSCDK::LicenseManager::CfnLicense::IssuerDataProperty.new(**issuer.transform_keys(&:to_sym)) : issuer
  Jsii::Type.check_type(@issuer, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19saWNlbnNlbWFuYWdlci5DZm5MaWNlbnNlLklzc3VlckRhdGFQcm9wZXJ0eSJ9XX19")), "issuer")
  @license_name = license_name
  Jsii::Type.check_type(@license_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "licenseName")
  @product_name = product_name
  Jsii::Type.check_type(@product_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "productName")
  @product_sku = product_sku
  Jsii::Type.check_type(@product_sku, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "productSku")
  @validity = validity.is_a?(Hash) ? ::AWSCDK::LicenseManager::CfnLicense::ValidityDateFormatProperty.new(**validity.transform_keys(&:to_sym)) : validity
  Jsii::Type.check_type(@validity, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19saWNlbnNlbWFuYWdlci5DZm5MaWNlbnNlLlZhbGlkaXR5RGF0ZUZvcm1hdFByb3BlcnR5In1dfX0=")), "validity")
  @license_metadata = 
  Jsii::Type.check_type(@license_metadata, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGljZW5zZW1hbmFnZXIuQ2ZuTGljZW5zZS5NZXRhZGF0YVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "licenseMetadata") unless @license_metadata.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
end

Instance Attribute Details

#beneficiaryString (readonly)

License beneficiary.



52
53
54
# File 'license_manager/cfn_license_props.rb', line 52

def beneficiary
  @beneficiary
end

#consumption_configurationAWSCDK::IResolvable, AWSCDK::LicenseManager::CfnLicense::ConsumptionConfigurationProperty (readonly)

Configuration for consumption of the license.



57
58
59
# File 'license_manager/cfn_license_props.rb', line 57

def consumption_configuration
  @consumption_configuration
end

#home_regionString (readonly)

Home Region of the license.



67
68
69
# File 'license_manager/cfn_license_props.rb', line 67

def home_region
  @home_region
end

#license_metadataAWSCDK::IResolvable, ... (readonly)

License metadata.



97
98
99
# File 'license_manager/cfn_license_props.rb', line 97

def 
  @license_metadata
end

#license_nameString (readonly)

License name.



77
78
79
# File 'license_manager/cfn_license_props.rb', line 77

def license_name
  @license_name
end

#product_nameString (readonly)

Product name.



82
83
84
# File 'license_manager/cfn_license_props.rb', line 82

def product_name
  @product_name
end

#product_skuString (readonly)

Product SKU.



87
88
89
# File 'license_manager/cfn_license_props.rb', line 87

def product_sku
  @product_sku
end

#statusString? (readonly)

License status.



102
103
104
# File 'license_manager/cfn_license_props.rb', line 102

def status
  @status
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A list of tags to attach.



107
108
109
# File 'license_manager/cfn_license_props.rb', line 107

def tags
  @tags
end

#validityAWSCDK::IResolvable, AWSCDK::LicenseManager::CfnLicense::ValidityDateFormatProperty (readonly)

Date and time range during which the license is valid, in ISO8601-UTC format.



92
93
94
# File 'license_manager/cfn_license_props.rb', line 92

def validity
  @validity
end

Class Method Details

.jsii_propertiesObject



109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
# File 'license_manager/cfn_license_props.rb', line 109

def self.jsii_properties
  {
    :beneficiary => "beneficiary",
    :consumption_configuration => "consumptionConfiguration",
    :entitlements => "entitlements",
    :home_region => "homeRegion",
    :issuer => "issuer",
    :license_name => "licenseName",
    :product_name => "productName",
    :product_sku => "productSku",
    :validity => "validity",
    :license_metadata => "licenseMetadata",
    :status => "status",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
# File 'license_manager/cfn_license_props.rb', line 126

def to_jsii
  result = {}
  result.merge!({
    "beneficiary" => @beneficiary,
    "consumptionConfiguration" => @consumption_configuration,
    "entitlements" => @entitlements,
    "homeRegion" => @home_region,
    "issuer" => @issuer,
    "licenseName" => @license_name,
    "productName" => @product_name,
    "productSku" => @product_sku,
    "validity" => @validity,
    "licenseMetadata" => @license_metadata,
    "status" => @status,
    "tags" => @tags,
  })
  result.compact
end