@pulumi/linode 4.9.0-alpha.1700200497 → 4.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/getVpc.d.ts ADDED
@@ -0,0 +1,81 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ /**
3
+ * Provides information about a Linode VPC.
4
+ *
5
+ * ## Example Usage
6
+ *
7
+ * The following example shows how one might use this data source to access information about a Linode VPC.
8
+ *
9
+ * ```typescript
10
+ * import * as pulumi from "@pulumi/pulumi";
11
+ * import * as linode from "@pulumi/linode";
12
+ *
13
+ * const foo = linode.getVpc({
14
+ * id: 123,
15
+ * });
16
+ * export const vpc = foo;
17
+ * ```
18
+ */
19
+ export declare function getVpc(args: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>;
20
+ /**
21
+ * A collection of arguments for invoking getVpc.
22
+ */
23
+ export interface GetVpcArgs {
24
+ /**
25
+ * The unique id of this VPC.
26
+ */
27
+ id: number;
28
+ }
29
+ /**
30
+ * A collection of values returned by getVpc.
31
+ */
32
+ export interface GetVpcResult {
33
+ /**
34
+ * The date and time when the VPC was created.
35
+ */
36
+ readonly created: string;
37
+ /**
38
+ * The user-defined description of this VPC.
39
+ */
40
+ readonly description: string;
41
+ readonly id: number;
42
+ /**
43
+ * The label of the VPC.
44
+ */
45
+ readonly label: string;
46
+ /**
47
+ * The region where the VPC is deployed.
48
+ */
49
+ readonly region: string;
50
+ /**
51
+ * The date and time when the VPC was last updated.
52
+ */
53
+ readonly updated: string;
54
+ }
55
+ /**
56
+ * Provides information about a Linode VPC.
57
+ *
58
+ * ## Example Usage
59
+ *
60
+ * The following example shows how one might use this data source to access information about a Linode VPC.
61
+ *
62
+ * ```typescript
63
+ * import * as pulumi from "@pulumi/pulumi";
64
+ * import * as linode from "@pulumi/linode";
65
+ *
66
+ * const foo = linode.getVpc({
67
+ * id: 123,
68
+ * });
69
+ * export const vpc = foo;
70
+ * ```
71
+ */
72
+ export declare function getVpcOutput(args: GetVpcOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcResult>;
73
+ /**
74
+ * A collection of arguments for invoking getVpc.
75
+ */
76
+ export interface GetVpcOutputArgs {
77
+ /**
78
+ * The unique id of this VPC.
79
+ */
80
+ id: pulumi.Input<number>;
81
+ }
package/getVpc.js ADDED
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getVpcOutput = exports.getVpc = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Linode VPC.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * The following example shows how one might use this data source to access information about a Linode VPC.
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const foo = linode.getVpc({
20
+ * id: 123,
21
+ * });
22
+ * export const vpc = foo;
23
+ * ```
24
+ */
25
+ function getVpc(args, opts) {
26
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
27
+ return pulumi.runtime.invoke("linode:index/getVpc:getVpc", {
28
+ "id": args.id,
29
+ }, opts);
30
+ }
31
+ exports.getVpc = getVpc;
32
+ /**
33
+ * Provides information about a Linode VPC.
34
+ *
35
+ * ## Example Usage
36
+ *
37
+ * The following example shows how one might use this data source to access information about a Linode VPC.
38
+ *
39
+ * ```typescript
40
+ * import * as pulumi from "@pulumi/pulumi";
41
+ * import * as linode from "@pulumi/linode";
42
+ *
43
+ * const foo = linode.getVpc({
44
+ * id: 123,
45
+ * });
46
+ * export const vpc = foo;
47
+ * ```
48
+ */
49
+ function getVpcOutput(args, opts) {
50
+ return pulumi.output(args).apply((a) => getVpc(a, opts));
51
+ }
52
+ exports.getVpcOutput = getVpcOutput;
53
+ //# sourceMappingURL=getVpc.js.map
package/getVpc.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVpc.js","sourceRoot":"","sources":["../getVpc.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,MAAM,CAAC,IAAgB,EAAE,IAA2B;IAEhE,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,4BAA4B,EAAE;QACvD,IAAI,EAAE,IAAI,CAAC,EAAE;KAChB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAND,wBAMC;AAsCD;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAC5E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,MAAM,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACjE,CAAC;AAFD,oCAEC"}
@@ -0,0 +1,93 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as outputs from "./types/output";
3
+ /**
4
+ * Provides information about a Linode VPC subnet.
5
+ *
6
+ * ## Example Usage
7
+ *
8
+ * The following example shows how one might use this data source to access information about a Linode VPC subnet.
9
+ *
10
+ * ```typescript
11
+ * import * as pulumi from "@pulumi/pulumi";
12
+ * import * as linode from "@pulumi/linode";
13
+ *
14
+ * const foo = linode.getVpcSubnet({
15
+ * vpcId: 123,
16
+ * id: 12345,
17
+ * });
18
+ * export const vpcSubnet = foo;
19
+ * ```
20
+ */
21
+ export declare function getVpcSubnet(args: GetVpcSubnetArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcSubnetResult>;
22
+ /**
23
+ * A collection of arguments for invoking getVpcSubnet.
24
+ */
25
+ export interface GetVpcSubnetArgs {
26
+ /**
27
+ * The unique id of this VPC subnet.
28
+ */
29
+ id: number;
30
+ /**
31
+ * The id of the parent VPC for this VPC Subnet.
32
+ */
33
+ vpcId: number;
34
+ }
35
+ /**
36
+ * A collection of values returned by getVpcSubnet.
37
+ */
38
+ export interface GetVpcSubnetResult {
39
+ /**
40
+ * The date and time when the VPC Subnet was created.
41
+ */
42
+ readonly created: string;
43
+ readonly id: number;
44
+ /**
45
+ * The IPv4 range of this subnet in CIDR format.
46
+ */
47
+ readonly ipv4: string;
48
+ /**
49
+ * The label of the VPC subnet.
50
+ */
51
+ readonly label: string;
52
+ /**
53
+ * A list of Linode IDs that added to this subnet.
54
+ */
55
+ readonly linodes: outputs.GetVpcSubnetLinode[];
56
+ /**
57
+ * The date and time when the VPC Subnet was last updated.
58
+ */
59
+ readonly updated: string;
60
+ readonly vpcId: number;
61
+ }
62
+ /**
63
+ * Provides information about a Linode VPC subnet.
64
+ *
65
+ * ## Example Usage
66
+ *
67
+ * The following example shows how one might use this data source to access information about a Linode VPC subnet.
68
+ *
69
+ * ```typescript
70
+ * import * as pulumi from "@pulumi/pulumi";
71
+ * import * as linode from "@pulumi/linode";
72
+ *
73
+ * const foo = linode.getVpcSubnet({
74
+ * vpcId: 123,
75
+ * id: 12345,
76
+ * });
77
+ * export const vpcSubnet = foo;
78
+ * ```
79
+ */
80
+ export declare function getVpcSubnetOutput(args: GetVpcSubnetOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcSubnetResult>;
81
+ /**
82
+ * A collection of arguments for invoking getVpcSubnet.
83
+ */
84
+ export interface GetVpcSubnetOutputArgs {
85
+ /**
86
+ * The unique id of this VPC subnet.
87
+ */
88
+ id: pulumi.Input<number>;
89
+ /**
90
+ * The id of the parent VPC for this VPC Subnet.
91
+ */
92
+ vpcId: pulumi.Input<number>;
93
+ }
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getVpcSubnetOutput = exports.getVpcSubnet = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a Linode VPC subnet.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * The following example shows how one might use this data source to access information about a Linode VPC subnet.
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const foo = linode.getVpcSubnet({
20
+ * vpcId: 123,
21
+ * id: 12345,
22
+ * });
23
+ * export const vpcSubnet = foo;
24
+ * ```
25
+ */
26
+ function getVpcSubnet(args, opts) {
27
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
28
+ return pulumi.runtime.invoke("linode:index/getVpcSubnet:getVpcSubnet", {
29
+ "id": args.id,
30
+ "vpcId": args.vpcId,
31
+ }, opts);
32
+ }
33
+ exports.getVpcSubnet = getVpcSubnet;
34
+ /**
35
+ * Provides information about a Linode VPC subnet.
36
+ *
37
+ * ## Example Usage
38
+ *
39
+ * The following example shows how one might use this data source to access information about a Linode VPC subnet.
40
+ *
41
+ * ```typescript
42
+ * import * as pulumi from "@pulumi/pulumi";
43
+ * import * as linode from "@pulumi/linode";
44
+ *
45
+ * const foo = linode.getVpcSubnet({
46
+ * vpcId: 123,
47
+ * id: 12345,
48
+ * });
49
+ * export const vpcSubnet = foo;
50
+ * ```
51
+ */
52
+ function getVpcSubnetOutput(args, opts) {
53
+ return pulumi.output(args).apply((a) => getVpcSubnet(a, opts));
54
+ }
55
+ exports.getVpcSubnetOutput = getVpcSubnetOutput;
56
+ //# sourceMappingURL=getVpcSubnet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVpcSubnet.js","sourceRoot":"","sources":["../getVpcSubnet.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,YAAY,CAAC,IAAsB,EAAE,IAA2B;IAE5E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,wCAAwC,EAAE;QACnE,IAAI,EAAE,IAAI,CAAC,EAAE;QACb,OAAO,EAAE,IAAI,CAAC,KAAK;KACtB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAPD,oCAOC;AA2CD;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,kBAAkB,CAAC,IAA4B,EAAE,IAA2B;IACxF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,YAAY,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACvE,CAAC;AAFD,gDAEC"}
@@ -0,0 +1,99 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Provides information about a list of Linode VPC subnets that match a set of filters.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * The following example shows how one might use this data source to list VPC subnets.
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as linode from "@pulumi/linode";
14
+ *
15
+ * const filtered-subnets = linode.getVpcSubnets({
16
+ * vpcId: 123,
17
+ * filters: [{
18
+ * name: "label",
19
+ * values: ["test"],
20
+ * }],
21
+ * });
22
+ * export const vpcSubnets = filtered_subnets.then(filtered_subnets => filtered_subnets.vpcSubnets);
23
+ * ```
24
+ * ## Filterable Fields
25
+ *
26
+ * * `id`
27
+ *
28
+ * * `label`
29
+ *
30
+ * * `ipv4`
31
+ */
32
+ export declare function getVpcSubnets(args: GetVpcSubnetsArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcSubnetsResult>;
33
+ /**
34
+ * A collection of arguments for invoking getVpcSubnets.
35
+ */
36
+ export interface GetVpcSubnetsArgs {
37
+ filters?: inputs.GetVpcSubnetsFilter[];
38
+ /**
39
+ * The id of the parent VPC for the list of VPCs.
40
+ *
41
+ * * `filter` - (Optional) A set of filters used to select Linode VPC subnets that meet certain requirements.
42
+ */
43
+ vpcId: number;
44
+ vpcSubnets?: inputs.GetVpcSubnetsVpcSubnet[];
45
+ }
46
+ /**
47
+ * A collection of values returned by getVpcSubnets.
48
+ */
49
+ export interface GetVpcSubnetsResult {
50
+ readonly filters?: outputs.GetVpcSubnetsFilter[];
51
+ /**
52
+ * The unique id of the VPC subnet.
53
+ */
54
+ readonly id: string;
55
+ readonly vpcId: number;
56
+ readonly vpcSubnets?: outputs.GetVpcSubnetsVpcSubnet[];
57
+ }
58
+ /**
59
+ * Provides information about a list of Linode VPC subnets that match a set of filters.
60
+ *
61
+ * ## Example Usage
62
+ *
63
+ * The following example shows how one might use this data source to list VPC subnets.
64
+ *
65
+ * ```typescript
66
+ * import * as pulumi from "@pulumi/pulumi";
67
+ * import * as linode from "@pulumi/linode";
68
+ *
69
+ * const filtered-subnets = linode.getVpcSubnets({
70
+ * vpcId: 123,
71
+ * filters: [{
72
+ * name: "label",
73
+ * values: ["test"],
74
+ * }],
75
+ * });
76
+ * export const vpcSubnets = filtered_subnets.then(filtered_subnets => filtered_subnets.vpcSubnets);
77
+ * ```
78
+ * ## Filterable Fields
79
+ *
80
+ * * `id`
81
+ *
82
+ * * `label`
83
+ *
84
+ * * `ipv4`
85
+ */
86
+ export declare function getVpcSubnetsOutput(args: GetVpcSubnetsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcSubnetsResult>;
87
+ /**
88
+ * A collection of arguments for invoking getVpcSubnets.
89
+ */
90
+ export interface GetVpcSubnetsOutputArgs {
91
+ filters?: pulumi.Input<pulumi.Input<inputs.GetVpcSubnetsFilterArgs>[]>;
92
+ /**
93
+ * The id of the parent VPC for the list of VPCs.
94
+ *
95
+ * * `filter` - (Optional) A set of filters used to select Linode VPC subnets that meet certain requirements.
96
+ */
97
+ vpcId: pulumi.Input<number>;
98
+ vpcSubnets?: pulumi.Input<pulumi.Input<inputs.GetVpcSubnetsVpcSubnetArgs>[]>;
99
+ }
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getVpcSubnetsOutput = exports.getVpcSubnets = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a list of Linode VPC subnets that match a set of filters.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * The following example shows how one might use this data source to list VPC subnets.
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const filtered-subnets = linode.getVpcSubnets({
20
+ * vpcId: 123,
21
+ * filters: [{
22
+ * name: "label",
23
+ * values: ["test"],
24
+ * }],
25
+ * });
26
+ * export const vpcSubnets = filtered_subnets.then(filtered_subnets => filtered_subnets.vpcSubnets);
27
+ * ```
28
+ * ## Filterable Fields
29
+ *
30
+ * * `id`
31
+ *
32
+ * * `label`
33
+ *
34
+ * * `ipv4`
35
+ */
36
+ function getVpcSubnets(args, opts) {
37
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
38
+ return pulumi.runtime.invoke("linode:index/getVpcSubnets:getVpcSubnets", {
39
+ "filters": args.filters,
40
+ "vpcId": args.vpcId,
41
+ "vpcSubnets": args.vpcSubnets,
42
+ }, opts);
43
+ }
44
+ exports.getVpcSubnets = getVpcSubnets;
45
+ /**
46
+ * Provides information about a list of Linode VPC subnets that match a set of filters.
47
+ *
48
+ * ## Example Usage
49
+ *
50
+ * The following example shows how one might use this data source to list VPC subnets.
51
+ *
52
+ * ```typescript
53
+ * import * as pulumi from "@pulumi/pulumi";
54
+ * import * as linode from "@pulumi/linode";
55
+ *
56
+ * const filtered-subnets = linode.getVpcSubnets({
57
+ * vpcId: 123,
58
+ * filters: [{
59
+ * name: "label",
60
+ * values: ["test"],
61
+ * }],
62
+ * });
63
+ * export const vpcSubnets = filtered_subnets.then(filtered_subnets => filtered_subnets.vpcSubnets);
64
+ * ```
65
+ * ## Filterable Fields
66
+ *
67
+ * * `id`
68
+ *
69
+ * * `label`
70
+ *
71
+ * * `ipv4`
72
+ */
73
+ function getVpcSubnetsOutput(args, opts) {
74
+ return pulumi.output(args).apply((a) => getVpcSubnets(a, opts));
75
+ }
76
+ exports.getVpcSubnetsOutput = getVpcSubnetsOutput;
77
+ //# sourceMappingURL=getVpcSubnets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVpcSubnets.js","sourceRoot":"","sources":["../getVpcSubnets.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,aAAa,CAAC,IAAuB,EAAE,IAA2B;IAE9E,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,0CAA0C,EAAE;QACrE,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,YAAY,EAAE,IAAI,CAAC,UAAU;KAChC,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,sCAQC;AA4BD;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,SAAgB,mBAAmB,CAAC,IAA6B,EAAE,IAA2B;IAC1F,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACxE,CAAC;AAFD,kDAEC"}
package/getVpcs.d.ts ADDED
@@ -0,0 +1,88 @@
1
+ import * as pulumi from "@pulumi/pulumi";
2
+ import * as inputs from "./types/input";
3
+ import * as outputs from "./types/output";
4
+ /**
5
+ * Provides information about a list of Linode VPCs that match a set of filters.
6
+ *
7
+ * ## Example Usage
8
+ *
9
+ * The following example shows how one might use this data source to list VPCs.
10
+ *
11
+ * ```typescript
12
+ * import * as pulumi from "@pulumi/pulumi";
13
+ * import * as linode from "@pulumi/linode";
14
+ *
15
+ * const filtered-vpcs = linode.getVpcs({
16
+ * filters: [{
17
+ * name: "label",
18
+ * values: ["test"],
19
+ * }],
20
+ * });
21
+ * export const vpcs = filtered_vpcs.then(filtered_vpcs => filtered_vpcs.vpcs);
22
+ * ```
23
+ * ## Filterable Fields
24
+ *
25
+ * * `id`
26
+ *
27
+ * * `label`
28
+ *
29
+ * * `description`
30
+ *
31
+ * * `region`
32
+ */
33
+ export declare function getVpcs(args?: GetVpcsArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcsResult>;
34
+ /**
35
+ * A collection of arguments for invoking getVpcs.
36
+ */
37
+ export interface GetVpcsArgs {
38
+ filters?: inputs.GetVpcsFilter[];
39
+ vpcs?: inputs.GetVpcsVpc[];
40
+ }
41
+ /**
42
+ * A collection of values returned by getVpcs.
43
+ */
44
+ export interface GetVpcsResult {
45
+ readonly filters?: outputs.GetVpcsFilter[];
46
+ /**
47
+ * The unique id of this VPC.
48
+ */
49
+ readonly id: string;
50
+ readonly vpcs?: outputs.GetVpcsVpc[];
51
+ }
52
+ /**
53
+ * Provides information about a list of Linode VPCs that match a set of filters.
54
+ *
55
+ * ## Example Usage
56
+ *
57
+ * The following example shows how one might use this data source to list VPCs.
58
+ *
59
+ * ```typescript
60
+ * import * as pulumi from "@pulumi/pulumi";
61
+ * import * as linode from "@pulumi/linode";
62
+ *
63
+ * const filtered-vpcs = linode.getVpcs({
64
+ * filters: [{
65
+ * name: "label",
66
+ * values: ["test"],
67
+ * }],
68
+ * });
69
+ * export const vpcs = filtered_vpcs.then(filtered_vpcs => filtered_vpcs.vpcs);
70
+ * ```
71
+ * ## Filterable Fields
72
+ *
73
+ * * `id`
74
+ *
75
+ * * `label`
76
+ *
77
+ * * `description`
78
+ *
79
+ * * `region`
80
+ */
81
+ export declare function getVpcsOutput(args?: GetVpcsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcsResult>;
82
+ /**
83
+ * A collection of arguments for invoking getVpcs.
84
+ */
85
+ export interface GetVpcsOutputArgs {
86
+ filters?: pulumi.Input<pulumi.Input<inputs.GetVpcsFilterArgs>[]>;
87
+ vpcs?: pulumi.Input<pulumi.Input<inputs.GetVpcsVpcArgs>[]>;
88
+ }
package/getVpcs.js ADDED
@@ -0,0 +1,79 @@
1
+ "use strict";
2
+ // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
3
+ // *** Do not edit by hand unless you're certain you know what you are doing! ***
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+ exports.getVpcsOutput = exports.getVpcs = void 0;
6
+ const pulumi = require("@pulumi/pulumi");
7
+ const utilities = require("./utilities");
8
+ /**
9
+ * Provides information about a list of Linode VPCs that match a set of filters.
10
+ *
11
+ * ## Example Usage
12
+ *
13
+ * The following example shows how one might use this data source to list VPCs.
14
+ *
15
+ * ```typescript
16
+ * import * as pulumi from "@pulumi/pulumi";
17
+ * import * as linode from "@pulumi/linode";
18
+ *
19
+ * const filtered-vpcs = linode.getVpcs({
20
+ * filters: [{
21
+ * name: "label",
22
+ * values: ["test"],
23
+ * }],
24
+ * });
25
+ * export const vpcs = filtered_vpcs.then(filtered_vpcs => filtered_vpcs.vpcs);
26
+ * ```
27
+ * ## Filterable Fields
28
+ *
29
+ * * `id`
30
+ *
31
+ * * `label`
32
+ *
33
+ * * `description`
34
+ *
35
+ * * `region`
36
+ */
37
+ function getVpcs(args, opts) {
38
+ args = args || {};
39
+ opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
40
+ return pulumi.runtime.invoke("linode:index/getVpcs:getVpcs", {
41
+ "filters": args.filters,
42
+ "vpcs": args.vpcs,
43
+ }, opts);
44
+ }
45
+ exports.getVpcs = getVpcs;
46
+ /**
47
+ * Provides information about a list of Linode VPCs that match a set of filters.
48
+ *
49
+ * ## Example Usage
50
+ *
51
+ * The following example shows how one might use this data source to list VPCs.
52
+ *
53
+ * ```typescript
54
+ * import * as pulumi from "@pulumi/pulumi";
55
+ * import * as linode from "@pulumi/linode";
56
+ *
57
+ * const filtered-vpcs = linode.getVpcs({
58
+ * filters: [{
59
+ * name: "label",
60
+ * values: ["test"],
61
+ * }],
62
+ * });
63
+ * export const vpcs = filtered_vpcs.then(filtered_vpcs => filtered_vpcs.vpcs);
64
+ * ```
65
+ * ## Filterable Fields
66
+ *
67
+ * * `id`
68
+ *
69
+ * * `label`
70
+ *
71
+ * * `description`
72
+ *
73
+ * * `region`
74
+ */
75
+ function getVpcsOutput(args, opts) {
76
+ return pulumi.output(args).apply((a) => getVpcs(a, opts));
77
+ }
78
+ exports.getVpcsOutput = getVpcsOutput;
79
+ //# sourceMappingURL=getVpcs.js.map
package/getVpcs.js.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"getVpcs.js","sourceRoot":"","sources":["../getVpcs.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,OAAO,CAAC,IAAkB,EAAE,IAA2B;IACnE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAElB,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC;IACzE,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,8BAA8B,EAAE;QACzD,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,MAAM,EAAE,IAAI,CAAC,IAAI;KACpB,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AARD,0BAQC;AAqBD;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,SAAgB,aAAa,CAAC,IAAwB,EAAE,IAA2B;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,OAAO,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAClE,CAAC;AAFD,sCAEC"}
package/index.d.ts CHANGED
@@ -160,6 +160,18 @@ export declare const getVolumeOutput: typeof import("./getVolume").getVolumeOutp
160
160
  export { GetVolumesArgs, GetVolumesResult, GetVolumesOutputArgs } from "./getVolumes";
161
161
  export declare const getVolumes: typeof import("./getVolumes").getVolumes;
162
162
  export declare const getVolumesOutput: typeof import("./getVolumes").getVolumesOutput;
163
+ export { GetVpcArgs, GetVpcResult, GetVpcOutputArgs } from "./getVpc";
164
+ export declare const getVpc: typeof import("./getVpc").getVpc;
165
+ export declare const getVpcOutput: typeof import("./getVpc").getVpcOutput;
166
+ export { GetVpcSubnetArgs, GetVpcSubnetResult, GetVpcSubnetOutputArgs } from "./getVpcSubnet";
167
+ export declare const getVpcSubnet: typeof import("./getVpcSubnet").getVpcSubnet;
168
+ export declare const getVpcSubnetOutput: typeof import("./getVpcSubnet").getVpcSubnetOutput;
169
+ export { GetVpcSubnetsArgs, GetVpcSubnetsResult, GetVpcSubnetsOutputArgs } from "./getVpcSubnets";
170
+ export declare const getVpcSubnets: typeof import("./getVpcSubnets").getVpcSubnets;
171
+ export declare const getVpcSubnetsOutput: typeof import("./getVpcSubnets").getVpcSubnetsOutput;
172
+ export { GetVpcsArgs, GetVpcsResult, GetVpcsOutputArgs } from "./getVpcs";
173
+ export declare const getVpcs: typeof import("./getVpcs").getVpcs;
174
+ export declare const getVpcsOutput: typeof import("./getVpcs").getVpcsOutput;
163
175
  export { ImageArgs, ImageState } from "./image";
164
176
  export type Image = import("./image").Image;
165
177
  export declare const Image: typeof import("./image").Image;
@@ -220,6 +232,12 @@ export declare const User: typeof import("./user").User;
220
232
  export { VolumeArgs, VolumeState } from "./volume";
221
233
  export type Volume = import("./volume").Volume;
222
234
  export declare const Volume: typeof import("./volume").Volume;
235
+ export { VpcArgs, VpcState } from "./vpc";
236
+ export type Vpc = import("./vpc").Vpc;
237
+ export declare const Vpc: typeof import("./vpc").Vpc;
238
+ export { VpcSubnetArgs, VpcSubnetState } from "./vpcSubnet";
239
+ export type VpcSubnet = import("./vpcSubnet").VpcSubnet;
240
+ export declare const VpcSubnet: typeof import("./vpcSubnet").VpcSubnet;
223
241
  import * as config from "./config";
224
242
  import * as types from "./types";
225
243
  export { config, types, };