@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
131 lines (130 loc) • 3.98 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],
* });
* ```
*/
/** @deprecated volcengine.vpn.CustomerGateways has been deprecated in favor of volcengine.vpn.getCustomerGateways */
export declare function customerGateways(args?: CustomerGatewaysArgs, opts?: pulumi.InvokeOptions): Promise<CustomerGatewaysResult>;
/**
* A collection of arguments for invoking CustomerGateways.
*/
export interface CustomerGatewaysArgs {
/**
* 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 CustomerGateways.
*/
export interface CustomerGatewaysResult {
readonly customerGatewayNames?: string[];
/**
* The collection of customer gateway query.
*/
readonly customerGateways: outputs.vpn.CustomerGatewaysCustomerGateway[];
/**
* 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],
* });
* ```
*/
/** @deprecated volcengine.vpn.CustomerGateways has been deprecated in favor of volcengine.vpn.getCustomerGateways */
export declare function customerGatewaysOutput(args?: CustomerGatewaysOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<CustomerGatewaysResult>;
/**
* A collection of arguments for invoking CustomerGateways.
*/
export interface CustomerGatewaysOutputArgs {
/**
* 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>;
}