Class: AWSCDK::Lambda::ResourceBindOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::ResourceBindOptions
- Defined in:
- lambda/resource_bind_options.rb
Instance Attribute Summary collapse
-
#resource_property ⇒ String?
readonly
The name of the CloudFormation property to annotate with asset metadata.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(resource_property: nil) ⇒ ResourceBindOptions
constructor
A new instance of ResourceBindOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(resource_property: nil) ⇒ ResourceBindOptions
Returns a new instance of ResourceBindOptions.
7 8 9 10 |
# File 'lambda/resource_bind_options.rb', line 7 def initialize(resource_property: nil) @resource_property = resource_property Jsii::Type.check_type(@resource_property, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "resourceProperty") unless @resource_property.nil? end |
Instance Attribute Details
#resource_property ⇒ String? (readonly)
Note:
Default: Code
The name of the CloudFormation property to annotate with asset metadata.
17 18 19 |
# File 'lambda/resource_bind_options.rb', line 17 def resource_property @resource_property end |
Class Method Details
.jsii_properties ⇒ Object
19 20 21 22 23 |
# File 'lambda/resource_bind_options.rb', line 19 def self.jsii_properties { :resource_property => "resourceProperty", } end |
Instance Method Details
#to_jsii ⇒ Object
25 26 27 28 29 30 31 |
# File 'lambda/resource_bind_options.rb', line 25 def to_jsii result = {} result.merge!({ "resourceProperty" => @resource_property, }) result.compact end |