Class: AWSCDK::PCAConnectorAD::CfnTemplate::PrivateKeyFlagsV2Property

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

Overview

Private key flags for v2 templates specify the client compatibility, if the private key can be exported, and if user input is required when using a private key.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client_version:, exportable_key: nil, strong_key_protection_required: nil) ⇒ PrivateKeyFlagsV2Property

Returns a new instance of PrivateKeyFlagsV2Property.

Parameters:

  • client_version (String)

    Defines the minimum client compatibility.

  • exportable_key (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Allows the private key to be exported.

  • strong_key_protection_required (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Require user input when using the private key for enrollment.



1622
1623
1624
1625
1626
1627
1628
1629
# File 'pca_connector_ad/cfn_template.rb', line 1622

def initialize(client_version:, exportable_key: nil, strong_key_protection_required: nil)
  @client_version = client_version
  Jsii::Type.check_type(@client_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "clientVersion")
  @exportable_key = exportable_key
  Jsii::Type.check_type(@exportable_key, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "exportableKey") unless @exportable_key.nil?
  @strong_key_protection_required = strong_key_protection_required
  Jsii::Type.check_type(@strong_key_protection_required, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "strongKeyProtectionRequired") unless @strong_key_protection_required.nil?
end

Instance Attribute Details

#client_versionString (readonly)

Defines the minimum client compatibility.



1635
1636
1637
# File 'pca_connector_ad/cfn_template.rb', line 1635

def client_version
  @client_version
end

#exportable_keyBoolean, ... (readonly)

Allows the private key to be exported.



1640
1641
1642
# File 'pca_connector_ad/cfn_template.rb', line 1640

def exportable_key
  @exportable_key
end

#strong_key_protection_requiredBoolean, ... (readonly)

Require user input when using the private key for enrollment.



1645
1646
1647
# File 'pca_connector_ad/cfn_template.rb', line 1645

def strong_key_protection_required
  @strong_key_protection_required
end

Class Method Details

.jsii_propertiesObject



1647
1648
1649
1650
1651
1652
1653
# File 'pca_connector_ad/cfn_template.rb', line 1647

def self.jsii_properties
  {
    :client_version => "clientVersion",
    :exportable_key => "exportableKey",
    :strong_key_protection_required => "strongKeyProtectionRequired",
  }
end

Instance Method Details

#to_jsiiObject



1655
1656
1657
1658
1659
1660
1661
1662
1663
# File 'pca_connector_ad/cfn_template.rb', line 1655

def to_jsii
  result = {}
  result.merge!({
    "clientVersion" => @client_version,
    "exportableKey" => @exportable_key,
    "strongKeyProtectionRequired" => @strong_key_protection_required,
  })
  result.compact
end