Class: AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageProperty

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

Overview

The key usage extension defines the purpose (e.g., encipherment, signature) of the key contained in the certificate.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(usage_flags:, critical: nil) ⇒ KeyUsageProperty

Returns a new instance of KeyUsageProperty.

Parameters:



1267
1268
1269
1270
1271
1272
# File 'pca_connector_ad/cfn_template.rb', line 1267

def initialize(usage_flags:, critical: nil)
  @usage_flags = usage_flags.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageFlagsProperty.new(**usage_flags.transform_keys(&:to_sym)) : usage_flags
  Jsii::Type.check_type(@usage_flags, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5UZW1wbGF0ZS5LZXlVc2FnZUZsYWdzUHJvcGVydHkifV19fQ==")), "usageFlags")
  @critical = critical
  Jsii::Type.check_type(@critical, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "critical") unless @critical.nil?
end

Instance Attribute Details

#criticalBoolean, ... (readonly)

Sets the key usage extension to critical.



1283
1284
1285
# File 'pca_connector_ad/cfn_template.rb', line 1283

def critical
  @critical
end

#usage_flagsAWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageFlagsProperty (readonly)

The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.



1278
1279
1280
# File 'pca_connector_ad/cfn_template.rb', line 1278

def usage_flags
  @usage_flags
end

Class Method Details

.jsii_propertiesObject



1285
1286
1287
1288
1289
1290
# File 'pca_connector_ad/cfn_template.rb', line 1285

def self.jsii_properties
  {
    :usage_flags => "usageFlags",
    :critical => "critical",
  }
end

Instance Method Details

#to_jsiiObject



1292
1293
1294
1295
1296
1297
1298
1299
# File 'pca_connector_ad/cfn_template.rb', line 1292

def to_jsii
  result = {}
  result.merge!({
    "usageFlags" => @usage_flags,
    "critical" => @critical,
  })
  result.compact
end