UNPKG

@pulumi/gcp

Version:

A Pulumi package for creating and managing Google Cloud Platform resources.

77 lines 2.84 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to list announcements in a region. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const ds = gcp.vmwareengine.getAnnouncements({ * parent: "projects/my-project/locations/us-west1-a", * }); * ``` */ export declare function getAnnouncements(args: GetAnnouncementsArgs, opts?: pulumi.InvokeOptions): Promise<GetAnnouncementsResult>; /** * A collection of arguments for invoking getAnnouncements. */ export interface GetAnnouncementsArgs { /** * The resource name of the specific Announcement to retrieve. If provided, the `announcements` list will contain only this announcement. */ name?: string; /** * The resource name of the region for which announcements will be listed. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a */ parent: string; } /** * A collection of values returned by getAnnouncements. */ export interface GetAnnouncementsResult { /** * A list of VMware Engine announcements. Contains one element if `name` is specified in the arguments, otherwise all announcements for the region. */ readonly announcements: outputs.vmwareengine.GetAnnouncementsAnnouncement[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The resource name of the announcement. */ readonly name?: string; readonly parent: string; } /** * Use this data source to list announcements in a region. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const ds = gcp.vmwareengine.getAnnouncements({ * parent: "projects/my-project/locations/us-west1-a", * }); * ``` */ export declare function getAnnouncementsOutput(args: GetAnnouncementsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAnnouncementsResult>; /** * A collection of arguments for invoking getAnnouncements. */ export interface GetAnnouncementsOutputArgs { /** * The resource name of the specific Announcement to retrieve. If provided, the `announcements` list will contain only this announcement. */ name?: pulumi.Input<string | undefined>; /** * The resource name of the region for which announcements will be listed. Resource names are schemeless URIs that follow the conventions in https://cloud.google.com/apis/design/resource_names. For example: projects/my-project/locations/us-west1-a */ parent: pulumi.Input<string>; } //# sourceMappingURL=getAnnouncements.d.ts.map