Class: AWSCDK::ACMPCA::CfnCertificateAuthority::KeyUsageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ACMPCA::CfnCertificateAuthority::KeyUsageProperty
- Defined in:
- acmpca/cfn_certificate_authority.rb
Overview
Defines one or more purposes for which the key contained in the certificate can be used.
Default value for each option is false.
Instance Attribute Summary collapse
-
#crl_sign ⇒ Boolean, ...
readonly
Key can be used to sign CRLs.
-
#data_encipherment ⇒ Boolean, ...
readonly
Key can be used to decipher data.
-
#decipher_only ⇒ Boolean, ...
readonly
Key can be used only to decipher data.
-
#digital_signature ⇒ Boolean, ...
readonly
Key can be used for digital signing.
-
#encipher_only ⇒ Boolean, ...
readonly
Key can be used only to encipher data.
-
#key_agreement ⇒ Boolean, ...
readonly
Key can be used in a key-agreement protocol.
-
#key_cert_sign ⇒ Boolean, ...
readonly
Key can be used to sign certificates.
-
#key_encipherment ⇒ Boolean, ...
readonly
Key can be used to encipher data.
-
#non_repudiation ⇒ Boolean, ...
readonly
Key can be used for non-repudiation.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(crl_sign: nil, data_encipherment: nil, decipher_only: nil, digital_signature: nil, encipher_only: nil, key_agreement: nil, key_cert_sign: nil, key_encipherment: nil, non_repudiation: nil) ⇒ KeyUsageProperty
constructor
A new instance of KeyUsageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(crl_sign: nil, data_encipherment: nil, decipher_only: nil, digital_signature: nil, encipher_only: nil, key_agreement: nil, key_cert_sign: nil, key_encipherment: nil, non_repudiation: nil) ⇒ KeyUsageProperty
Returns a new instance of KeyUsageProperty.
1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 |
# File 'acmpca/cfn_certificate_authority.rb', line 1177 def initialize(crl_sign: nil, data_encipherment: nil, decipher_only: nil, digital_signature: nil, encipher_only: nil, key_agreement: nil, key_cert_sign: nil, key_encipherment: nil, non_repudiation: nil) @crl_sign = crl_sign Jsii::Type.check_type(@crl_sign, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "crlSign") unless @crl_sign.nil? @data_encipherment = data_encipherment Jsii::Type.check_type(@data_encipherment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "dataEncipherment") unless @data_encipherment.nil? @decipher_only = decipher_only Jsii::Type.check_type(@decipher_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "decipherOnly") unless @decipher_only.nil? @digital_signature = digital_signature Jsii::Type.check_type(@digital_signature, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "digitalSignature") unless @digital_signature.nil? @encipher_only = encipher_only Jsii::Type.check_type(@encipher_only, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "encipherOnly") unless @encipher_only.nil? @key_agreement = key_agreement Jsii::Type.check_type(@key_agreement, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyAgreement") unless @key_agreement.nil? @key_cert_sign = key_cert_sign Jsii::Type.check_type(@key_cert_sign, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyCertSign") unless @key_cert_sign.nil? @key_encipherment = key_encipherment Jsii::Type.check_type(@key_encipherment, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "keyEncipherment") unless @key_encipherment.nil? @non_repudiation = non_repudiation Jsii::Type.check_type(@non_repudiation, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "nonRepudiation") unless @non_repudiation.nil? end |
Instance Attribute Details
#crl_sign ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to sign CRLs.
1203 1204 1205 |
# File 'acmpca/cfn_certificate_authority.rb', line 1203 def crl_sign @crl_sign end |
#data_encipherment ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to decipher data.
1209 1210 1211 |
# File 'acmpca/cfn_certificate_authority.rb', line 1209 def data_encipherment @data_encipherment end |
#decipher_only ⇒ Boolean, ... (readonly)
Default: - false
Key can be used only to decipher data.
1215 1216 1217 |
# File 'acmpca/cfn_certificate_authority.rb', line 1215 def decipher_only @decipher_only end |
#digital_signature ⇒ Boolean, ... (readonly)
Default: - false
Key can be used for digital signing.
1221 1222 1223 |
# File 'acmpca/cfn_certificate_authority.rb', line 1221 def digital_signature @digital_signature end |
#encipher_only ⇒ Boolean, ... (readonly)
Default: - false
Key can be used only to encipher data.
1227 1228 1229 |
# File 'acmpca/cfn_certificate_authority.rb', line 1227 def encipher_only @encipher_only end |
#key_agreement ⇒ Boolean, ... (readonly)
Default: - false
Key can be used in a key-agreement protocol.
1233 1234 1235 |
# File 'acmpca/cfn_certificate_authority.rb', line 1233 def key_agreement @key_agreement end |
#key_cert_sign ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to sign certificates.
1239 1240 1241 |
# File 'acmpca/cfn_certificate_authority.rb', line 1239 def key_cert_sign @key_cert_sign end |
#key_encipherment ⇒ Boolean, ... (readonly)
Default: - false
Key can be used to encipher data.
1245 1246 1247 |
# File 'acmpca/cfn_certificate_authority.rb', line 1245 def key_encipherment @key_encipherment end |
#non_repudiation ⇒ Boolean, ... (readonly)
Default: - false
Key can be used for non-repudiation.
1251 1252 1253 |
# File 'acmpca/cfn_certificate_authority.rb', line 1251 def non_repudiation @non_repudiation end |
Class Method Details
.jsii_properties ⇒ Object
1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 |
# File 'acmpca/cfn_certificate_authority.rb', line 1253 def self.jsii_properties { :crl_sign => "crlSign", :data_encipherment => "dataEncipherment", :decipher_only => "decipherOnly", :digital_signature => "digitalSignature", :encipher_only => "encipherOnly", :key_agreement => "keyAgreement", :key_cert_sign => "keyCertSign", :key_encipherment => "keyEncipherment", :non_repudiation => "nonRepudiation", } end |
Instance Method Details
#to_jsii ⇒ Object
1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 |
# File 'acmpca/cfn_certificate_authority.rb', line 1267 def to_jsii result = {} result.merge!({ "crlSign" => @crl_sign, "dataEncipherment" => @data_encipherment, "decipherOnly" => @decipher_only, "digitalSignature" => @digital_signature, "encipherOnly" => @encipher_only, "keyAgreement" => @key_agreement, "keyCertSign" => @key_cert_sign, "keyEncipherment" => @key_encipherment, "nonRepudiation" => @non_repudiation, }) result.compact end |