Class: AWSCDK::ACMPCA::CfnCertificateAuthority::CsrExtensionsProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
acmpca/cfn_certificate_authority.rb

Overview

Describes the certificate extensions to be added to the certificate signing request (CSR).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_usage: nil, subject_information_access: nil) ⇒ CsrExtensionsProperty

Returns a new instance of CsrExtensionsProperty.

Parameters:



932
933
934
935
936
937
# File 'acmpca/cfn_certificate_authority.rb', line 932

def initialize(key_usage: nil, subject_information_access: nil)
  @key_usage = key_usage.is_a?(Hash) ? ::AWSCDK::ACMPCA::CfnCertificateAuthority::KeyUsageProperty.new(**key_usage.transform_keys(&:to_sym)) : key_usage
  Jsii::Type.check_type(@key_usage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hY21wY2EuQ2ZuQ2VydGlmaWNhdGVBdXRob3JpdHkuS2V5VXNhZ2VQcm9wZXJ0eSJ9XX19")), "keyUsage") unless @key_usage.nil?
  @subject_information_access = subject_information_access
  Jsii::Type.check_type(@subject_information_access, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYWNtcGNhLkNmbkNlcnRpZmljYXRlQXV0aG9yaXR5LkFjY2Vzc0Rlc2NyaXB0aW9uUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "subjectInformationAccess") unless @subject_information_access.nil?
end

Instance Attribute Details

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

Indicates the purpose of the certificate and of the key contained in the certificate.



943
944
945
# File 'acmpca/cfn_certificate_authority.rb', line 943

def key_usage
  @key_usage
end

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

For CA certificates, provides a path to additional information pertaining to the CA, such as revocation and policy.

For more information, see Subject Information Access in RFC 5280.



950
951
952
# File 'acmpca/cfn_certificate_authority.rb', line 950

def subject_information_access
  @subject_information_access
end

Class Method Details

.jsii_propertiesObject



952
953
954
955
956
957
# File 'acmpca/cfn_certificate_authority.rb', line 952

def self.jsii_properties
  {
    :key_usage => "keyUsage",
    :subject_information_access => "subjectInformationAccess",
  }
end

Instance Method Details

#to_jsiiObject



959
960
961
962
963
964
965
966
# File 'acmpca/cfn_certificate_authority.rb', line 959

def to_jsii
  result = {}
  result.merge!({
    "keyUsage" => @key_usage,
    "subjectInformationAccess" => @subject_information_access,
  })
  result.compact
end