Class: AWSCDK::ServiceCatalog::CfnLaunchTemplateConstraintProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceCatalog::CfnLaunchTemplateConstraintProps
- Defined in:
- service_catalog/cfn_launch_template_constraint_props.rb
Overview
Properties for defining a CfnLaunchTemplateConstraint.
Instance Attribute Summary collapse
-
#accept_language ⇒ String?
readonly
The language code.
-
#description ⇒ String?
readonly
The description of the constraint.
-
#portfolio_id ⇒ String
readonly
The portfolio identifier.
-
#product_id ⇒ String
readonly
The product identifier.
-
#rules ⇒ String
readonly
The constraint rules.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(portfolio_id:, product_id:, rules:, accept_language: nil, description: nil) ⇒ CfnLaunchTemplateConstraintProps
constructor
A new instance of CfnLaunchTemplateConstraintProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(portfolio_id:, product_id:, rules:, accept_language: nil, description: nil) ⇒ CfnLaunchTemplateConstraintProps
Returns a new instance of CfnLaunchTemplateConstraintProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 14 def initialize(portfolio_id:, product_id:, rules:, accept_language: nil, description: nil) @portfolio_id = portfolio_id Jsii::Type.check_type(@portfolio_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "portfolioId") @product_id = product_id Jsii::Type.check_type(@product_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "productId") @rules = rules Jsii::Type.check_type(@rules, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rules") @accept_language = accept_language Jsii::Type.check_type(@accept_language, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "acceptLanguage") unless @accept_language.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? end |
Instance Attribute Details
#accept_language ⇒ String? (readonly)
The language code.
jp- Japanesezh- Chinese
49 50 51 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 49 def accept_language @accept_language end |
#description ⇒ String? (readonly)
The description of the constraint.
54 55 56 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 54 def description @description end |
#portfolio_id ⇒ String (readonly)
The portfolio identifier.
31 32 33 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 31 def portfolio_id @portfolio_id end |
#product_id ⇒ String (readonly)
The product identifier.
36 37 38 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 36 def product_id @product_id end |
#rules ⇒ String (readonly)
The constraint rules.
41 42 43 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 41 def rules @rules end |
Class Method Details
.jsii_properties ⇒ Object
56 57 58 59 60 61 62 63 64 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 56 def self.jsii_properties { :portfolio_id => "portfolioId", :product_id => "productId", :rules => "rules", :accept_language => "acceptLanguage", :description => "description", } end |
Instance Method Details
#to_jsii ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 |
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 66 def to_jsii result = {} result.merge!({ "portfolioId" => @portfolio_id, "productId" => @product_id, "rules" => @rules, "acceptLanguage" => @accept_language, "description" => @description, }) result.compact end |