Class: AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty
- Defined in:
- pca_connector_ad/cfn_template.rb
Overview
Information describing the end of the validity period of the certificate.
This parameter sets the “Not After” date for the certificate. Certificate validity is the period of time during which a certificate is valid. Validity can be expressed as an explicit date and time when the certificate expires, or as a span of time after issuance, stated in hours, days, months, or years. For more information, see Validity in RFC 5280. This value is unaffected when ValidityNotBefore is also specified. For example, if Validity is set to 20 days in the future, the certificate will expire 20 days from issuance time regardless of the ValidityNotBefore value.
Instance Attribute Summary collapse
-
#period ⇒ Numeric
readonly
The numeric value for the validity period.
-
#period_type ⇒ String
readonly
The unit of time.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(period:, period_type:) ⇒ ValidityPeriodProperty
constructor
A new instance of ValidityPeriodProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(period:, period_type:) ⇒ ValidityPeriodProperty
Returns a new instance of ValidityPeriodProperty.
2597 2598 2599 2600 2601 2602 |
# File 'pca_connector_ad/cfn_template.rb', line 2597 def initialize(period:, period_type:) @period = period Jsii::Type.check_type(@period, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "period") @period_type = period_type Jsii::Type.check_type(@period_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "periodType") end |
Instance Attribute Details
#period ⇒ Numeric (readonly)
The numeric value for the validity period.
2608 2609 2610 |
# File 'pca_connector_ad/cfn_template.rb', line 2608 def period @period end |
#period_type ⇒ String (readonly)
The unit of time.
You can select hours, days, weeks, months, and years.
2615 2616 2617 |
# File 'pca_connector_ad/cfn_template.rb', line 2615 def period_type @period_type end |
Class Method Details
.jsii_properties ⇒ Object
2617 2618 2619 2620 2621 2622 |
# File 'pca_connector_ad/cfn_template.rb', line 2617 def self.jsii_properties { :period => "period", :period_type => "periodType", } end |
Instance Method Details
#to_jsii ⇒ Object
2624 2625 2626 2627 2628 2629 2630 2631 |
# File 'pca_connector_ad/cfn_template.rb', line 2624 def to_jsii result = {} result.merge!({ "period" => @period, "periodType" => @period_type, }) result.compact end |