Class: AWSCDK::ACMPCA::CfnCertificateAuthority::AccessMethodProperty

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

Overview

Describes the type and format of extension access.

Only one of CustomObjectIdentifier or AccessMethodType may be provided. Providing both results in InvalidArgsException .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(access_method_type: nil, custom_object_identifier: nil) ⇒ AccessMethodProperty

Returns a new instance of AccessMethodProperty.

Parameters:

  • access_method_type (String, nil) (defaults to: nil)

    Specifies the AccessMethod .

  • custom_object_identifier (String, nil) (defaults to: nil)

    An object identifier (OID) specifying the AccessMethod .



682
683
684
685
686
687
# File 'acmpca/cfn_certificate_authority.rb', line 682

def initialize(access_method_type: nil, custom_object_identifier: nil)
  @access_method_type = access_method_type
  Jsii::Type.check_type(@access_method_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "accessMethodType") unless @access_method_type.nil?
  @custom_object_identifier = custom_object_identifier
  Jsii::Type.check_type(@custom_object_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customObjectIdentifier") unless @custom_object_identifier.nil?
end

Instance Attribute Details

#access_method_typeString? (readonly)

Specifies the AccessMethod .



693
694
695
# File 'acmpca/cfn_certificate_authority.rb', line 693

def access_method_type
  @access_method_type
end

#custom_object_identifierString? (readonly)

An object identifier (OID) specifying the AccessMethod .

The OID must satisfy the regular expression shown below. For more information, see NIST's definition of Object Identifier (OID) .



700
701
702
# File 'acmpca/cfn_certificate_authority.rb', line 700

def custom_object_identifier
  @custom_object_identifier
end

Class Method Details

.jsii_propertiesObject



702
703
704
705
706
707
# File 'acmpca/cfn_certificate_authority.rb', line 702

def self.jsii_properties
  {
    :access_method_type => "accessMethodType",
    :custom_object_identifier => "customObjectIdentifier",
  }
end

Instance Method Details

#to_jsiiObject



709
710
711
712
713
714
715
716
# File 'acmpca/cfn_certificate_authority.rb', line 709

def to_jsii
  result = {}
  result.merge!({
    "accessMethodType" => @access_method_type,
    "customObjectIdentifier" => @custom_object_identifier,
  })
  result.compact
end