Class: AWSCDK::ServiceCatalog::CfnServiceActionProps

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

Overview

Properties for defining a CfnServiceAction.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(definition:, definition_type:, name:, accept_language: nil, description: nil) ⇒ CfnServiceActionProps

Returns a new instance of CfnServiceActionProps.

Parameters:



14
15
16
17
18
19
20
21
22
23
24
25
# File 'service_catalog/cfn_service_action_props.rb', line 14

def initialize(definition:, definition_type:, name:, accept_language: nil, description: nil)
  @definition = definition
  Jsii::Type.check_type(@definition, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfc2VydmljZWNhdGFsb2cuQ2ZuU2VydmljZUFjdGlvbi5EZWZpbml0aW9uUGFyYW1ldGVyUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "definition")
  @definition_type = definition_type
  Jsii::Type.check_type(@definition_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "definitionType")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @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.

  • en - English (default)
  • jp - Japanese
  • zh - Chinese


52
53
54
# File 'service_catalog/cfn_service_action_props.rb', line 52

def accept_language
  @accept_language
end

#definition_typeString (readonly)

The self-service action definition type.

For example, SSM_AUTOMATION .



38
39
40
# File 'service_catalog/cfn_service_action_props.rb', line 38

def definition_type
  @definition_type
end

#descriptionString? (readonly)

The self-service action description.



57
58
59
# File 'service_catalog/cfn_service_action_props.rb', line 57

def description
  @description
end

#nameString (readonly)

The self-service action name.



43
44
45
# File 'service_catalog/cfn_service_action_props.rb', line 43

def name
  @name
end

Class Method Details

.jsii_propertiesObject



59
60
61
62
63
64
65
66
67
# File 'service_catalog/cfn_service_action_props.rb', line 59

def self.jsii_properties
  {
    :definition => "definition",
    :definition_type => "definitionType",
    :name => "name",
    :accept_language => "acceptLanguage",
    :description => "description",
  }
end

Instance Method Details

#to_jsiiObject



69
70
71
72
73
74
75
76
77
78
79
# File 'service_catalog/cfn_service_action_props.rb', line 69

def to_jsii
  result = {}
  result.merge!({
    "definition" => @definition,
    "definitionType" => @definition_type,
    "name" => @name,
    "acceptLanguage" => @accept_language,
    "description" => @description,
  })
  result.compact
end