Class: AWSCDK::CloudFront::CfnFunction::FunctionConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_front/cfn_function.rb

Overview

Contains configuration information about a CloudFront function.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(comment:, runtime:, key_value_store_associations: nil) ⇒ FunctionConfigProperty

Returns a new instance of FunctionConfigProperty.

Parameters:



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

#commentString (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_associationsAWSCDK::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

#runtimeString (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_propertiesObject



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_jsiiObject



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