AWS Classic

Pulumi Official
Package maintained by Pulumi
v5.10.0 published on Monday, Jul 11, 2022 by Pulumi

CertificateAuthorityCertificate

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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var exampleCertificateAuthority = new Aws.Acmpca.CertificateAuthority("exampleCertificateAuthority", new Aws.Acmpca.CertificateAuthorityArgs
        {
            Type = "ROOT",
            CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
            {
                KeyAlgorithm = "RSA_4096",
                SigningAlgorithm = "SHA512WITHRSA",
                Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
                {
                    CommonName = "example.com",
                },
            },
        });
        var current = Output.Create(Aws.GetPartition.InvokeAsync());
        var exampleCertificate = new Aws.Acmpca.Certificate("exampleCertificate", new Aws.Acmpca.CertificateArgs
        {
            CertificateAuthorityArn = exampleCertificateAuthority.Arn,
            CertificateSigningRequest = exampleCertificateAuthority.CertificateSigningRequest,
            SigningAlgorithm = "SHA512WITHRSA",
            TemplateArn = current.Apply(current => $"arn:{current.Partition}:acm-pca:::template/RootCACertificate/V1"),
            Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
            {
                Type = "YEARS",
                Value = "1",
            },
        });
        var exampleCertificateAuthorityCertificate = new Aws.Acmpca.CertificateAuthorityCertificate("exampleCertificateAuthorityCertificate", new Aws.Acmpca.CertificateAuthorityCertificateArgs
        {
            CertificateAuthorityArn = exampleCertificateAuthority.Arn,
            Certificate = exampleCertificate.Certificate,
            CertificateChain = exampleCertificate.CertificateChain,
        });
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
	"github.com/pulumi/pulumi-aws/sdk/v5/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, "exampleCertificateAuthority", &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, nil, nil)
		if err != nil {
			return err
		}
		exampleCertificate, err := acmpca.NewCertificate(ctx, "exampleCertificate", &acmpca.CertificateArgs{
			CertificateAuthorityArn:   exampleCertificateAuthority.Arn,
			CertificateSigningRequest: exampleCertificateAuthority.CertificateSigningRequest,
			SigningAlgorithm:          pulumi.String("SHA512WITHRSA"),
			TemplateArn:               pulumi.String(fmt.Sprintf("%v%v%v", "arn:", current.Partition, ":acm-pca:::template/RootCACertificate/V1")),
			Validity: &acmpca.CertificateValidityArgs{
				Type:  pulumi.String("YEARS"),
				Value: pulumi.String("1"),
			},
		})
		if err != nil {
			return err
		}
		_, err = acmpca.NewCertificateAuthorityCertificate(ctx, "exampleCertificateAuthorityCertificate", &acmpca.CertificateAuthorityCertificateArgs{
			CertificateAuthorityArn: exampleCertificateAuthority.Arn,
			Certificate:             exampleCertificate.Certificate,
			CertificateChain:        exampleCertificate.CertificateChain,
		})
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 = Output.of(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.apply(getPartitionResult -> getPartitionResult.partition())))
            .validity(CertificateValidityArgs.builder()
                .type("YEARS")
                .value(1)
                .build())
            .build());

        var exampleCertificateAuthorityCertificate = new CertificateAuthorityCertificate("exampleCertificateAuthorityCertificate", CertificateAuthorityCertificateArgs.builder()        
            .certificateAuthorityArn(exampleCertificateAuthority.arn())
            .certificate(exampleCertificate.certificate())
            .certificateChain(exampleCertificate.certificateChain())
            .build());

    }
}
import pulumi
import pulumi_aws as aws

example_certificate_authority = aws.acmpca.CertificateAuthority("exampleCertificateAuthority",
    type="ROOT",
    certificate_authority_configuration=aws.acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs(
        key_algorithm="RSA_4096",
        signing_algorithm="SHA512WITHRSA",
        subject=aws.acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs(
            common_name="example.com",
        ),
    ))
current = aws.get_partition()
example_certificate = aws.acmpca.Certificate("exampleCertificate",
    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=aws.acmpca.CertificateValidityArgs(
        type="YEARS",
        value="1",
    ))
example_certificate_authority_certificate = aws.acmpca.CertificateAuthorityCertificate("exampleCertificateAuthorityCertificate",
    certificate_authority_arn=example_certificate_authority.arn,
    certificate=example_certificate.certificate,
    certificate_chain=example_certificate.certificate_chain)
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const exampleCertificateAuthority = new aws.acmpca.CertificateAuthority("exampleCertificateAuthority", {
    type: "ROOT",
    certificateAuthorityConfiguration: {
        keyAlgorithm: "RSA_4096",
        signingAlgorithm: "SHA512WITHRSA",
        subject: {
            commonName: "example.com",
        },
    },
});
const current = aws.getPartition({});
const exampleCertificate = new aws.acmpca.Certificate("exampleCertificate", {
    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 exampleCertificateAuthorityCertificate = new aws.acmpca.CertificateAuthorityCertificate("exampleCertificateAuthorityCertificate", {
    certificateAuthorityArn: exampleCertificateAuthority.arn,
    certificate: exampleCertificate.certificate,
    certificateChain: exampleCertificate.certificateChain,
});
resources:
  exampleCertificateAuthorityCertificate:
    type: aws:acmpca:CertificateAuthorityCertificate
    properties:
      certificateAuthorityArn: ${exampleCertificateAuthority.arn}
      certificate: ${exampleCertificate.certificate}
      certificateChain: ${exampleCertificate.certificateChain}
  exampleCertificate:
    type: aws:acmpca:Certificate
    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
    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

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var subordinateCertificateAuthority = new Aws.Acmpca.CertificateAuthority("subordinateCertificateAuthority", new Aws.Acmpca.CertificateAuthorityArgs
        {
            Type = "SUBORDINATE",
            CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
            {
                KeyAlgorithm = "RSA_2048",
                SigningAlgorithm = "SHA512WITHRSA",
                Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
                {
                    CommonName = "sub.example.com",
                },
            },
        });
        var rootCertificateAuthority = new Aws.Acmpca.CertificateAuthority("rootCertificateAuthority", new Aws.Acmpca.CertificateAuthorityArgs
        {
        });
        // ...
        var current = Output.Create(Aws.GetPartition.InvokeAsync());
        var subordinateCertificate = new Aws.Acmpca.Certificate("subordinateCertificate", new Aws.Acmpca.CertificateArgs
        {
            CertificateAuthorityArn = rootCertificateAuthority.Arn,
            CertificateSigningRequest = subordinateCertificateAuthority.CertificateSigningRequest,
            SigningAlgorithm = "SHA512WITHRSA",
            TemplateArn = current.Apply(current => $"arn:{current.Partition}:acm-pca:::template/SubordinateCACertificate_PathLen0/V1"),
            Validity = new Aws.Acmpca.Inputs.CertificateValidityArgs
            {
                Type = "YEARS",
                Value = "1",
            },
        });
        var subordinateCertificateAuthorityCertificate = new Aws.Acmpca.CertificateAuthorityCertificate("subordinateCertificateAuthorityCertificate", new Aws.Acmpca.CertificateAuthorityCertificateArgs
        {
            CertificateAuthorityArn = subordinateCertificateAuthority.Arn,
            Certificate = subordinateCertificate.Certificate,
            CertificateChain = subordinateCertificate.CertificateChain,
        });
        var rootCertificateAuthorityCertificate = new Aws.Acmpca.CertificateAuthorityCertificate("rootCertificateAuthorityCertificate", new Aws.Acmpca.CertificateAuthorityCertificateArgs
        {
        });
        // ...
        var rootCertificate = new Aws.Acmpca.Certificate("rootCertificate", new Aws.Acmpca.CertificateArgs
        {
        });
        // ...
    }

}
package main

import (
	"fmt"

	"github.com/pulumi/pulumi-aws/sdk/v5/go/aws"
	"github.com/pulumi/pulumi-aws/sdk/v5/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, "subordinateCertificateAuthority", &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
		}
		rootCertificateAuthority, err := acmpca.NewCertificateAuthority(ctx, "rootCertificateAuthority", nil)
		if err != nil {
			return err
		}
		current, err := aws.GetPartition(ctx, nil, nil)
		if err != nil {
			return err
		}
		subordinateCertificate, err := acmpca.NewCertificate(ctx, "subordinateCertificate", &acmpca.CertificateArgs{
			CertificateAuthorityArn:   rootCertificateAuthority.Arn,
			CertificateSigningRequest: subordinateCertificateAuthority.CertificateSigningRequest,
			SigningAlgorithm:          pulumi.String("SHA512WITHRSA"),
			TemplateArn:               pulumi.String(fmt.Sprintf("%v%v%v", "arn:", current.Partition, ":acm-pca:::template/SubordinateCACertificate_PathLen0/V1")),
			Validity: &acmpca.CertificateValidityArgs{
				Type:  pulumi.String("YEARS"),
				Value: pulumi.String("1"),
			},
		})
		if err != nil {
			return err
		}
		_, err = acmpca.NewCertificateAuthorityCertificate(ctx, "subordinateCertificateAuthorityCertificate", &acmpca.CertificateAuthorityCertificateArgs{
			CertificateAuthorityArn: subordinateCertificateAuthority.Arn,
			Certificate:             subordinateCertificate.Certificate,
			CertificateChain:        subordinateCertificate.CertificateChain,
		})
		if err != nil {
			return err
		}
		_, err = acmpca.NewCertificateAuthorityCertificate(ctx, "rootCertificateAuthorityCertificate", nil)
		if err != nil {
			return err
		}
		_, err = acmpca.NewCertificate(ctx, "rootCertificate", nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;

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 rootCertificateAuthority = new CertificateAuthority("rootCertificateAuthority");

        final var current = Output.of(AwsFunctions.getPartition());

        var subordinateCertificate = new Certificate("subordinateCertificate", CertificateArgs.builder()        
            .certificateAuthorityArn(rootCertificateAuthority.arn())
            .certificateSigningRequest(subordinateCertificateAuthority.certificateSigningRequest())
            .signingAlgorithm("SHA512WITHRSA")
            .templateArn(String.format("arn:%s:acm-pca:::template/SubordinateCACertificate_PathLen0/V1", current.apply(getPartitionResult -> getPartitionResult.partition())))
            .validity(CertificateValidityArgs.builder()
                .type("YEARS")
                .value(1)
                .build())
            .build());

        var subordinateCertificateAuthorityCertificate = new CertificateAuthorityCertificate("subordinateCertificateAuthorityCertificate", CertificateAuthorityCertificateArgs.builder()        
            .certificateAuthorityArn(subordinateCertificateAuthority.arn())
            .certificate(subordinateCertificate.certificate())
            .certificateChain(subordinateCertificate.certificateChain())
            .build());

        var rootCertificateAuthorityCertificate = new CertificateAuthorityCertificate("rootCertificateAuthorityCertificate");

        var rootCertificate = new Certificate("rootCertificate");

    }
}
import pulumi
import pulumi_aws as aws

subordinate_certificate_authority = aws.acmpca.CertificateAuthority("subordinateCertificateAuthority",
    type="SUBORDINATE",
    certificate_authority_configuration=aws.acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs(
        key_algorithm="RSA_2048",
        signing_algorithm="SHA512WITHRSA",
        subject=aws.acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs(
            common_name="sub.example.com",
        ),
    ))
root_certificate_authority = aws.acmpca.CertificateAuthority("rootCertificateAuthority")
# ...
current = aws.get_partition()
subordinate_certificate = aws.acmpca.Certificate("subordinateCertificate",
    certificate_authority_arn=root_certificate_authority.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=aws.acmpca.CertificateValidityArgs(
        type="YEARS",
        value="1",
    ))
subordinate_certificate_authority_certificate = aws.acmpca.CertificateAuthorityCertificate("subordinateCertificateAuthorityCertificate",
    certificate_authority_arn=subordinate_certificate_authority.arn,
    certificate=subordinate_certificate.certificate,
    certificate_chain=subordinate_certificate.certificate_chain)
