@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
72 lines • 2.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Lists all VPC Service Controls supported services.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const all = gcp.accesscontextmanager.getSupportedServices({});
* ```
*
* ### Filter to GA services available on restricted VIP
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* export = async () => {
* const all = await gcp.accesscontextmanager.getSupportedServices({});
* const gaRestrictedServices = .filter(s => s.serviceSupportStage == "GA" && s.availableOnRestrictedVip).map(s => (s.name));
* return {
* gaRestrictedServices: gaRestrictedServices,
* };
* }
* ```
*/
export declare function getSupportedServices(opts?: pulumi.InvokeOptions): Promise<GetSupportedServicesResult>;
/**
* A collection of values returned by getSupportedServices.
*/
export interface GetSupportedServicesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The list of VPC-SC supported services. Each service contains the following fields:
*/
readonly supportedServices: outputs.accesscontextmanager.GetSupportedServicesSupportedService[];
}
/**
* Lists all VPC Service Controls supported services.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const all = gcp.accesscontextmanager.getSupportedServices({});
* ```
*
* ### Filter to GA services available on restricted VIP
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* export = async () => {
* const all = await gcp.accesscontextmanager.getSupportedServices({});
* const gaRestrictedServices = .filter(s => s.serviceSupportStage == "GA" && s.availableOnRestrictedVip).map(s => (s.name));
* return {
* gaRestrictedServices: gaRestrictedServices,
* };
* }
* ```
*/
export declare function getSupportedServicesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSupportedServicesResult>;
//# sourceMappingURL=getSupportedServices.d.ts.map