Class: AWSCDK::CloudFront::CfnFunction::FunctionConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnFunction::FunctionConfigProperty
- Defined in:
- cloud_front/cfn_function.rb
Overview
Contains configuration information about a CloudFront function.
Instance Attribute Summary collapse
-
#comment ⇒ String
readonly
A comment to describe the function.
-
#key_value_store_associations ⇒ AWSCDK::IResolvable, ...
readonly
The configuration for the key value store associations.
-
#runtime ⇒ String
readonly
The function's runtime environment version.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(comment:, runtime:, key_value_store_associations: nil) ⇒ FunctionConfigProperty
constructor
A new instance of FunctionConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(comment:, runtime:, key_value_store_associations: nil) ⇒ FunctionConfigProperty
Returns a new instance of FunctionConfigProperty.
616 617 618 619 620 621 622 623 |
# File 'cloud_front/cfn_function.rb', line 616 def initialize(comment:, runtime:, key_value_store_associations: nil) @comment = comment Jsii::Type.check_type(@comment, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "comment") @runtime = runtime Jsii::Type.check_type(@runtime, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "runtime") @key_value_store_associations = key_value_store_associations Jsii::Type.check_type(@key_value_store_associations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfY2xvdWRmcm9udC5DZm5GdW5jdGlvbi5LZXlWYWx1ZVN0b3JlQXNzb2NpYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "keyValueStoreAssociations") unless @key_value_store_associations.nil? end |
Instance Attribute Details
#comment ⇒ String (readonly)
A comment to describe the function.
629 630 631 |
# File 'cloud_front/cfn_function.rb', line 629 def comment @comment end |
#key_value_store_associations ⇒ AWSCDK::IResolvable, ... (readonly)
The configuration for the key value store associations.
639 640 641 |
# File 'cloud_front/cfn_function.rb', line 639 def key_value_store_associations @key_value_store_associations end |
#runtime ⇒ String (readonly)
The function's runtime environment version.
634 635 636 |
# File 'cloud_front/cfn_function.rb', line 634 def runtime @runtime end |
Class Method Details
.jsii_properties ⇒ Object
641 642 643 644 645 646 647 |
# File 'cloud_front/cfn_function.rb', line 641 def self.jsii_properties { :comment => "comment", :runtime => "runtime", :key_value_store_associations => "keyValueStoreAssociations", } end |
Instance Method Details
#to_jsii ⇒ Object
649 650 651 652 653 654 655 656 657 |
# File 'cloud_front/cfn_function.rb', line 649 def to_jsii result = {} result.merge!({ "comment" => @comment, "runtime" => @runtime, "keyValueStoreAssociations" => @key_value_store_associations, }) result.compact end |