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 Web Application Acceleration and Security service. * Api doc link for the resource: https://docs.oracle.com/iaas/api/#/en/waas/latest/Certificate * * Example terraform configs related to the resource : https://github.com/oracle/terraform-provider-oci/tree/master/examples/web_application_acceleration_and_security * * Allows an SSL certificate to be added to a WAAS policy. The Web Application Firewall terminates SSL connections to inspect requests in runtime, and then re-encrypts requests before sending them to the origin for fulfillment. * * For more information, see [WAF Settings](https://docs.cloud.oracle.com/iaas/Content/WAF/Tasks/wafsettings.htm). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testCertificate = new oci.waas.Certificate("test_certificate", { * certificateData: certificateCertificateData, * compartmentId: compartmentId, * privateKeyData: certificatePrivateKeyData, * definedTags: { * "Operations.CostCenter": "42", * }, * displayName: certificateDisplayName, * freeformTags: { * Department: "Finance", * }, * isTrustVerificationDisabled: certificateIsTrustVerificationDisabled === "true", * }); * ``` * * ## Import * * Import is not supported for this resource. */ 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; /** * The data of the SSL certificate. * * **Note:** Many SSL certificate providers require an intermediate certificate chain to ensure a trusted status. If your SSL certificate requires an intermediate certificate chain, please append the intermediate certificate key in the `certificateData` field after the leaf certificate issued by the SSL certificate provider. If you are unsure if your certificate requires an intermediate certificate chain, see your certificate provider's documentation. * * The example below shows an intermediate certificate appended to a leaf certificate. */ readonly certificateData: pulumi.Output; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to create the SSL certificate. */ readonly compartmentId: 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 user-friendly name for the SSL certificate. The name can be changed and does not need to be unique. */ readonly displayName: pulumi.Output; /** * Additional attributes associated with users or public keys for managing relationships between Certificate Authorities. */ readonly extensions: 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; }>; /** * Set to `true` if the SSL certificate is self-signed. */ readonly isTrustVerificationDisabled: pulumi.Output; readonly issuedBy: pulumi.Output; /** * The issuer of the certificate. */ readonly issuerNames: pulumi.Output; /** * The private key of the SSL certificate. * * ** 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 privateKeyData: pulumi.Output; /** * Information about the public key and the algorithm used by the public key. */ readonly publicKeyInfos: pulumi.Output; /** * A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate. */ readonly serialNumber: pulumi.Output; /** * The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate. */ readonly signatureAlgorithm: pulumi.Output; /** * The current lifecycle state of the SSL certificate. */ readonly state: pulumi.Output; /** * The entity to be secured by the certificate. */ readonly subjectNames: pulumi.Output; /** * The date and time the certificate was created, expressed in RFC 3339 timestamp format. */ readonly timeCreated: pulumi.Output; /** * The date and time the certificate will expire, expressed in RFC 3339 timestamp format. */ readonly timeNotValidAfter: pulumi.Output; /** * The date and time the certificate will become valid, expressed in RFC 3339 timestamp format. */ readonly timeNotValidBefore: pulumi.Output; /** * The version of the encoded certificate. */ readonly version: 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 { /** * The data of the SSL certificate. * * **Note:** Many SSL certificate providers require an intermediate certificate chain to ensure a trusted status. If your SSL certificate requires an intermediate certificate chain, please append the intermediate certificate key in the `certificateData` field after the leaf certificate issued by the SSL certificate provider. If you are unsure if your certificate requires an intermediate certificate chain, see your certificate provider's documentation. * * The example below shows an intermediate certificate appended to a leaf certificate. */ certificateData?: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to create the SSL certificate. */ compartmentId?: 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 user-friendly name for the SSL certificate. The name can be changed and does not need to be unique. */ displayName?: pulumi.Input; /** * Additional attributes associated with users or public keys for managing relationships between Certificate Authorities. */ extensions?: pulumi.Input[] | undefined>; /** * (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>; /** * Set to `true` if the SSL certificate is self-signed. */ isTrustVerificationDisabled?: pulumi.Input; issuedBy?: pulumi.Input; /** * The issuer of the certificate. */ issuerNames?: pulumi.Input[] | undefined>; /** * The private key of the SSL certificate. * * ** 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 */ privateKeyData?: pulumi.Input; /** * Information about the public key and the algorithm used by the public key. */ publicKeyInfos?: pulumi.Input[] | undefined>; /** * A unique, positive integer assigned by the Certificate Authority (CA). The issuer name and serial number identify a unique certificate. */ serialNumber?: pulumi.Input; /** * The identifier for the cryptographic algorithm used by the Certificate Authority (CA) to sign this certificate. */ signatureAlgorithm?: pulumi.Input; /** * The current lifecycle state of the SSL certificate. */ state?: pulumi.Input; /** * The entity to be secured by the certificate. */ subjectNames?: pulumi.Input[] | undefined>; /** * The date and time the certificate was created, expressed in RFC 3339 timestamp format. */ timeCreated?: pulumi.Input; /** * The date and time the certificate will expire, expressed in RFC 3339 timestamp format. */ timeNotValidAfter?: pulumi.Input; /** * The date and time the certificate will become valid, expressed in RFC 3339 timestamp format. */ timeNotValidBefore?: pulumi.Input; /** * The version of the encoded certificate. */ version?: pulumi.Input; } /** * The set of arguments for constructing a Certificate resource. */ export interface CertificateArgs { /** * The data of the SSL certificate. * * **Note:** Many SSL certificate providers require an intermediate certificate chain to ensure a trusted status. If your SSL certificate requires an intermediate certificate chain, please append the intermediate certificate key in the `certificateData` field after the leaf certificate issued by the SSL certificate provider. If you are unsure if your certificate requires an intermediate certificate chain, see your certificate provider's documentation. * * The example below shows an intermediate certificate appended to a leaf certificate. */ certificateData: pulumi.Input; /** * (Updatable) The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which to create the SSL certificate. */ compartmentId: 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 user-friendly name for the SSL certificate. The name can be changed and does not need to be unique. */ displayName?: 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>; /** * Set to `true` if the SSL certificate is self-signed. */ isTrustVerificationDisabled?: pulumi.Input; /** * The private key of the SSL certificate. * * ** 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 */ privateKeyData: pulumi.Input; } //# sourceMappingURL=certificate.d.ts.map