Class: AWSCDK::CloudFront::CfnConnectionFunctionProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnConnectionFunctionProps
- Defined in:
- cloud_front/cfn_connection_function_props.rb
Overview
Properties for defining a CfnConnectionFunction.
Instance Attribute Summary collapse
-
#auto_publish ⇒ Boolean, ...
readonly
A flag that determines whether to automatically publish the function to the
LIVEstage when it’s created. -
#connection_function_code ⇒ String
readonly
The code for the connection function.
-
#connection_function_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnConnectionFunction::ConnectionFunctionConfigProperty
readonly
Contains configuration information about a CloudFront function.
-
#name ⇒ String
readonly
The connection function name.
-
#tags ⇒ Array<AWSCDK::CfnTag>?
readonly
A complex type that contains zero or more
Tagelements.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(connection_function_code:, connection_function_config:, name:, auto_publish: nil, tags: nil) ⇒ CfnConnectionFunctionProps
constructor
A new instance of CfnConnectionFunctionProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(connection_function_code:, connection_function_config:, name:, auto_publish: nil, tags: nil) ⇒ CfnConnectionFunctionProps
Returns a new instance of CfnConnectionFunctionProps.
14 15 16 17 18 19 20 21 22 23 24 25 |
# File 'cloud_front/cfn_connection_function_props.rb', line 14 def initialize(connection_function_code:, connection_function_config:, name:, auto_publish: nil, tags: nil) @connection_function_code = connection_function_code Jsii::Type.check_type(@connection_function_code, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "connectionFunctionCode") @connection_function_config = connection_function_config.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnConnectionFunction::ConnectionFunctionConfigProperty.new(**connection_function_config.transform_keys(&:to_sym)) : connection_function_config Jsii::Type.check_type(@connection_function_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbkNvbm5lY3Rpb25GdW5jdGlvbi5Db25uZWN0aW9uRnVuY3Rpb25Db25maWdQcm9wZXJ0eSJ9XX19")), "connectionFunctionConfig") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") @auto_publish = auto_publish Jsii::Type.check_type(@auto_publish, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "autoPublish") unless @auto_publish.nil? @tags = .is_a?(Array) ? .map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil? end |
Instance Attribute Details
#auto_publish ⇒ Boolean, ... (readonly)
Default: - false
A flag that determines whether to automatically publish the function to the LIVE stage when it’s created.
To automatically publish to the LIVE stage, set this property to true .
49 50 51 |
# File 'cloud_front/cfn_connection_function_props.rb', line 49 def auto_publish @auto_publish end |
#connection_function_code ⇒ String (readonly)
The code for the connection function.
31 32 33 |
# File 'cloud_front/cfn_connection_function_props.rb', line 31 def connection_function_code @connection_function_code end |
#connection_function_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnConnectionFunction::ConnectionFunctionConfigProperty (readonly)
Contains configuration information about a CloudFront function.
36 37 38 |
# File 'cloud_front/cfn_connection_function_props.rb', line 36 def connection_function_config @connection_function_config end |
#name ⇒ String (readonly)
The connection function name.
41 42 43 |
# File 'cloud_front/cfn_connection_function_props.rb', line 41 def name @name end |
#tags ⇒ Array<AWSCDK::CfnTag>? (readonly)
A complex type that contains zero or more Tag elements.
54 55 56 |
# File 'cloud_front/cfn_connection_function_props.rb', line 54 def @tags end |
Class Method Details
.jsii_properties ⇒ Object
56 57 58 59 60 61 62 63 64 |
# File 'cloud_front/cfn_connection_function_props.rb', line 56 def self.jsii_properties { :connection_function_code => "connectionFunctionCode", :connection_function_config => "connectionFunctionConfig", :name => "name", :auto_publish => "autoPublish", :tags => "tags", } end |
Instance Method Details
#to_jsii ⇒ Object
66 67 68 69 70 71 72 73 74 75 76 |
# File 'cloud_front/cfn_connection_function_props.rb', line 66 def to_jsii result = {} result.merge!({ "connectionFunctionCode" => @connection_function_code, "connectionFunctionConfig" => @connection_function_config, "name" => @name, "autoPublish" => @auto_publish, "tags" => @tags, }) result.compact end |