Provides an API Gateway Client Certificate.
resource "aws_api_gateway_client_certificate" "demo" {
description = "My client certificate"
}
This resource supports the following arguments:
description
- (Optional) Description of the client certificate.tags
- (Optional) Key-value map of resource tags. If configured with a provider default_tags
configuration block present, tags with matching keys will overwrite those defined at the provider-level.This resource exports the following attributes in addition to the arguments above:
id
- Identifier of the client certificate.created_date
- Date when the client certificate was created.expiration_date
- Date when the client certificate will expire.pem_encoded_certificate
- The PEM-encoded public key of the client certificate.arn
- ARNtags_all
- Map of tags assigned to the resource, including those inherited from the provider default_tags
configuration block.In Terraform v1.5.0 and later, use an import
block to import API Gateway Client Certificates using the id. For example:
import {
to = aws_api_gateway_client_certificate.demo
id = "ab1cqe"
}
Using terraform import
, import API Gateway Client Certificates using the id. For example:
% terraform import aws_api_gateway_client_certificate.demo ab1cqe