Class: AWSCDK::ACMPCA::CfnCertificateAuthority::GeneralNameProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ACMPCA::CfnCertificateAuthority::GeneralNameProperty
- Defined in:
- acmpca/cfn_certificate_authority.rb
Overview
Describes an ASN.1 X.400 GeneralName as defined in RFC 5280 . Only one of the following naming options should be provided. Providing more than one option results in an InvalidArgsException error.
Instance Attribute Summary collapse
-
#directory_name ⇒ AWSCDK::IResolvable, ...
readonly
Contains information about the certificate subject.
-
#dns_name ⇒ String?
readonly
Represents
GeneralNameas a DNS name. -
#edi_party_name ⇒ AWSCDK::IResolvable, ...
readonly
Represents
GeneralNameas anEdiPartyNameobject. -
#ip_address ⇒ String?
readonly
Represents
GeneralNameas an IPv4 or IPv6 address. -
#other_name ⇒ AWSCDK::IResolvable, ...
readonly
Represents
GeneralNameusing anOtherNameobject. -
#registered_id ⇒ String?
readonly
Represents
GeneralNameas an object identifier (OID). -
#rfc822_name ⇒ String?
readonly
Represents
GeneralNameas an RFC 822 email address. -
#uniform_resource_identifier ⇒ String?
readonly
Represents
GeneralNameas a URI.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(directory_name: nil, dns_name: nil, edi_party_name: nil, ip_address: nil, other_name: nil, registered_id: nil, rfc822_name: nil, uniform_resource_identifier: nil) ⇒ GeneralNameProperty
constructor
A new instance of GeneralNameProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(directory_name: nil, dns_name: nil, edi_party_name: nil, ip_address: nil, other_name: nil, registered_id: nil, rfc822_name: nil, uniform_resource_identifier: nil) ⇒ GeneralNameProperty
Returns a new instance of GeneralNameProperty.
1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 |
# File 'acmpca/cfn_certificate_authority.rb', line 1069 def initialize(directory_name: nil, dns_name: nil, edi_party_name: nil, ip_address: nil, other_name: nil, registered_id: nil, rfc822_name: nil, uniform_resource_identifier: nil) @directory_name = directory_name.is_a?(Hash) ? ::AWSCDK::ACMPCA::CfnCertificateAuthority::SubjectProperty.new(**directory_name.transform_keys(&:to_sym)) : directory_name Jsii::Type.check_type(@directory_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hY21wY2EuQ2ZuQ2VydGlmaWNhdGVBdXRob3JpdHkuU3ViamVjdFByb3BlcnR5In1dfX0=")), "directoryName") unless @directory_name.nil? @dns_name = dns_name Jsii::Type.check_type(@dns_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "dnsName") unless @dns_name.nil? @edi_party_name = edi_party_name.is_a?(Hash) ? ::AWSCDK::ACMPCA::CfnCertificateAuthority::EdiPartyNameProperty.new(**edi_party_name.transform_keys(&:to_sym)) : edi_party_name Jsii::Type.check_type(@edi_party_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hY21wY2EuQ2ZuQ2VydGlmaWNhdGVBdXRob3JpdHkuRWRpUGFydHlOYW1lUHJvcGVydHkifV19fQ==")), "ediPartyName") unless @edi_party_name.nil? @ip_address = ip_address Jsii::Type.check_type(@ip_address, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "ipAddress") unless @ip_address.nil? @other_name = other_name.is_a?(Hash) ? ::AWSCDK::ACMPCA::CfnCertificateAuthority::OtherNameProperty.new(**other_name.transform_keys(&:to_sym)) : other_name Jsii::Type.check_type(@other_name, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hY21wY2EuQ2ZuQ2VydGlmaWNhdGVBdXRob3JpdHkuT3RoZXJOYW1lUHJvcGVydHkifV19fQ==")), "otherName") unless @other_name.nil? @registered_id = registered_id Jsii::Type.check_type(@registered_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "registeredId") unless @registered_id.nil? @rfc822_name = rfc822_name Jsii::Type.check_type(@rfc822_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rfc822Name") unless @rfc822_name.nil? @uniform_resource_identifier = uniform_resource_identifier Jsii::Type.check_type(@uniform_resource_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "uniformResourceIdentifier") unless @uniform_resource_identifier.nil? end |
Instance Attribute Details
#directory_name ⇒ AWSCDK::IResolvable, ... (readonly)
Contains information about the certificate subject.
The certificate can be one issued by your private certificate authority (CA) or it can be your private CA certificate. 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. The DN must be unique for each entity, but your private CA can issue more than one certificate with the same DN to the same entity.
1094 1095 1096 |
# File 'acmpca/cfn_certificate_authority.rb', line 1094 def directory_name @directory_name end |
#dns_name ⇒ String? (readonly)
Represents GeneralName as a DNS name.
1099 1100 1101 |
# File 'acmpca/cfn_certificate_authority.rb', line 1099 def dns_name @dns_name end |
#edi_party_name ⇒ AWSCDK::IResolvable, ... (readonly)
Represents GeneralName as an EdiPartyName object.
1104 1105 1106 |
# File 'acmpca/cfn_certificate_authority.rb', line 1104 def edi_party_name @edi_party_name end |
#ip_address ⇒ String? (readonly)
Represents GeneralName as an IPv4 or IPv6 address.
1109 1110 1111 |
# File 'acmpca/cfn_certificate_authority.rb', line 1109 def ip_address @ip_address end |
#other_name ⇒ AWSCDK::IResolvable, ... (readonly)
Represents GeneralName using an OtherName object.
1114 1115 1116 |
# File 'acmpca/cfn_certificate_authority.rb', line 1114 def other_name @other_name end |
#registered_id ⇒ String? (readonly)
Represents GeneralName as an object identifier (OID).
1119 1120 1121 |
# File 'acmpca/cfn_certificate_authority.rb', line 1119 def registered_id @registered_id end |
#rfc822_name ⇒ String? (readonly)
Represents GeneralName as an RFC 822 email address.
1124 1125 1126 |
# File 'acmpca/cfn_certificate_authority.rb', line 1124 def rfc822_name @rfc822_name end |
#uniform_resource_identifier ⇒ String? (readonly)
Represents GeneralName as a URI.
1129 1130 1131 |
# File 'acmpca/cfn_certificate_authority.rb', line 1129 def uniform_resource_identifier @uniform_resource_identifier end |
Class Method Details
.jsii_properties ⇒ Object
1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 |
# File 'acmpca/cfn_certificate_authority.rb', line 1131 def self.jsii_properties { :directory_name => "directoryName", :dns_name => "dnsName", :edi_party_name => "ediPartyName", :ip_address => "ipAddress", :other_name => "otherName", :registered_id => "registeredId", :rfc822_name => "rfc822Name", :uniform_resource_identifier => "uniformResourceIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
1144 1145 1146 1147 1148 1149 1150 1151 1152 1153 1154 1155 1156 1157 |
# File 'acmpca/cfn_certificate_authority.rb', line 1144 def to_jsii result = {} result.merge!({ "directoryName" => @directory_name, "dnsName" => @dns_name, "ediPartyName" => @edi_party_name, "ipAddress" => @ip_address, "otherName" => @other_name, "registeredId" => @registered_id, "rfc822Name" => @rfc822_name, "uniformResourceIdentifier" => @uniform_resource_identifier, }) result.compact end |