UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

173 lines (172 loc) 4.88 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of nat ips * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-test-subnet", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const intranetNatGateway = new volcengine.nat.Gateway("intranetNatGateway", { * vpcId: fooVpc.id, * subnetId: fooSubnet.id, * natGatewayName: "acc-test-intranet_ng", * description: "acc-test", * networkType: "intranet", * billingType: "PostPaidByUsage", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * }); * const fooIp = new volcengine.nat.Ip("fooIp", { * natGatewayId: intranetNatGateway.id, * natIpName: "acc-test-nat-ip", * natIpDescription: "acc-test", * natIp: "172.16.0.3", * }); * const fooIps = volcengine.nat.getIpsOutput({ * natGatewayId: intranetNatGateway.id, * }); * ``` */ /** @deprecated volcengine.nat.Ips has been deprecated in favor of volcengine.nat.getIps */ export declare function ips(args: IpsArgs, opts?: pulumi.InvokeOptions): Promise<IpsResult>; /** * A collection of arguments for invoking Ips. */ export interface IpsArgs { /** * A list of Nat IP ids. */ ids?: string[]; /** * The Name Regex of Nat ip. */ nameRegex?: string; /** * The id of the Nat gateway. */ natGatewayId: string; /** * The name of the Nat IP. */ natIpName?: string; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by Ips. */ export interface IpsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly ids?: string[]; readonly nameRegex?: string; /** * The id of the Nat gateway. */ readonly natGatewayId: string; /** * The name of the Nat Ip. */ readonly natIpName?: string; /** * The collection of query. */ readonly natIps: outputs.nat.IpsNatIp[]; readonly outputFile?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of nat ips * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * import * as volcengine from "@volcengine/pulumi"; * * const fooZones = volcengine.ecs.getZones({}); * const fooVpc = new volcengine.vpc.Vpc("fooVpc", { * vpcName: "acc-test-vpc", * cidrBlock: "172.16.0.0/16", * }); * const fooSubnet = new volcengine.vpc.Subnet("fooSubnet", { * subnetName: "acc-test-subnet", * cidrBlock: "172.16.0.0/24", * zoneId: fooZones.then(fooZones => fooZones.zones?.[0]?.id), * vpcId: fooVpc.id, * }); * const intranetNatGateway = new volcengine.nat.Gateway("intranetNatGateway", { * vpcId: fooVpc.id, * subnetId: fooSubnet.id, * natGatewayName: "acc-test-intranet_ng", * description: "acc-test", * networkType: "intranet", * billingType: "PostPaidByUsage", * projectName: "default", * tags: [{ * key: "k1", * value: "v1", * }], * }); * const fooIp = new volcengine.nat.Ip("fooIp", { * natGatewayId: intranetNatGateway.id, * natIpName: "acc-test-nat-ip", * natIpDescription: "acc-test", * natIp: "172.16.0.3", * }); * const fooIps = volcengine.nat.getIpsOutput({ * natGatewayId: intranetNatGateway.id, * }); * ``` */ /** @deprecated volcengine.nat.Ips has been deprecated in favor of volcengine.nat.getIps */ export declare function ipsOutput(args: IpsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<IpsResult>; /** * A collection of arguments for invoking Ips. */ export interface IpsOutputArgs { /** * A list of Nat IP ids. */ ids?: pulumi.Input<pulumi.Input<string>[]>; /** * The Name Regex of Nat ip. */ nameRegex?: pulumi.Input<string>; /** * The id of the Nat gateway. */ natGatewayId: pulumi.Input<string>; /** * The name of the Nat IP. */ natIpName?: pulumi.Input<string>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }