Certificate
Manages a Key Vault Certificate.
Create a Certificate Resource
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);def Certificate(resource_name, opts=None, certificate=None, certificate_policy=None, key_vault_id=None, name=None, tags=None, __props__=None);func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)- 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.
- 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 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.
Certificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Certificate resource accepts the following input properties:
- Certificate
Policy CertificateCertificate Policy Args A
certificate_policyblock as defined below.- Key
Vault stringId The ID of the Key Vault where the Certificate should be created.
- Key
Vault CertificateCertificate Certificate Args A
certificateblock as defined below, used to Import an existing certificate.- Name string
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Certificate
Policy CertificateCertificate Policy A
certificate_policyblock as defined below.- Key
Vault stringId The ID of the Key Vault where the Certificate should be created.
- Certificate
Certificate
Certificate A
certificateblock as defined below, used to Import an existing certificate.- Name string
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- map[string]string
A mapping of tags to assign to the resource.
- certificate
Policy CertificateCertificate Policy A
certificate_policyblock as defined below.- key
Vault stringId The ID of the Key Vault where the Certificate should be created.
- certificate
Certificate
Certificate A
certificateblock as defined below, used to Import an existing certificate.- name string
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- certificate_
policy Dict[CertificateCertificate Policy] A
certificate_policyblock as defined below.- key_
vault_ strid The ID of the Key Vault where the Certificate should be created.
- certificate
Dict[Certificate
Certificate] A
certificateblock as defined below, used to Import an existing certificate.- name str
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- Dict[str, str]
A mapping of tags to assign to the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Certificate
Data string The raw Key Vault Certificate data represented as a hexadecimal string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Id string The ID of the associated Key Vault Secret.
- Thumbprint string
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- Version string
The current version of the Key Vault Certificate.
- Certificate
Data string The raw Key Vault Certificate data represented as a hexadecimal string.
- Id string
- The provider-assigned unique ID for this managed resource.
- Secret
Id string The ID of the associated Key Vault Secret.
- Thumbprint string
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- Version string
The current version of the Key Vault Certificate.
- certificate
Data string The raw Key Vault Certificate data represented as a hexadecimal string.
- id string
- The provider-assigned unique ID for this managed resource.
- secret
Id string The ID of the associated Key Vault Secret.
- thumbprint string
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- version string
The current version of the Key Vault Certificate.
- certificate_
data str The raw Key Vault Certificate data represented as a hexadecimal string.
- id str
- The provider-assigned unique ID for this managed resource.
- secret_
id str The ID of the associated Key Vault Secret.
- thumbprint str
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- version str
The current version of the Key Vault Certificate.
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): Certificatestatic get(resource_name, id, opts=None, certificate=None, certificate_data=None, certificate_policy=None, key_vault_id=None, name=None, secret_id=None, tags=None, thumbprint=None, version=None, __props__=None);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)- 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:
- Certificate
Data string The raw Key Vault Certificate data represented as a hexadecimal string.
- Certificate
Policy CertificateCertificate Policy Args A
certificate_policyblock as defined below.- Key
Vault CertificateCertificate Certificate Args A
certificateblock as defined below, used to Import an existing certificate.- Key
Vault stringId The ID of the Key Vault where the Certificate should be created.
- Name string
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- Secret
Id string The ID of the associated Key Vault Secret.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Thumbprint string
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- Version string
The current version of the Key Vault Certificate.
- Certificate
Certificate
Certificate A
certificateblock as defined below, used to Import an existing certificate.- Certificate
Data string The raw Key Vault Certificate data represented as a hexadecimal string.
- Certificate
Policy CertificateCertificate Policy A
certificate_policyblock as defined below.- Key
Vault stringId The ID of the Key Vault where the Certificate should be created.
- Name string
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- Secret
Id string The ID of the associated Key Vault Secret.
- map[string]string
A mapping of tags to assign to the resource.
- Thumbprint string
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- Version string
The current version of the Key Vault Certificate.
- certificate
Certificate
Certificate A
certificateblock as defined below, used to Import an existing certificate.- certificate
Data string The raw Key Vault Certificate data represented as a hexadecimal string.
- certificate
Policy CertificateCertificate Policy A
certificate_policyblock as defined below.- key
Vault stringId The ID of the Key Vault where the Certificate should be created.
- name string
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- secret
Id string The ID of the associated Key Vault Secret.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- thumbprint string
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- version string
The current version of the Key Vault Certificate.
- certificate
Dict[Certificate
Certificate] A
certificateblock as defined below, used to Import an existing certificate.- certificate_
data str The raw Key Vault Certificate data represented as a hexadecimal string.
- certificate_
policy Dict[CertificateCertificate Policy] A
certificate_policyblock as defined below.- key_
vault_ strid The ID of the Key Vault where the Certificate should be created.
- name str
Specifies the name of the Key Vault Certificate. Changing this forces a new resource to be created.
- secret_
id str The ID of the associated Key Vault Secret.
- Dict[str, str]
A mapping of tags to assign to the resource.
- thumbprint str
The X509 Thumbprint of the Key Vault Certificate represented as a hexadecimal string.
- version str
The current version of the Key Vault Certificate.
Supporting Types
CertificateCertificate
CertificateCertificatePolicy
- Issuer
Parameters CertificateCertificate Policy Issuer Parameters Args A
issuer_parametersblock as defined below.- Key
Properties CertificateCertificate Policy Key Properties Args A
key_propertiesblock as defined below.- Secret
Properties CertificateCertificate Policy Secret Properties Args A
secret_propertiesblock as defined below.- Lifetime
Actions List<CertificateCertificate Policy Lifetime Action Args> A
lifetime_actionblock as defined below.- X509Certificate
Properties CertificateCertificate Policy X509Certificate Properties Args A
x509_certificate_propertiesblock as defined below. Required whencertificateblock is not specified.
- Issuer
Parameters CertificateCertificate Policy Issuer Parameters A
issuer_parametersblock as defined below.- Key
Properties CertificateCertificate Policy Key Properties A
key_propertiesblock as defined below.- Secret
Properties CertificateCertificate Policy Secret Properties A
secret_propertiesblock as defined below.- Lifetime
Actions []CertificateCertificate Policy Lifetime Action A
lifetime_actionblock as defined below.- X509Certificate
Properties CertificateCertificate Policy X509Certificate Properties A
x509_certificate_propertiesblock as defined below. Required whencertificateblock is not specified.
- issuer
Parameters CertificateCertificate Policy Issuer Parameters A
issuer_parametersblock as defined below.- key
Properties CertificateCertificate Policy Key Properties A
key_propertiesblock as defined below.- secret
Properties CertificateCertificate Policy Secret Properties A
secret_propertiesblock as defined below.- lifetime
Actions CertificateCertificate Policy Lifetime Action[] A
lifetime_actionblock as defined below.- x509Certificate
Properties CertificateCertificate Policy X509Certificate Properties A
x509_certificate_propertiesblock as defined below. Required whencertificateblock is not specified.
- issuer
Parameters Dict[CertificateCertificate Policy Issuer Parameters] A
issuer_parametersblock as defined below.- key_
properties Dict[CertificateCertificate Policy Key Properties] A
key_propertiesblock as defined below.- secret
Properties Dict[CertificateCertificate Policy Secret Properties] A
secret_propertiesblock as defined below.- lifetime
Actions List[CertificateCertificate Policy Lifetime Action] A
lifetime_actionblock as defined below.- x509Certificate
Properties Dict[CertificateCertificate Policy X509Certificate Properties] A
x509_certificate_propertiesblock as defined below. Required whencertificateblock is not specified.
CertificateCertificatePolicyIssuerParameters
CertificateCertificatePolicyKeyProperties
- Exportable bool
Is this Certificate Exportable? Changing this forces a new resource to be created.
- Key
Size int The size of the Key used in the Certificate. Possible values include
2048and4096. Changing this forces a new resource to be created.- Key
Type string Specifies the Type of Key, such as
RSA. Changing this forces a new resource to be created.- Reuse
Key bool Is the key reusable? Changing this forces a new resource to be created.
- Exportable bool
Is this Certificate Exportable? Changing this forces a new resource to be created.
- Key
Size int The size of the Key used in the Certificate. Possible values include
2048and4096. Changing this forces a new resource to be created.- Key
Type string Specifies the Type of Key, such as
RSA. Changing this forces a new resource to be created.- Reuse
Key bool Is the key reusable? Changing this forces a new resource to be created.
- exportable boolean
Is this Certificate Exportable? Changing this forces a new resource to be created.
- key
Size number The size of the Key used in the Certificate. Possible values include
2048and4096. Changing this forces a new resource to be created.- key
Type string Specifies the Type of Key, such as
RSA. Changing this forces a new resource to be created.- reuse
Key boolean Is the key reusable? Changing this forces a new resource to be created.
- exportable bool
Is this Certificate Exportable? Changing this forces a new resource to be created.
- key_
size float The size of the Key used in the Certificate. Possible values include
2048and4096. Changing this forces a new resource to be created.- key_
type str Specifies the Type of Key, such as
RSA. Changing this forces a new resource to be created.- reuse
Key bool Is the key reusable? Changing this forces a new resource to be created.
CertificateCertificatePolicyLifetimeAction
- Action
Certificate
Certificate Policy Lifetime Action Action Args A
actionblock as defined below.- Trigger
Certificate
Certificate Policy Lifetime Action Trigger Args A
triggerblock as defined below.
- Action
Certificate
Certificate Policy Lifetime Action Action A
actionblock as defined below.- Trigger
Certificate
Certificate Policy Lifetime Action Trigger A
triggerblock as defined below.
- action
Certificate
Certificate Policy Lifetime Action Action A
actionblock as defined below.- trigger
Certificate
Certificate Policy Lifetime Action Trigger A
triggerblock as defined below.
- action
Dict[Certificate
Certificate Policy Lifetime Action Action] A
actionblock as defined below.- trigger
Dict[Certificate
Certificate Policy Lifetime Action Trigger] A
triggerblock as defined below.
CertificateCertificatePolicyLifetimeActionAction
- Action
Type string The Type of action to be performed when the lifetime trigger is triggerec. Possible values include
AutoRenewandEmailContacts. Changing this forces a new resource to be created.
- Action
Type string The Type of action to be performed when the lifetime trigger is triggerec. Possible values include
AutoRenewandEmailContacts. Changing this forces a new resource to be created.
- action
Type string The Type of action to be performed when the lifetime trigger is triggerec. Possible values include
AutoRenewandEmailContacts. Changing this forces a new resource to be created.
- action
Type str The Type of action to be performed when the lifetime trigger is triggerec. Possible values include
AutoRenewandEmailContacts. Changing this forces a new resource to be created.
CertificateCertificatePolicyLifetimeActionTrigger
- Days
Before intExpiry The number of days before the Certificate expires that the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
lifetime_percentage.- Lifetime
Percentage int The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
days_before_expiry.
- Days
Before intExpiry The number of days before the Certificate expires that the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
lifetime_percentage.- Lifetime
Percentage int The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
days_before_expiry.
- days
Before numberExpiry The number of days before the Certificate expires that the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
lifetime_percentage.- lifetime
Percentage number The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
days_before_expiry.
- days
Before floatExpiry The number of days before the Certificate expires that the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
lifetime_percentage.- lifetime
Percentage float The percentage at which during the Certificates Lifetime the action associated with this Trigger should run. Changing this forces a new resource to be created. Conflicts with
days_before_expiry.
CertificateCertificatePolicySecretProperties
- Content
Type string The Content-Type of the Certificate, such as
application/x-pkcs12for a PFX orapplication/x-pem-filefor a PEM. Changing this forces a new resource to be created.
- Content
Type string The Content-Type of the Certificate, such as
application/x-pkcs12for a PFX orapplication/x-pem-filefor a PEM. Changing this forces a new resource to be created.
- content
Type string The Content-Type of the Certificate, such as
application/x-pkcs12for a PFX orapplication/x-pem-filefor a PEM. Changing this forces a new resource to be created.
- content_
type str The Content-Type of the Certificate, such as
application/x-pkcs12for a PFX orapplication/x-pem-filefor a PEM. Changing this forces a new resource to be created.
CertificateCertificatePolicyX509CertificateProperties
- Key
Usages List<string> A list of uses associated with this Key. Possible values include
cRLSign,dataEncipherment,decipherOnly,digitalSignature,encipherOnly,keyAgreement,keyCertSign,keyEnciphermentandnonRepudiationand are case-sensitive. Changing this forces a new resource to be created.- Subject string
The Certificate’s Subject. Changing this forces a new resource to be created.
- Validity
In intMonths The Certificates Validity Period in Months. Changing this forces a new resource to be created.
- Extended
Key List<string>Usages A list of Extended/Enhanced Key Usages. Changing this forces a new resource to be created.
- Subject
Alternative CertificateNames Certificate Policy X509Certificate Properties Subject Alternative Names Args A
subject_alternative_namesblock as defined below.
- Key
Usages []string A list of uses associated with this Key. Possible values include
cRLSign,dataEncipherment,decipherOnly,digitalSignature,encipherOnly,keyAgreement,keyCertSign,keyEnciphermentandnonRepudiationand are case-sensitive. Changing this forces a new resource to be created.- Subject string
The Certificate’s Subject. Changing this forces a new resource to be created.
- Validity
In intMonths The Certificates Validity Period in Months. Changing this forces a new resource to be created.
- Extended
Key []stringUsages A list of Extended/Enhanced Key Usages. Changing this forces a new resource to be created.
- Subject
Alternative CertificateNames Certificate Policy X509Certificate Properties Subject Alternative Names A
subject_alternative_namesblock as defined below.
- key
Usages string[] A list of uses associated with this Key. Possible values include
cRLSign,dataEncipherment,decipherOnly,digitalSignature,encipherOnly,keyAgreement,keyCertSign,keyEnciphermentandnonRepudiationand are case-sensitive. Changing this forces a new resource to be created.- subject string
The Certificate’s Subject. Changing this forces a new resource to be created.
- validity
In numberMonths The Certificates Validity Period in Months. Changing this forces a new resource to be created.
- extended
Key string[]Usages A list of Extended/Enhanced Key Usages. Changing this forces a new resource to be created.
- subject
Alternative CertificateNames Certificate Policy X509Certificate Properties Subject Alternative Names A
subject_alternative_namesblock as defined below.
- key
Usages List[str] A list of uses associated with this Key. Possible values include
cRLSign,dataEncipherment,decipherOnly,digitalSignature,encipherOnly,keyAgreement,keyCertSign,keyEnciphermentandnonRepudiationand are case-sensitive. Changing this forces a new resource to be created.- subject str
The Certificate’s Subject. Changing this forces a new resource to be created.
- validity
In floatMonths The Certificates Validity Period in Months. Changing this forces a new resource to be created.
- extended
Key List[str]Usages A list of Extended/Enhanced Key Usages. Changing this forces a new resource to be created.
- subject
Alternative Dict[CertificateNames Certificate Policy X509Certificate Properties Subject Alternative Names] A
subject_alternative_namesblock as defined below.
CertificateCertificatePolicyX509CertificatePropertiesSubjectAlternativeNames
- Dns
Names List<string> A list of alternative DNS names (FQDNs) identified by the Certificate. Changing this forces a new resource to be created.
- Emails List<string>
A list of email addresses identified by this Certificate. Changing this forces a new resource to be created.
- Upns List<string>
A list of User Principal Names identified by the Certificate. Changing this forces a new resource to be created.
- Dns
Names []string A list of alternative DNS names (FQDNs) identified by the Certificate. Changing this forces a new resource to be created.
- Emails []string
A list of email addresses identified by this Certificate. Changing this forces a new resource to be created.
- Upns []string
A list of User Principal Names identified by the Certificate. Changing this forces a new resource to be created.
- dns
Names string[] A list of alternative DNS names (FQDNs) identified by the Certificate. Changing this forces a new resource to be created.
- emails string[]
A list of email addresses identified by this Certificate. Changing this forces a new resource to be created.
- upns string[]
A list of User Principal Names identified by the Certificate. Changing this forces a new resource to be created.
- dns
Names List[str] A list of alternative DNS names (FQDNs) identified by the Certificate. Changing this forces a new resource to be created.
- emails List[str]
A list of email addresses identified by this Certificate. Changing this forces a new resource to be created.
- upns List[str]
A list of User Principal Names identified by the Certificate. Changing this forces a new resource to be created.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.