Class: AWSCDK::ServiceCatalog::CfnLaunchNotificationConstraintProps

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

Overview

Properties for defining a CfnLaunchNotificationConstraint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(notification_arns:, portfolio_id:, product_id:, accept_language: nil, description: nil) ⇒ CfnLaunchNotificationConstraintProps

Returns a new instance of CfnLaunchNotificationConstraintProps.

Parameters:

  • notification_arns (Array<String>)

    The notification ARNs.

  • portfolio_id (String)

    The portfolio identifier.

  • product_id (String)

    The product identifier.

  • 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_notification_constraint_props.rb', line 14

def initialize(notification_arns:, portfolio_id:, product_id:, accept_language: nil, description: nil)
  @notification_arns = notification_arns
  Jsii::Type.check_type(@notification_arns, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "notificationArns")
  @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")
  @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_notification_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_notification_constraint_props.rb', line 54

def description
  @description
end

#notification_arnsArray<String> (readonly)

The notification ARNs.



31
32
33
# File 'service_catalog/cfn_launch_notification_constraint_props.rb', line 31

def notification_arns
  @notification_arns
end

#portfolio_idString (readonly)

The portfolio identifier.



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

def portfolio_id
  @portfolio_id
end

#product_idString (readonly)

The product identifier.



41
42
43
# File 'service_catalog/cfn_launch_notification_constraint_props.rb', line 41

def product_id
  @product_id
end

Class Method Details

.jsii_propertiesObject



56
57
58
59
60
61
62
63
64
# File 'service_catalog/cfn_launch_notification_constraint_props.rb', line 56

def self.jsii_properties
  {
    :notification_arns => "notificationArns",
    :portfolio_id => "portfolioId",
    :product_id => "productId",
    :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_notification_constraint_props.rb', line 66

def to_jsii
  result = {}
  result.merge!({
    "notificationArns" => @notification_arns,
    "portfolioId" => @portfolio_id,
    "productId" => @product_id,
    "acceptLanguage" => @accept_language,
    "description" => @description,
  })
  result.compact
end