@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
129 lines (128 loc) • 3.79 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of customer gateways
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooCustomerGateway = new volcengine.vpn.CustomerGateway("fooCustomerGateway", {
* ipAddress: "192.0.1.3",
* customerGatewayName: "acc-test",
* description: "acc-test",
* projectName: "default",
* });
* const fooCustomerGateways = volcengine.vpn.getCustomerGatewaysOutput({
* ids: [fooCustomerGateway.id],
* });
* ```
*/
export declare function getCustomerGateways(args?: GetCustomerGatewaysArgs, opts?: pulumi.InvokeOptions): Promise<GetCustomerGatewaysResult>;
/**
* A collection of arguments for invoking getCustomerGateways.
*/
export interface GetCustomerGatewaysArgs {
/**
* A list of customer gateway names.
*/
customerGatewayNames?: string[];
/**
* A list of customer gateway ids.
*/
ids?: string[];
/**
* A IP address of the customer gateway.
*/
ipAddress?: string;
/**
* A Name Regex of customer gateway.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The project name of the VPN customer gateway.
*/
projectName?: string;
}
/**
* A collection of values returned by getCustomerGateways.
*/
export interface GetCustomerGatewaysResult {
readonly customerGatewayNames?: string[];
/**
* The collection of customer gateway query.
*/
readonly customerGateways: outputs.vpn.GetCustomerGatewaysCustomerGateway[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
/**
* The IP address of the customer gateway.
*/
readonly ipAddress?: string;
readonly nameRegex?: string;
readonly outputFile?: string;
readonly projectName?: string;
/**
* The total count of customer gateway query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of customer gateways
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooCustomerGateway = new volcengine.vpn.CustomerGateway("fooCustomerGateway", {
* ipAddress: "192.0.1.3",
* customerGatewayName: "acc-test",
* description: "acc-test",
* projectName: "default",
* });
* const fooCustomerGateways = volcengine.vpn.getCustomerGatewaysOutput({
* ids: [fooCustomerGateway.id],
* });
* ```
*/
export declare function getCustomerGatewaysOutput(args?: GetCustomerGatewaysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetCustomerGatewaysResult>;
/**
* A collection of arguments for invoking getCustomerGateways.
*/
export interface GetCustomerGatewaysOutputArgs {
/**
* A list of customer gateway names.
*/
customerGatewayNames?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A list of customer gateway ids.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A IP address of the customer gateway.
*/
ipAddress?: pulumi.Input<string>;
/**
* A Name Regex of customer gateway.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The project name of the VPN customer gateway.
*/
projectName?: pulumi.Input<string>;
}