import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This resource provides the Certificate resource in Oracle Cloud Infrastructure Certificates Management service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/certificatesmgmt/latest/Certificate * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/certificatesManagement * * Creates a new certificate according to the details of the request. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testCertificate = new oci.certificatesmanagement.Certificate("test_certificate", { * certificateConfig: { * configType: certificateCertificateConfigConfigType, * certChainPem: certificateCertificateConfigCertChainPem, * certificatePem: certificateCertificateConfigCertificatePem, * certificateProfileType: certificateCertificateConfigCertificateProfileType, * csrPem: certificateCertificateConfigCsrPem, * issuerCertificateAuthorityId: testCertificateAuthority.id, * keyAlgorithm: certificateCertificateConfigKeyAlgorithm, * privateKeyPem: certificateCertificateConfigPrivateKeyPem, * privateKeyPemPassphrase: certificateCertificateConfigPrivateKeyPemPassphrase, * signatureAlgorithm: certificateCertificateConfigSignatureAlgorithm, * stage: certificateCertificateConfigStage, * subject: { * commonName: certificateCertificateConfigSubjectCommonName, * country: certificateCertificateConfigSubjectCountry, * distinguishedNameQualifier: certificateCertificateConfigSubjectDistinguishedNameQualifier, * domainComponent: certificateCertificateConfigSubjectDomainComponent, * generationQualifier: certificateCertificateConfigSubjectGenerationQualifier, * givenName: certificateCertificateConfigSubjectGivenName, * initials: certificateCertificateConfigSubjectInitials, * localityName: certificateCertificateConfigSubjectLocalityName, * organization: certificateCertificateConfigSubjectOrganization, * organizationalUnit: certificateCertificateConfigSubjectOrganizationalUnit, * pseudonym: certificateCertificateConfigSubjectPseudonym, * serialNumber: certificateCertificateConfigSubjectSerialNumber, * stateOrProvinceName: certificateCertificateConfigSubjectStateOrProvinceName, * street: certificateCertificateConfigSubjectStreet, * surname: certificateCertificateConfigSubjectSurname, * title: certificateCertificateConfigSubjectTitle, * userId: testUser.id, * }, * subjectAlternativeNames: [{ * type: certificateCertificateConfigSubjectAlternativeNamesType, * value: certificateCertificateConfigSubjectAlternativeNamesValue, * }], * validity: { * timeOfValidityNotAfter: certificateCertificateConfigValidityTimeOfValidityNotAfter, * timeOfValidityNotBefore: certificateCertificateConfigValidityTimeOfValidityNotBefore, * }, * versionName: certificateCertificateConfigVersionName, * }, * compartmentId: compartmentId, * name: certificateName, * certificateRules: [{ * advanceRenewalPeriod: certificateCertificateRulesAdvanceRenewalPeriod, * renewalInterval: certificateCertificateRulesRenewalInterval, * ruleType: certificateCertificateRulesRuleType, * }], * definedTags: { * "Operations.CostCenter": "42", * }, * description: certificateDescription, * freeformTags: { * Department: "Finance", * }, * }); * ``` * * ## Import * * Certificates can be imported using the `id`, e.g. * * ```sh * $ pulumi import oci:CertificatesManagement/certificate:Certificate test_certificate "id" * ``` */ export declare class Certificate extends pulumi.CustomResource { /** * Get an existing Certificate resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: CertificateState, opts?: pulumi.CustomResourceOptions): Certificate; /** * Returns true if the given object is an instance of Certificate. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Certificate; /** * (Updatable) The details of the contents of the certificate and certificate metadata. */ readonly certificateConfig: pulumi.Output; /** * The name of the profile used to create the certificate, which depends on the type of certificate you need. */ readonly certificateProfileType: pulumi.Output; /** * The details of the certificate revocation list (CRL). */ readonly certificateRevocationListDetails: pulumi.Output; /** * (Updatable) An optional list of rules that control how the certificate is used and managed. */ readonly certificateRules: pulumi.Output; /** * (Updatable) The OCID of the compartment where you want to create the certificate. */ readonly compartmentId: pulumi.Output; /** * The origin of the certificate. It must be one of the supported types: MANAGED_EXTERNALLY_ISSUED_BY_INTERNAL_CA, ISSUED_BY_INTERNAL_CA, or IMPORTED. */ readonly configType: pulumi.Output; /** * (Updatable) The target current certificate version number. This update cannot be combined with updates to `certificateConfig`, `description`, `definedTags`, `freeformTags`, or `certificateRules`. */ readonly currentVersionNumber: pulumi.Output; /** * The details of the certificate version. This object does not contain the certificate contents. */ readonly currentVersions: pulumi.Output; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ readonly definedTags: pulumi.Output<{ [key: string]: string; }>; /** * (Updatable) A brief description of the certificate. Avoid entering confidential information. */ readonly description: pulumi.Output; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ readonly freeformTags: pulumi.Output<{ [key: string]: string; }>; /** * The OCID of the certificate authority (CA) that issued the certificate. */ readonly issuerCertificateAuthorityId: pulumi.Output; /** * The algorithm used to create key pairs. */ readonly keyAlgorithm: pulumi.Output; /** * Additional information about the current lifecycle state of the certificate. */ readonly lifecycleDetails: pulumi.Output; /** * A user-friendly name for the certificate. Names are unique within a compartment. Avoid entering confidential information. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ readonly name: pulumi.Output; /** * The algorithm used to sign the public key certificate. */ readonly signatureAlgorithm: pulumi.Output; /** * The current lifecycle state of the certificate. */ readonly state: pulumi.Output; /** * The subject of the certificate, which is a distinguished name that identifies the entity that owns the public key in the certificate. */ readonly subjects: pulumi.Output; /** * A property indicating when the certificate was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2019-04-03T21:10:29.600Z` */ readonly timeCreated: pulumi.Output; /** * An optional property indicating when to delete the certificate version, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2019-04-03T21:10:29.600Z` */ readonly timeOfDeletion: pulumi.Output; /** * Create a Certificate resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: CertificateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Certificate resources. */ export interface CertificateState { /** * (Updatable) The details of the contents of the certificate and certificate metadata. */ certificateConfig?: pulumi.Input; /** * The name of the profile used to create the certificate, which depends on the type of certificate you need. */ certificateProfileType?: pulumi.Input; /** * The details of the certificate revocation list (CRL). */ certificateRevocationListDetails?: pulumi.Input[] | undefined>; /** * (Updatable) An optional list of rules that control how the certificate is used and managed. */ certificateRules?: pulumi.Input[] | undefined>; /** * (Updatable) The OCID of the compartment where you want to create the certificate. */ compartmentId?: pulumi.Input; /** * The origin of the certificate. It must be one of the supported types: MANAGED_EXTERNALLY_ISSUED_BY_INTERNAL_CA, ISSUED_BY_INTERNAL_CA, or IMPORTED. */ configType?: pulumi.Input; /** * (Updatable) The target current certificate version number. This update cannot be combined with updates to `certificateConfig`, `description`, `definedTags`, `freeformTags`, or `certificateRules`. */ currentVersionNumber?: pulumi.Input; /** * The details of the certificate version. This object does not contain the certificate contents. */ currentVersions?: pulumi.Input[] | undefined>; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A brief description of the certificate. Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * The OCID of the certificate authority (CA) that issued the certificate. */ issuerCertificateAuthorityId?: pulumi.Input; /** * The algorithm used to create key pairs. */ keyAlgorithm?: pulumi.Input; /** * Additional information about the current lifecycle state of the certificate. */ lifecycleDetails?: pulumi.Input; /** * A user-friendly name for the certificate. Names are unique within a compartment. Avoid entering confidential information. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ name?: pulumi.Input; /** * The algorithm used to sign the public key certificate. */ signatureAlgorithm?: pulumi.Input; /** * The current lifecycle state of the certificate. */ state?: pulumi.Input; /** * The subject of the certificate, which is a distinguished name that identifies the entity that owns the public key in the certificate. */ subjects?: pulumi.Input[] | undefined>; /** * A property indicating when the certificate was created, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2019-04-03T21:10:29.600Z` */ timeCreated?: pulumi.Input; /** * An optional property indicating when to delete the certificate version, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format. Example: `2019-04-03T21:10:29.600Z` */ timeOfDeletion?: pulumi.Input; } /** * The set of arguments for constructing a Certificate resource. */ export interface CertificateArgs { /** * (Updatable) The details of the contents of the certificate and certificate metadata. */ certificateConfig: pulumi.Input; /** * (Updatable) An optional list of rules that control how the certificate is used and managed. */ certificateRules?: pulumi.Input[] | undefined>; /** * (Updatable) The OCID of the compartment where you want to create the certificate. */ compartmentId: pulumi.Input; /** * (Updatable) The target current certificate version number. This update cannot be combined with updates to `certificateConfig`, `description`, `definedTags`, `freeformTags`, or `certificateRules`. */ currentVersionNumber?: pulumi.Input; /** * (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Operations.CostCenter": "42"}` */ definedTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * (Updatable) A brief description of the certificate. Avoid entering confidential information. */ description?: pulumi.Input; /** * (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see [Resource Tags](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/resourcetags.htm). Example: `{"Department": "Finance"}` */ freeformTags?: pulumi.Input<{ [key: string]: pulumi.Input; } | undefined>; /** * A user-friendly name for the certificate. Names are unique within a compartment. Avoid entering confidential information. Valid characters are uppercase or lowercase letters, numbers, hyphens, underscores, and periods. * * ** IMPORTANT ** * Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values */ name?: pulumi.Input; } //# sourceMappingURL=certificate.d.ts.map