Class: AWSCDK::Codepipeline::CustomActionProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Codepipeline::CustomActionProperty
- Defined in:
- codepipeline/custom_action_property.rb
Overview
The creation attributes used for defining a configuration property of a custom Action.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
The description of the property.
-
#key ⇒ Boolean?
readonly
Whether this property is a key.
-
#name ⇒ String
readonly
The name of the property.
-
#queryable ⇒ Boolean?
readonly
Whether this property is queryable.
-
#required ⇒ Boolean
readonly
Whether this property is required.
-
#secret ⇒ Boolean?
readonly
Whether this property is secret, like a password, or access key.
-
#type ⇒ String?
readonly
The type of the property, like 'String', 'Number', or 'Boolean'.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name:, required:, description: nil, key: nil, queryable: nil, secret: nil, type: nil) ⇒ CustomActionProperty
constructor
A new instance of CustomActionProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name:, required:, description: nil, key: nil, queryable: nil, secret: nil, type: nil) ⇒ CustomActionProperty
Returns a new instance of CustomActionProperty.
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
# File 'codepipeline/custom_action_property.rb', line 14 def initialize(name:, required:, description: nil, key: nil, queryable: nil, secret: nil, type: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @required = required Jsii::Type.check_type(@required, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "required") @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @key = key Jsii::Type.check_type(@key, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "key") unless @key.nil? @queryable = queryable Jsii::Type.check_type(@queryable, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "queryable") unless @queryable.nil? @secret = secret Jsii::Type.check_type(@secret, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "secret") unless @secret.nil? @type = type Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type") unless @type.nil? end |
Instance Attribute Details
#description ⇒ String? (readonly)
Default: the description will be empty
The description of the property.
45 46 47 |
# File 'codepipeline/custom_action_property.rb', line 45 def description @description end |
#key ⇒ Boolean? (readonly)
Default: false
Whether this property is a key.
51 52 53 |
# File 'codepipeline/custom_action_property.rb', line 51 def key @key end |
#name ⇒ String (readonly)
The name of the property.
You use this name in the configuration attribute when defining your custom Action class.
36 37 38 |
# File 'codepipeline/custom_action_property.rb', line 36 def name @name end |
#queryable ⇒ Boolean? (readonly)
Default: false
Whether this property is queryable.
Note that only a single property of a custom Action can be queryable.
59 60 61 |
# File 'codepipeline/custom_action_property.rb', line 59 def queryable @queryable end |
#required ⇒ Boolean (readonly)
Whether this property is required.
40 41 42 |
# File 'codepipeline/custom_action_property.rb', line 40 def required @required end |
#secret ⇒ Boolean? (readonly)
Default: false
Whether this property is secret, like a password, or access key.
64 65 66 |
# File 'codepipeline/custom_action_property.rb', line 64 def secret @secret end |
#type ⇒ String? (readonly)
Default: 'String'
The type of the property, like 'String', 'Number', or 'Boolean'.
69 70 71 |
# File 'codepipeline/custom_action_property.rb', line 69 def type @type end |
Class Method Details
.jsii_properties ⇒ Object
71 72 73 74 75 76 77 78 79 80 81 |
# File 'codepipeline/custom_action_property.rb', line 71 def self.jsii_properties { :name => "name", :required => "required", :description => "description", :key => "key", :queryable => "queryable", :secret => "secret", :type => "type", } end |
Instance Method Details
#to_jsii ⇒ Object
83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'codepipeline/custom_action_property.rb', line 83 def to_jsii result = {} result.merge!({ "name" => @name, "required" => @required, "description" => @description, "key" => @key, "queryable" => @queryable, "secret" => @secret, "type" => @type, }) result.compact end |