Class: AWSCDK::CloudFront::CfnTrustStoreProps

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

Overview

Properties for defining a CfnTrustStore.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(name:, ca_certificates_bundle_source: nil, tags: nil, use_client_certificate_ocsp_endpoint: nil) ⇒ CfnTrustStoreProps

Returns a new instance of CfnTrustStoreProps.

Parameters:



13
14
15
16
17
18
19
20
21
22
# File 'cloud_front/cfn_trust_store_props.rb', line 13

def initialize(name:, ca_certificates_bundle_source: nil, tags: nil, use_client_certificate_ocsp_endpoint: nil)
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @ca_certificates_bundle_source = ca_certificates_bundle_source.is_a?(Hash) ? ::AWSCDK::CloudFront::CfnTrustStore::CaCertificatesBundleSourceProperty.new(**ca_certificates_bundle_source.transform_keys(&:to_sym)) : ca_certificates_bundle_source
  Jsii::Type.check_type(@ca_certificates_bundle_source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19jbG91ZGZyb250LkNmblRydXN0U3RvcmUuQ2FDZXJ0aWZpY2F0ZXNCdW5kbGVTb3VyY2VQcm9wZXJ0eSJ9XX19")), "caCertificatesBundleSource") unless @ca_certificates_bundle_source.nil?
  @tags = tags.is_a?(Array) ? tags.map { |jsii_v0| jsii_v0.is_a?(Hash) ? ::AWSCDK::CfnTag.new(**jsii_v0.transform_keys(&:to_sym)) : jsii_v0 } : tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLkNmblRhZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "tags") unless @tags.nil?
  @use_client_certificate_ocsp_endpoint = use_client_certificate_ocsp_endpoint
  Jsii::Type.check_type(@use_client_certificate_ocsp_endpoint, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "useClientCertificateOcspEndpoint") unless @use_client_certificate_ocsp_endpoint.nil?
end

Instance Attribute Details

#ca_certificates_bundle_sourceAWSCDK::IResolvable, ... (readonly)

A CA certificates bundle source.



33
34
35
# File 'cloud_front/cfn_trust_store_props.rb', line 33

def ca_certificates_bundle_source
  @ca_certificates_bundle_source
end

#nameString (readonly)

The trust store's name.



28
29
30
# File 'cloud_front/cfn_trust_store_props.rb', line 28

def name
  @name
end

#tagsArray<AWSCDK::CfnTag>? (readonly)

A complex type that contains zero or more Tag elements.



38
39
40
# File 'cloud_front/cfn_trust_store_props.rb', line 38

def tags
  @tags
end

#use_client_certificate_ocsp_endpointBoolean, ... (readonly)

A boolean.

When true, performs real-time certificate revocation checks by querying the OCSP endpoint specified within the client certificate.



45
46
47
# File 'cloud_front/cfn_trust_store_props.rb', line 45

def use_client_certificate_ocsp_endpoint
  @use_client_certificate_ocsp_endpoint
end

Class Method Details

.jsii_propertiesObject



47
48
49
50
51
52
53
54
# File 'cloud_front/cfn_trust_store_props.rb', line 47

def self.jsii_properties
  {
    :name => "name",
    :ca_certificates_bundle_source => "caCertificatesBundleSource",
    :tags => "tags",
    :use_client_certificate_ocsp_endpoint => "useClientCertificateOcspEndpoint",
  }
end

Instance Method Details

#to_jsiiObject



56
57
58
59
60
61
62
63
64
65
# File 'cloud_front/cfn_trust_store_props.rb', line 56

def to_jsii
  result = {}
  result.merge!({
    "name" => @name,
    "caCertificatesBundleSource" => @ca_certificates_bundle_source,
    "tags" => @tags,
    "useClientCertificateOcspEndpoint" => @use_client_certificate_ocsp_endpoint,
  })
  result.compact
end