1. Packages
  2. AWS
  3. API Docs
  4. acmpca
  5. getCertificateAuthority
AWS v6.77.0 published on Wednesday, Apr 9, 2025 by Pulumi

aws.acmpca.getCertificateAuthority

Explore with Pulumi AI

Get information on a AWS Certificate Manager Private Certificate Authority (ACM PCA Certificate Authority).

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const example = aws.acmpca.getCertificateAuthority({
    arn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012",
});
Copy
import pulumi
import pulumi_aws as aws

example = aws.acmpca.get_certificate_authority(arn="arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012")
Copy
package main

import (
	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/acmpca"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := acmpca.LookupCertificateAuthority(ctx, &acmpca.LookupCertificateAuthorityArgs{
			Arn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aws = Pulumi.Aws;

return await Deployment.RunAsync(() => 
{
    var example = Aws.Acmpca.GetCertificateAuthority.Invoke(new()
    {
        Arn = "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.acmpca.AcmpcaFunctions;
import com.pulumi.aws.acmpca.inputs.GetCertificateAuthorityArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        final var example = AcmpcaFunctions.getCertificateAuthority(GetCertificateAuthorityArgs.builder()
            .arn("arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012")
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: aws:acmpca:getCertificateAuthority
      arguments:
        arn: arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012
Copy

Using getCertificateAuthority

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getCertificateAuthority(args: GetCertificateAuthorityArgs, opts?: InvokeOptions): Promise<GetCertificateAuthorityResult>
function getCertificateAuthorityOutput(args: GetCertificateAuthorityOutputArgs, opts?: InvokeOptions): Output<GetCertificateAuthorityResult>
Copy
def get_certificate_authority(arn: Optional[str] = None,
                              tags: Optional[Mapping[str, str]] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCertificateAuthorityResult
def get_certificate_authority_output(arn: Optional[pulumi.Input[str]] = None,
                              tags: Optional[pulumi.Input[Mapping[str, pulumi.Input[str]]]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCertificateAuthorityResult]
Copy
func LookupCertificateAuthority(ctx *Context, args *LookupCertificateAuthorityArgs, opts ...InvokeOption) (*LookupCertificateAuthorityResult, error)
func LookupCertificateAuthorityOutput(ctx *Context, args *LookupCertificateAuthorityOutputArgs, opts ...InvokeOption) LookupCertificateAuthorityResultOutput
Copy

> Note: This function is named LookupCertificateAuthority in the Go SDK.

public static class GetCertificateAuthority 
{
    public static Task<GetCertificateAuthorityResult> InvokeAsync(GetCertificateAuthorityArgs args, InvokeOptions? opts = null)
    public static Output<GetCertificateAuthorityResult> Invoke(GetCertificateAuthorityInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCertificateAuthorityResult> getCertificateAuthority(GetCertificateAuthorityArgs args, InvokeOptions options)
public static Output<GetCertificateAuthorityResult> getCertificateAuthority(GetCertificateAuthorityArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aws:acmpca/getCertificateAuthority:getCertificateAuthority
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Arn This property is required. string
ARN of the certificate authority.
Tags Dictionary<string, string>
Key-value map of user-defined tags that are attached to the certificate authority.
Arn This property is required. string
ARN of the certificate authority.
Tags map[string]string
Key-value map of user-defined tags that are attached to the certificate authority.
arn This property is required. String
ARN of the certificate authority.
tags Map<String,String>
Key-value map of user-defined tags that are attached to the certificate authority.
arn This property is required. string
ARN of the certificate authority.
tags {[key: string]: string}
Key-value map of user-defined tags that are attached to the certificate authority.
arn This property is required. str
ARN of the certificate authority.
tags Mapping[str, str]
Key-value map of user-defined tags that are attached to the certificate authority.
arn This property is required. String
ARN of the certificate authority.
tags Map<String>
Key-value map of user-defined tags that are attached to the certificate authority.

getCertificateAuthority Result

The following output properties are available:

Arn string
Certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
CertificateChain string
Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
CertificateSigningRequest string
The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
Id string
The provider-assigned unique ID for this managed resource.
KeyStorageSecurityStandard string
NotAfter string
Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
NotBefore string
Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
RevocationConfigurations List<GetCertificateAuthorityRevocationConfiguration>
Nested attribute containing revocation configuration.
Serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
Status string
Status of the certificate authority.
Tags Dictionary<string, string>
Key-value map of user-defined tags that are attached to the certificate authority.
Type string
Type of the certificate authority.
UsageMode string
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.
Arn string
Certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
CertificateChain string
Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
CertificateSigningRequest string
The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
Id string
The provider-assigned unique ID for this managed resource.
KeyStorageSecurityStandard string
NotAfter string
Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
NotBefore string
Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
RevocationConfigurations []GetCertificateAuthorityRevocationConfiguration
Nested attribute containing revocation configuration.
Serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
Status string
Status of the certificate authority.
Tags map[string]string
Key-value map of user-defined tags that are attached to the certificate authority.
Type string
Type of the certificate authority.
UsageMode string
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.
arn String
certificate String
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
certificateChain String
Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
certificateSigningRequest String
The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
id String
The provider-assigned unique ID for this managed resource.
keyStorageSecurityStandard String
notAfter String
Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
notBefore String
Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
revocationConfigurations List<GetCertificateAuthorityRevocationConfiguration>
Nested attribute containing revocation configuration.
serial String
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
status String
Status of the certificate authority.
tags Map<String,String>
Key-value map of user-defined tags that are attached to the certificate authority.
type String
Type of the certificate authority.
usageMode String
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.
arn string
certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
certificateChain string
Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
certificateSigningRequest string
The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
id string
The provider-assigned unique ID for this managed resource.
keyStorageSecurityStandard string
notAfter string
Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
notBefore string
Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
revocationConfigurations GetCertificateAuthorityRevocationConfiguration[]
Nested attribute containing revocation configuration.
serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
status string
Status of the certificate authority.
tags {[key: string]: string}
Key-value map of user-defined tags that are attached to the certificate authority.
type string
Type of the certificate authority.
usageMode string
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.
arn str
certificate str
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
certificate_chain str
Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
certificate_signing_request str
The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
id str
The provider-assigned unique ID for this managed resource.
key_storage_security_standard str
not_after str
Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
not_before str
Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
revocation_configurations Sequence[GetCertificateAuthorityRevocationConfiguration]
Nested attribute containing revocation configuration.
serial str
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
status str
Status of the certificate authority.
tags Mapping[str, str]
Key-value map of user-defined tags that are attached to the certificate authority.
type str
Type of the certificate authority.
usage_mode str
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.
arn String
certificate String
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
certificateChain String
Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
certificateSigningRequest String
The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
id String
The provider-assigned unique ID for this managed resource.
keyStorageSecurityStandard String
notAfter String
Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
notBefore String
Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
revocationConfigurations List<Property Map>
Nested attribute containing revocation configuration.
serial String
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
status String
Status of the certificate authority.
tags Map<String>
Key-value map of user-defined tags that are attached to the certificate authority.
type String
Type of the certificate authority.
usageMode String
Specifies whether the CA issues general-purpose certificates that typically require a revocation mechanism, or short-lived certificates that may optionally omit revocation because they expire quickly.

Supporting Types

GetCertificateAuthorityRevocationConfiguration

CrlConfigurations This property is required. List<GetCertificateAuthorityRevocationConfigurationCrlConfiguration>
Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority.
OcspConfigurations This property is required. List<GetCertificateAuthorityRevocationConfigurationOcspConfiguration>
CrlConfigurations This property is required. []GetCertificateAuthorityRevocationConfigurationCrlConfiguration
Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority.
OcspConfigurations This property is required. []GetCertificateAuthorityRevocationConfigurationOcspConfiguration
crlConfigurations This property is required. List<GetCertificateAuthorityRevocationConfigurationCrlConfiguration>
Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority.
ocspConfigurations This property is required. List<GetCertificateAuthorityRevocationConfigurationOcspConfiguration>
crlConfigurations This property is required. GetCertificateAuthorityRevocationConfigurationCrlConfiguration[]
Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority.
ocspConfigurations This property is required. GetCertificateAuthorityRevocationConfigurationOcspConfiguration[]
crl_configurations This property is required. Sequence[GetCertificateAuthorityRevocationConfigurationCrlConfiguration]
Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority.
ocsp_configurations This property is required. Sequence[GetCertificateAuthorityRevocationConfigurationOcspConfiguration]
crlConfigurations This property is required. List<Property Map>
Nested attribute containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority.
ocspConfigurations This property is required. List<Property Map>

GetCertificateAuthorityRevocationConfigurationCrlConfiguration

CustomCname This property is required. string
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.
Enabled This property is required. bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
ExpirationInDays This property is required. int
Number of days until a certificate expires.
S3BucketName This property is required. string
Name of the S3 bucket that contains the CRL.
S3ObjectAcl This property is required. string
Whether the CRL is publicly readable or privately held in the CRL Amazon S3 bucket.
CustomCname This property is required. string
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.
Enabled This property is required. bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
ExpirationInDays This property is required. int
Number of days until a certificate expires.
S3BucketName This property is required. string
Name of the S3 bucket that contains the CRL.
S3ObjectAcl This property is required. string
Whether the CRL is publicly readable or privately held in the CRL Amazon S3 bucket.
customCname This property is required. String
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.
enabled This property is required. Boolean
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
expirationInDays This property is required. Integer
Number of days until a certificate expires.
s3BucketName This property is required. String
Name of the S3 bucket that contains the CRL.
s3ObjectAcl This property is required. String
Whether the CRL is publicly readable or privately held in the CRL Amazon S3 bucket.
customCname This property is required. string
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.
enabled This property is required. boolean
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
expirationInDays This property is required. number
Number of days until a certificate expires.
s3BucketName This property is required. string
Name of the S3 bucket that contains the CRL.
s3ObjectAcl This property is required. string
Whether the CRL is publicly readable or privately held in the CRL Amazon S3 bucket.
custom_cname This property is required. str
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.
enabled This property is required. bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
expiration_in_days This property is required. int
Number of days until a certificate expires.
s3_bucket_name This property is required. str
Name of the S3 bucket that contains the CRL.
s3_object_acl This property is required. str
Whether the CRL is publicly readable or privately held in the CRL Amazon S3 bucket.
customCname This property is required. String
Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point.
enabled This property is required. Boolean
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled.
expirationInDays This property is required. Number
Number of days until a certificate expires.
s3BucketName This property is required. String
Name of the S3 bucket that contains the CRL.
s3ObjectAcl This property is required. String
Whether the CRL is publicly readable or privately held in the CRL Amazon S3 bucket.

GetCertificateAuthorityRevocationConfigurationOcspConfiguration

Enabled This property is required. bool
Boolean value that specifies whether a custom OCSP responder is enabled.
OcspCustomCname This property is required. string
A CNAME specifying a customized OCSP domain.
Enabled This property is required. bool
Boolean value that specifies whether a custom OCSP responder is enabled.
OcspCustomCname This property is required. string
A CNAME specifying a customized OCSP domain.
enabled This property is required. Boolean
Boolean value that specifies whether a custom OCSP responder is enabled.
ocspCustomCname This property is required. String
A CNAME specifying a customized OCSP domain.
enabled This property is required. boolean
Boolean value that specifies whether a custom OCSP responder is enabled.
ocspCustomCname This property is required. string
A CNAME specifying a customized OCSP domain.
enabled This property is required. bool
Boolean value that specifies whether a custom OCSP responder is enabled.
ocsp_custom_cname This property is required. str
A CNAME specifying a customized OCSP domain.
enabled This property is required. Boolean
Boolean value that specifies whether a custom OCSP responder is enabled.
ocspCustomCname This property is required. String
A CNAME specifying a customized OCSP domain.

Package Details

Repository
AWS Classic pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.