Class: AWSCDK::Lambda::ResourceBindOptions

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
lambda/resource_bind_options.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(resource_property: nil) ⇒ ResourceBindOptions

Returns a new instance of ResourceBindOptions.

Parameters:

  • resource_property (String, nil) (defaults to: nil)

    The name of the CloudFormation property to annotate with asset metadata.



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_propertyString? (readonly)

Note:

Default: Code

The name of the CloudFormation property to annotate with asset metadata.

Returns:

  • (String, nil)

See Also:



17
18
19
# File 'lambda/resource_bind_options.rb', line 17

def resource_property
  @resource_property
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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