Class: AWSCDK::PCAConnectorAD::CfnTemplate::PrivateKeyAttributesV2Property

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pca_connector_ad/cfn_template.rb

Overview

Defines the attributes of the private key.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key_spec:, minimal_key_length:, crypto_providers: nil) ⇒ PrivateKeyAttributesV2Property

Returns a new instance of PrivateKeyAttributesV2Property.

Parameters:

  • key_spec (String)

    Defines the purpose of the private key.

  • minimal_key_length (Numeric)

    Set the minimum key length of the private key.

  • crypto_providers (Array<String>, nil) (defaults to: nil)

    Defines the cryptographic providers used to generate the private key.



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_providersArray<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_specString (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_lengthNumeric (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_propertiesObject



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_jsiiObject



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