UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

81 lines (80 loc) 3.2 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Get information about Scaleway Load Balancer certificates. * * This data source can prove useful when a module accepts a Load Balancer certificate as an input variable and needs to, for example, determine the security of a certificate for the frontend associated with your domain. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/add-certificate/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-certificate). * * ## Examples */ export declare function getCertificate(args?: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>; /** * A collection of arguments for invoking getCertificate. */ export interface GetCertificateArgs { /** * The certificate ID. * - Only one of `name` and `certificateId` should be specified. */ certificateId?: string; /** * The Load Balancer ID this certificate is attached to. */ lbId?: string; /** * The name of the Load Balancer certificate. * - When using a certificate `name` you should specify the `lb-id` */ name?: string; } /** * A collection of values returned by getCertificate. */ export interface GetCertificateResult { readonly certificateId?: string; readonly commonName: string; readonly customCertificates: outputs.loadbalancers.GetCertificateCustomCertificate[]; readonly fingerprint: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly lbId?: string; readonly letsencrypts: outputs.loadbalancers.GetCertificateLetsencrypt[]; readonly name?: string; readonly notValidAfter: string; readonly notValidBefore: string; readonly status: string; readonly subjectAlternativeNames: string[]; } /** * Get information about Scaleway Load Balancer certificates. * * This data source can prove useful when a module accepts a Load Balancer certificate as an input variable and needs to, for example, determine the security of a certificate for the frontend associated with your domain. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/add-certificate/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-certificate). * * ## Examples */ export declare function getCertificateOutput(args?: GetCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCertificateResult>; /** * A collection of arguments for invoking getCertificate. */ export interface GetCertificateOutputArgs { /** * The certificate ID. * - Only one of `name` and `certificateId` should be specified. */ certificateId?: pulumi.Input<string>; /** * The Load Balancer ID this certificate is attached to. */ lbId?: pulumi.Input<string>; /** * The name of the Load Balancer certificate. * - When using a certificate `name` you should specify the `lb-id` */ name?: pulumi.Input<string>; }