Class: AWSCDK::ACMPCA::CfnCertificate::CustomExtensionProperty

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

Overview

Specifies the X.509 extension information for a certificate.

Extensions present in CustomExtensions follow the ApiPassthrough template rules .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(object_identifier:, value:, critical: nil) ⇒ CustomExtensionProperty

Returns a new instance of CustomExtensionProperty.

Parameters:

  • object_identifier (String)

    Specifies the object identifier (OID) of the X.509 extension. For more information, see the Global OID reference database..

  • value (String)

    Specifies the base64-encoded value of the X.509 extension.

  • critical (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Specifies the critical flag of the X.509 extension.



692
693
694
695
696
697
698
699
# File 'acmpca/cfn_certificate.rb', line 692

def initialize(object_identifier:, value:, critical: nil)
  @object_identifier = object_identifier
  Jsii::Type.check_type(@object_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "objectIdentifier")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
  @critical = critical
  Jsii::Type.check_type(@critical, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "critical") unless @critical.nil?
end

Instance Attribute Details

#criticalBoolean, ... (readonly)

Specifies the critical flag of the X.509 extension.



715
716
717
# File 'acmpca/cfn_certificate.rb', line 715

def critical
  @critical
end

#object_identifierString (readonly)

Specifies the object identifier (OID) of the X.509 extension. For more information, see the Global OID reference database..



705
706
707
# File 'acmpca/cfn_certificate.rb', line 705

def object_identifier
  @object_identifier
end

#valueString (readonly)

Specifies the base64-encoded value of the X.509 extension.



710
711
712
# File 'acmpca/cfn_certificate.rb', line 710

def value
  @value
end

Class Method Details

.jsii_propertiesObject



717
718
719
720
721
722
723
# File 'acmpca/cfn_certificate.rb', line 717

def self.jsii_properties
  {
    :object_identifier => "objectIdentifier",
    :value => "value",
    :critical => "critical",
  }
end

Instance Method Details

#to_jsiiObject



725
726
727
728
729
730
731
732
733
# File 'acmpca/cfn_certificate.rb', line 725

def to_jsii
  result = {}
  result.merge!({
    "objectIdentifier" => @object_identifier,
    "value" => @value,
    "critical" => @critical,
  })
  result.compact
end