Class: AWSCDK::ServiceCatalog::CfnServiceActionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ServiceCatalog::CfnServiceActionProps
- Defined in:
- service_catalog/cfn_service_action_props.rb
Overview
Properties for defining a CfnServiceAction.
Instance Attribute Summary collapse
-
#accept_language ⇒ String?
readonly
The language code.
-
#definition ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ServiceCatalog::CfnServiceAction::DefinitionParameterProperty>
readonly
A map that defines the self-service action.
-
#definition_type ⇒ String
readonly
The self-service action definition type.
-
#description ⇒ String?
readonly
The self-service action description.
-
#name ⇒ String
readonly
The self-service action name.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(definition:, definition_type:, name:, accept_language: nil, description: nil) ⇒ CfnServiceActionProps
constructor
A new instance of CfnServiceActionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(definition:, definition_type:, name:, accept_language: nil, description: nil) ⇒ CfnServiceActionProps
Returns a new instance of CfnServiceActionProps.
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_language ⇒ String? (readonly)
The language code.
en- English (default)jp- Japanesezh- Chinese
52 53 54 |
# File 'service_catalog/cfn_service_action_props.rb', line 52 def accept_language @accept_language end |
#definition ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ServiceCatalog::CfnServiceAction::DefinitionParameterProperty> (readonly)
A map that defines the self-service action.
31 32 33 |
# File 'service_catalog/cfn_service_action_props.rb', line 31 def definition @definition end |
#definition_type ⇒ String (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 |
#description ⇒ String? (readonly)
The self-service action description.
57 58 59 |
# File 'service_catalog/cfn_service_action_props.rb', line 57 def description @description end |
#name ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |