1. Packages
  2. AWS
  3. API Docs
  4. acmpca
  5. CertificateAuthorityCertificate
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

aws.acmpca.CertificateAuthorityCertificate

Explore with Pulumi AI

aws logo
AWS v6.60.0 published on Tuesday, Nov 19, 2024 by Pulumi

    Associates a certificate with an AWS Certificate Manager Private Certificate Authority (ACM PCA Certificate Authority). An ACM PCA Certificate Authority is unable to issue certificates until it has a certificate associated with it. A root level ACM PCA Certificate Authority is able to self-sign its own root certificate.

    Example Usage

    Self-Signed Root Certificate Authority Certificate

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const exampleCertificateAuthority = new aws.acmpca.CertificateAuthority("example", {
        type: "ROOT",
        certificateAuthorityConfiguration: {
            keyAlgorithm: "RSA_4096",
            signingAlgorithm: "SHA512WITHRSA",
            subject: {
                commonName: "example.com",
            },
        },
    });
    const current = aws.getPartition({});
    const exampleCertificate = new aws.acmpca.Certificate("example", {
        certificateAuthorityArn: exampleCertificateAuthority.arn,
        certificateSigningRequest: exampleCertificateAuthority.certificateSigningRequest,
        signingAlgorithm: "SHA512WITHRSA",
        templateArn: current.then(current => `arn:${current.partition}:acm-pca:::template/RootCACertificate/V1`),
        validity: {
            type: "YEARS",
            value: "1",
        },
    });
    const example = new aws.acmpca.CertificateAuthorityCertificate("example", {
        certificateAuthorityArn: exampleCertificateAuthority.arn,
        certificate: exampleCertificate.certificate,
        certificateChain: exampleCertificate.certificateChain,
    });
    
    import pulumi
    import pulumi_aws as aws
    
    example_certificate_authority = aws.acmpca.CertificateAuthority("example",
        type="ROOT",
        certificate_authority_configuration={
            "key_algorithm": "RSA_4096",
            "signing_algorithm": "SHA512WITHRSA",
            "subject": {
                "common_name": "example.com",
            },
        })
    current = aws.get_partition()
    example_certificate = aws.acmpca.Certificate("example",
        certificate_authority_arn=example_certificate_authority.arn,
        certificate_signing_request=example_certificate_authority.certificate_signing_request,
        signing_algorithm="SHA512WITHRSA",
        template_arn=f"arn:{current.partition}:acm-pca:::template/RootCACertificate/V1",
        validity={
            "type": "YEARS",
            "value": "1",
        })
    example = aws.acmpca.CertificateAuthorityCertificate("example",
        certificate_authority_arn=example_certificate_authority.arn,
        certificate=example_certificate.certificate,
        certificate_chain=example_certificate.certificate_chain)
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
    	"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 {
    		exampleCertificateAuthority, err := acmpca.NewCertificateAuthority(ctx, "example", &acmpca.CertificateAuthorityArgs{
    			Type: pulumi.String("ROOT"),
    			CertificateAuthorityConfiguration: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs{
    				KeyAlgorithm:     pulumi.String("RSA_4096"),
    				SigningAlgorithm: pulumi.String("SHA512WITHRSA"),
    				Subject: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs{
    					CommonName: pulumi.String("example.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		current, err := aws.GetPartition(ctx, &aws.GetPartitionArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		exampleCertificate, err := acmpca.NewCertificate(ctx, "example", &acmpca.CertificateArgs{
    			CertificateAuthorityArn:   exampleCertificateAuthority.Arn,
    			CertificateSigningRequest: exampleCertificateAuthority.CertificateSigningRequest,
    			SigningAlgorithm:          pulumi.String("SHA512WITHRSA"),
    			TemplateArn:               pulumi.Sprintf("arn:%v:acm-pca:::template/RootCACertificate/V1", current.Partition),
    			Validity: &acmpca.CertificateValidityArgs{
    				Type:  pulumi.String("YEARS"),
    				Value: pulumi.String("1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = acmpca.NewCertificateAuthorityCertificate(ctx, "example", &acmpca.CertificateAuthorityCertificateArgs{
    			CertificateAuthorityArn: exampleCertificateAuthority.Arn,
    			Certificate:             exampleCertificate.Certificate,
    			CertificateChain:        exampleCertificate.CertificateChain,
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleCertificateAuthority = new Aws.Acmpca.CertificateAuthority("example", new()
        {
            Type = "ROOT",
            CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
            {
                KeyAlgorithm = "RSA_4096",
                SigningAlgorithm = "SHA512WITHRSA",
                Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
                {
                    CommonName = "example.com",
                },
            },
        });
    
        var current = Aws.GetPartition.Invoke();
    
        var exampleCertificate = new Aws.Acmpca.Certificate("example", new()
        {
            CertificateAuthorityArn = exampleCertificateAuthority.Arn,
            CertificateSigningRequest = exampleCertificateAuthority.CertificateSigningRequest,
            SigningAlgorithm = "SHA512WITHRSA",
            TemplateArn = $"arn:{current.Apply(getPartitionResult => getPartitionResult.Partition)}:acm-pca:::template/RootCACertificate/V1",
            Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
            {
                Type = "YEARS",
                Value = "1",
            },
        });
    
        var example = new Aws.Acmpca.CertificateAuthorityCertificate("example", new()
        {
            CertificateAuthorityArn = exampleCertificateAuthority.Arn,
            Certificate = exampleCertificate.Certificate,
            CertificateChain = exampleCertificate.CertificateChain,
        });
    
    });
    
    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.aws.AwsFunctions;
    import com.pulumi.aws.inputs.GetPartitionArgs;
    import com.pulumi.aws.acmpca.Certificate;
    import com.pulumi.aws.acmpca.CertificateArgs;
    import com.pulumi.aws.acmpca.inputs.CertificateValidityArgs;
    import com.pulumi.aws.acmpca.CertificateAuthorityCertificate;
    import com.pulumi.aws.acmpca.CertificateAuthorityCertificateArgs;
    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()
                .type("ROOT")
                .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder()
                    .keyAlgorithm("RSA_4096")
                    .signingAlgorithm("SHA512WITHRSA")
                    .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder()
                        .commonName("example.com")
                        .build())
                    .build())
                .build());
    
            final var current = AwsFunctions.getPartition();
    
            var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
                .certificateAuthorityArn(exampleCertificateAuthority.arn())
                .certificateSigningRequest(exampleCertificateAuthority.certificateSigningRequest())
                .signingAlgorithm("SHA512WITHRSA")
                .templateArn(String.format("arn:%s:acm-pca:::template/RootCACertificate/V1", current.applyValue(getPartitionResult -> getPartitionResult.partition())))
                .validity(CertificateValidityArgs.builder()
                    .type("YEARS")
                    .value(1)
                    .build())
                .build());
    
            var example = new CertificateAuthorityCertificate("example", CertificateAuthorityCertificateArgs.builder()
                .certificateAuthorityArn(exampleCertificateAuthority.arn())
                .certificate(exampleCertificate.certificate())
                .certificateChain(exampleCertificate.certificateChain())
                .build());
    
        }
    }
    
    resources:
      example:
        type: aws:acmpca:CertificateAuthorityCertificate
        properties:
          certificateAuthorityArn: ${exampleCertificateAuthority.arn}
          certificate: ${exampleCertificate.certificate}
          certificateChain: ${exampleCertificate.certificateChain}
      exampleCertificate:
        type: aws:acmpca:Certificate
        name: example
        properties:
          certificateAuthorityArn: ${exampleCertificateAuthority.arn}
          certificateSigningRequest: ${exampleCertificateAuthority.certificateSigningRequest}
          signingAlgorithm: SHA512WITHRSA
          templateArn: arn:${current.partition}:acm-pca:::template/RootCACertificate/V1
          validity:
            type: YEARS
            value: 1
      exampleCertificateAuthority:
        type: aws:acmpca:CertificateAuthority
        name: example
        properties:
          type: ROOT
          certificateAuthorityConfiguration:
            keyAlgorithm: RSA_4096
            signingAlgorithm: SHA512WITHRSA
            subject:
              commonName: example.com
    variables:
      current:
        fn::invoke:
          Function: aws:getPartition
          Arguments: {}
    

    Certificate for Subordinate Certificate Authority

    Note that the certificate for the subordinate certificate authority must be issued by the root certificate authority using a signing request from the subordinate certificate authority.

    import * as pulumi from "@pulumi/pulumi";
    import * as aws from "@pulumi/aws";
    
    const subordinateCertificateAuthority = new aws.acmpca.CertificateAuthority("subordinate", {
        type: "SUBORDINATE",
        certificateAuthorityConfiguration: {
            keyAlgorithm: "RSA_2048",
            signingAlgorithm: "SHA512WITHRSA",
            subject: {
                commonName: "sub.example.com",
            },
        },
    });
    const root = new aws.acmpca.CertificateAuthority("root", {});
    const current = aws.getPartition({});
    const subordinateCertificate = new aws.acmpca.Certificate("subordinate", {
        certificateAuthorityArn: root.arn,
        certificateSigningRequest: subordinateCertificateAuthority.certificateSigningRequest,
        signingAlgorithm: "SHA512WITHRSA",
        templateArn: current.then(current => `arn:${current.partition}:acm-pca:::template/SubordinateCACertificate_PathLen0/V1`),
        validity: {
            type: "YEARS",
            value: "1",
        },
    });
    const subordinate = new aws.acmpca.CertificateAuthorityCertificate("subordinate", {
        certificateAuthorityArn: subordinateCertificateAuthority.arn,
        certificate: subordinateCertificate.certificate,
        certificateChain: subordinateCertificate.certificateChain,
    });
    const rootCertificateAuthorityCertificate = new aws.acmpca.CertificateAuthorityCertificate("root", {});
    const rootCertificate = new aws.acmpca.Certificate("root", {});
    
    import pulumi
    import pulumi_aws as aws
    
    subordinate_certificate_authority = aws.acmpca.CertificateAuthority("subordinate",
        type="SUBORDINATE",
        certificate_authority_configuration={
            "key_algorithm": "RSA_2048",
            "signing_algorithm": "SHA512WITHRSA",
            "subject": {
                "common_name": "sub.example.com",
            },
        })
    root = aws.acmpca.CertificateAuthority("root")
    current = aws.get_partition()
    subordinate_certificate = aws.acmpca.Certificate("subordinate",
        certificate_authority_arn=root.arn,
        certificate_signing_request=subordinate_certificate_authority.certificate_signing_request,
        signing_algorithm="SHA512WITHRSA",
        template_arn=f"arn:{current.partition}:acm-pca:::template/SubordinateCACertificate_PathLen0/V1",
        validity={
            "type": "YEARS",
            "value": "1",
        })
    subordinate = aws.acmpca.CertificateAuthorityCertificate("subordinate",
        certificate_authority_arn=subordinate_certificate_authority.arn,
        certificate=subordinate_certificate.certificate,
        certificate_chain=subordinate_certificate.certificate_chain)
    root_certificate_authority_certificate = aws.acmpca.CertificateAuthorityCertificate("root")
    root_certificate = aws.acmpca.Certificate("root")
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws"
    	"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 {
    		subordinateCertificateAuthority, err := acmpca.NewCertificateAuthority(ctx, "subordinate", &acmpca.CertificateAuthorityArgs{
    			Type: pulumi.String("SUBORDINATE"),
    			CertificateAuthorityConfiguration: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs{
    				KeyAlgorithm:     pulumi.String("RSA_2048"),
    				SigningAlgorithm: pulumi.String("SHA512WITHRSA"),
    				Subject: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs{
    					CommonName: pulumi.String("sub.example.com"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		root, err := acmpca.NewCertificateAuthority(ctx, "root", nil)
    		if err != nil {
    			return err
    		}
    		current, err := aws.GetPartition(ctx, &aws.GetPartitionArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		subordinateCertificate, err := acmpca.NewCertificate(ctx, "subordinate", &acmpca.CertificateArgs{
    			CertificateAuthorityArn:   root.Arn,
    			CertificateSigningRequest: subordinateCertificateAuthority.CertificateSigningRequest,
    			SigningAlgorithm:          pulumi.String("SHA512WITHRSA"),
    			TemplateArn:               pulumi.Sprintf("arn:%v:acm-pca:::template/SubordinateCACertificate_PathLen0/V1", current.Partition),
    			Validity: &acmpca.CertificateValidityArgs{
    				Type:  pulumi.String("YEARS"),
    				Value: pulumi.String("1"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = acmpca.NewCertificateAuthorityCertificate(ctx, "subordinate", &acmpca.CertificateAuthorityCertificateArgs{
    			CertificateAuthorityArn: subordinateCertificateAuthority.Arn,
    			Certificate:             subordinateCertificate.Certificate,
    			CertificateChain:        subordinateCertificate.CertificateChain,
    		})
    		if err != nil {
    			return err
    		}
    		_, err = acmpca.NewCertificateAuthorityCertificate(ctx, "root", nil)
    		if err != nil {
    			return err
    		}
    		_, err = acmpca.NewCertificate(ctx, "root", nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Aws = Pulumi.Aws;
    
    return await Deployment.RunAsync(() => 
    {
        var subordinateCertificateAuthority = new Aws.Acmpca.CertificateAuthority("subordinate", new()
        {
            Type = "SUBORDINATE",
            CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
            {
                KeyAlgorithm = "RSA_2048",
                SigningAlgorithm = "SHA512WITHRSA",
                Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
                {
                    CommonName = "sub.example.com",
                },
            },
        });
    
        var root = new Aws.Acmpca.CertificateAuthority("root");
    
        var current = Aws.GetPartition.Invoke();
    
        var subordinateCertificate = new Aws.Acmpca.Certificate("subordinate", new()
        {
            CertificateAuthorityArn = root.Arn,
            CertificateSigningRequest = subordinateCertificateAuthority.CertificateSigningRequest,
            SigningAlgorithm = "SHA512WITHRSA",
            TemplateArn = $"arn:{current.Apply(getPartitionResult => getPartitionResult.Partition)}:acm-pca:::template/SubordinateCACertificate_PathLen0/V1",
            Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
            {
                Type = "YEARS",
                Value = "1",
            },
        });
    
        var subordinate = new Aws.Acmpca.CertificateAuthorityCertificate("subordinate", new()
        {
            CertificateAuthorityArn = subordinateCertificateAuthority.Arn,
            Certificate = subordinateCertificate.Certificate,
            CertificateChain = subordinateCertificate.CertificateChain,
        });
    
        var rootCertificateAuthorityCertificate = new Aws.Acmpca.CertificateAuthorityCertificate("root");
    
        var rootCertificate = new Aws.Acmpca.Certificate("root");
    
    });
    
    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.aws.AwsFunctions;
    import com.pulumi.aws.inputs.GetPartitionArgs;
    import com.pulumi.aws.acmpca.Certificate;
    import com.pulumi.aws.acmpca.CertificateArgs;
    import com.pulumi.aws.acmpca.inputs.CertificateValidityArgs;
    import com.pulumi.aws.acmpca.CertificateAuthorityCertificate;
    import com.pulumi.aws.acmpca.CertificateAuthorityCertificateArgs;
    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 subordinateCertificateAuthority = new CertificateAuthority("subordinateCertificateAuthority", CertificateAuthorityArgs.builder()
                .type("SUBORDINATE")
                .certificateAuthorityConfiguration(CertificateAuthorityCertificateAuthorityConfigurationArgs.builder()
                    .keyAlgorithm("RSA_2048")
                    .signingAlgorithm("SHA512WITHRSA")
                    .subject(CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs.builder()
                        .commonName("sub.example.com")
                        .build())
                    .build())
                .build());
    
            var root = new CertificateAuthority("root");
    
            final var current = AwsFunctions.getPartition();
    
            var subordinateCertificate = new Certificate("subordinateCertificate", CertificateArgs.builder()
                .certificateAuthorityArn(root.arn())
                .certificateSigningRequest(subordinateCertificateAuthority.certificateSigningRequest())
                .signingAlgorithm("SHA512WITHRSA")
                .templateArn(String.format("arn:%s:acm-pca:::template/SubordinateCACertificate_PathLen0/V1", current.applyValue(getPartitionResult -> getPartitionResult.partition())))
                .validity(CertificateValidityArgs.builder()
                    .type("YEARS")
                    .value(1)
                    .build())
                .build());
    
            var subordinate = new CertificateAuthorityCertificate("subordinate", CertificateAuthorityCertificateArgs.builder()
                .certificateAuthorityArn(subordinateCertificateAuthority.arn())
                .certificate(subordinateCertificate.certificate())
                .certificateChain(subordinateCertificate.certificateChain())
                .build());
    
            var rootCertificateAuthorityCertificate = new CertificateAuthorityCertificate("rootCertificateAuthorityCertificate");
    
            var rootCertificate = new Certificate("rootCertificate");
    
        }
    }
    
    resources:
      subordinate:
        type: aws:acmpca:CertificateAuthorityCertificate
        properties:
          certificateAuthorityArn: ${subordinateCertificateAuthority.arn}
          certificate: ${subordinateCertificate.certificate}
          certificateChain: ${subordinateCertificate.certificateChain}
      subordinateCertificate:
        type: aws:acmpca:Certificate
        name: subordinate
        properties:
          certificateAuthorityArn: ${root.arn}
          certificateSigningRequest: ${subordinateCertificateAuthority.certificateSigningRequest}
          signingAlgorithm: SHA512WITHRSA
          templateArn: arn:${current.partition}:acm-pca:::template/SubordinateCACertificate_PathLen0/V1
          validity:
            type: YEARS
            value: 1
      subordinateCertificateAuthority:
        type: aws:acmpca:CertificateAuthority
        name: subordinate
        properties:
          type: SUBORDINATE
          certificateAuthorityConfiguration:
            keyAlgorithm: RSA_2048
            signingAlgorithm: SHA512WITHRSA
            subject:
              commonName: sub.example.com
      root:
        type: aws:acmpca:CertificateAuthority
      rootCertificateAuthorityCertificate:
        type: aws:acmpca:CertificateAuthorityCertificate
        name: root
      rootCertificate:
        type: aws:acmpca:Certificate
        name: root
    variables:
      current:
        fn::invoke:
          Function: aws:getPartition
          Arguments: {}
    

    Create CertificateAuthorityCertificate Resource

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

    Constructor syntax

    new CertificateAuthorityCertificate(name: string, args: CertificateAuthorityCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def CertificateAuthorityCertificate(resource_name: str,
                                        args: CertificateAuthorityCertificateArgs,
                                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def CertificateAuthorityCertificate(resource_name: str,
                                        opts: Optional[ResourceOptions] = None,
                                        certificate: Optional[str] = None,
                                        certificate_authority_arn: Optional[str] = None,
                                        certificate_chain: Optional[str] = None)
    func NewCertificateAuthorityCertificate(ctx *Context, name string, args CertificateAuthorityCertificateArgs, opts ...ResourceOption) (*CertificateAuthorityCertificate, error)
    public CertificateAuthorityCertificate(string name, CertificateAuthorityCertificateArgs args, CustomResourceOptions? opts = null)
    public CertificateAuthorityCertificate(String name, CertificateAuthorityCertificateArgs args)
    public CertificateAuthorityCertificate(String name, CertificateAuthorityCertificateArgs args, CustomResourceOptions options)
    
    type: aws:acmpca:CertificateAuthorityCertificate
    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 CertificateAuthorityCertificateArgs
    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 CertificateAuthorityCertificateArgs
    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 CertificateAuthorityCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CertificateAuthorityCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CertificateAuthorityCertificateArgs
    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 certificateAuthorityCertificateResource = new Aws.Acmpca.CertificateAuthorityCertificate("certificateAuthorityCertificateResource", new()
    {
        Certificate = "string",
        CertificateAuthorityArn = "string",
        CertificateChain = "string",
    });
    
    example, err := acmpca.NewCertificateAuthorityCertificate(ctx, "certificateAuthorityCertificateResource", &acmpca.CertificateAuthorityCertificateArgs{
    	Certificate:             pulumi.String("string"),
    	CertificateAuthorityArn: pulumi.String("string"),
    	CertificateChain:        pulumi.String("string"),
    })
    
    var certificateAuthorityCertificateResource = new CertificateAuthorityCertificate("certificateAuthorityCertificateResource", CertificateAuthorityCertificateArgs.builder()
        .certificate("string")
        .certificateAuthorityArn("string")
        .certificateChain("string")
        .build());
    
    certificate_authority_certificate_resource = aws.acmpca.CertificateAuthorityCertificate("certificateAuthorityCertificateResource",
        certificate="string",
        certificate_authority_arn="string",
        certificate_chain="string")
    
    const certificateAuthorityCertificateResource = new aws.acmpca.CertificateAuthorityCertificate("certificateAuthorityCertificateResource", {
        certificate: "string",
        certificateAuthorityArn: "string",
        certificateChain: "string",
    });
    
    type: aws:acmpca:CertificateAuthorityCertificate
    properties:
        certificate: string
        certificateAuthorityArn: string
        certificateChain: string
    

    CertificateAuthorityCertificate Resource Properties

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

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The CertificateAuthorityCertificate resource accepts the following input properties:

    Certificate string
    PEM-encoded certificate for the Certificate Authority.
    CertificateAuthorityArn string
    ARN of the Certificate Authority.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    Certificate string
    PEM-encoded certificate for the Certificate Authority.
    CertificateAuthorityArn string
    ARN of the Certificate Authority.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate String
    PEM-encoded certificate for the Certificate Authority.
    certificateAuthorityArn String
    ARN of the Certificate Authority.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate string
    PEM-encoded certificate for the Certificate Authority.
    certificateAuthorityArn string
    ARN of the Certificate Authority.
    certificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate str
    PEM-encoded certificate for the Certificate Authority.
    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. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate String
    PEM-encoded certificate for the Certificate Authority.
    certificateAuthorityArn String
    ARN of the Certificate Authority.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing CertificateAuthorityCertificate Resource

    Get an existing CertificateAuthorityCertificate 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?: CertificateAuthorityCertificateState, opts?: CustomResourceOptions): CertificateAuthorityCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate: Optional[str] = None,
            certificate_authority_arn: Optional[str] = None,
            certificate_chain: Optional[str] = None) -> CertificateAuthorityCertificate
    func GetCertificateAuthorityCertificate(ctx *Context, name string, id IDInput, state *CertificateAuthorityCertificateState, opts ...ResourceOption) (*CertificateAuthorityCertificate, error)
    public static CertificateAuthorityCertificate Get(string name, Input<string> id, CertificateAuthorityCertificateState? state, CustomResourceOptions? opts = null)
    public static CertificateAuthorityCertificate get(String name, Output<String> id, CertificateAuthorityCertificateState 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:
    Certificate string
    PEM-encoded certificate for the Certificate Authority.
    CertificateAuthorityArn string
    ARN of the Certificate Authority.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    Certificate string
    PEM-encoded certificate for the Certificate Authority.
    CertificateAuthorityArn string
    ARN of the Certificate Authority.
    CertificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate String
    PEM-encoded certificate for the Certificate Authority.
    certificateAuthorityArn String
    ARN of the Certificate Authority.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate string
    PEM-encoded certificate for the Certificate Authority.
    certificateAuthorityArn string
    ARN of the Certificate Authority.
    certificateChain string
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate str
    PEM-encoded certificate for the Certificate Authority.
    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. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.
    certificate String
    PEM-encoded certificate for the Certificate Authority.
    certificateAuthorityArn String
    ARN of the Certificate Authority.
    certificateChain String
    PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA. Required for subordinate Certificate Authorities. Not allowed for root Certificate Authorities.

    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.60.0 published on Tuesday, Nov 19, 2024 by Pulumi