root_certificate_authority_certificate = aws.acmpca.CertificateAuthorityCertificate("rootCertificateAuthorityCertificate")
# ...
root_certificate = aws.acmpca.Certificate("rootCertificate")
# ...
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const subordinateCertificateAuthority = new aws.acmpca.CertificateAuthority("subordinateCertificateAuthority", {
    type: "SUBORDINATE",
    certificateAuthorityConfiguration: {
        keyAlgorithm: "RSA_2048",
        signingAlgorithm: "SHA512WITHRSA",
        subject: {
            commonName: "sub.example.com",
        },
    },
});
const rootCertificateAuthority = new aws.acmpca.CertificateAuthority("rootCertificateAuthority", {});
// ...
const current = aws.getPartition({});
const subordinateCertificate = new aws.acmpca.Certificate("subordinateCertificate", {
    certificateAuthorityArn: rootCertificateAuthority.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 subordinateCertificateAuthorityCertificate = new aws.acmpca.CertificateAuthorityCertificate("subordinateCertificateAuthorityCertificate", {
    certificateAuthorityArn: subordinateCertificateAuthority.arn,
    certificate: subordinateCertificate.certificate,
    certificateChain: subordinateCertificate.certificateChain,
});
const rootCertificateAuthorityCertificate = new aws.acmpca.CertificateAuthorityCertificate("rootCertificateAuthorityCertificate", {});
// ...
const rootCertificate = new aws.acmpca.Certificate("rootCertificate", {});
// ...
resources:
  subordinateCertificateAuthorityCertificate:
    type: aws:acmpca:CertificateAuthorityCertificate
    properties:
      certificateAuthorityArn: ${subordinateCertificateAuthority.arn}
      certificate: ${subordinateCertificate.certificate}
      certificateChain: ${subordinateCertificate.certificateChain}
  subordinateCertificate:
    type: aws:acmpca:Certificate
    properties:
      certificateAuthorityArn: ${rootCertificateAuthority.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
    properties:
      type: SUBORDINATE
      certificateAuthorityConfiguration:
        keyAlgorithm: RSA_2048
        signingAlgorithm: SHA512WITHRSA
        subject:
          commonName: sub.example.com
  rootCertificateAuthority:
    type: aws:acmpca:CertificateAuthority
  rootCertificateAuthorityCertificate:
    type: aws:acmpca:CertificateAuthorityCertificate
  rootCertificate:
    type: aws:acmpca:Certificate
variables:
  current:
    Fn::Invoke:
      Function: aws:getPartition
      Arguments: {}

Create a CertificateAuthorityCertificate Resource

new CertificateAuthorityCertificate(name: string, args: CertificateAuthorityCertificateArgs, opts?: CustomResourceOptions);
@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)
@overload
def CertificateAuthorityCertificate(resource_name: str,
                                    args: CertificateAuthorityCertificateArgs,
                                    opts: Optional[ResourceOptions] = 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.

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.

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

The CertificateAuthorityCertificate resource accepts the following input properties:

Certificate string

The PEM-encoded certificate for the Certificate Authority.

CertificateAuthorityArn string

Amazon Resource Name (ARN) of the Certificate Authority.

CertificateChain string

The 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

The PEM-encoded certificate for the Certificate Authority.

CertificateAuthorityArn string

Amazon Resource Name (ARN) of the Certificate Authority.

CertificateChain string

The 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

The PEM-encoded certificate for the Certificate Authority.

certificateAuthorityArn String

Amazon Resource Name (ARN) of the Certificate Authority.

certificateChain String

The 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

The PEM-encoded certificate for the Certificate Authority.

certificateAuthorityArn string

Amazon Resource Name (ARN) of the Certificate Authority.

certificateChain string

The 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

The PEM-encoded certificate for the Certificate Authority.

certificate_authority_arn str

Amazon Resource Name (ARN) of the Certificate Authority.

certificate_chain str

The 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

The PEM-encoded certificate for the Certificate Authority.

certificateAuthorityArn String

Amazon Resource Name (ARN) of the Certificate Authority.

certificateChain String

The 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 an 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

The PEM-encoded certificate for the Certificate Authority.

CertificateAuthorityArn string

Amazon Resource Name (ARN) of the Certificate Authority.

CertificateChain string

The 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

The PEM-encoded certificate for the Certificate Authority.

CertificateAuthorityArn string

Amazon Resource Name (ARN) of the Certificate Authority.

CertificateChain string

The 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

The PEM-encoded certificate for the Certificate Authority.

certificateAuthorityArn String

Amazon Resource Name (ARN) of the Certificate Authority.

certificateChain String

The 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

The PEM-encoded certificate for the Certificate Authority.

certificateAuthorityArn string

Amazon Resource Name (ARN) of the Certificate Authority.

certificateChain string

The 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

The PEM-encoded certificate for the Certificate Authority.

certificate_authority_arn str

Amazon Resource Name (ARN) of the Certificate Authority.

certificate_chain str

The 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

The PEM-encoded certificate for the Certificate Authority.

certificateAuthorityArn String

Amazon Resource Name (ARN) of the Certificate Authority.

certificateChain String

The 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
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes

This Pulumi package is based on the aws Terraform Provider.