@upcloud/pulumi-upcloud 0.0.5
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/LICENSE +202 -0
- package/README.md +61 -0
- package/config/index.d.ts +1 -0
- package/config/index.js +21 -0
- package/config/index.js.map +1 -0
- package/config/vars.d.ts +25 -0
- package/config/vars.js +43 -0
- package/config/vars.js.map +1 -0
- package/floatingIpAddress.d.ts +128 -0
- package/floatingIpAddress.js +90 -0
- package/floatingIpAddress.js.map +1 -0
- package/gateway.d.ts +206 -0
- package/gateway.js +111 -0
- package/gateway.js.map +1 -0
- package/gatewayConnection.d.ts +157 -0
- package/gatewayConnection.js +105 -0
- package/gatewayConnection.js.map +1 -0
- package/gatewayConnectionTunnel.d.ts +129 -0
- package/gatewayConnectionTunnel.js +78 -0
- package/gatewayConnectionTunnel.js.map +1 -0
- package/getHosts.d.ts +55 -0
- package/getHosts.js +52 -0
- package/getHosts.js.map +1 -0
- package/getIpAddresses.d.ts +51 -0
- package/getIpAddresses.js +48 -0
- package/getIpAddresses.js.map +1 -0
- package/getKubernetesCluster.d.ts +33 -0
- package/getKubernetesCluster.js +28 -0
- package/getKubernetesCluster.js.map +1 -0
- package/getLoadBalancerDnsChallengeDomain.d.ts +40 -0
- package/getLoadBalancerDnsChallengeDomain.js +42 -0
- package/getLoadBalancerDnsChallengeDomain.js.map +1 -0
- package/getManagedDatabaseMysqlSessions.d.ts +83 -0
- package/getManagedDatabaseMysqlSessions.js +74 -0
- package/getManagedDatabaseMysqlSessions.js.map +1 -0
- package/getManagedDatabaseOpensearchIndices.d.ts +82 -0
- package/getManagedDatabaseOpensearchIndices.js +76 -0
- package/getManagedDatabaseOpensearchIndices.js.map +1 -0
- package/getManagedDatabasePostgresqlSessions.d.ts +83 -0
- package/getManagedDatabasePostgresqlSessions.js +74 -0
- package/getManagedDatabasePostgresqlSessions.js.map +1 -0
- package/getManagedDatabaseRedisSessions.d.ts +87 -0
- package/getManagedDatabaseRedisSessions.js +78 -0
- package/getManagedDatabaseRedisSessions.js.map +1 -0
- package/getManagedDatabaseValkeySessions.d.ts +83 -0
- package/getManagedDatabaseValkeySessions.js +74 -0
- package/getManagedDatabaseValkeySessions.js.map +1 -0
- package/getManagedObjectStoragePolicies.d.ts +33 -0
- package/getManagedObjectStoragePolicies.js +28 -0
- package/getManagedObjectStoragePolicies.js.map +1 -0
- package/getManagedObjectStorageRegions.d.ts +33 -0
- package/getManagedObjectStorageRegions.js +30 -0
- package/getManagedObjectStorageRegions.js.map +1 -0
- package/getNetworks.d.ts +60 -0
- package/getNetworks.js +56 -0
- package/getNetworks.js.map +1 -0
- package/getStorage.d.ts +163 -0
- package/getStorage.js +122 -0
- package/getStorage.js.map +1 -0
- package/getTags.d.ts +20 -0
- package/getTags.js +24 -0
- package/getTags.js.map +1 -0
- package/getZone.d.ts +42 -0
- package/getZone.js +32 -0
- package/getZone.js.map +1 -0
- package/getZones.d.ts +29 -0
- package/getZones.js +30 -0
- package/getZones.js.map +1 -0
- package/index.d.ts +177 -0
- package/index.js +287 -0
- package/index.js.map +1 -0
- package/kubernetesCluster.d.ts +237 -0
- package/kubernetesCluster.js +131 -0
- package/kubernetesCluster.js.map +1 -0
- package/kubernetesNodeGroup.d.ts +243 -0
- package/kubernetesNodeGroup.js +120 -0
- package/kubernetesNodeGroup.js.map +1 -0
- package/loadbalancer.d.ts +261 -0
- package/loadbalancer.js +122 -0
- package/loadbalancer.js.map +1 -0
- package/loadbalancerBackend.d.ts +121 -0
- package/loadbalancerBackend.js +90 -0
- package/loadbalancerBackend.js.map +1 -0
- package/loadbalancerBackendTlsConfig.d.ts +75 -0
- package/loadbalancerBackendTlsConfig.js +62 -0
- package/loadbalancerBackendTlsConfig.js.map +1 -0
- package/loadbalancerDynamicBackendMember.d.ts +169 -0
- package/loadbalancerDynamicBackendMember.js +119 -0
- package/loadbalancerDynamicBackendMember.js.map +1 -0
- package/loadbalancerDynamicCertificateBundle.d.ts +114 -0
- package/loadbalancerDynamicCertificateBundle.js +83 -0
- package/loadbalancerDynamicCertificateBundle.js.map +1 -0
- package/loadbalancerFrontend.d.ts +184 -0
- package/loadbalancerFrontend.js +126 -0
- package/loadbalancerFrontend.js.map +1 -0
- package/loadbalancerFrontendRule.d.ts +170 -0
- package/loadbalancerFrontendRule.js +125 -0
- package/loadbalancerFrontendRule.js.map +1 -0
- package/loadbalancerFrontendTlsConfig.d.ts +114 -0
- package/loadbalancerFrontendTlsConfig.js +101 -0
- package/loadbalancerFrontendTlsConfig.js.map +1 -0
- package/loadbalancerManualCertificateBundle.d.ts +111 -0
- package/loadbalancerManualCertificateBundle.js +72 -0
- package/loadbalancerManualCertificateBundle.js.map +1 -0
- package/loadbalancerResolver.d.ts +171 -0
- package/loadbalancerResolver.js +120 -0
- package/loadbalancerResolver.js.map +1 -0
- package/loadbalancerStaticBackendMember.d.ts +156 -0
- package/loadbalancerStaticBackendMember.js +106 -0
- package/loadbalancerStaticBackendMember.js.map +1 -0
- package/managedDatabaseLogicalDatabase.d.ts +109 -0
- package/managedDatabaseLogicalDatabase.js +83 -0
- package/managedDatabaseLogicalDatabase.js.map +1 -0
- package/managedDatabaseMysql.d.ts +298 -0
- package/managedDatabaseMysql.js +139 -0
- package/managedDatabaseMysql.js.map +1 -0
- package/managedDatabaseOpensearch.d.ts +317 -0
- package/managedDatabaseOpensearch.js +132 -0
- package/managedDatabaseOpensearch.js.map +1 -0
- package/managedDatabasePostgresql.d.ts +295 -0
- package/managedDatabasePostgresql.js +130 -0
- package/managedDatabasePostgresql.js.map +1 -0
- package/managedDatabaseRedis.d.ts +287 -0
- package/managedDatabaseRedis.js +128 -0
- package/managedDatabaseRedis.js.map +1 -0
- package/managedDatabaseUser.d.ts +163 -0
- package/managedDatabaseUser.js +94 -0
- package/managedDatabaseUser.js.map +1 -0
- package/managedDatabaseValkey.d.ts +285 -0
- package/managedDatabaseValkey.js +126 -0
- package/managedDatabaseValkey.js.map +1 -0
- package/managedObjectStorage.d.ts +178 -0
- package/managedObjectStorage.js +107 -0
- package/managedObjectStorage.js.map +1 -0
- package/managedObjectStorageBucket.d.ts +94 -0
- package/managedObjectStorageBucket.js +76 -0
- package/managedObjectStorageBucket.js.map +1 -0
- package/managedObjectStorageCustomDomain.d.ts +105 -0
- package/managedObjectStorageCustomDomain.js +89 -0
- package/managedObjectStorageCustomDomain.js.map +1 -0
- package/managedObjectStoragePolicy.d.ts +155 -0
- package/managedObjectStoragePolicy.js +93 -0
- package/managedObjectStoragePolicy.js.map +1 -0
- package/managedObjectStorageUser.d.ts +101 -0
- package/managedObjectStorageUser.js +80 -0
- package/managedObjectStorageUser.js.map +1 -0
- package/managedObjectStorageUserAccessKey.d.ts +128 -0
- package/managedObjectStorageUserAccessKey.js +96 -0
- package/managedObjectStorageUserAccessKey.js.map +1 -0
- package/managedObjectStorageUserPolicy.d.ts +100 -0
- package/managedObjectStorageUserPolicy.js +87 -0
- package/managedObjectStorageUserPolicy.js.map +1 -0
- package/network.d.ts +142 -0
- package/network.js +95 -0
- package/network.js.map +1 -0
- package/networkPeering.d.ts +137 -0
- package/networkPeering.js +96 -0
- package/networkPeering.js.map +1 -0
- package/objectStorage.d.ts +196 -0
- package/objectStorage.js +132 -0
- package/objectStorage.js.map +1 -0
- package/package.json +29 -0
- package/provider.d.ts +60 -0
- package/provider.js +50 -0
- package/provider.js.map +1 -0
- package/router.d.ts +124 -0
- package/router.js +77 -0
- package/router.js.map +1 -0
- package/server.d.ts +332 -0
- package/server.js +106 -0
- package/server.js.map +1 -0
- package/serverFirewallRules.d.ts +124 -0
- package/serverFirewallRules.js +107 -0
- package/serverFirewallRules.js.map +1 -0
- package/serverGroup.d.ts +160 -0
- package/serverGroup.js +91 -0
- package/serverGroup.js.map +1 -0
- package/storage.d.ts +210 -0
- package/storage.js +91 -0
- package/storage.js.map +1 -0
- package/storageTemplate.d.ts +151 -0
- package/storageTemplate.js +90 -0
- package/storageTemplate.js.map +1 -0
- package/tag.d.ts +75 -0
- package/tag.js +56 -0
- package/tag.js.map +1 -0
- package/types/index.d.ts +3 -0
- package/types/index.js +11 -0
- package/types/index.js.map +1 -0
- package/types/input.d.ts +3721 -0
- package/types/input.js +5 -0
- package/types/input.js.map +1 -0
- package/types/output.d.ts +3459 -0
- package/types/output.js +5 -0
- package/types/output.js.map +1 -0
- package/utilities.d.ts +8 -0
- package/utilities.js +101 -0
- package/utilities.js.map +1 -0
package/gateway.d.ts
ADDED
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
import * as inputs from "./types/input";
|
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* Network gateways connect SDN Private Networks to external IP networks.
|
|
6
|
+
*
|
|
7
|
+
* ## Example Usage
|
|
8
|
+
*
|
|
9
|
+
* ```typescript
|
|
10
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
11
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
12
|
+
*
|
|
13
|
+
* // Create router for the gateway
|
|
14
|
+
* const thisRouter = new upcloud.Router("thisRouter", {});
|
|
15
|
+
* // Create network for the gateway
|
|
16
|
+
* const thisNetwork = new upcloud.Network("thisNetwork", {
|
|
17
|
+
* zone: "pl-waw1",
|
|
18
|
+
* ipNetwork: {
|
|
19
|
+
* address: "172.16.2.0/24",
|
|
20
|
+
* dhcp: true,
|
|
21
|
+
* family: "IPv4",
|
|
22
|
+
* },
|
|
23
|
+
* router: thisRouter.id,
|
|
24
|
+
* });
|
|
25
|
+
* const thisGateway = new upcloud.Gateway("thisGateway", {
|
|
26
|
+
* zone: "pl-waw1",
|
|
27
|
+
* features: ["nat"],
|
|
28
|
+
* router: {
|
|
29
|
+
* id: thisRouter.id,
|
|
30
|
+
* },
|
|
31
|
+
* labels: {
|
|
32
|
+
* "managed-by": "terraform",
|
|
33
|
+
* },
|
|
34
|
+
* });
|
|
35
|
+
* ```
|
|
36
|
+
*/
|
|
37
|
+
export declare class Gateway extends pulumi.CustomResource {
|
|
38
|
+
/**
|
|
39
|
+
* Get an existing Gateway 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?: GatewayState, opts?: pulumi.CustomResourceOptions): Gateway;
|
|
48
|
+
/**
|
|
49
|
+
* Returns true if the given object is an instance of Gateway. 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 Gateway;
|
|
53
|
+
/**
|
|
54
|
+
* IP addresses assigned to the gateway.
|
|
55
|
+
*/
|
|
56
|
+
readonly address: pulumi.Output<outputs.GatewayAddress>;
|
|
57
|
+
/**
|
|
58
|
+
* IP addresses assigned to the gateway.
|
|
59
|
+
*
|
|
60
|
+
* @deprecated Use 'address' attribute instead. This attribute will be removed in the next major version of the provider
|
|
61
|
+
*/
|
|
62
|
+
readonly addresses: pulumi.Output<outputs.GatewayAddress[]>;
|
|
63
|
+
/**
|
|
64
|
+
* The service configured status indicates the service's current intended status. Managed by the customer.
|
|
65
|
+
*/
|
|
66
|
+
readonly configuredStatus: pulumi.Output<string | undefined>;
|
|
67
|
+
/**
|
|
68
|
+
* Names of connections attached to the gateway. Note that this field can have outdated information as connections are
|
|
69
|
+
* created by a separate resource. To make sure that you have the most recent data run 'terrafrom refresh'.
|
|
70
|
+
*/
|
|
71
|
+
readonly connections: pulumi.Output<string[]>;
|
|
72
|
+
/**
|
|
73
|
+
* Features enabled for the gateway. Note that VPN feature is currently in beta, for more details see
|
|
74
|
+
* https://upcloud.com/resources/docs/networking#nat-and-vpn-gateways.
|
|
75
|
+
*/
|
|
76
|
+
readonly features: pulumi.Output<string[]>;
|
|
77
|
+
/**
|
|
78
|
+
* User defined key-value pairs to classify the network gateway.
|
|
79
|
+
*/
|
|
80
|
+
readonly labels: pulumi.Output<{
|
|
81
|
+
[key: string]: string;
|
|
82
|
+
} | undefined>;
|
|
83
|
+
/**
|
|
84
|
+
* Gateway name. Needs to be unique within the account.
|
|
85
|
+
*/
|
|
86
|
+
readonly name: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* The service operational state indicates the service's current operational, effective state. Managed by the system.
|
|
89
|
+
*/
|
|
90
|
+
readonly operationalState: pulumi.Output<string>;
|
|
91
|
+
/**
|
|
92
|
+
* Gateway pricing plan.
|
|
93
|
+
*/
|
|
94
|
+
readonly plan: pulumi.Output<string>;
|
|
95
|
+
/**
|
|
96
|
+
* Attached Router from where traffic is routed towards the network gateway service.
|
|
97
|
+
*/
|
|
98
|
+
readonly router: pulumi.Output<outputs.GatewayRouter>;
|
|
99
|
+
/**
|
|
100
|
+
* Zone in which the gateway will be hosted, e.g. `de-fra1`.
|
|
101
|
+
*/
|
|
102
|
+
readonly zone: pulumi.Output<string>;
|
|
103
|
+
/**
|
|
104
|
+
* Create a Gateway resource with the given unique name, arguments, and options.
|
|
105
|
+
*
|
|
106
|
+
* @param name The _unique_ name of the resource.
|
|
107
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
108
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
109
|
+
*/
|
|
110
|
+
constructor(name: string, args: GatewayArgs, opts?: pulumi.CustomResourceOptions);
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Input properties used for looking up and filtering Gateway resources.
|
|
114
|
+
*/
|
|
115
|
+
export interface GatewayState {
|
|
116
|
+
/**
|
|
117
|
+
* IP addresses assigned to the gateway.
|
|
118
|
+
*/
|
|
119
|
+
address?: pulumi.Input<inputs.GatewayAddress>;
|
|
120
|
+
/**
|
|
121
|
+
* IP addresses assigned to the gateway.
|
|
122
|
+
*
|
|
123
|
+
* @deprecated Use 'address' attribute instead. This attribute will be removed in the next major version of the provider
|
|
124
|
+
*/
|
|
125
|
+
addresses?: pulumi.Input<pulumi.Input<inputs.GatewayAddress>[]>;
|
|
126
|
+
/**
|
|
127
|
+
* The service configured status indicates the service's current intended status. Managed by the customer.
|
|
128
|
+
*/
|
|
129
|
+
configuredStatus?: pulumi.Input<string>;
|
|
130
|
+
/**
|
|
131
|
+
* Names of connections attached to the gateway. Note that this field can have outdated information as connections are
|
|
132
|
+
* created by a separate resource. To make sure that you have the most recent data run 'terrafrom refresh'.
|
|
133
|
+
*/
|
|
134
|
+
connections?: pulumi.Input<pulumi.Input<string>[]>;
|
|
135
|
+
/**
|
|
136
|
+
* Features enabled for the gateway. Note that VPN feature is currently in beta, for more details see
|
|
137
|
+
* https://upcloud.com/resources/docs/networking#nat-and-vpn-gateways.
|
|
138
|
+
*/
|
|
139
|
+
features?: pulumi.Input<pulumi.Input<string>[]>;
|
|
140
|
+
/**
|
|
141
|
+
* User defined key-value pairs to classify the network gateway.
|
|
142
|
+
*/
|
|
143
|
+
labels?: pulumi.Input<{
|
|
144
|
+
[key: string]: pulumi.Input<string>;
|
|
145
|
+
}>;
|
|
146
|
+
/**
|
|
147
|
+
* Gateway name. Needs to be unique within the account.
|
|
148
|
+
*/
|
|
149
|
+
name?: pulumi.Input<string>;
|
|
150
|
+
/**
|
|
151
|
+
* The service operational state indicates the service's current operational, effective state. Managed by the system.
|
|
152
|
+
*/
|
|
153
|
+
operationalState?: pulumi.Input<string>;
|
|
154
|
+
/**
|
|
155
|
+
* Gateway pricing plan.
|
|
156
|
+
*/
|
|
157
|
+
plan?: pulumi.Input<string>;
|
|
158
|
+
/**
|
|
159
|
+
* Attached Router from where traffic is routed towards the network gateway service.
|
|
160
|
+
*/
|
|
161
|
+
router?: pulumi.Input<inputs.GatewayRouter>;
|
|
162
|
+
/**
|
|
163
|
+
* Zone in which the gateway will be hosted, e.g. `de-fra1`.
|
|
164
|
+
*/
|
|
165
|
+
zone?: pulumi.Input<string>;
|
|
166
|
+
}
|
|
167
|
+
/**
|
|
168
|
+
* The set of arguments for constructing a Gateway resource.
|
|
169
|
+
*/
|
|
170
|
+
export interface GatewayArgs {
|
|
171
|
+
/**
|
|
172
|
+
* IP addresses assigned to the gateway.
|
|
173
|
+
*/
|
|
174
|
+
address?: pulumi.Input<inputs.GatewayAddress>;
|
|
175
|
+
/**
|
|
176
|
+
* The service configured status indicates the service's current intended status. Managed by the customer.
|
|
177
|
+
*/
|
|
178
|
+
configuredStatus?: pulumi.Input<string>;
|
|
179
|
+
/**
|
|
180
|
+
* Features enabled for the gateway. Note that VPN feature is currently in beta, for more details see
|
|
181
|
+
* https://upcloud.com/resources/docs/networking#nat-and-vpn-gateways.
|
|
182
|
+
*/
|
|
183
|
+
features: pulumi.Input<pulumi.Input<string>[]>;
|
|
184
|
+
/**
|
|
185
|
+
* User defined key-value pairs to classify the network gateway.
|
|
186
|
+
*/
|
|
187
|
+
labels?: pulumi.Input<{
|
|
188
|
+
[key: string]: pulumi.Input<string>;
|
|
189
|
+
}>;
|
|
190
|
+
/**
|
|
191
|
+
* Gateway name. Needs to be unique within the account.
|
|
192
|
+
*/
|
|
193
|
+
name?: pulumi.Input<string>;
|
|
194
|
+
/**
|
|
195
|
+
* Gateway pricing plan.
|
|
196
|
+
*/
|
|
197
|
+
plan?: pulumi.Input<string>;
|
|
198
|
+
/**
|
|
199
|
+
* Attached Router from where traffic is routed towards the network gateway service.
|
|
200
|
+
*/
|
|
201
|
+
router: pulumi.Input<inputs.GatewayRouter>;
|
|
202
|
+
/**
|
|
203
|
+
* Zone in which the gateway will be hosted, e.g. `de-fra1`.
|
|
204
|
+
*/
|
|
205
|
+
zone: pulumi.Input<string>;
|
|
206
|
+
}
|
package/gateway.js
ADDED
|
@@ -0,0 +1,111 @@
|
|
|
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.Gateway = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* Network gateways connect SDN Private Networks to external IP networks.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
16
|
+
*
|
|
17
|
+
* // Create router for the gateway
|
|
18
|
+
* const thisRouter = new upcloud.Router("thisRouter", {});
|
|
19
|
+
* // Create network for the gateway
|
|
20
|
+
* const thisNetwork = new upcloud.Network("thisNetwork", {
|
|
21
|
+
* zone: "pl-waw1",
|
|
22
|
+
* ipNetwork: {
|
|
23
|
+
* address: "172.16.2.0/24",
|
|
24
|
+
* dhcp: true,
|
|
25
|
+
* family: "IPv4",
|
|
26
|
+
* },
|
|
27
|
+
* router: thisRouter.id,
|
|
28
|
+
* });
|
|
29
|
+
* const thisGateway = new upcloud.Gateway("thisGateway", {
|
|
30
|
+
* zone: "pl-waw1",
|
|
31
|
+
* features: ["nat"],
|
|
32
|
+
* router: {
|
|
33
|
+
* id: thisRouter.id,
|
|
34
|
+
* },
|
|
35
|
+
* labels: {
|
|
36
|
+
* "managed-by": "terraform",
|
|
37
|
+
* },
|
|
38
|
+
* });
|
|
39
|
+
* ```
|
|
40
|
+
*/
|
|
41
|
+
class Gateway extends pulumi.CustomResource {
|
|
42
|
+
/**
|
|
43
|
+
* Get an existing Gateway resource's state with the given name, ID, and optional extra
|
|
44
|
+
* properties used to qualify the lookup.
|
|
45
|
+
*
|
|
46
|
+
* @param name The _unique_ name of the resulting resource.
|
|
47
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
48
|
+
* @param state Any extra arguments used during the lookup.
|
|
49
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
50
|
+
*/
|
|
51
|
+
static get(name, id, state, opts) {
|
|
52
|
+
return new Gateway(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
53
|
+
}
|
|
54
|
+
/**
|
|
55
|
+
* Returns true if the given object is an instance of Gateway. This is designed to work even
|
|
56
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
57
|
+
*/
|
|
58
|
+
static isInstance(obj) {
|
|
59
|
+
if (obj === undefined || obj === null) {
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
return obj['__pulumiType'] === Gateway.__pulumiType;
|
|
63
|
+
}
|
|
64
|
+
constructor(name, argsOrState, opts) {
|
|
65
|
+
let resourceInputs = {};
|
|
66
|
+
opts = opts || {};
|
|
67
|
+
if (opts.id) {
|
|
68
|
+
const state = argsOrState;
|
|
69
|
+
resourceInputs["address"] = state ? state.address : undefined;
|
|
70
|
+
resourceInputs["addresses"] = state ? state.addresses : undefined;
|
|
71
|
+
resourceInputs["configuredStatus"] = state ? state.configuredStatus : undefined;
|
|
72
|
+
resourceInputs["connections"] = state ? state.connections : undefined;
|
|
73
|
+
resourceInputs["features"] = state ? state.features : undefined;
|
|
74
|
+
resourceInputs["labels"] = state ? state.labels : undefined;
|
|
75
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
76
|
+
resourceInputs["operationalState"] = state ? state.operationalState : undefined;
|
|
77
|
+
resourceInputs["plan"] = state ? state.plan : undefined;
|
|
78
|
+
resourceInputs["router"] = state ? state.router : undefined;
|
|
79
|
+
resourceInputs["zone"] = state ? state.zone : undefined;
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
const args = argsOrState;
|
|
83
|
+
if ((!args || args.features === undefined) && !opts.urn) {
|
|
84
|
+
throw new Error("Missing required property 'features'");
|
|
85
|
+
}
|
|
86
|
+
if ((!args || args.router === undefined) && !opts.urn) {
|
|
87
|
+
throw new Error("Missing required property 'router'");
|
|
88
|
+
}
|
|
89
|
+
if ((!args || args.zone === undefined) && !opts.urn) {
|
|
90
|
+
throw new Error("Missing required property 'zone'");
|
|
91
|
+
}
|
|
92
|
+
resourceInputs["address"] = args ? args.address : undefined;
|
|
93
|
+
resourceInputs["configuredStatus"] = args ? args.configuredStatus : undefined;
|
|
94
|
+
resourceInputs["features"] = args ? args.features : undefined;
|
|
95
|
+
resourceInputs["labels"] = args ? args.labels : undefined;
|
|
96
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
97
|
+
resourceInputs["plan"] = args ? args.plan : undefined;
|
|
98
|
+
resourceInputs["router"] = args ? args.router : undefined;
|
|
99
|
+
resourceInputs["zone"] = args ? args.zone : undefined;
|
|
100
|
+
resourceInputs["addresses"] = undefined /*out*/;
|
|
101
|
+
resourceInputs["connections"] = undefined /*out*/;
|
|
102
|
+
resourceInputs["operationalState"] = undefined /*out*/;
|
|
103
|
+
}
|
|
104
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
105
|
+
super(Gateway.__pulumiType, name, resourceInputs, opts);
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
exports.Gateway = Gateway;
|
|
109
|
+
/** @internal */
|
|
110
|
+
Gateway.__pulumiType = 'upcloud:index/gateway:Gateway';
|
|
111
|
+
//# sourceMappingURL=gateway.js.map
|
package/gateway.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway.js","sourceRoot":"","sources":["../gateway.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,MAAa,OAAQ,SAAQ,MAAM,CAAC,cAAc;IAC9C;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAoB,EAAE,IAAmC;QAClH,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
|
3
|
+
import * as outputs from "./types/output";
|
|
4
|
+
/**
|
|
5
|
+
* ## Example Usage
|
|
6
|
+
*
|
|
7
|
+
* ```typescript
|
|
8
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
9
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
10
|
+
*
|
|
11
|
+
* const thisRouter = new upcloud.Router("thisRouter", {});
|
|
12
|
+
* const thisNetwork = new upcloud.Network("thisNetwork", {
|
|
13
|
+
* zone: "pl-waw1",
|
|
14
|
+
* ipNetwork: {
|
|
15
|
+
* address: "172.16.2.0/24",
|
|
16
|
+
* dhcp: true,
|
|
17
|
+
* family: "IPv4",
|
|
18
|
+
* },
|
|
19
|
+
* router: thisRouter.id,
|
|
20
|
+
* });
|
|
21
|
+
* const thisGateway = new upcloud.Gateway("thisGateway", {
|
|
22
|
+
* zone: "pl-waw1",
|
|
23
|
+
* features: ["vpn"],
|
|
24
|
+
* plan: "advanced",
|
|
25
|
+
* router: {
|
|
26
|
+
* id: thisRouter.id,
|
|
27
|
+
* },
|
|
28
|
+
* });
|
|
29
|
+
* const thisGatewayConnection = new upcloud.GatewayConnection("thisGatewayConnection", {
|
|
30
|
+
* gateway: thisGateway.id,
|
|
31
|
+
* type: "ipsec",
|
|
32
|
+
* localRoutes: [{
|
|
33
|
+
* name: "local-route",
|
|
34
|
+
* type: "static",
|
|
35
|
+
* staticNetwork: "10.123.123.0/24",
|
|
36
|
+
* }],
|
|
37
|
+
* remoteRoutes: [{
|
|
38
|
+
* name: "remote-route",
|
|
39
|
+
* type: "static",
|
|
40
|
+
* staticNetwork: "100.123.123.0/24",
|
|
41
|
+
* }],
|
|
42
|
+
* });
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
export declare class GatewayConnection extends pulumi.CustomResource {
|
|
46
|
+
/**
|
|
47
|
+
* Get an existing GatewayConnection resource's state with the given name, ID, and optional extra
|
|
48
|
+
* properties used to qualify the lookup.
|
|
49
|
+
*
|
|
50
|
+
* @param name The _unique_ name of the resulting resource.
|
|
51
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
52
|
+
* @param state Any extra arguments used during the lookup.
|
|
53
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
54
|
+
*/
|
|
55
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: GatewayConnectionState, opts?: pulumi.CustomResourceOptions): GatewayConnection;
|
|
56
|
+
/**
|
|
57
|
+
* Returns true if the given object is an instance of GatewayConnection. This is designed to work even
|
|
58
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
59
|
+
*/
|
|
60
|
+
static isInstance(obj: any): obj is GatewayConnection;
|
|
61
|
+
/**
|
|
62
|
+
* The ID of the upcloud.Gateway resource to which the connection belongs.
|
|
63
|
+
*/
|
|
64
|
+
readonly gateway: pulumi.Output<string>;
|
|
65
|
+
/**
|
|
66
|
+
* Route for the UpCloud side of the network.
|
|
67
|
+
*/
|
|
68
|
+
readonly localRoutes: pulumi.Output<outputs.GatewayConnectionLocalRoute[] | undefined>;
|
|
69
|
+
/**
|
|
70
|
+
* The name of the connection, should be unique within the gateway.
|
|
71
|
+
*/
|
|
72
|
+
readonly name: pulumi.Output<string>;
|
|
73
|
+
/**
|
|
74
|
+
* Route for the remote side of the network.
|
|
75
|
+
*/
|
|
76
|
+
readonly remoteRoutes: pulumi.Output<outputs.GatewayConnectionRemoteRoute[] | undefined>;
|
|
77
|
+
/**
|
|
78
|
+
* List of connection's tunnels names. Note that this field can have outdated information as connections are created by a
|
|
79
|
+
* separate resource. To make sure that you have the most recent data run 'terrafrom refresh'.
|
|
80
|
+
*/
|
|
81
|
+
readonly tunnels: pulumi.Output<string[]>;
|
|
82
|
+
/**
|
|
83
|
+
* The type of the connection; currently the only supported type is 'ipsec'.
|
|
84
|
+
*/
|
|
85
|
+
readonly type: pulumi.Output<string | undefined>;
|
|
86
|
+
/**
|
|
87
|
+
* The UUID of the connection
|
|
88
|
+
*/
|
|
89
|
+
readonly uuid: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Create a GatewayConnection resource with the given unique name, arguments, and options.
|
|
92
|
+
*
|
|
93
|
+
* @param name The _unique_ name of the resource.
|
|
94
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
95
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
96
|
+
*/
|
|
97
|
+
constructor(name: string, args: GatewayConnectionArgs, opts?: pulumi.CustomResourceOptions);
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Input properties used for looking up and filtering GatewayConnection resources.
|
|
101
|
+
*/
|
|
102
|
+
export interface GatewayConnectionState {
|
|
103
|
+
/**
|
|
104
|
+
* The ID of the upcloud.Gateway resource to which the connection belongs.
|
|
105
|
+
*/
|
|
106
|
+
gateway?: pulumi.Input<string>;
|
|
107
|
+
/**
|
|
108
|
+
* Route for the UpCloud side of the network.
|
|
109
|
+
*/
|
|
110
|
+
localRoutes?: pulumi.Input<pulumi.Input<inputs.GatewayConnectionLocalRoute>[]>;
|
|
111
|
+
/**
|
|
112
|
+
* The name of the connection, should be unique within the gateway.
|
|
113
|
+
*/
|
|
114
|
+
name?: pulumi.Input<string>;
|
|
115
|
+
/**
|
|
116
|
+
* Route for the remote side of the network.
|
|
117
|
+
*/
|
|
118
|
+
remoteRoutes?: pulumi.Input<pulumi.Input<inputs.GatewayConnectionRemoteRoute>[]>;
|
|
119
|
+
/**
|
|
120
|
+
* List of connection's tunnels names. Note that this field can have outdated information as connections are created by a
|
|
121
|
+
* separate resource. To make sure that you have the most recent data run 'terrafrom refresh'.
|
|
122
|
+
*/
|
|
123
|
+
tunnels?: pulumi.Input<pulumi.Input<string>[]>;
|
|
124
|
+
/**
|
|
125
|
+
* The type of the connection; currently the only supported type is 'ipsec'.
|
|
126
|
+
*/
|
|
127
|
+
type?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* The UUID of the connection
|
|
130
|
+
*/
|
|
131
|
+
uuid?: pulumi.Input<string>;
|
|
132
|
+
}
|
|
133
|
+
/**
|
|
134
|
+
* The set of arguments for constructing a GatewayConnection resource.
|
|
135
|
+
*/
|
|
136
|
+
export interface GatewayConnectionArgs {
|
|
137
|
+
/**
|
|
138
|
+
* The ID of the upcloud.Gateway resource to which the connection belongs.
|
|
139
|
+
*/
|
|
140
|
+
gateway: pulumi.Input<string>;
|
|
141
|
+
/**
|
|
142
|
+
* Route for the UpCloud side of the network.
|
|
143
|
+
*/
|
|
144
|
+
localRoutes?: pulumi.Input<pulumi.Input<inputs.GatewayConnectionLocalRoute>[]>;
|
|
145
|
+
/**
|
|
146
|
+
* The name of the connection, should be unique within the gateway.
|
|
147
|
+
*/
|
|
148
|
+
name?: pulumi.Input<string>;
|
|
149
|
+
/**
|
|
150
|
+
* Route for the remote side of the network.
|
|
151
|
+
*/
|
|
152
|
+
remoteRoutes?: pulumi.Input<pulumi.Input<inputs.GatewayConnectionRemoteRoute>[]>;
|
|
153
|
+
/**
|
|
154
|
+
* The type of the connection; currently the only supported type is 'ipsec'.
|
|
155
|
+
*/
|
|
156
|
+
type?: pulumi.Input<string>;
|
|
157
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
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.GatewayConnection = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* ## Example Usage
|
|
10
|
+
*
|
|
11
|
+
* ```typescript
|
|
12
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
13
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
14
|
+
*
|
|
15
|
+
* const thisRouter = new upcloud.Router("thisRouter", {});
|
|
16
|
+
* const thisNetwork = new upcloud.Network("thisNetwork", {
|
|
17
|
+
* zone: "pl-waw1",
|
|
18
|
+
* ipNetwork: {
|
|
19
|
+
* address: "172.16.2.0/24",
|
|
20
|
+
* dhcp: true,
|
|
21
|
+
* family: "IPv4",
|
|
22
|
+
* },
|
|
23
|
+
* router: thisRouter.id,
|
|
24
|
+
* });
|
|
25
|
+
* const thisGateway = new upcloud.Gateway("thisGateway", {
|
|
26
|
+
* zone: "pl-waw1",
|
|
27
|
+
* features: ["vpn"],
|
|
28
|
+
* plan: "advanced",
|
|
29
|
+
* router: {
|
|
30
|
+
* id: thisRouter.id,
|
|
31
|
+
* },
|
|
32
|
+
* });
|
|
33
|
+
* const thisGatewayConnection = new upcloud.GatewayConnection("thisGatewayConnection", {
|
|
34
|
+
* gateway: thisGateway.id,
|
|
35
|
+
* type: "ipsec",
|
|
36
|
+
* localRoutes: [{
|
|
37
|
+
* name: "local-route",
|
|
38
|
+
* type: "static",
|
|
39
|
+
* staticNetwork: "10.123.123.0/24",
|
|
40
|
+
* }],
|
|
41
|
+
* remoteRoutes: [{
|
|
42
|
+
* name: "remote-route",
|
|
43
|
+
* type: "static",
|
|
44
|
+
* staticNetwork: "100.123.123.0/24",
|
|
45
|
+
* }],
|
|
46
|
+
* });
|
|
47
|
+
* ```
|
|
48
|
+
*/
|
|
49
|
+
class GatewayConnection extends pulumi.CustomResource {
|
|
50
|
+
/**
|
|
51
|
+
* Get an existing GatewayConnection resource's state with the given name, ID, and optional extra
|
|
52
|
+
* properties used to qualify the lookup.
|
|
53
|
+
*
|
|
54
|
+
* @param name The _unique_ name of the resulting resource.
|
|
55
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
56
|
+
* @param state Any extra arguments used during the lookup.
|
|
57
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
58
|
+
*/
|
|
59
|
+
static get(name, id, state, opts) {
|
|
60
|
+
return new GatewayConnection(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of GatewayConnection. This is designed to work even
|
|
64
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
65
|
+
*/
|
|
66
|
+
static isInstance(obj) {
|
|
67
|
+
if (obj === undefined || obj === null) {
|
|
68
|
+
return false;
|
|
69
|
+
}
|
|
70
|
+
return obj['__pulumiType'] === GatewayConnection.__pulumiType;
|
|
71
|
+
}
|
|
72
|
+
constructor(name, argsOrState, opts) {
|
|
73
|
+
let resourceInputs = {};
|
|
74
|
+
opts = opts || {};
|
|
75
|
+
if (opts.id) {
|
|
76
|
+
const state = argsOrState;
|
|
77
|
+
resourceInputs["gateway"] = state ? state.gateway : undefined;
|
|
78
|
+
resourceInputs["localRoutes"] = state ? state.localRoutes : undefined;
|
|
79
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
80
|
+
resourceInputs["remoteRoutes"] = state ? state.remoteRoutes : undefined;
|
|
81
|
+
resourceInputs["tunnels"] = state ? state.tunnels : undefined;
|
|
82
|
+
resourceInputs["type"] = state ? state.type : undefined;
|
|
83
|
+
resourceInputs["uuid"] = state ? state.uuid : undefined;
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
const args = argsOrState;
|
|
87
|
+
if ((!args || args.gateway === undefined) && !opts.urn) {
|
|
88
|
+
throw new Error("Missing required property 'gateway'");
|
|
89
|
+
}
|
|
90
|
+
resourceInputs["gateway"] = args ? args.gateway : undefined;
|
|
91
|
+
resourceInputs["localRoutes"] = args ? args.localRoutes : undefined;
|
|
92
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
93
|
+
resourceInputs["remoteRoutes"] = args ? args.remoteRoutes : undefined;
|
|
94
|
+
resourceInputs["type"] = args ? args.type : undefined;
|
|
95
|
+
resourceInputs["tunnels"] = undefined /*out*/;
|
|
96
|
+
resourceInputs["uuid"] = undefined /*out*/;
|
|
97
|
+
}
|
|
98
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
99
|
+
super(GatewayConnection.__pulumiType, name, resourceInputs, opts);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
exports.GatewayConnection = GatewayConnection;
|
|
103
|
+
/** @internal */
|
|
104
|
+
GatewayConnection.__pulumiType = 'upcloud:index/gatewayConnection:GatewayConnection';
|
|
105
|
+
//# sourceMappingURL=gatewayConnection.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gatewayConnection.js","sourceRoot":"","sources":["../gatewayConnection.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,MAAa,iBAAkB,SAAQ,MAAM,CAAC,cAAc;IACxD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA8B,EAAE,IAAmC;QAC5H,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACxE,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;QAC7B,IAAI,GAAG,KAAK,SAAS,IAAI,GAAG,KAAK,IAAI,EAAE;YACnC,OAAO,KAAK,CAAC;SAChB;QACD,OAAO,GAAG,CAAC,cAAc,CAAC,KAAK,iBAAiB,CAAC,YAAY,CAAC;IAClE,CAAC;IAwCD,YAAY,IAAY,EAAE,WAA4D,EAAE,IAAmC;QACvH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAiD,CAAC;YAChE,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAA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