Class: AWSCDK::CloudFront::CfnDistribution::ViewerMtlsConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CloudFront::CfnDistribution::ViewerMtlsConfigProperty
- Defined in:
- cloud_front/cfn_distribution.rb
Overview
A viewer mTLS configuration.
Instance Attribute Summary collapse
-
#mode ⇒ String?
readonly
The viewer mTLS mode.
-
#trust_store_config ⇒ AWSCDK::IResolvable, ...
readonly
The trust store configuration associated with the viewer mTLS configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(mode: nil, trust_store_config: nil) ⇒ ViewerMtlsConfigProperty
constructor
A new instance of ViewerMtlsConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(mode: nil, trust_store_config: nil) ⇒ ViewerMtlsConfigProperty
Returns a new instance of ViewerMtlsConfigProperty.
3490 3491 3492 3493 3494 3495 |
# File 'cloud_front/cfn_distribution.rb', line 3490 def initialize(mode: nil, trust_store_config: nil) @mode = mode Jsii::Type.check_type(@mode, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "mode") unless @mode.nil? @trust_store_config = trust_store_config.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnDistribution::TrustStoreConfigProperty.new(**trust_store_config.transform_keys(&:to_sym)) : trust_store_config Jsii::Type.check_type(@trust_store_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmbkRpc3RyaWJ1dGlvbi5UcnVzdFN0b3JlQ29uZmlnUHJvcGVydHkifV19fQ==")), "trustStoreConfig") unless @trust_store_config.nil? end |
Instance Attribute Details
#mode ⇒ String? (readonly)
The viewer mTLS mode.
3501 3502 3503 |
# File 'cloud_front/cfn_distribution.rb', line 3501 def mode @mode end |
#trust_store_config ⇒ AWSCDK::IResolvable, ... (readonly)
The trust store configuration associated with the viewer mTLS configuration.
3506 3507 3508 |
# File 'cloud_front/cfn_distribution.rb', line 3506 def trust_store_config @trust_store_config end |
Class Method Details
.jsii_properties ⇒ Object
3508 3509 3510 3511 3512 3513 |
# File 'cloud_front/cfn_distribution.rb', line 3508 def self.jsii_properties { :mode => "mode", :trust_store_config => "trustStoreConfig", } end |
Instance Method Details
#to_jsii ⇒ Object
3515 3516 3517 3518 3519 3520 3521 3522 |
# File 'cloud_front/cfn_distribution.rb', line 3515 def to_jsii result = {} result.merge!({ "mode" => @mode, "trustStoreConfig" => @trust_store_config, }) result.compact end |