CertificateAuthority
Provides a resource to manage AWS Certificate Manager Private Certificate Authorities (ACM PCA Certificate Authorities).
NOTE: Creating this resource will leave the certificate authority in a
PENDING_CERTIFICATEstatus, which means it cannot yet issue certificates. To complete this setup, you must fully sign the certificate authority CSR available in thecertificate_signing_requestattribute and import the signed certificate using the AWS SDK, CLI or Console. This provider can support another resource to manage that workflow automatically in the future.
Example Usage
Basic
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var example = new Aws.Acmpca.CertificateAuthority("example", new Aws.Acmpca.CertificateAuthorityArgs
{
CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
{
KeyAlgorithm = "RSA_4096",
SigningAlgorithm = "SHA512WITHRSA",
Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
{
CommonName = "example.com",
},
},
PermanentDeletionTimeInDays = 7,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/acmpca"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, 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
}
return nil
})
}import pulumi
import pulumi_aws as aws
example = aws.acmpca.CertificateAuthority("example",
certificate_authority_configuration={
"keyAlgorithm": "RSA_4096",
"signingAlgorithm": "SHA512WITHRSA",
"subject": {
"commonName": "example.com",
},
},
permanent_deletion_time_in_days=7)import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const example = new aws.acmpca.CertificateAuthority("example", {
certificateAuthorityConfiguration: {
keyAlgorithm: "RSA_4096",
signingAlgorithm: "SHA512WITHRSA",
subject: {
commonName: "example.com",
},
},
permanentDeletionTimeInDays: 7,
});Enable Certificate Revocation List
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var exampleBucket = new Aws.S3.Bucket("exampleBucket", new Aws.S3.BucketArgs
{
});
var acmpcaBucketAccess = Output.Tuple(exampleBucket.Arn, exampleBucket.Arn).Apply(values =>
{
var exampleBucketArn = values.Item1;
var exampleBucketArn1 = values.Item2;
return Aws.Iam.GetPolicyDocument.InvokeAsync(new Aws.Iam.GetPolicyDocumentArgs
{
Statements =
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementArgs
{
Actions =
{
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:PutObject",
"s3:PutObjectAcl",
},
Principals =
{
new Aws.Iam.Inputs.GetPolicyDocumentStatementPrincipalArgs
{
Identifiers =
{
"acm-pca.amazonaws.com",
},
Type = "Service",
},
},
Resources =
{
exampleBucketArn,
$"{exampleBucketArn1}/*",
},
},
},
});
});
var exampleBucketPolicy = new Aws.S3.BucketPolicy("exampleBucketPolicy", new Aws.S3.BucketPolicyArgs
{
Bucket = exampleBucket.Id,
Policy = acmpcaBucketAccess.Apply(acmpcaBucketAccess => acmpcaBucketAccess.Json),
});
var exampleCertificateAuthority = new Aws.Acmpca.CertificateAuthority("exampleCertificateAuthority", new Aws.Acmpca.CertificateAuthorityArgs
{
CertificateAuthorityConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationArgs
{
KeyAlgorithm = "RSA_4096",
SigningAlgorithm = "SHA512WITHRSA",
Subject = new Aws.Acmpca.Inputs.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs
{
CommonName = "example.com",
},
},
RevocationConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityRevocationConfigurationArgs
{
CrlConfiguration = new Aws.Acmpca.Inputs.CertificateAuthorityRevocationConfigurationCrlConfigurationArgs
{
CustomCname = "crl.example.com",
Enabled = true,
ExpirationInDays = 7,
S3BucketName = exampleBucket.Id,
},
},
}, new CustomResourceOptions
{
DependsOn =
{
"aws_s3_bucket_policy.example",
},
});
}
}
package main
import (
"fmt"
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/acmpca"
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/iam"
"github.com/pulumi/pulumi-aws/sdk/v2/go/aws/s3"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleBucket, err := s3.NewBucket(ctx, "exampleBucket", nil)
if err != nil {
return err
}
_, err = s3.NewBucketPolicy(ctx, "exampleBucketPolicy", &s3.BucketPolicyArgs{
Bucket: exampleBucket.ID(),
Policy: acmpcaBucketAccess.ApplyT(func(acmpcaBucketAccess iam.GetPolicyDocumentResult) (string, error) {
return acmpcaBucketAccess.Json, nil
}).(pulumi.StringOutput),
})
if err != nil {
return err
}
_, err = acmpca.NewCertificateAuthority(ctx, "exampleCertificateAuthority", &acmpca.CertificateAuthorityArgs{
CertificateAuthorityConfiguration: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationArgs{
KeyAlgorithm: pulumi.String("RSA_4096"),
SigningAlgorithm: pulumi.String("SHA512WITHRSA"),
Subject: &acmpca.CertificateAuthorityCertificateAuthorityConfigurationSubjectArgs{
CommonName: pulumi.String("example.com"),
},
},
RevocationConfiguration: &acmpca.CertificateAuthorityRevocationConfigurationArgs{
CrlConfiguration: &acmpca.CertificateAuthorityRevocationConfigurationCrlConfigurationArgs{
CustomCname: pulumi.String("crl.example.com"),
Enabled: pulumi.Bool(true),
ExpirationInDays: pulumi.Int(7),
S3BucketName: exampleBucket.ID(),
},
},
}, pulumi.DependsOn([]pulumi.Resource{
"aws_s3_bucket_policy.example",
}))
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_aws as aws
example_bucket = aws.s3.Bucket("exampleBucket")
acmpca_bucket_access = pulumi.Output.all(example_bucket.arn, example_bucket.arn).apply(lambda exampleBucketArn, exampleBucketArn1: aws.iam.get_policy_document(statements=[{
"actions": [
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:PutObject",
"s3:PutObjectAcl",
],
"principals": [{
"identifiers": ["acm-pca.amazonaws.com"],
"type": "Service",
}],
"resources": [
example_bucket_arn,
f"{example_bucket_arn1}/*",
],
}]))
example_bucket_policy = aws.s3.BucketPolicy("exampleBucketPolicy",
bucket=example_bucket.id,
policy=acmpca_bucket_access.json)
example_certificate_authority = aws.acmpca.CertificateAuthority("exampleCertificateAuthority",
certificate_authority_configuration={
"keyAlgorithm": "RSA_4096",
"signingAlgorithm": "SHA512WITHRSA",
"subject": {
"commonName": "example.com",
},
},
revocation_configuration={
"crlConfiguration": {
"customCname": "crl.example.com",
"enabled": True,
"expirationInDays": 7,
"s3_bucket_name": example_bucket.id,
},
},
opts=ResourceOptions(depends_on=["aws_s3_bucket_policy.example"]))import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";
const exampleBucket = new aws.s3.Bucket("example", {});
const acmpcaBucketAccess = pulumi.all([exampleBucket.arn, exampleBucket.arn]).apply(([exampleBucketArn, exampleBucketArn1]) => aws.iam.getPolicyDocument({
statements: [{
actions: [
"s3:GetBucketAcl",
"s3:GetBucketLocation",
"s3:PutObject",
"s3:PutObjectAcl",
],
principals: [{
identifiers: ["acm-pca.amazonaws.com"],
type: "Service",
}],
resources: [
exampleBucketArn,
`${exampleBucketArn1}/*`,
],
}],
}, { async: true }));
const exampleBucketPolicy = new aws.s3.BucketPolicy("example", {
bucket: exampleBucket.id,
policy: acmpcaBucketAccess.json,
});
const exampleCertificateAuthority = new aws.acmpca.CertificateAuthority("example", {
certificateAuthorityConfiguration: {
keyAlgorithm: "RSA_4096",
signingAlgorithm: "SHA512WITHRSA",
subject: {
commonName: "example.com",
},
},
revocationConfiguration: {
crlConfiguration: {
customCname: "crl.example.com",
enabled: true,
expirationInDays: 7,
s3BucketName: exampleBucket.id,
},
},
}, { dependsOn: [exampleBucketPolicy] });Create a CertificateAuthority Resource
new CertificateAuthority(name: string, args: CertificateAuthorityArgs, opts?: CustomResourceOptions);def CertificateAuthority(resource_name, opts=None, certificate_authority_configuration=None, enabled=None, permanent_deletion_time_in_days=None, revocation_configuration=None, tags=None, type=None, __props__=None);func NewCertificateAuthority(ctx *Context, name string, args CertificateAuthorityArgs, opts ...ResourceOption) (*CertificateAuthority, error)public CertificateAuthority(string name, CertificateAuthorityArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args CertificateAuthorityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificateAuthorityArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateAuthorityArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
CertificateAuthority Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The CertificateAuthority resource accepts the following input properties:
-
Certificate
Authority Certificate Authority Configuration Args Nested argument containing algorithms and certificate subject information. Defined below.
- Enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- Permanent
Deletion intTime In Days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- Revocation
Configuration CertificateAuthority Revocation Configuration Args Nested argument containing revocation configuration. Defined below.
- Dictionary<string, string>
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- Type string
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
-
Certificate
Authority Certificate Authority Configuration Nested argument containing algorithms and certificate subject information. Defined below.
- Enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- Permanent
Deletion intTime In Days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- Revocation
Configuration CertificateAuthority Revocation Configuration Nested argument containing revocation configuration. Defined below.
- map[string]string
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- Type string
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
-
Certificate
Authority Certificate Authority Configuration Nested argument containing algorithms and certificate subject information. Defined below.
- enabled boolean
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- permanent
Deletion numberTime In Days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- revocation
Configuration CertificateAuthority Revocation Configuration Nested argument containing revocation configuration. Defined below.
- {[key: string]: string}
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- type string
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
-
Dict[Certificate
Authority Certificate Authority Configuration] Nested argument containing algorithms and certificate subject information. Defined below.
- enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- permanent_
deletion_ floattime_ in_ days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- revocation_
configuration Dict[CertificateAuthority Revocation Configuration] Nested argument containing revocation configuration. Defined below.
- Dict[str, str]
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- type str
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateAuthority resource produces the following output properties:
- Arn string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
- Certificate
Chain string Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- Certificate
Signing stringRequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Not
After string Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Not
Before string Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- Status string
Status of the certificate authority.
- Arn string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
- Certificate
Chain string Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- Certificate
Signing stringRequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Not
After string Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Not
Before string Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- Status string
Status of the certificate authority.
- arn string
Amazon Resource Name (ARN) of the certificate authority.
- certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
- certificate
Chain string Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- certificate
Signing stringRequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- not
After string Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- not
Before string Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- status string
Status of the certificate authority.
- arn str
Amazon Resource Name (ARN) of the certificate authority.
- certificate str
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
- certificate_
chain str Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- certificate_
signing_ strrequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- not_
after str Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- not_
before str Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- serial str
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- status str
Status of the certificate authority.
Look up an Existing CertificateAuthority Resource
Get an existing CertificateAuthority 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?: CertificateAuthorityState, opts?: CustomResourceOptions): CertificateAuthoritystatic get(resource_name, id, opts=None, arn=None, certificate=None, certificate_authority_configuration=None, certificate_chain=None, certificate_signing_request=None, enabled=None, not_after=None, not_before=None, permanent_deletion_time_in_days=None, revocation_configuration=None, serial=None, status=None, tags=None, type=None, __props__=None);func GetCertificateAuthority(ctx *Context, name string, id IDInput, state *CertificateAuthorityState, opts ...ResourceOption) (*CertificateAuthority, error)public static CertificateAuthority Get(string name, Input<string> id, CertificateAuthorityState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Arn string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
-
Certificate
Authority Certificate Authority Configuration Args Nested argument containing algorithms and certificate subject information. Defined below.
- Certificate
Chain string Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- Certificate
Signing stringRequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- Enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- Not
After string Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Not
Before string Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Permanent
Deletion intTime In Days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- Revocation
Configuration CertificateAuthority Revocation Configuration Args Nested argument containing revocation configuration. Defined below.
- Serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- Status string
Status of the certificate authority.
- Dictionary<string, string>
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- Type string
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
- Arn string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
-
Certificate
Authority Certificate Authority Configuration Nested argument containing algorithms and certificate subject information. Defined below.
- Certificate
Chain string Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- Certificate
Signing stringRequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- Enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- Not
After string Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Not
Before string Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- Permanent
Deletion intTime In Days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- Revocation
Configuration CertificateAuthority Revocation Configuration Nested argument containing revocation configuration. Defined below.
- Serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- Status string
Status of the certificate authority.
- map[string]string
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- Type string
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
- arn string
Amazon Resource Name (ARN) of the certificate authority.
- certificate string
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
-
Certificate
Authority Certificate Authority Configuration Nested argument containing algorithms and certificate subject information. Defined below.
- certificate
Chain string Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- certificate
Signing stringRequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- enabled boolean
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- not
After string Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- not
Before string Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- permanent
Deletion numberTime In Days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- revocation
Configuration CertificateAuthority Revocation Configuration Nested argument containing revocation configuration. Defined below.
- serial string
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- status string
Status of the certificate authority.
- {[key: string]: string}
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- type string
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
- arn str
Amazon Resource Name (ARN) of the certificate authority.
- certificate str
Base64-encoded certificate authority (CA) certificate. Only available after the certificate authority certificate has been imported.
-
Dict[Certificate
Authority Certificate Authority Configuration] Nested argument containing algorithms and certificate subject information. Defined below.
- certificate_
chain str Base64-encoded certificate chain that includes any intermediate certificates and chains up to root on-premises certificate that you used to sign your private CA certificate. The chain does not include your private CA certificate. Only available after the certificate authority certificate has been imported.
- certificate_
signing_ strrequest The base64 PEM-encoded certificate signing request (CSR) for your private CA certificate.
- enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- not_
after str Date and time after which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- not_
before str Date and time before which the certificate authority is not valid. Only available after the certificate authority certificate has been imported.
- permanent_
deletion_ floattime_ in_ days The number of days to make a CA restorable after it has been deleted, must be between 7 to 30 days, with default to 30 days.
- revocation_
configuration Dict[CertificateAuthority Revocation Configuration] Nested argument containing revocation configuration. Defined below.
- serial str
Serial number of the certificate authority. Only available after the certificate authority certificate has been imported.
- status str
Status of the certificate authority.
- Dict[str, str]
Specifies a key-value map of user-defined tags that are attached to the certificate authority.
- type str
The type of the certificate authority. Defaults to
SUBORDINATE. Valid values:ROOTandSUBORDINATE.
Supporting Types
CertificateAuthorityCertificateAuthorityConfiguration
- Key
Algorithm string Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation.
- Signing
Algorithm string Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation.
- Subject
Certificate
Authority Certificate Authority Configuration Subject Args Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified.
- Key
Algorithm string Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation.
- Signing
Algorithm string Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation.
- Subject
Certificate
Authority Certificate Authority Configuration Subject Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified.
- key
Algorithm string Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation.
- signing
Algorithm string Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation.
- subject
Certificate
Authority Certificate Authority Configuration Subject Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified.
- key
Algorithm str Type of the public key algorithm and size, in bits, of the key pair that your key pair creates when it issues a certificate. Valid values can be found in the ACM PCA Documentation.
- signing
Algorithm str Name of the algorithm your private CA uses to sign certificate requests. Valid values can be found in the ACM PCA Documentation.
- subject
Dict[Certificate
Authority Certificate Authority Configuration Subject] Nested argument that contains X.500 distinguished name information. At least one nested attribute must be specified.
CertificateAuthorityCertificateAuthorityConfigurationSubject
- Common
Name string Fully qualified domain name (FQDN) associated with the certificate subject.
- Country string
Two digit code that specifies the country in which the certificate subject located.
- Distinguished
Name stringQualifier Disambiguating information for the certificate subject.
- Generation
Qualifier string Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
- Given
Name string First name.
- Initials string
Concatenation that typically contains the first letter of the
given_name, the first letter of the middle name if one exists, and the first letter of thesurname.- Locality string
The locality (such as a city or town) in which the certificate subject is located.
- Organization string
Legal name of the organization with which the certificate subject is affiliated.
- Organizational
Unit string A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
- Pseudonym string
Typically a shortened version of a longer
given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.- State string
State in which the subject of the certificate is located.
- Surname string
Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
- Title string
A title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject.
- Common
Name string Fully qualified domain name (FQDN) associated with the certificate subject.
- Country string
Two digit code that specifies the country in which the certificate subject located.
- Distinguished
Name stringQualifier Disambiguating information for the certificate subject.
- Generation
Qualifier string Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
- Given
Name string First name.
- Initials string
Concatenation that typically contains the first letter of the
given_name, the first letter of the middle name if one exists, and the first letter of thesurname.- Locality string
The locality (such as a city or town) in which the certificate subject is located.
- Organization string
Legal name of the organization with which the certificate subject is affiliated.
- Organizational
Unit string A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
- Pseudonym string
Typically a shortened version of a longer
given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.- State string
State in which the subject of the certificate is located.
- Surname string
Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
- Title string
A title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject.
- common
Name string Fully qualified domain name (FQDN) associated with the certificate subject.
- country string
Two digit code that specifies the country in which the certificate subject located.
- distinguished
Name stringQualifier Disambiguating information for the certificate subject.
- generation
Qualifier string Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
- given
Name string First name.
- initials string
Concatenation that typically contains the first letter of the
given_name, the first letter of the middle name if one exists, and the first letter of thesurname.- locality string
The locality (such as a city or town) in which the certificate subject is located.
- organization string
Legal name of the organization with which the certificate subject is affiliated.
- organizational
Unit string A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
- pseudonym string
Typically a shortened version of a longer
given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.- state string
State in which the subject of the certificate is located.
- surname string
Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
- title string
A title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject.
- common
Name str Fully qualified domain name (FQDN) associated with the certificate subject.
- country str
Two digit code that specifies the country in which the certificate subject located.
- distinguished
Name strQualifier Disambiguating information for the certificate subject.
- generation
Qualifier str Typically a qualifier appended to the name of an individual. Examples include Jr. for junior, Sr. for senior, and III for third.
- given
Name str First name.
- initials str
Concatenation that typically contains the first letter of the
given_name, the first letter of the middle name if one exists, and the first letter of thesurname.- locality str
The locality (such as a city or town) in which the certificate subject is located.
- organization str
Legal name of the organization with which the certificate subject is affiliated.
- organizational
Unit str A subdivision or unit of the organization (such as sales or finance) with which the certificate subject is affiliated.
- pseudonym str
Typically a shortened version of a longer
given_name. For example, Jonathan is often shortened to John. Elizabeth is often shortened to Beth, Liz, or Eliza.- state str
State in which the subject of the certificate is located.
- surname str
Family name. In the US and the UK for example, the surname of an individual is ordered last. In Asian cultures the surname is typically ordered first.
- title str
A title such as Mr. or Ms. which is pre-pended to the name to refer formally to the certificate subject.
CertificateAuthorityRevocationConfiguration
- Crl
Configuration CertificateAuthority Revocation Configuration Crl Configuration Args Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below.
- Crl
Configuration CertificateAuthority Revocation Configuration Crl Configuration Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below.
- crl
Configuration CertificateAuthority Revocation Configuration Crl Configuration Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below.
- crl
Configuration Dict[CertificateAuthority Revocation Configuration Crl Configuration] Nested argument containing configuration of the certificate revocation list (CRL), if any, maintained by the certificate authority. Defined below.
CertificateAuthorityRevocationConfigurationCrlConfiguration
- Expiration
In intDays Number of days until a certificate expires. Must be between 1 and 5000.
- Custom
Cname string Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don’t want the name of your S3 bucket to be public.
- Enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- S3Bucket
Name string Name of the S3 bucket that contains the CRL. If you do not provide a value for the
custom_cnameargument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket.
- Expiration
In intDays Number of days until a certificate expires. Must be between 1 and 5000.
- Custom
Cname string Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don’t want the name of your S3 bucket to be public.
- Enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- S3Bucket
Name string Name of the S3 bucket that contains the CRL. If you do not provide a value for the
custom_cnameargument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket.
- expiration
In numberDays Number of days until a certificate expires. Must be between 1 and 5000.
- custom
Cname string Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don’t want the name of your S3 bucket to be public.
- enabled boolean
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- s3Bucket
Name string Name of the S3 bucket that contains the CRL. If you do not provide a value for the
custom_cnameargument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket.
- expiration
In floatDays Number of days until a certificate expires. Must be between 1 and 5000.
- custom
Cname str Name inserted into the certificate CRL Distribution Points extension that enables the use of an alias for the CRL distribution point. Use this value if you don’t want the name of your S3 bucket to be public.
- enabled bool
Boolean value that specifies whether certificate revocation lists (CRLs) are enabled. Defaults to
false.- s3_
bucket_ strname Name of the S3 bucket that contains the CRL. If you do not provide a value for the
custom_cnameargument, the name of your S3 bucket is placed into the CRL Distribution Points extension of the issued certificate. You must specify a bucket policy that allows ACM PCA to write the CRL to your bucket.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
awsTerraform Provider.