Class: AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageProperty
- 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
-
#critical ⇒ Boolean, ...
readonly
Sets the key usage extension to critical.
-
#usage_flags ⇒ AWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageFlagsProperty
readonly
The key usage flags represent the purpose (e.g., encipherment, signature) of the key contained in the certificate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(usage_flags:, critical: nil) ⇒ KeyUsageProperty
constructor
A new instance of KeyUsageProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(usage_flags:, critical: nil) ⇒ KeyUsageProperty
Returns a new instance of KeyUsageProperty.
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
#critical ⇒ Boolean, ... (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_flags ⇒ AWSCDK::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_properties ⇒ Object
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_jsii ⇒ Object
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 |