

This is the new *CloudFormation Template Reference Guide*. Please update your bookmarks and links. For help getting started with CloudFormation, see the [AWS CloudFormation User Guide](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/Welcome.html).

# AWS::ACMPCA::Certificate Validity

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.

## Syntax
<a name="aws-properties-acmpca-certificate-validity-syntax"></a>

To declare this entity in your CloudFormation template, use the following syntax:

### JSON
<a name="aws-properties-acmpca-certificate-validity-syntax.json"></a>

```json
{
  "[Type](#cfn-acmpca-certificate-validity-type)" : {{String}},
  "[Value](#cfn-acmpca-certificate-validity-value)" : {{Number}}
}
```

### YAML
<a name="aws-properties-acmpca-certificate-validity-syntax.yaml"></a>

```yaml
  [Type](#cfn-acmpca-certificate-validity-type): {{String}}
  [Value](#cfn-acmpca-certificate-validity-value): {{Number}}
```

## Properties
<a name="aws-properties-acmpca-certificate-validity-properties"></a>

`Type`  <a name="cfn-acmpca-certificate-validity-type"></a>
Specifies whether the `Value` parameter represents days, months, or years.  
*Required*: Yes  
*Type*: String  
*Allowed values*: `END_DATE | ABSOLUTE | DAYS | MONTHS | YEARS`  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)

`Value`  <a name="cfn-acmpca-certificate-validity-value"></a>
A long integer interpreted according to the value of `Type`, below.  
*Required*: Yes  
*Type*: Number  
*Update requires*: [Replacement](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/using-cfn-updating-stacks-update-behaviors.html#update-replacement)