Class: AWSCDK::ACMPCA::CfnCertificate::ValidityProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
acmpca/cfn_certificate.rb

Overview

Length of time for which the certificate issued by your private certificate authority (CA), or by the private CA itself, is valid in days, months, or years.

You can issue a certificate by calling the IssueCertificate operation.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, value:) ⇒ ValidityProperty

Returns a new instance of ValidityProperty.

Parameters:

  • type (String)

    Specifies whether the Value parameter represents days, months, or years.

  • value (Numeric)

    A long integer interpreted according to the value of Type , below.



1501
1502
1503
1504
1505
1506
# File 'acmpca/cfn_certificate.rb', line 1501

def initialize(type:, value:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @value = value
  Jsii::Type.check_type(@value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "value")
end

Instance Attribute Details

#typeString (readonly)

Specifies whether the Value parameter represents days, months, or years.



1512
1513
1514
# File 'acmpca/cfn_certificate.rb', line 1512

def type
  @type
end

#valueNumeric (readonly)

A long integer interpreted according to the value of Type , below.



1517
1518
1519
# File 'acmpca/cfn_certificate.rb', line 1517

def value
  @value
end

Class Method Details

.jsii_propertiesObject



1519
1520
1521
1522
1523
1524
# File 'acmpca/cfn_certificate.rb', line 1519

def self.jsii_properties
  {
    :type => "type",
    :value => "value",
  }
end

Instance Method Details

#to_jsiiObject



1526
1527
1528
1529
1530
1531
1532
1533
# File 'acmpca/cfn_certificate.rb', line 1526

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "value" => @value,
  })
  result.compact
end