Class: AWSCDK::CloudFront::CfnKeyGroupProps
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnKeyGroupProps
- Defined in:
- cloud_front/cfn_key_group_props.rb
Overview
Properties for defining a CfnKeyGroup.
Instance Attribute Summary collapse
-
#key_group_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnKeyGroup::KeyGroupConfigProperty
readonly
The key group configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key_group_config:) ⇒ CfnKeyGroupProps
constructor
A new instance of CfnKeyGroupProps.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key_group_config:) ⇒ CfnKeyGroupProps
Returns a new instance of CfnKeyGroupProps.
10 11 12 13 |
# File 'cloud_front/cfn_key_group_props.rb', line 10 def initialize(key_group_config:) @key_group_config = key_group_config.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnKeyGroup::KeyGroupConfigProperty.new(**key_group_config.transform_keys(&:to_sym)) : key_group_config Jsii::Type.check_type(@key_group_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbktleUdyb3VwLktleUdyb3VwQ29uZmlnUHJvcGVydHkifV19fQ==")), "keyGroupConfig") end |
Instance Attribute Details
#key_group_config ⇒ AWSCDK::IResolvable, AWSCDK::CloudFront::CfnKeyGroup::KeyGroupConfigProperty (readonly)
The key group configuration.
19 20 21 |
# File 'cloud_front/cfn_key_group_props.rb', line 19 def key_group_config @key_group_config end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'cloud_front/cfn_key_group_props.rb', line 21 def self.jsii_properties { :key_group_config => "keyGroupConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'cloud_front/cfn_key_group_props.rb', line 27 def to_jsii result = {} result.merge!({ "keyGroupConfig" => @key_group_config, }) result.compact end |