AWS Classic
Certificate
Provides a resource to issue a certificate using AWS Certificate Manager Private Certificate Authority (ACM PCA).
Example Usage
Basic
Coming soon!
Coming soon!
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()
.privateCertificateConfiguration(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.permanentDeletionTimeInDays(7)
.build());
var key = new PrivateKey("key", PrivateKeyArgs.builder()
.algorithm("RSA")
.build());
var csr = new CertRequest("csr", CertRequestArgs.builder()
.keyAlgorithm("RSA")
.privateKeyPem(key.privateKeyPem())
.subjects(CertRequestSubjectArgs.builder()
.commonName("example")
.build())
.build());
var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
.certificateAuthorityArn(exampleCertificateAuthority.arn())
.certificateSigningRequest(csr.certRequestPem())
.signingAlgorithm("SHA256WITHRSA")
.validity(CertificateValidityArgs.builder()
.type("YEARS")
.value(1)
.build())
.build());
}
}
Coming soon!
Coming soon!
resources:
exampleCertificate:
type: aws:acmpca:Certificate
properties:
certificateAuthorityArn: ${exampleCertificateAuthority.arn}
certificateSigningRequest: ${csr.certRequestPem}
signingAlgorithm: SHA256WITHRSA
validity:
type: YEARS
value: 1
exampleCertificateAuthority:
type: aws:acmpca:CertificateAuthority
properties:
privateCertificateConfiguration:
- keyAlgorithm: RSA_4096
signingAlgorithm: SHA512WITHRSA
subject:
- commonName: example.com
permanentDeletionTimeInDays: 7
key:
type: tls:PrivateKey
properties:
algorithm: RSA
csr:
type: tls:CertRequest
properties:
keyAlgorithm: RSA
privateKeyPem: ${key.privateKeyPem}
subjects:
- commonName: example
Create a Certificate Resource
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_authority_arn: Optional[str] = None,
certificate_signing_request: Optional[str] = None,
signing_algorithm: Optional[str] = None,
template_arn: Optional[str] = None,
validity: Optional[CertificateValidityArgs] = None)
@overload
def Certificate(resource_name: str,
args: CertificateArgs,
opts: Optional[ResourceOptions] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: aws:acmpca:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Certificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Certificate resource accepts the following input properties:
- string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate
Signing stringRequest Certificate Signing Request in PEM format.
- Signing
Algorithm string Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- Validity
Pulumi.
Aws. Acmpca. Inputs. Certificate Validity Args Configures end of the validity period for the certificate. See validity block below.
- Template
Arn string The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate
Signing stringRequest Certificate Signing Request in PEM format.
- Signing
Algorithm string Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- Validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- Template
Arn string The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- String
Amazon Resource Name (ARN) of the certificate authority.
- certificate
Signing StringRequest Certificate Signing Request in PEM format.
- signing
Algorithm String Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- template
Arn String The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- string
Amazon Resource Name (ARN) of the certificate authority.
- certificate
Signing stringRequest Certificate Signing Request in PEM format.
- signing
Algorithm string Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- template
Arn string The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- str
Amazon Resource Name (ARN) of the certificate authority.
- certificate_
signing_ strrequest Certificate Signing Request in PEM format.
- signing_
algorithm str Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- template_
arn str The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- String
Amazon Resource Name (ARN) of the certificate authority.
- certificate
Signing StringRequest Certificate Signing Request in PEM format.
- signing
Algorithm String Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- validity Property Map
Configures end of the validity period for the certificate. See validity block below.
- template
Arn String The template to use when issuing a certificate. See ACM PCA Documentation for more information.
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Arn string
Amazon Resource Name (ARN) of the certificate.
- Certificate
Chain string The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- Certificate
Details string The PEM-encoded certificate value.
- Id string
The provider-assigned unique ID for this managed resource.
- Arn string
Amazon Resource Name (ARN) of the certificate.
- Certificate string
The PEM-encoded certificate value.
- Certificate
Chain string The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- Id string
The provider-assigned unique ID for this managed resource.
- arn String
Amazon Resource Name (ARN) of the certificate.
- certificate String
The PEM-encoded certificate value.
- certificate
Chain String The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- id String
The provider-assigned unique ID for this managed resource.
- arn string
Amazon Resource Name (ARN) of the certificate.
- certificate string
The PEM-encoded certificate value.
- certificate
Chain string The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- id string
The provider-assigned unique ID for this managed resource.
- arn str
Amazon Resource Name (ARN) of the certificate.
- certificate str
The PEM-encoded certificate value.
- certificate_
chain str The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- id str
The provider-assigned unique ID for this managed resource.
- arn String
Amazon Resource Name (ARN) of the certificate.
- certificate String
The PEM-encoded certificate value.
- certificate
Chain String The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- id String
The provider-assigned unique ID for this managed resource.
Look up an Existing Certificate Resource
Get an existing Certificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: CertificateState, opts?: CustomResourceOptions): Certificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
arn: Optional[str] = None,
certificate: Optional[str] = None,
certificate_authority_arn: Optional[str] = None,
certificate_chain: Optional[str] = None,
certificate_signing_request: Optional[str] = None,
signing_algorithm: Optional[str] = None,
template_arn: Optional[str] = None,
validity: Optional[CertificateValidityArgs] = None) -> Certificate
func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)
public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)
public static Certificate get(String name, Output<String> id, CertificateState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Arn string
Amazon Resource Name (ARN) of the certificate.
- string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate
Chain string The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- Certificate
Details string The PEM-encoded certificate value.
- Certificate
Signing stringRequest Certificate Signing Request in PEM format.
- Signing
Algorithm string Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- Template
Arn string The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- Validity
Pulumi.
Aws. Acmpca. Inputs. Certificate Validity Args Configures end of the validity period for the certificate. See validity block below.
- Arn string
Amazon Resource Name (ARN) of the certificate.
- Certificate string
The PEM-encoded certificate value.
- string
Amazon Resource Name (ARN) of the certificate authority.
- Certificate
Chain string The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- Certificate
Signing stringRequest Certificate Signing Request in PEM format.
- Signing
Algorithm string Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- Template
Arn string The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- Validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- arn String
Amazon Resource Name (ARN) of the certificate.
- certificate String
The PEM-encoded certificate value.
- String
Amazon Resource Name (ARN) of the certificate authority.
- certificate
Chain String The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- certificate
Signing StringRequest Certificate Signing Request in PEM format.
- signing
Algorithm String Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- template
Arn String The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- arn string
Amazon Resource Name (ARN) of the certificate.
- certificate string
The PEM-encoded certificate value.
- string
Amazon Resource Name (ARN) of the certificate authority.
- certificate
Chain string The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- certificate
Signing stringRequest Certificate Signing Request in PEM format.
- signing
Algorithm string Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- template
Arn string The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- arn str
Amazon Resource Name (ARN) of the certificate.
- certificate str
The PEM-encoded certificate value.
- 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.
- certificate_
signing_ strrequest Certificate Signing Request in PEM format.
- signing_
algorithm str Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- template_
arn str The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- validity
Certificate
Validity Args Configures end of the validity period for the certificate. See validity block below.
- arn String
Amazon Resource Name (ARN) of the certificate.
- certificate String
The PEM-encoded certificate value.
- String
Amazon Resource Name (ARN) of the certificate authority.
- certificate
Chain String The PEM-encoded certificate chain that includes any intermediate certificates and chains up to root CA.
- certificate
Signing StringRequest Certificate Signing Request in PEM format.
- signing
Algorithm String Algorithm to use to sign certificate requests. Valid values:
SHA256WITHRSA
,SHA256WITHECDSA
,SHA384WITHRSA
,SHA384WITHECDSA
,SHA512WITHRSA
,SHA512WITHECDSA
- template
Arn String The template to use when issuing a certificate. See ACM PCA Documentation for more information.
- validity Property Map
Configures end of the validity period for the certificate. See validity block below.
Supporting Types
CertificateValidity
- Type string
Determines how
value
is interpreted. Valid values:DAYS
,MONTHS
,YEARS
,ABSOLUTE
,END_DATE
.- Value string
If
type
isDAYS
,MONTHS
, orYEARS
, the relative time until the certificate expires. Iftype
isABSOLUTE
, the date in seconds since the Unix epoch. Iftype
isEND_DATE
, the date in RFC 3339 format.
- Type string
Determines how
value
is interpreted. Valid values:DAYS
,MONTHS
,YEARS
,ABSOLUTE
,END_DATE
.- Value string
If
type
isDAYS
,MONTHS
, orYEARS
, the relative time until the certificate expires. Iftype
isABSOLUTE
, the date in seconds since the Unix epoch. Iftype
isEND_DATE
, the date in RFC 3339 format.
- type String
Determines how
value
is interpreted. Valid values:DAYS
,MONTHS
,YEARS
,ABSOLUTE
,END_DATE
.- value String
If
type
isDAYS
,MONTHS
, orYEARS
, the relative time until the certificate expires. Iftype
isABSOLUTE
, the date in seconds since the Unix epoch. Iftype
isEND_DATE
, the date in RFC 3339 format.
- type string
Determines how
value
is interpreted. Valid values:DAYS
,MONTHS
,YEARS
,ABSOLUTE
,END_DATE
.- value string
If
type
isDAYS
,MONTHS
, orYEARS
, the relative time until the certificate expires. Iftype
isABSOLUTE
, the date in seconds since the Unix epoch. Iftype
isEND_DATE
, the date in RFC 3339 format.
- type str
Determines how
value
is interpreted. Valid values:DAYS
,MONTHS
,YEARS
,ABSOLUTE
,END_DATE
.- value str
If
type
isDAYS
,MONTHS
, orYEARS
, the relative time until the certificate expires. Iftype
isABSOLUTE
, the date in seconds since the Unix epoch. Iftype
isEND_DATE
, the date in RFC 3339 format.
- type String
Determines how
value
is interpreted. Valid values:DAYS
,MONTHS
,YEARS
,ABSOLUTE
,END_DATE
.- value String
If
type
isDAYS
,MONTHS
, orYEARS
, the relative time until the certificate expires. Iftype
isABSOLUTE
, the date in seconds since the Unix epoch. Iftype
isEND_DATE
, the date in RFC 3339 format.
Import
aws_acmpca_certificate
can not be imported at this time.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aws
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aws
Terraform Provider.