@pulumi/linode 3.5.0 → 3.7.0-alpha.1638257674
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/domain.d.ts +12 -12
- package/domainRecord.d.ts +3 -3
- package/firewall.d.ts +1 -1
- package/firewallDevice.d.ts +123 -0
- package/firewallDevice.js +100 -0
- package/firewallDevice.js.map +1 -0
- package/getImages.d.ts +27 -0
- package/getImages.js +3 -0
- package/getImages.js.map +1 -1
- package/getInstanceTypes.d.ts +118 -0
- package/getInstanceTypes.js +100 -0
- package/getInstanceTypes.js.map +1 -0
- package/getInstances.d.ts +18 -0
- package/getInstances.js +2 -0
- package/getInstances.js.map +1 -1
- package/getLkeCluster.d.ts +1 -0
- package/getLkeCluster.js.map +1 -1
- package/getStackScripts.d.ts +136 -0
- package/getStackScripts.js +110 -0
- package/getStackScripts.js.map +1 -0
- package/getVlans.d.ts +18 -0
- package/getVlans.js +2 -0
- package/getVlans.js.map +1 -1
- package/index.d.ts +3 -0
- package/index.js +7 -0
- package/index.js.map +1 -1
- package/lkeCluster.d.ts +37 -1
- package/lkeCluster.js +27 -1
- package/lkeCluster.js.map +1 -1
- package/package.json +2 -2
- package/package.json.dev +1 -1
- package/types/input.d.ts +104 -7
- package/types/output.d.ts +128 -0
package/domain.d.ts
CHANGED
|
@@ -70,7 +70,7 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
70
70
|
*/
|
|
71
71
|
readonly domain: pulumi.Output<string>;
|
|
72
72
|
/**
|
|
73
|
-
* The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
73
|
+
* The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
74
74
|
*/
|
|
75
75
|
readonly expireSec: pulumi.Output<number | undefined>;
|
|
76
76
|
/**
|
|
@@ -82,11 +82,11 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
82
82
|
*/
|
|
83
83
|
readonly masterIps: pulumi.Output<string[] | undefined>;
|
|
84
84
|
/**
|
|
85
|
-
* The amount of time in seconds before this Domain should be refreshed. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
85
|
+
* The amount of time in seconds before this Domain should be refreshed. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
86
86
|
*/
|
|
87
87
|
readonly refreshSec: pulumi.Output<number | undefined>;
|
|
88
88
|
/**
|
|
89
|
-
* The interval, in seconds, at which a failed refresh should be retried. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
89
|
+
* The interval, in seconds, at which a failed refresh should be retried. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
90
90
|
*/
|
|
91
91
|
readonly retrySec: pulumi.Output<number | undefined>;
|
|
92
92
|
/**
|
|
@@ -102,7 +102,7 @@ export declare class Domain extends pulumi.CustomResource {
|
|
|
102
102
|
*/
|
|
103
103
|
readonly tags: pulumi.Output<string[] | undefined>;
|
|
104
104
|
/**
|
|
105
|
-
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
105
|
+
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
106
106
|
*/
|
|
107
107
|
readonly ttlSec: pulumi.Output<number | undefined>;
|
|
108
108
|
/**
|
|
@@ -135,7 +135,7 @@ export interface DomainState {
|
|
|
135
135
|
*/
|
|
136
136
|
domain?: pulumi.Input<string>;
|
|
137
137
|
/**
|
|
138
|
-
* The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
138
|
+
* The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
139
139
|
*/
|
|
140
140
|
expireSec?: pulumi.Input<number>;
|
|
141
141
|
/**
|
|
@@ -147,11 +147,11 @@ export interface DomainState {
|
|
|
147
147
|
*/
|
|
148
148
|
masterIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
149
149
|
/**
|
|
150
|
-
* The amount of time in seconds before this Domain should be refreshed. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
150
|
+
* The amount of time in seconds before this Domain should be refreshed. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
151
151
|
*/
|
|
152
152
|
refreshSec?: pulumi.Input<number>;
|
|
153
153
|
/**
|
|
154
|
-
* The interval, in seconds, at which a failed refresh should be retried. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
154
|
+
* The interval, in seconds, at which a failed refresh should be retried. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
155
155
|
*/
|
|
156
156
|
retrySec?: pulumi.Input<number>;
|
|
157
157
|
/**
|
|
@@ -167,7 +167,7 @@ export interface DomainState {
|
|
|
167
167
|
*/
|
|
168
168
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
169
169
|
/**
|
|
170
|
-
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
170
|
+
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
171
171
|
*/
|
|
172
172
|
ttlSec?: pulumi.Input<number>;
|
|
173
173
|
/**
|
|
@@ -192,7 +192,7 @@ export interface DomainArgs {
|
|
|
192
192
|
*/
|
|
193
193
|
domain: pulumi.Input<string>;
|
|
194
194
|
/**
|
|
195
|
-
* The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
195
|
+
* The amount of time in seconds that may pass before this Domain is no longer authoritative. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
196
196
|
*/
|
|
197
197
|
expireSec?: pulumi.Input<number>;
|
|
198
198
|
/**
|
|
@@ -204,11 +204,11 @@ export interface DomainArgs {
|
|
|
204
204
|
*/
|
|
205
205
|
masterIps?: pulumi.Input<pulumi.Input<string>[]>;
|
|
206
206
|
/**
|
|
207
|
-
* The amount of time in seconds before this Domain should be refreshed. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
207
|
+
* The amount of time in seconds before this Domain should be refreshed. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
208
208
|
*/
|
|
209
209
|
refreshSec?: pulumi.Input<number>;
|
|
210
210
|
/**
|
|
211
|
-
* The interval, in seconds, at which a failed refresh should be retried. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
211
|
+
* The interval, in seconds, at which a failed refresh should be retried. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
212
212
|
*/
|
|
213
213
|
retrySec?: pulumi.Input<number>;
|
|
214
214
|
/**
|
|
@@ -224,7 +224,7 @@ export interface DomainArgs {
|
|
|
224
224
|
*/
|
|
225
225
|
tags?: pulumi.Input<pulumi.Input<string>[]>;
|
|
226
226
|
/**
|
|
227
|
-
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
227
|
+
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 0, 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
228
228
|
*/
|
|
229
229
|
ttlSec?: pulumi.Input<number>;
|
|
230
230
|
/**
|
package/domainRecord.d.ts
CHANGED
|
@@ -90,7 +90,7 @@ export declare class DomainRecord extends pulumi.CustomResource {
|
|
|
90
90
|
*/
|
|
91
91
|
readonly target: pulumi.Output<string>;
|
|
92
92
|
/**
|
|
93
|
-
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
93
|
+
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
94
94
|
*/
|
|
95
95
|
readonly ttlSec: pulumi.Output<number | undefined>;
|
|
96
96
|
/**
|
|
@@ -147,7 +147,7 @@ export interface DomainRecordState {
|
|
|
147
147
|
*/
|
|
148
148
|
target?: pulumi.Input<string>;
|
|
149
149
|
/**
|
|
150
|
-
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
150
|
+
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
151
151
|
*/
|
|
152
152
|
ttlSec?: pulumi.Input<number>;
|
|
153
153
|
/**
|
|
@@ -196,7 +196,7 @@ export interface DomainRecordArgs {
|
|
|
196
196
|
*/
|
|
197
197
|
target: pulumi.Input<string>;
|
|
198
198
|
/**
|
|
199
|
-
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
199
|
+
* 'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
|
|
200
200
|
*/
|
|
201
201
|
ttlSec?: pulumi.Input<number>;
|
|
202
202
|
/**
|
package/firewall.d.ts
CHANGED
|
@@ -109,7 +109,7 @@ export declare class Firewall extends pulumi.CustomResource {
|
|
|
109
109
|
/**
|
|
110
110
|
* A list of IDs of Linodes this Firewall should govern it's network traffic for.
|
|
111
111
|
*/
|
|
112
|
-
readonly linodes: pulumi.Output<number[]
|
|
112
|
+
readonly linodes: pulumi.Output<number[]>;
|
|
113
113
|
/**
|
|
114
114
|
* The default behavior for outbound traffic. This setting can be overridden by updating the outbound.action property for an individual Firewall Rule. (`ACCEPT`, `DROP`)
|
|
115
115
|
*/
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* Manages a Linode Firewall Device.
|
|
4
|
+
*
|
|
5
|
+
* **NOTICE:** Attaching a Linode Firewall Device to a `linode.Firewall` resource with user-defined `linodes` may cause device conflicts.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as linode from "@pulumi/linode";
|
|
12
|
+
*
|
|
13
|
+
* const myFirewall = new linode.Firewall("myFirewall", {
|
|
14
|
+
* label: "my_firewall",
|
|
15
|
+
* inbounds: [{
|
|
16
|
+
* label: "http",
|
|
17
|
+
* action: "ACCEPT",
|
|
18
|
+
* protocol: "TCP",
|
|
19
|
+
* ports: "80",
|
|
20
|
+
* ipv4s: ["0.0.0.0/0"],
|
|
21
|
+
* ipv6s: ["::/0"],
|
|
22
|
+
* }],
|
|
23
|
+
* inboundPolicy: "DROP",
|
|
24
|
+
* outboundPolicy: "ACCEPT",
|
|
25
|
+
* });
|
|
26
|
+
* const myInstance = new linode.Instance("myInstance", {
|
|
27
|
+
* label: "my_instance",
|
|
28
|
+
* region: "us-southeast",
|
|
29
|
+
* type: "g6-standard-1",
|
|
30
|
+
* });
|
|
31
|
+
* const myDevice = new linode.FirewallDevice("myDevice", {
|
|
32
|
+
* firewallId: myFirewall.id,
|
|
33
|
+
* entityId: myInstance.id,
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class FirewallDevice extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing FirewallDevice resource's state with the given name, ID, and optional extra
|
|
40
|
+
* properties used to qualify the lookup.
|
|
41
|
+
*
|
|
42
|
+
* @param name The _unique_ name of the resulting resource.
|
|
43
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
44
|
+
* @param state Any extra arguments used during the lookup.
|
|
45
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
46
|
+
*/
|
|
47
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: FirewallDeviceState, opts?: pulumi.CustomResourceOptions): FirewallDevice;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of FirewallDevice. This is designed to work even
|
|
50
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
51
|
+
*/
|
|
52
|
+
static isInstance(obj: any): obj is FirewallDevice;
|
|
53
|
+
/**
|
|
54
|
+
* When the Firewall Device was last created.
|
|
55
|
+
*/
|
|
56
|
+
readonly created: pulumi.Output<string>;
|
|
57
|
+
/**
|
|
58
|
+
* The unique ID of the entity to attach.
|
|
59
|
+
*/
|
|
60
|
+
readonly entityId: pulumi.Output<number>;
|
|
61
|
+
/**
|
|
62
|
+
* The type of the entity to attach. (default: `linode`)
|
|
63
|
+
*/
|
|
64
|
+
readonly entityType: pulumi.Output<string | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* The unique ID of the target Firewall.
|
|
67
|
+
*/
|
|
68
|
+
readonly firewallId: pulumi.Output<number>;
|
|
69
|
+
/**
|
|
70
|
+
* When the Firewall Device was last updated.
|
|
71
|
+
*/
|
|
72
|
+
readonly updated: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Create a FirewallDevice resource with the given unique name, arguments, and options.
|
|
75
|
+
*
|
|
76
|
+
* @param name The _unique_ name of the resource.
|
|
77
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
78
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
79
|
+
*/
|
|
80
|
+
constructor(name: string, args: FirewallDeviceArgs, opts?: pulumi.CustomResourceOptions);
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* Input properties used for looking up and filtering FirewallDevice resources.
|
|
84
|
+
*/
|
|
85
|
+
export interface FirewallDeviceState {
|
|
86
|
+
/**
|
|
87
|
+
* When the Firewall Device was last created.
|
|
88
|
+
*/
|
|
89
|
+
created?: pulumi.Input<string>;
|
|
90
|
+
/**
|
|
91
|
+
* The unique ID of the entity to attach.
|
|
92
|
+
*/
|
|
93
|
+
entityId?: pulumi.Input<number>;
|
|
94
|
+
/**
|
|
95
|
+
* The type of the entity to attach. (default: `linode`)
|
|
96
|
+
*/
|
|
97
|
+
entityType?: pulumi.Input<string>;
|
|
98
|
+
/**
|
|
99
|
+
* The unique ID of the target Firewall.
|
|
100
|
+
*/
|
|
101
|
+
firewallId?: pulumi.Input<number>;
|
|
102
|
+
/**
|
|
103
|
+
* When the Firewall Device was last updated.
|
|
104
|
+
*/
|
|
105
|
+
updated?: pulumi.Input<string>;
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* The set of arguments for constructing a FirewallDevice resource.
|
|
109
|
+
*/
|
|
110
|
+
export interface FirewallDeviceArgs {
|
|
111
|
+
/**
|
|
112
|
+
* The unique ID of the entity to attach.
|
|
113
|
+
*/
|
|
114
|
+
entityId: pulumi.Input<number>;
|
|
115
|
+
/**
|
|
116
|
+
* The type of the entity to attach. (default: `linode`)
|
|
117
|
+
*/
|
|
118
|
+
entityType?: pulumi.Input<string>;
|
|
119
|
+
/**
|
|
120
|
+
* The unique ID of the target Firewall.
|
|
121
|
+
*/
|
|
122
|
+
firewallId: pulumi.Input<number>;
|
|
123
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.FirewallDevice = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Manages a Linode Firewall Device.
|
|
10
|
+
*
|
|
11
|
+
* **NOTICE:** Attaching a Linode Firewall Device to a `linode.Firewall` resource with user-defined `linodes` may cause device conflicts.
|
|
12
|
+
*
|
|
13
|
+
* ## Example Usage
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as linode from "@pulumi/linode";
|
|
18
|
+
*
|
|
19
|
+
* const myFirewall = new linode.Firewall("myFirewall", {
|
|
20
|
+
* label: "my_firewall",
|
|
21
|
+
* inbounds: [{
|
|
22
|
+
* label: "http",
|
|
23
|
+
* action: "ACCEPT",
|
|
24
|
+
* protocol: "TCP",
|
|
25
|
+
* ports: "80",
|
|
26
|
+
* ipv4s: ["0.0.0.0/0"],
|
|
27
|
+
* ipv6s: ["::/0"],
|
|
28
|
+
* }],
|
|
29
|
+
* inboundPolicy: "DROP",
|
|
30
|
+
* outboundPolicy: "ACCEPT",
|
|
31
|
+
* });
|
|
32
|
+
* const myInstance = new linode.Instance("myInstance", {
|
|
33
|
+
* label: "my_instance",
|
|
34
|
+
* region: "us-southeast",
|
|
35
|
+
* type: "g6-standard-1",
|
|
36
|
+
* });
|
|
37
|
+
* const myDevice = new linode.FirewallDevice("myDevice", {
|
|
38
|
+
* firewallId: myFirewall.id,
|
|
39
|
+
* entityId: myInstance.id,
|
|
40
|
+
* });
|
|
41
|
+
* ```
|
|
42
|
+
*/
|
|
43
|
+
class FirewallDevice extends pulumi.CustomResource {
|
|
44
|
+
constructor(name, argsOrState, opts) {
|
|
45
|
+
let inputs = {};
|
|
46
|
+
opts = opts || {};
|
|
47
|
+
if (opts.id) {
|
|
48
|
+
const state = argsOrState;
|
|
49
|
+
inputs["created"] = state ? state.created : undefined;
|
|
50
|
+
inputs["entityId"] = state ? state.entityId : undefined;
|
|
51
|
+
inputs["entityType"] = state ? state.entityType : undefined;
|
|
52
|
+
inputs["firewallId"] = state ? state.firewallId : undefined;
|
|
53
|
+
inputs["updated"] = state ? state.updated : undefined;
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
const args = argsOrState;
|
|
57
|
+
if ((!args || args.entityId === undefined) && !opts.urn) {
|
|
58
|
+
throw new Error("Missing required property 'entityId'");
|
|
59
|
+
}
|
|
60
|
+
if ((!args || args.firewallId === undefined) && !opts.urn) {
|
|
61
|
+
throw new Error("Missing required property 'firewallId'");
|
|
62
|
+
}
|
|
63
|
+
inputs["entityId"] = args ? args.entityId : undefined;
|
|
64
|
+
inputs["entityType"] = args ? args.entityType : undefined;
|
|
65
|
+
inputs["firewallId"] = args ? args.firewallId : undefined;
|
|
66
|
+
inputs["created"] = undefined /*out*/;
|
|
67
|
+
inputs["updated"] = undefined /*out*/;
|
|
68
|
+
}
|
|
69
|
+
if (!opts.version) {
|
|
70
|
+
opts = pulumi.mergeOptions(opts, { version: utilities.getVersion() });
|
|
71
|
+
}
|
|
72
|
+
super(FirewallDevice.__pulumiType, name, inputs, opts);
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* Get an existing FirewallDevice resource's state with the given name, ID, and optional extra
|
|
76
|
+
* properties used to qualify the lookup.
|
|
77
|
+
*
|
|
78
|
+
* @param name The _unique_ name of the resulting resource.
|
|
79
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
80
|
+
* @param state Any extra arguments used during the lookup.
|
|
81
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
82
|
+
*/
|
|
83
|
+
static get(name, id, state, opts) {
|
|
84
|
+
return new FirewallDevice(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Returns true if the given object is an instance of FirewallDevice. This is designed to work even
|
|
88
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
89
|
+
*/
|
|
90
|
+
static isInstance(obj) {
|
|
91
|
+
if (obj === undefined || obj === null) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
return obj['__pulumiType'] === FirewallDevice.__pulumiType;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
exports.FirewallDevice = FirewallDevice;
|
|
98
|
+
/** @internal */
|
|
99
|
+
FirewallDevice.__pulumiType = 'linode:index/firewallDevice:FirewallDevice';
|
|
100
|
+
//# sourceMappingURL=firewallDevice.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"firewallDevice.js","sourceRoot":"","sources":["../firewallDevice.ts"],"names":[],"mappings":"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"}
|
package/getImages.d.ts
CHANGED
|
@@ -77,6 +77,18 @@ export declare function getImages(args?: GetImagesArgs, opts?: pulumi.InvokeOpti
|
|
|
77
77
|
*/
|
|
78
78
|
export interface GetImagesArgs {
|
|
79
79
|
filters?: inputs.GetImagesFilter[];
|
|
80
|
+
/**
|
|
81
|
+
* If true, only the latest image will be returned. Images without a valid `created` field are not included in the result.
|
|
82
|
+
*/
|
|
83
|
+
latest?: boolean;
|
|
84
|
+
/**
|
|
85
|
+
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
|
|
86
|
+
*/
|
|
87
|
+
order?: string;
|
|
88
|
+
/**
|
|
89
|
+
* The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
|
|
90
|
+
*/
|
|
91
|
+
orderBy?: string;
|
|
80
92
|
}
|
|
81
93
|
/**
|
|
82
94
|
* A collection of values returned by getImages.
|
|
@@ -88,6 +100,9 @@ export interface GetImagesResult {
|
|
|
88
100
|
*/
|
|
89
101
|
readonly id: string;
|
|
90
102
|
readonly images: outputs.GetImagesImage[];
|
|
103
|
+
readonly latest?: boolean;
|
|
104
|
+
readonly order?: string;
|
|
105
|
+
readonly orderBy?: string;
|
|
91
106
|
}
|
|
92
107
|
export declare function getImagesOutput(args?: GetImagesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetImagesResult>;
|
|
93
108
|
/**
|
|
@@ -95,4 +110,16 @@ export declare function getImagesOutput(args?: GetImagesOutputArgs, opts?: pulum
|
|
|
95
110
|
*/
|
|
96
111
|
export interface GetImagesOutputArgs {
|
|
97
112
|
filters?: pulumi.Input<pulumi.Input<inputs.GetImagesFilterArgs>[]>;
|
|
113
|
+
/**
|
|
114
|
+
* If true, only the latest image will be returned. Images without a valid `created` field are not included in the result.
|
|
115
|
+
*/
|
|
116
|
+
latest?: pulumi.Input<boolean>;
|
|
117
|
+
/**
|
|
118
|
+
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
|
|
119
|
+
*/
|
|
120
|
+
order?: pulumi.Input<string>;
|
|
121
|
+
/**
|
|
122
|
+
* The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
|
|
123
|
+
*/
|
|
124
|
+
orderBy?: pulumi.Input<string>;
|
|
98
125
|
}
|
package/getImages.js
CHANGED
|
@@ -86,6 +86,9 @@ function getImages(args, opts) {
|
|
|
86
86
|
}
|
|
87
87
|
return pulumi.runtime.invoke("linode:index/getImages:getImages", {
|
|
88
88
|
"filters": args.filters,
|
|
89
|
+
"latest": args.latest,
|
|
90
|
+
"order": args.order,
|
|
91
|
+
"orderBy": args.orderBy,
|
|
89
92
|
}, opts);
|
|
90
93
|
}
|
|
91
94
|
exports.getImages = getImages;
|
package/getImages.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getImages.js","sourceRoot":"","sources":["../getImages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;
|
|
1
|
+
{"version":3,"file":"getImages.js","sourceRoot":"","sources":["../getImages.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH,SAAgB,SAAS,CAAC,IAAoB,EAAE,IAA2B;IACvE,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,kCAAkC,EAAE;QAC7D,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,QAAQ,EAAE,IAAI,CAAC,MAAM;QACrB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAfD,8BAeC;AAoCD,SAAgB,eAAe,CAAC,IAA0B,EAAE,IAA2B;IACnF,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AAC7D,CAAC;AAFD,0CAEC"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import { input as inputs, output as outputs } from "./types";
|
|
3
|
+
/**
|
|
4
|
+
* Provides information about Linode Instance types that match a set of filters.
|
|
5
|
+
*
|
|
6
|
+
* ## Example Usage
|
|
7
|
+
*
|
|
8
|
+
* Get information about all Linode Instance types with a certain number of VCPUs:
|
|
9
|
+
*
|
|
10
|
+
* ```typescript
|
|
11
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
12
|
+
* import * as linode from "@pulumi/linode";
|
|
13
|
+
*
|
|
14
|
+
* const specific_types = pulumi.output(linode.getInstanceTypes({
|
|
15
|
+
* filters: [{
|
|
16
|
+
* name: "vcpus",
|
|
17
|
+
* values: ["2"],
|
|
18
|
+
* }],
|
|
19
|
+
* }));
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* Get information about all Linode Instance types:
|
|
23
|
+
*
|
|
24
|
+
* ```typescript
|
|
25
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
26
|
+
* import * as linode from "@pulumi/linode";
|
|
27
|
+
*
|
|
28
|
+
* const all_types = pulumi.output(linode.getInstanceTypes());
|
|
29
|
+
* ```
|
|
30
|
+
* ## Attributes
|
|
31
|
+
*
|
|
32
|
+
* Each Linode Instance type will be stored in the `types` attribute and will export the following attributes:
|
|
33
|
+
*
|
|
34
|
+
* * `id` - The ID representing the Linode Type.
|
|
35
|
+
*
|
|
36
|
+
* * `label` - The Linode Type's label is for display purposes only.
|
|
37
|
+
*
|
|
38
|
+
* * `class` - The class of the Linode Type. See all classes [here](https://www.linode.com/docs/api/linode-types/#type-view__responses).
|
|
39
|
+
*
|
|
40
|
+
* * `disk` - The Disk size, in MB, of the Linode Type.
|
|
41
|
+
*
|
|
42
|
+
* * `price.0.hourly` - Cost (in US dollars) per hour.
|
|
43
|
+
*
|
|
44
|
+
* * `price.0.monthly` - Cost (in US dollars) per month.
|
|
45
|
+
*
|
|
46
|
+
* * `addons.0.backups.0.price.0.hourly` - The cost (in US dollars) per hour to add Backups service.
|
|
47
|
+
*
|
|
48
|
+
* * `addons.0.backups.0.price.0.monthly` - The cost (in US dollars) per month to add Backups service.
|
|
49
|
+
*
|
|
50
|
+
* * `networkOut` - The Mbits outbound bandwidth allocation.
|
|
51
|
+
*
|
|
52
|
+
* * `memory` - The amount of RAM included in this Linode Type.
|
|
53
|
+
*
|
|
54
|
+
* * `transfer` - The monthly outbound transfer amount, in MB.
|
|
55
|
+
*
|
|
56
|
+
* * `vcpus` - The number of VCPU cores this Linode Type offers.
|
|
57
|
+
*
|
|
58
|
+
* ## Filterable Fields
|
|
59
|
+
*
|
|
60
|
+
* * `class`
|
|
61
|
+
*
|
|
62
|
+
* * `disk`
|
|
63
|
+
*
|
|
64
|
+
* * `gpus`
|
|
65
|
+
*
|
|
66
|
+
* * `label`
|
|
67
|
+
*
|
|
68
|
+
* * `memory`
|
|
69
|
+
*
|
|
70
|
+
* * `networkOut`
|
|
71
|
+
*
|
|
72
|
+
* * `transfer`
|
|
73
|
+
*
|
|
74
|
+
* * `vcpus`
|
|
75
|
+
*/
|
|
76
|
+
export declare function getInstanceTypes(args?: GetInstanceTypesArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceTypesResult>;
|
|
77
|
+
/**
|
|
78
|
+
* A collection of arguments for invoking getInstanceTypes.
|
|
79
|
+
*/
|
|
80
|
+
export interface GetInstanceTypesArgs {
|
|
81
|
+
filters?: inputs.GetInstanceTypesFilter[];
|
|
82
|
+
/**
|
|
83
|
+
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
|
|
84
|
+
*/
|
|
85
|
+
order?: string;
|
|
86
|
+
/**
|
|
87
|
+
* The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
|
|
88
|
+
*/
|
|
89
|
+
orderBy?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* A collection of values returned by getInstanceTypes.
|
|
93
|
+
*/
|
|
94
|
+
export interface GetInstanceTypesResult {
|
|
95
|
+
readonly filters?: outputs.GetInstanceTypesFilter[];
|
|
96
|
+
/**
|
|
97
|
+
* The provider-assigned unique ID for this managed resource.
|
|
98
|
+
*/
|
|
99
|
+
readonly id: string;
|
|
100
|
+
readonly order?: string;
|
|
101
|
+
readonly orderBy?: string;
|
|
102
|
+
readonly types: outputs.GetInstanceTypesType[];
|
|
103
|
+
}
|
|
104
|
+
export declare function getInstanceTypesOutput(args?: GetInstanceTypesOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceTypesResult>;
|
|
105
|
+
/**
|
|
106
|
+
* A collection of arguments for invoking getInstanceTypes.
|
|
107
|
+
*/
|
|
108
|
+
export interface GetInstanceTypesOutputArgs {
|
|
109
|
+
filters?: pulumi.Input<pulumi.Input<inputs.GetInstanceTypesFilterArgs>[]>;
|
|
110
|
+
/**
|
|
111
|
+
* The order in which results should be returned. (`asc`, `desc`; default `asc`)
|
|
112
|
+
*/
|
|
113
|
+
order?: pulumi.Input<string>;
|
|
114
|
+
/**
|
|
115
|
+
* The attribute to order the results by. See the Filterable Fields section for a list of valid fields.
|
|
116
|
+
*/
|
|
117
|
+
orderBy?: pulumi.Input<string>;
|
|
118
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
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.getInstanceTypesOutput = exports.getInstanceTypes = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Provides information about Linode Instance types that match a set of filters.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* Get information about all Linode Instance types with a certain number of VCPUs:
|
|
14
|
+
*
|
|
15
|
+
* ```typescript
|
|
16
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
17
|
+
* import * as linode from "@pulumi/linode";
|
|
18
|
+
*
|
|
19
|
+
* const specific_types = pulumi.output(linode.getInstanceTypes({
|
|
20
|
+
* filters: [{
|
|
21
|
+
* name: "vcpus",
|
|
22
|
+
* values: ["2"],
|
|
23
|
+
* }],
|
|
24
|
+
* }));
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* Get information about all Linode Instance types:
|
|
28
|
+
*
|
|
29
|
+
* ```typescript
|
|
30
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
31
|
+
* import * as linode from "@pulumi/linode";
|
|
32
|
+
*
|
|
33
|
+
* const all_types = pulumi.output(linode.getInstanceTypes());
|
|
34
|
+
* ```
|
|
35
|
+
* ## Attributes
|
|
36
|
+
*
|
|
37
|
+
* Each Linode Instance type will be stored in the `types` attribute and will export the following attributes:
|
|
38
|
+
*
|
|
39
|
+
* * `id` - The ID representing the Linode Type.
|
|
40
|
+
*
|
|
41
|
+
* * `label` - The Linode Type's label is for display purposes only.
|
|
42
|
+
*
|
|
43
|
+
* * `class` - The class of the Linode Type. See all classes [here](https://www.linode.com/docs/api/linode-types/#type-view__responses).
|
|
44
|
+
*
|
|
45
|
+
* * `disk` - The Disk size, in MB, of the Linode Type.
|
|
46
|
+
*
|
|
47
|
+
* * `price.0.hourly` - Cost (in US dollars) per hour.
|
|
48
|
+
*
|
|
49
|
+
* * `price.0.monthly` - Cost (in US dollars) per month.
|
|
50
|
+
*
|
|
51
|
+
* * `addons.0.backups.0.price.0.hourly` - The cost (in US dollars) per hour to add Backups service.
|
|
52
|
+
*
|
|
53
|
+
* * `addons.0.backups.0.price.0.monthly` - The cost (in US dollars) per month to add Backups service.
|
|
54
|
+
*
|
|
55
|
+
* * `networkOut` - The Mbits outbound bandwidth allocation.
|
|
56
|
+
*
|
|
57
|
+
* * `memory` - The amount of RAM included in this Linode Type.
|
|
58
|
+
*
|
|
59
|
+
* * `transfer` - The monthly outbound transfer amount, in MB.
|
|
60
|
+
*
|
|
61
|
+
* * `vcpus` - The number of VCPU cores this Linode Type offers.
|
|
62
|
+
*
|
|
63
|
+
* ## Filterable Fields
|
|
64
|
+
*
|
|
65
|
+
* * `class`
|
|
66
|
+
*
|
|
67
|
+
* * `disk`
|
|
68
|
+
*
|
|
69
|
+
* * `gpus`
|
|
70
|
+
*
|
|
71
|
+
* * `label`
|
|
72
|
+
*
|
|
73
|
+
* * `memory`
|
|
74
|
+
*
|
|
75
|
+
* * `networkOut`
|
|
76
|
+
*
|
|
77
|
+
* * `transfer`
|
|
78
|
+
*
|
|
79
|
+
* * `vcpus`
|
|
80
|
+
*/
|
|
81
|
+
function getInstanceTypes(args, opts) {
|
|
82
|
+
args = args || {};
|
|
83
|
+
if (!opts) {
|
|
84
|
+
opts = {};
|
|
85
|
+
}
|
|
86
|
+
if (!opts.version) {
|
|
87
|
+
opts.version = utilities.getVersion();
|
|
88
|
+
}
|
|
89
|
+
return pulumi.runtime.invoke("linode:index/getInstanceTypes:getInstanceTypes", {
|
|
90
|
+
"filters": args.filters,
|
|
91
|
+
"order": args.order,
|
|
92
|
+
"orderBy": args.orderBy,
|
|
93
|
+
}, opts);
|
|
94
|
+
}
|
|
95
|
+
exports.getInstanceTypes = getInstanceTypes;
|
|
96
|
+
function getInstanceTypesOutput(args, opts) {
|
|
97
|
+
return pulumi.output(args).apply(a => getInstanceTypes(a, opts));
|
|
98
|
+
}
|
|
99
|
+
exports.getInstanceTypesOutput = getInstanceTypesOutput;
|
|
100
|
+
//# sourceMappingURL=getInstanceTypes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getInstanceTypes.js","sourceRoot":"","sources":["../getInstanceTypes.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAEzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwEG;AACH,SAAgB,gBAAgB,CAAC,IAA2B,EAAE,IAA2B;IACrF,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;IAClB,IAAI,CAAC,IAAI,EAAE;QACP,IAAI,GAAG,EAAE,CAAA;KACZ;IAED,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE;QACf,IAAI,CAAC,OAAO,GAAG,SAAS,CAAC,UAAU,EAAE,CAAC;KACzC;IACD,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,gDAAgD,EAAE;QAC3E,SAAS,EAAE,IAAI,CAAC,OAAO;QACvB,OAAO,EAAE,IAAI,CAAC,KAAK;QACnB,SAAS,EAAE,IAAI,CAAC,OAAO;KAC1B,EAAE,IAAI,CAAC,CAAC;AACb,CAAC;AAdD,4CAcC;AA+BD,SAAgB,sBAAsB,CAAC,IAAiC,EAAE,IAA2B;IACjG,OAAO,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,gBAAgB,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC,CAAA;AACpE,CAAC;AAFD,wDAEC"}
|