Class: AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(period:, period_type:) ⇒ ValidityPeriodProperty

Returns a new instance of ValidityPeriodProperty.

Parameters:

  • period (Numeric)

    The numeric value for the validity period.

  • period_type (String)

    The unit of time.



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

#periodNumeric (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_typeString (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_propertiesObject



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_jsiiObject



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