Class: AWSCDK::PCAConnectorAD::CfnTemplate::ExtensionsV4Property
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCAConnectorAD::CfnTemplate::ExtensionsV4Property
- Defined in:
- pca_connector_ad/cfn_template.rb
Overview
Certificate extensions for v4 template schema.
Instance Attribute Summary collapse
-
#application_policies ⇒ AWSCDK::IResolvable, ...
readonly
Application policies specify what the certificate is used for and its purpose.
-
#key_usage ⇒ AWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageProperty
readonly
The key usage extension defines the purpose (e.g., encipherment, signature) of the key contained in the certificate.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(key_usage:, application_policies: nil) ⇒ ExtensionsV4Property
constructor
A new instance of ExtensionsV4Property.
- #to_jsii ⇒ Object
Constructor Details
#initialize(key_usage:, application_policies: nil) ⇒ ExtensionsV4Property
Returns a new instance of ExtensionsV4Property.
1010 1011 1012 1013 1014 1015 |
# File 'pca_connector_ad/cfn_template.rb', line 1010 def initialize(key_usage:, application_policies: nil) @key_usage = key_usage.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageProperty.new(**key_usage.transform_keys(&:to_sym)) : key_usage Jsii::Type.check_type(@key_usage, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5UZW1wbGF0ZS5LZXlVc2FnZVByb3BlcnR5In1dfX0=")), "keyUsage") @application_policies = application_policies.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnTemplate::ApplicationPoliciesProperty.new(**application_policies.transform_keys(&:to_sym)) : application_policies Jsii::Type.check_type(@application_policies, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5UZW1wbGF0ZS5BcHBsaWNhdGlvblBvbGljaWVzUHJvcGVydHkifV19fQ==")), "applicationPolicies") unless @application_policies.nil? end |
Instance Attribute Details
#application_policies ⇒ AWSCDK::IResolvable, ... (readonly)
Application policies specify what the certificate is used for and its purpose.
1026 1027 1028 |
# File 'pca_connector_ad/cfn_template.rb', line 1026 def application_policies @application_policies end |
#key_usage ⇒ AWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnTemplate::KeyUsageProperty (readonly)
The key usage extension defines the purpose (e.g., encipherment, signature) of the key contained in the certificate.
1021 1022 1023 |
# File 'pca_connector_ad/cfn_template.rb', line 1021 def key_usage @key_usage end |
Class Method Details
.jsii_properties ⇒ Object
1028 1029 1030 1031 1032 1033 |
# File 'pca_connector_ad/cfn_template.rb', line 1028 def self.jsii_properties { :key_usage => "keyUsage", :application_policies => "applicationPolicies", } end |
Instance Method Details
#to_jsii ⇒ Object
1035 1036 1037 1038 1039 1040 1041 1042 |
# File 'pca_connector_ad/cfn_template.rb', line 1035 def to_jsii result = {} result.merge!({ "keyUsage" => @key_usage, "applicationPolicies" => @application_policies, }) result.compact end |