Class: AWSCDK::ServiceCatalog::CfnLaunchTemplateConstraintProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
service_catalog/cfn_launch_template_constraint_props.rb

Overview

Properties for defining a CfnLaunchTemplateConstraint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(portfolio_id:, product_id:, rules:, accept_language: nil, description: nil) ⇒ CfnLaunchTemplateConstraintProps

Returns a new instance of CfnLaunchTemplateConstraintProps.

Parameters:

  • portfolio_id (String)

    The portfolio identifier.

  • product_id (String)

    The product identifier.

  • rules (String)

    The constraint rules.

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

    The language code.

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

    The description of the constraint.



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_languageString? (readonly)

The language code.

  • jp - Japanese
  • zh - Chinese


49
50
51
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 49

def accept_language
  @accept_language
end

#descriptionString? (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_idString (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_idString (readonly)

The product identifier.



36
37
38
# File 'service_catalog/cfn_launch_template_constraint_props.rb', line 36

def product_id
  @product_id
end

#rulesString (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_propertiesObject



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_jsiiObject



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