Class: AWSCDK::DMS::CfnCertificateProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
dms/cfn_certificate_props.rb

Overview

Properties for defining a CfnCertificate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(certificate_identifier: nil, certificate_pem: nil, certificate_wallet: nil) ⇒ CfnCertificateProps

Returns a new instance of CfnCertificateProps.

Parameters:

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

    A customer-assigned name for the certificate.

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

    The contents of a .pem file, which contains an X.509 certificate.

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

    The location of an imported Oracle Wallet certificate for use with SSL.



12
13
14
15
16
17
18
19
# File 'dms/cfn_certificate_props.rb', line 12

def initialize(certificate_identifier: nil, certificate_pem: nil, certificate_wallet: nil)
  @certificate_identifier = certificate_identifier
  Jsii::Type.check_type(@certificate_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateIdentifier") unless @certificate_identifier.nil?
  @certificate_pem = certificate_pem
  Jsii::Type.check_type(@certificate_pem, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificatePem") unless @certificate_pem.nil?
  @certificate_wallet = certificate_wallet
  Jsii::Type.check_type(@certificate_wallet, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "certificateWallet") unless @certificate_wallet.nil?
end

Instance Attribute Details

#certificate_identifierString? (readonly)

A customer-assigned name for the certificate.

Identifiers must begin with a letter and must contain only ASCII letters, digits, and hyphens. They can't end with a hyphen or contain two consecutive hyphens.



27
28
29
# File 'dms/cfn_certificate_props.rb', line 27

def certificate_identifier
  @certificate_identifier
end

#certificate_pemString? (readonly)

The contents of a .pem file, which contains an X.509 certificate.



32
33
34
# File 'dms/cfn_certificate_props.rb', line 32

def certificate_pem
  @certificate_pem
end

#certificate_walletString? (readonly)

The location of an imported Oracle Wallet certificate for use with SSL.

An example is: filebase64("${path.root}/rds-ca-2019-root.sso")



39
40
41
# File 'dms/cfn_certificate_props.rb', line 39

def certificate_wallet
  @certificate_wallet
end

Class Method Details

.jsii_propertiesObject



41
42
43
44
45
46
47
# File 'dms/cfn_certificate_props.rb', line 41

def self.jsii_properties
  {
    :certificate_identifier => "certificateIdentifier",
    :certificate_pem => "certificatePem",
    :certificate_wallet => "certificateWallet",
  }
end

Instance Method Details

#to_jsiiObject



49
50
51
52
53
54
55
56
57
# File 'dms/cfn_certificate_props.rb', line 49

def to_jsii
  result = {}
  result.merge!({
    "certificateIdentifier" => @certificate_identifier,
    "certificatePem" => @certificate_pem,
    "certificateWallet" => @certificate_wallet,
  })
  result.compact
end