Class: AWSCDK::PCAConnectorAD::CfnTemplate::PrivateKeyAttributesV2Property
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCAConnectorAD::CfnTemplate::PrivateKeyAttributesV2Property
- Defined in:
- pca_connector_ad/cfn_template.rb
Overview
Defines the attributes of the private key.
Instance Attribute Summary collapse
-
#crypto_providers ⇒ Array<String>?
readonly
Defines the cryptographic providers used to generate the private key.
-
#key_spec ⇒ String
readonly
Defines the purpose of the private key.
-
#minimal_key_length ⇒ Numeric
readonly
Set the minimum key length of the private key.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key_spec:, minimal_key_length:, crypto_providers: nil) ⇒ PrivateKeyAttributesV2Property
constructor
A new instance of PrivateKeyAttributesV2Property.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key_spec:, minimal_key_length:, crypto_providers: nil) ⇒ PrivateKeyAttributesV2Property
Returns a new instance of PrivateKeyAttributesV2Property.
1413 1414 1415 1416 1417 1418 1419 1420 |
# File 'pca_connector_ad/cfn_template.rb', line 1413 def initialize(key_spec:, minimal_key_length:, crypto_providers: nil) @key_spec = key_spec Jsii::Type.check_type(@key_spec, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "keySpec") @minimal_key_length = minimal_key_length Jsii::Type.check_type(@minimal_key_length, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "minimalKeyLength") @crypto_providers = crypto_providers Jsii::Type.check_type(@crypto_providers, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "cryptoProviders") unless @crypto_providers.nil? end |
Instance Attribute Details
#crypto_providers ⇒ Array<String>? (readonly)
Defines the cryptographic providers used to generate the private key.
1438 1439 1440 |
# File 'pca_connector_ad/cfn_template.rb', line 1438 def crypto_providers @crypto_providers end |
#key_spec ⇒ String (readonly)
Defines the purpose of the private key.
Set it to "KEY_EXCHANGE" or "SIGNATURE" value.
1428 1429 1430 |
# File 'pca_connector_ad/cfn_template.rb', line 1428 def key_spec @key_spec end |
#minimal_key_length ⇒ Numeric (readonly)
Set the minimum key length of the private key.
1433 1434 1435 |
# File 'pca_connector_ad/cfn_template.rb', line 1433 def minimal_key_length @minimal_key_length end |
Class Method Details
.jsii_properties ⇒ Object
1440 1441 1442 1443 1444 1445 1446 |
# File 'pca_connector_ad/cfn_template.rb', line 1440 def self.jsii_properties { :key_spec => "keySpec", :minimal_key_length => "minimalKeyLength", :crypto_providers => "cryptoProviders", } end |
Instance Method Details
#to_jsii ⇒ Object
1448 1449 1450 1451 1452 1453 1454 1455 1456 |
# File 'pca_connector_ad/cfn_template.rb', line 1448 def to_jsii result = {} result.merge!({ "keySpec" => @key_spec, "minimalKeyLength" => @minimal_key_length, "cryptoProviders" => @crypto_providers, }) result.compact end |