Class: AWSCDK::PCAConnectorAD::CfnTemplate::CertificateValidityProperty

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 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(renewal_period:, validity_period:) ⇒ CertificateValidityProperty

Returns a new instance of CertificateValidityProperty.

Parameters:



660
661
662
663
664
665
# File 'pca_connector_ad/cfn_template.rb', line 660

def initialize(renewal_period:, validity_period:)
  @renewal_period = renewal_period.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty.new(**renewal_period.transform_keys(&:to_sym)) : renewal_period
  Jsii::Type.check_type(@renewal_period, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5UZW1wbGF0ZS5WYWxpZGl0eVBlcmlvZFByb3BlcnR5In1dfX0=")), "renewalPeriod")
  @validity_period = validity_period.is_a?(Hash) ? ::AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty.new(**validity_period.transform_keys(&:to_sym)) : validity_period
  Jsii::Type.check_type(@validity_period, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19wY2Fjb25uZWN0b3JhZC5DZm5UZW1wbGF0ZS5WYWxpZGl0eVBlcmlvZFByb3BlcnR5In1dfX0=")), "validityPeriod")
end

Instance Attribute Details

#renewal_periodAWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty (readonly)

Renewal period is the period of time before certificate expiration when a new certificate will be requested.



671
672
673
# File 'pca_connector_ad/cfn_template.rb', line 671

def renewal_period
  @renewal_period
end

#validity_periodAWSCDK::IResolvable, AWSCDK::PCAConnectorAD::CfnTemplate::ValidityPeriodProperty (readonly)

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 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.



678
679
680
# File 'pca_connector_ad/cfn_template.rb', line 678

def validity_period
  @validity_period
end

Class Method Details

.jsii_propertiesObject



680
681
682
683
684
685
# File 'pca_connector_ad/cfn_template.rb', line 680

def self.jsii_properties
  {
    :renewal_period => "renewalPeriod",
    :validity_period => "validityPeriod",
  }
end

Instance Method Details

#to_jsiiObject



687
688
689
690
691
692
693
694
# File 'pca_connector_ad/cfn_template.rb', line 687

def to_jsii
  result = {}
  result.merge!({
    "renewalPeriod" => @renewal_period,
    "validityPeriod" => @validity_period,
  })
  result.compact
end