1. Packages
  2. AWS
  3. API Docs
  4. acmpca
  5. Certificate
AWS v6.54.2 published on Wednesday, Oct 2, 2024 by Pulumi

aws.acmpca.Certificate

Explore with Pulumi AI

aws logo
AWS v6.54.2 published on Wednesday, Oct 2, 2024 by Pulumi

    Provides a resource to issue a certificate using AWS Certificate Manager Private Certificate Authority (ACM PCA).

    Certificates created using aws.acmpca.Certificate are not eligible for automatic renewal, and must be replaced instead. To issue a renewable certificate using an ACM PCA, create a aws.acm.Certificate with the parameter certificate_authority_arn.

    Example Usage

    Basic

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    import * as tls from "@pulumi/tls";
    
    const exampleCertificateAuthority = new aws.acmpca.CertificateAuthority("example", {
        certificateAuthorityConfiguration: {
            keyAlgorithm: "RSA_4096",
            signingAlgorithm: "SHA512WITHRSA",
            subject: {
                commonName: "example.com",
            },
        },
        permanentDeletionTimeInDays: 7,
    });
    const key = new tls.PrivateKey("key", {algorithm: "RSA"});
    const csr = new tls.CertRequest("csr", {
        privateKeyPem: key.privateKeyPem,
        subject: {
            commonName: "example",
        },
    });
    const example = new aws.acmpca.Certificate("example", {
        certificateAuthorityArn: exampleCertificateAuthority.arn,
        certificateSigningRequest: csr.certRequestPem,
        signingAlgorithm: "SHA256WITHRSA",
        validity: {
            type: "YEARS",
            value: "1",
        },
    });
    
    import pulumi
    import pulumi_aws as aws
    import pulumi_tls as tls
    
    example_certificate_authority = aws.acmpca.CertificateAuthority("example",
        certificate_authority_configuration={
            "key_algorithm": "RSA_4096",
            "signing_algorithm": "SHA512WITHRSA",
            "subject": {
                "common_name": "example.com",
            },
        },
        permanent_deletion_time_in_days=7)
    key = tls.PrivateKey("key", algorithm="RSA")
    csr = tls.CertRequest("csr",
        private_key_pem=key.private_key_pem,
        subject={
            "common_name": "example",
        })
    example = aws.acmpca.Certificate("example",
        certificate_authority_arn=example_certificate_authority.arn,
        certificate_signing_request=csr.cert_request_pem,
        signing_algorithm="SHA256WITHRSA",
        validity={
            "type": "YEARS",
            "value": "1",
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/acmpca"
    	"github.com/pulumi/pulumi-tls/sdk/v4/go/tls"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleCertificateAuthority, err := acmpca.NewCertificateAuthority(ctx, "example", &acmpca.CertificateAuthorityArgs{
    			CertificateAuthorityConfiguration: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs{
    				KeyAlgorithm:     pulumi.String("RSA_4096"),
    				SigningAlgorithm: pulumi.String("SHA512WITHRSA"),
    				Subject: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs{
    					CommonName: pulumi.String("example.com"),
    				},
    			},
    			PermanentDeletionTimeInDays: pulumi.Int(7),
    		})
    		if err != nil {
    			return err
    		}
    		key, err := tls.NewPrivateKey(ctx, "key", &tls.PrivateKeyArgs{
    			Algorithm: pulumi.String("RSA"),
    		})
    		if err != nil {
    			return err
    		}
    		csr, err := tls.NewCertRequest(ctx, "csr", &tls.CertRequestArgs{
    			PrivateKeyPem: key.PrivateKeyPem,
    			Subject: &tls.CertRequestSubjectArgs{
    				CommonName: pulumi.String("example"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = acmpca.NewCertificate(ctx, "example", &acmpca.CertificateArgs{
    			CertificateAuthorityArn:   exampleCertificateAuthority.Arn,
    			CertificateSigningRequest: csr.CertRequestPem,
    			SigningAlgorithm:          pulumi.String("SHA256WITHRSA"),
    			Validity: &acmpca.CertificateValidityArgs{
    				Type:  pulumi.String("YEARS"),
    				Value: pulumi.String("1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    using Tls = Pulumi.Tls;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCertificateAuthority = new Aws.Acmpca.CertificateAuthority("example", new()
        {
            CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
            {
                KeyAlgorithm = "RSA_4096",
                SigningAlgorithm = "SHA512WITHRSA",
                Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
                {
                    CommonName = "example.com",
                },
            },
            PermanentDeletionTimeInDays = 7,
        });
    
        var key = new Tls.PrivateKey("key", new()
        {
            Algorithm = "RSA",
        });
    
        var csr = new Tls.CertRequest("csr", new()
        {
            PrivateKeyPem = key.PrivateKeyPem,
            Subject = new Tls.Inputs.CertRequestSubjectArgs
            {
                CommonName = "example",
            },
        });
    
        var example = new Aws.Acmpca.Certificate("example", new()
        {
            CertificateAuthorityArn = exampleCertificateAuthority.Arn,
            CertificateSigningRequest = csr.CertRequestPem,
            SigningAlgorithm = "SHA256WITHRSA",
            Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
            {
                Type = "YEARS",
                Value = "1",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.aws.acmpca.CertificateAuthority;
    import com.pulumi.aws.acmpca.CertificateAuthorityArgs;
    import com.pulumi.aws.acmpca.inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs;
    import com.pulumi.aws.acmpca.inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs;
    import com.pulumi.tls.PrivateKey;
    import com.pulumi.tls.PrivateKeyArgs;
    import com.pulumi.tls.CertRequest;
    import com.pulumi.tls.CertRequestArgs;
    import com.pulumi.tls.inputs.CertRequestSubjectArgs;
    import com.pulumi.aws.acmpca.Certificate;
    import com.pulumi.aws.acmpca.CertificateArgs;
    import com.pulumi.aws.acmpca.inputs.CertificateValidityArgs;
    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) {
            var exampleCertificateAuthority = new CertificateAuthority("exampleCertificateAuthority", CertificateAuthorityArgs.builder()
                .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder()
                    .keyAlgorithm("RSA_4096")
                    .signingAlgorithm("SHA512WITHRSA")
                    .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder()
                        .commonName("example.com")
                        .build())
                    .build())
                .permanentDeletionTimeInDays(7)
                .build());
    
            var key = new PrivateKey("key", PrivateKeyArgs.builder()
                .algorithm("RSA")
                .build());
    
            var csr = new CertRequest("csr", CertRequestArgs.builder()
                .privateKeyPem(key.privateKeyPem())
                .subject(CertRequestSubjectArgs.builder()
                    .commonName("example")
                    .build())
                .build());
    
            var example = new Certificate("example", CertificateArgs.builder()
                .certificateAuthorityArn(exampleCertificateAuthority.arn())
                .certificateSigningRequest(csr.certRequestPem())
                .signingAlgorithm("SHA256WITHRSA")
                .validity(CertificateValidityArgs.builder()
                    .type("YEARS")
                    .value(1)
                    .build())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:acmpca:Certificate
        properties:
          certificateAuthorityArn: ${exampleCertificateAuthority.arn}
          certificateSigningRequest: ${csr.certRequestPem}
          signingAlgorithm: SHA256WITHRSA
          validity:
            type: YEARS
            value: 1
      exampleCertificateAuthority:
        type: aws:acmpca:CertificateAuthority
        name: example
        properties:
          certificateAuthorityConfiguration:
            keyAlgorithm: RSA_4096
            signingAlgorithm: SHA512WITHRSA
            subject:
              commonName: example.com
          permanentDeletionTimeInDays: 7
      key:
        type: tls:PrivateKey
        properties:
          algorithm: RSA
      csr:
        type: tls:CertRequest
        properties:
          privateKeyPem: ${key.privateKeyPem}
          subject:
            commonName: example
    

    Create Certificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
    @overload
    def Certificate(resource_name: str,
                    args: CertificateArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def Certificate(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    certificate_authority_arn: Optional[str] = None,
                    certificate_signing_request: Optional[str] = None,
                    signing_algorithm: Optional[str] = None,
                    validity: Optional[CertificateValidityArgs] = None,
                    api_passthrough: Optional[str] = None,
                    template_arn: Optional[str] = None)
    func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
    public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
    public Certificate(String name, CertificateArgs args)
    public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
    
    type: aws:acmpca:Certificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var awsCertificateResource = new Aws.Acmpca.Certificate("awsCertificateResource", new()
    {
        CertificateAuthorityArn = "string",
        CertificateSigningRequest = "string",
        SigningAlgorithm = "string",
        Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
        {
            Type = "string",
            Value = "string",
        },
        ApiPassthrough = "string",
        TemplateArn = "string",
    });
    
    example, err := acmpca.NewCertificate(ctx, "awsCertificateResource", &acmpca.CertificateArgs{
    	CertificateAuthorityArn:   pulumi.String("string"),
    	CertificateSigningRequest: pulumi.String("string"),
    	SigningAlgorithm:          pulumi.String("string"),
    	Validity: &acmpca.CertificateValidityArgs{
    		Type:  pulumi.String("string"),
    		Value: pulumi.String("string"),
    	},
    	ApiPassthrough: pulumi.String("string"),
    	TemplateArn:    pulumi.String("string"),
    })
    
    var awsCertificateResource = new Certificate("awsCertificateResource", CertificateArgs.builder()
        .certificateAuthorityArn("string")
        .certificateSigningRequest("string")
        .signingAlgorithm("string")
        .validity(CertificateValidityArgs.builder()
            .type("string")
            .value("string")
            .build())
        .apiPassthrough("string")
        .templateArn("string")
        .build());
    
    aws_certificate_resource = aws.acmpca.Certificate("awsCertificateResource",
        certificate_authority_arn="string",
        certificate_signing_request="string",
        signing_algorithm="string",
        validity={
            "type": "string",
            "value": "string",
        },
        api_passthrough="string",
        template_arn="string")
    
    const awsCertificateResource = new aws.acmpca.Certificate("awsCertificateResource", {
        certificateAuthorityArn: "string",
        certificateSigningRequest: "string",
        signingAlgorithm: "string",
        validity: {
            type: "string",
            value: "string",
        },
        apiPassthrough: "string",
        templateArn: "string",
    });
    
    type: aws:acmpca:Certificate
    properties:
        apiPassthrough: string
        certificateAuthorityArn: string
        certificateSigningRequest: string
        signingAlgorithm: string
        templateArn: string
        validity:
            type: string
            value: string
    

    Certificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The Certificate resource accepts the following input properties:

    CertificateAuthorityArn string
    ARN of the certificate authority.
    CertificateSigningRequest string
    Certificate Signing Request in PEM format.
    SigningAlgorithm string
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    Validity CertificateValidity
    Configures end of the validity period for the certificate. See validity block below.
    ApiPassthrough string
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    TemplateArn string
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    CertificateAuthorityArn string
    ARN of the certificate authority.
    CertificateSigningRequest string
    Certificate Signing Request in PEM format.
    SigningAlgorithm string
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    Validity CertificateValidityArgs
    Configures end of the validity period for the certificate. See validity block below.
    ApiPassthrough string
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    TemplateArn string
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    certificateAuthorityArn String
    ARN of the certificate authority.
    certificateSigningRequest String
    Certificate Signing Request in PEM format.
    signingAlgorithm String
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    validity CertificateValidity
    Configures end of the validity period for the certificate. See validity block below.
    apiPassthrough String
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    templateArn String
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    certificateAuthorityArn string
    ARN of the certificate authority.
    certificateSigningRequest string
    Certificate Signing Request in PEM format.
    signingAlgorithm string
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    validity CertificateValidity
    Configures end of the validity period for the certificate. See validity block below.
    apiPassthrough string
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    templateArn string
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    certificate_authority_arn str
    ARN of the certificate authority.
    certificate_signing_request str
    Certificate Signing Request in PEM format.
    signing_algorithm str
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    validity CertificateValidityArgs
    Configures end of the validity period for the certificate. See validity block below.
    api_passthrough str
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    template_arn str
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    certificateAuthorityArn String
    ARN of the certificate authority.
    certificateSigningRequest String
    Certificate Signing Request in PEM format.
    signingAlgorithm String
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    validity Property Map
    Configures end of the validity period for the certificate. See validity block below.
    apiPassthrough String
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    templateArn String
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:

    Arn string
    ARN of the certificate.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    CertificateDetails string
    PEM-encoded certificate value.
    Id string
    The provider-assigned unique ID for this managed resource.
    Arn string
    ARN of the certificate.
    Certificate string
    PEM-encoded certificate value.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    Id string
    The provider-assigned unique ID for this managed resource.
    arn String
    ARN of the certificate.
    certificate String
    PEM-encoded certificate value.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    id String
    The provider-assigned unique ID for this managed resource.
    arn string
    ARN of the certificate.
    certificate string
    PEM-encoded certificate value.
    certificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    id string
    The provider-assigned unique ID for this managed resource.
    arn str
    ARN of the certificate.
    certificate str
    PEM-encoded certificate value.
    certificate_chain str
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    id str
    The provider-assigned unique ID for this managed resource.
    arn String
    ARN of the certificate.
    certificate String
    PEM-encoded certificate value.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Certificate Resource

    Get an existing Certificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: CertificateState, opts?: CustomResourceOptions): Certificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            api_passthrough: Optional[str] = None,
            arn: Optional[str] = None,
            certificate: Optional[str] = None,
            certificate_authority_arn: Optional[str] = None,
            certificate_chain: Optional[str] = None,
            certificate_signing_request: Optional[str] = None,
            signing_algorithm: Optional[str] = None,
            template_arn: Optional[str] = None,
            validity: Optional[CertificateValidityArgs] = None) -> Certificate
    func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
    public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
    public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApiPassthrough string
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    Arn string
    ARN of the certificate.
    CertificateAuthorityArn string
    ARN of the certificate authority.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    CertificateDetails string
    PEM-encoded certificate value.
    CertificateSigningRequest string
    Certificate Signing Request in PEM format.
    SigningAlgorithm string
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    TemplateArn string
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    Validity CertificateValidity
    Configures end of the validity period for the certificate. See validity block below.
    ApiPassthrough string
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    Arn string
    ARN of the certificate.
    Certificate string
    PEM-encoded certificate value.
    CertificateAuthorityArn string
    ARN of the certificate authority.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    CertificateSigningRequest string
    Certificate Signing Request in PEM format.
    SigningAlgorithm string
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    TemplateArn string
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    Validity CertificateValidityArgs
    Configures end of the validity period for the certificate. See validity block below.
    apiPassthrough String
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    arn String
    ARN of the certificate.
    certificate String
    PEM-encoded certificate value.
    certificateAuthorityArn String
    ARN of the certificate authority.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    certificateSigningRequest String
    Certificate Signing Request in PEM format.
    signingAlgorithm String
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    templateArn String
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    validity CertificateValidity
    Configures end of the validity period for the certificate. See validity block below.
    apiPassthrough string
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    arn string
    ARN of the certificate.
    certificate string
    PEM-encoded certificate value.
    certificateAuthorityArn string
    ARN of the certificate authority.
    certificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    certificateSigningRequest string
    Certificate Signing Request in PEM format.
    signingAlgorithm string
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    templateArn string
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    validity CertificateValidity
    Configures end of the validity period for the certificate. See validity block below.
    api_passthrough str
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    arn str
    ARN of the certificate.
    certificate str
    PEM-encoded certificate value.
    certificate_authority_arn str
    ARN of the certificate authority.
    certificate_chain str
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    certificate_signing_request str
    Certificate Signing Request in PEM format.
    signing_algorithm str
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    template_arn str
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    validity CertificateValidityArgs
    Configures end of the validity period for the certificate. See validity block below.
    apiPassthrough String
    Specifies X.509 certificate information to be included in the issued certificate. To use with API Passthrough templates
    arn String
    ARN of the certificate.
    certificate String
    PEM-encoded certificate value.
    certificateAuthorityArn String
    ARN of the certificate authority.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
    certificateSigningRequest String
    Certificate Signing Request in PEM format.
    signingAlgorithm String
    Algorithm to use to sign certificate requests. Valid values: SHA256WITHRSA, SHA256WITHECDSA, SHA384WITHRSA, SHA384WITHECDSA, SHA512WITHRSA, SHA512WITHECDSA.
    templateArn String
    Template to use when issuing a certificate. See ACM PCA Documentation for more information.
    validity Property Map
    Configures end of the validity period for the certificate. See validity block below.

    Supporting Types

    CertificateValidity, CertificateValidityArgs

    Type string
    Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
    Value string
    If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
    Type string
    Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
    Value string
    If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
    type String
    Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
    value String
    If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
    type string
    Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
    value string
    If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
    type str
    Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
    value str
    If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.
    type String
    Determines how value is interpreted. Valid values: DAYS, MONTHS, YEARS, ABSOLUTE, END_DATE.
    value String
    If type is DAYS, MONTHS, or YEARS, the relative time until the certificate expires. If type is ABSOLUTE, the date in seconds since the Unix epoch. If type is END_DATE, the date in RFC 3339 format.

    Import

    Using pulumi import, import ACM PCA Certificates using their ARN. For example:

    $ pulumi import aws:acmpca/certificate:Certificate cert arn:aws:acm-pca:eu-west-1:675225743824:certificate-authority/08319ede-83g9-1400-8f21-c7d12b2b6edb/certificate/a4e9c2aa4bcfab625g1b9136464cd3a
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    AWS Classic pulumi/pulumi-aws
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aws Terraform Provider.
    aws logo
    AWS v6.54.2 published on Wednesday, Oct 2, 2024 by Pulumi