@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
89 lines (88 loc) • 2.6 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get info about a Google Compute SSL Certificate from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myCert = gcp.compute.getCertificate({
* name: "my-cert",
* });
* export const certificate = myCert.then(myCert => myCert.certificate);
* export const certificateId = myCert.then(myCert => myCert.certificateId);
* export const selfLink = myCert.then(myCert => myCert.selfLink);
* ```
*/
export declare function getCertificate(args: GetCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetCertificateResult>;
/**
* A collection of arguments for invoking getCertificate.
*/
export interface GetCertificateArgs {
/**
* The name of the certificate.
*
* - - -
*/
name: string;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: string;
}
/**
* A collection of values returned by getCertificate.
*/
export interface GetCertificateResult {
readonly certificate: string;
readonly certificateId: number;
readonly creationTimestamp: string;
readonly description: string;
readonly expireTime: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name: string;
readonly namePrefix: string;
readonly privateKey: string;
readonly project?: string;
readonly selfLink: string;
}
/**
* Get info about a Google Compute SSL Certificate from its name.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const myCert = gcp.compute.getCertificate({
* name: "my-cert",
* });
* export const certificate = myCert.then(myCert => myCert.certificate);
* export const certificateId = myCert.then(myCert => myCert.certificateId);
* export const selfLink = myCert.then(myCert => myCert.selfLink);
* ```
*/
export declare function getCertificateOutput(args: GetCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetCertificateResult>;
/**
* A collection of arguments for invoking getCertificate.
*/
export interface GetCertificateOutputArgs {
/**
* The name of the certificate.
*
* - - -
*/
name: pulumi.Input<string>;
/**
* The project in which the resource belongs. If it
* is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
}