@pulumi/gcp
Version:
A Pulumi package for creating and managing Google Cloud Platform resources.
125 lines (124 loc) • 4.55 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to access a Region Network Endpoint Group's attributes.
*
* The RNEG may be found by providing either a `selfLink`, or a `name` and a `region`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const rneg1 = gcp.compute.getRegionNetworkEndpointGroup({
* name: "k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
* region: "us-central1",
* });
* const rneg2 = gcp.compute.getRegionNetworkEndpointGroup({
* selfLink: "https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
* });
* ```
*/
export declare function getRegionNetworkEndpointGroup(args?: GetRegionNetworkEndpointGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetRegionNetworkEndpointGroupResult>;
/**
* A collection of arguments for invoking getRegionNetworkEndpointGroup.
*/
export interface GetRegionNetworkEndpointGroupArgs {
/**
* The Network Endpoint Group name. Provide either this or a `selfLink`.
*/
name?: string;
/**
* The ID of the project to list versions in. If it is not provided, the provider project is used.
*/
project?: string;
/**
* A reference to the region where the Serverless REGs Reside. Provide either this or a `selfLink`.
*/
region?: string;
/**
* The Network Endpoint Group self_link.
*/
selfLink?: string;
}
/**
* A collection of values returned by getRegionNetworkEndpointGroup.
*/
export interface GetRegionNetworkEndpointGroupResult {
readonly appEngines: outputs.compute.GetRegionNetworkEndpointGroupAppEngine[];
readonly cloudFunctions: outputs.compute.GetRegionNetworkEndpointGroupCloudFunction[];
readonly cloudRuns: outputs.compute.GetRegionNetworkEndpointGroupCloudRun[];
/**
* The RNEG description.
*/
readonly description: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly name?: string;
/**
* The network to which all network endpoints in the RNEG belong.
*/
readonly network: string;
/**
* Type of network endpoints in this network endpoint group.
*/
readonly networkEndpointType: string;
readonly project?: string;
readonly pscDatas: outputs.compute.GetRegionNetworkEndpointGroupPscData[];
/**
* The target service url used to set up private service connection to a Google API or a PSC Producer Service Attachment.
*/
readonly pscTargetService: string;
readonly region?: string;
readonly selfLink?: string;
readonly serverlessDeployments: outputs.compute.GetRegionNetworkEndpointGroupServerlessDeployment[];
/**
* subnetwork to which all network endpoints in the RNEG belong.
*/
readonly subnetwork: string;
}
/**
* Use this data source to access a Region Network Endpoint Group's attributes.
*
* The RNEG may be found by providing either a `selfLink`, or a `name` and a `region`.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
*
* const rneg1 = gcp.compute.getRegionNetworkEndpointGroup({
* name: "k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
* region: "us-central1",
* });
* const rneg2 = gcp.compute.getRegionNetworkEndpointGroup({
* selfLink: "https://www.googleapis.com/compute/v1/projects/myproject/regions/us-central1/networkEndpointGroups/k8s1-abcdef01-myns-mysvc-8080-4b6bac43",
* });
* ```
*/
export declare function getRegionNetworkEndpointGroupOutput(args?: GetRegionNetworkEndpointGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRegionNetworkEndpointGroupResult>;
/**
* A collection of arguments for invoking getRegionNetworkEndpointGroup.
*/
export interface GetRegionNetworkEndpointGroupOutputArgs {
/**
* The Network Endpoint Group name. Provide either this or a `selfLink`.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project to list versions in. If it is not provided, the provider project is used.
*/
project?: pulumi.Input<string>;
/**
* A reference to the region where the Serverless REGs Reside. Provide either this or a `selfLink`.
*/
region?: pulumi.Input<string>;
/**
* The Network Endpoint Group self_link.
*/
selfLink?: pulumi.Input<string>;
}