Class: AWSCDK::ACMPCA::CfnCertificate::APIPassthroughProperty

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

Overview

Contains X.509 certificate information to be placed in an issued certificate. An APIPassthrough or APICSRPassthrough template variant must be selected, or else this parameter is ignored.

If conflicting or duplicate certificate information is supplied from other sources, AWS Private CA applies order of operation rules to determine what information is used.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(extensions: nil, subject: nil) ⇒ APIPassthroughProperty

Returns a new instance of APIPassthroughProperty.

Parameters:



601
602
603
604
605
606
# File 'acmpca/cfn_certificate.rb', line 601

def initialize(extensions: nil, subject: nil)
  @extensions = extensions.is_a?(Hash) ? ::AWSCDK::ACMPCA::CfnCertificate::ExtensionsProperty.new(**extensions.transform_keys(&:to_sym)) : extensions
  Jsii::Type.check_type(@extensions, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hY21wY2EuQ2ZuQ2VydGlmaWNhdGUuRXh0ZW5zaW9uc1Byb3BlcnR5In1dfX0=")), "extensions") unless @extensions.nil?
  @subject = subject.is_a?(Hash) ? ::AWSCDK::ACMPCA::CfnCertificate::SubjectProperty.new(**subject.transform_keys(&:to_sym)) : subject
  Jsii::Type.check_type(@subject, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hY21wY2EuQ2ZuQ2VydGlmaWNhdGUuU3ViamVjdFByb3BlcnR5In1dfX0=")), "subject") unless @subject.nil?
end

Instance Attribute Details

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

Specifies X.509 extension information for a certificate.



612
613
614
# File 'acmpca/cfn_certificate.rb', line 612

def extensions
  @extensions
end

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

Contains information about the certificate subject.

The Subject field in the certificate identifies the entity that owns or controls the public key in the certificate. The entity can be a user, computer, device, or service. The Subject must contain an X.500 distinguished name (DN). A DN is a sequence of relative distinguished names (RDNs). The RDNs are separated by commas in the certificate.



619
620
621
# File 'acmpca/cfn_certificate.rb', line 619

def subject
  @subject
end

Class Method Details

.jsii_propertiesObject



621
622
623
624
625
626
# File 'acmpca/cfn_certificate.rb', line 621

def self.jsii_properties
  {
    :extensions => "extensions",
    :subject => "subject",
  }
end

Instance Method Details

#to_jsiiObject



628
629
630
631
632
633
634
635
# File 'acmpca/cfn_certificate.rb', line 628

def to_jsii
  result = {}
  result.merge!({
    "extensions" => @extensions,
    "subject" => @subject,
  })
  result.compact
end