UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

88 lines (87 loc) 3.18 kB
import * as pulumi from "@pulumi/pulumi"; /** * Get information on a Certificate issued by a AWS Certificate Manager Private Certificate Authority. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.acmpca.getCertificate({ * arn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23", * certificateAuthorityArn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012", * }); * ``` */ export declare function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>; /** * A collection of arguments for invoking getCertificate. */ export interface GetCertificateArgs { /** * ARN of the certificate issued by the private certificate authority. */ arn: string; /** * ARN of the certificate authority. */ certificateAuthorityArn: string; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: string; } /** * A collection of values returned by getCertificate. */ export interface GetCertificateResult { readonly arn: string; /** * PEM-encoded certificate value. */ readonly certificate: string; readonly certificateAuthorityArn: string; /** * PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. */ readonly certificateChain: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly region: string; } /** * Get information on a Certificate issued by a AWS Certificate Manager Private Certificate Authority. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const example = aws.acmpca.getCertificate({ * arn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012/certificate/1234b4a0d73e2056789bdbe77d5b1a23", * certificateAuthorityArn: "arn:aws:acm-pca:us-east-1:123456789012:certificate-authority/12345678-1234-1234-1234-123456789012", * }); * ``` */ export declare function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCertificateResult>; /** * A collection of arguments for invoking getCertificate. */ export interface GetCertificateOutputArgs { /** * ARN of the certificate issued by the private certificate authority. */ arn: pulumi.Input<string>; /** * ARN of the certificate authority. */ certificateAuthorityArn: pulumi.Input<string>; /** * Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration. */ region?: pulumi.Input<string>; }