@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
152 lines (151 loc) • 4.13 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 vpc prefix lists
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooPrefixList = new volcengine.vpc.PrefixList("fooPrefixList", {
* prefixListName: "acc-test-prefix",
* maxEntries: 3,
* description: "acc test description",
* ipVersion: "IPv4",
* prefixListEntries: [
* {
* cidr: "192.168.4.0/28",
* description: "acc-test-1",
* },
* {
* cidr: "192.168.5.0/28",
* description: "acc-test-2",
* },
* ],
* tags: [{
* key: "tf-key1",
* value: "tf-value1",
* }],
* });
* const fooPrefixLists = volcengine.vpc.getPrefixListsOutput({
* ids: [fooPrefixList.id],
* });
* ```
*/
export declare function getPrefixLists(args?: GetPrefixListsArgs, opts?: pulumi.InvokeOptions): Promise<GetPrefixListsResult>;
/**
* A collection of arguments for invoking getPrefixLists.
*/
export interface GetPrefixListsArgs {
/**
* A list of prefix list ids.
*/
ids?: string[];
/**
* IP version of prefix list.
*/
ipVersion?: string;
/**
* File name where to save data source results.
*/
outputFile?: string;
/**
* A Name of prefix list.
*/
prefixListName?: string;
/**
* List of tag filters.
*/
tagFilters?: inputs.vpc.GetPrefixListsTagFilter[];
}
/**
* A collection of values returned by getPrefixLists.
*/
export interface GetPrefixListsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids?: string[];
/**
* The ip version of the prefix list.
*/
readonly ipVersion?: string;
readonly outputFile?: string;
/**
* The prefix list name.
*/
readonly prefixListName?: string;
/**
* The collection of query.
*/
readonly prefixLists: outputs.vpc.GetPrefixListsPrefixList[];
readonly tagFilters?: outputs.vpc.GetPrefixListsTagFilter[];
/**
* The total count of query.
*/
readonly totalCount: number;
}
/**
* Use this data source to query detailed information of vpc prefix lists
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@pulumi/volcengine";
* import * as volcengine from "@volcengine/pulumi";
*
* const fooPrefixList = new volcengine.vpc.PrefixList("fooPrefixList", {
* prefixListName: "acc-test-prefix",
* maxEntries: 3,
* description: "acc test description",
* ipVersion: "IPv4",
* prefixListEntries: [
* {
* cidr: "192.168.4.0/28",
* description: "acc-test-1",
* },
* {
* cidr: "192.168.5.0/28",
* description: "acc-test-2",
* },
* ],
* tags: [{
* key: "tf-key1",
* value: "tf-value1",
* }],
* });
* const fooPrefixLists = volcengine.vpc.getPrefixListsOutput({
* ids: [fooPrefixList.id],
* });
* ```
*/
export declare function getPrefixListsOutput(args?: GetPrefixListsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetPrefixListsResult>;
/**
* A collection of arguments for invoking getPrefixLists.
*/
export interface GetPrefixListsOutputArgs {
/**
* A list of prefix list ids.
*/
ids?: pulumi.Input<pulumi.Input<string>[]>;
/**
* IP version of prefix list.
*/
ipVersion?: pulumi.Input<string>;
/**
* File name where to save data source results.
*/
outputFile?: pulumi.Input<string>;
/**
* A Name of prefix list.
*/
prefixListName?: pulumi.Input<string>;
/**
* List of tag filters.
*/
tagFilters?: pulumi.Input<pulumi.Input<inputs.vpc.GetPrefixListsTagFilterArgs>[]>;
}