@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
157 lines (156 loc) • 3.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as inputs from "../types/input";
import * as outputs from "../types/output";
/**
* Use this data source to query detailed information of subnets
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.vpc.getSubnets({
* ids: ["subnet-274zsa5kfmj287fap8soo5e19"],
* });
* ```
*/
/** @deprecated volcengine.vpc.Subnets has been deprecated in favor of volcengine.vpc.getSubnets */
export declare function subnets(args?: SubnetsArgs, opts?: pulumi.InvokeOptions): Promise<SubnetsResult>;
/**
* A collection of arguments for invoking Subnets.
*/
export interface SubnetsArgs {
/**
* A list of Subnet IDs.
*/
ids?: string[];
/**
* A Name Regex of Subnet.
*/
nameRegex?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* The ID of route table which subnet associated with.
*/
routeTableId?: string;
/**
* The subnet name to query.
*/
subnetName?: string;
/**
* The owner ID of the subnet.
*/
subnetOwnerId?: number;
/**
* Tags.
*/
tags?: inputs.vpc.SubnetsTag[];
/**
* The ID of VPC which subnet belongs to.
*/
vpcId?: string;
/**
* The ID of zone which subnet belongs to.
*/
zoneId?: string;
}
/**
* A collection of values returned by Subnets.
*/
export interface SubnetsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
readonly nameRegex?: string;
readonly outputFile?: string;
/**
* The route table ID.
*/
readonly routeTableId?: string;
/**
* The Name of Subnet.
*/
readonly subnetName?: string;
readonly subnetOwnerId?: number;
/**
* The collection of Subnet query.
*/
readonly subnets: outputs.vpc.SubnetsSubnet[];
/**
* Tags.
*/
readonly tags?: outputs.vpc.SubnetsTag[];
/**
* The total count of Subnet query.
*/
readonly totalCount: number;
/**
* The Vpc ID of Subnet.
*/
readonly vpcId?: string;
/**
* The ID of Zone.
*/
readonly zoneId?: string;
}
/**
* Use this data source to query detailed information of subnets
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
*
* const default = volcengine.vpc.getSubnets({
* ids: ["subnet-274zsa5kfmj287fap8soo5e19"],
* });
* ```
*/
/** @deprecated volcengine.vpc.Subnets has been deprecated in favor of volcengine.vpc.getSubnets */
export declare function subnetsOutput(args?: SubnetsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<SubnetsResult>;
/**
* A collection of arguments for invoking Subnets.
*/
export interface SubnetsOutputArgs {
/**
* A list of Subnet IDs.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* A Name Regex of Subnet.
*/
nameRegex?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* The ID of route table which subnet associated with.
*/
routeTableId?: pulumi.Input<string>;
/**
* The subnet name to query.
*/
subnetName?: pulumi.Input<string>;
/**
* The owner ID of the subnet.
*/
subnetOwnerId?: pulumi.Input<number>;
/**
* Tags.
*/
tags?: pulumi.Input<pulumi.Input<inputs.vpc.SubnetsTagArgs>[]>;
/**
* The ID of VPC which subnet belongs to.
*/
vpcId?: pulumi.Input<string>;
/**
* The ID of zone which subnet belongs to.
*/
zoneId?: pulumi.Input<string>;
}