@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
100 lines (99 loc) • 3.07 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Get info about a Region 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.getRegionSslCertificate({
* 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 getRegionSslCertificate(args: GetRegionSslCertificateArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionSslCertificateResult>;
/**
* A collection of arguments for invoking getRegionSslCertificate.
*/
export interface GetRegionSslCertificateArgs {
/**
* 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;
/**
* The region in which the resource belongs. If it
* is not provided, the provider region is used.
*/
region?: string;
}
/**
* A collection of values returned by getRegionSslCertificate.
*/
export interface GetRegionSslCertificateResult {
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 region?: string;
readonly selfLink: string;
}
/**
* Get info about a Region 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.getRegionSslCertificate({
* 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 getRegionSslCertificateOutput(args: GetRegionSslCertificateOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegionSslCertificateResult>;
/**
* A collection of arguments for invoking getRegionSslCertificate.
*/
export interface GetRegionSslCertificateOutputArgs {
/**
* 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>;
/**
* The region in which the resource belongs. If it
* is not provided, the provider region is used.
*/
region?: pulumi.Input<string>;
}