@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
|
@@ -0,0 +1,90 @@
|
|
|
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.LoadbalancerBackend = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource represents load balancer backend service.
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
16
|
+
*
|
|
17
|
+
* const config = new pulumi.Config();
|
|
18
|
+
* const lbZone = config.get("lbZone") || "fi-hel2";
|
|
19
|
+
* const lbNetwork = new upcloud.Network("lbNetwork", {
|
|
20
|
+
* zone: lbZone,
|
|
21
|
+
* ipNetwork: {
|
|
22
|
+
* address: "10.0.0.0/24",
|
|
23
|
+
* dhcp: true,
|
|
24
|
+
* family: "IPv4",
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
* const lb = new upcloud.Loadbalancer("lb", {
|
|
28
|
+
* configuredStatus: "started",
|
|
29
|
+
* plan: "development",
|
|
30
|
+
* zone: lbZone,
|
|
31
|
+
* network: resource.upcloud_network.lb_network.id,
|
|
32
|
+
* });
|
|
33
|
+
* const lbBe1 = new upcloud.LoadbalancerBackend("lbBe1", {loadbalancer: resource.upcloud_loadbalancer.lb.id});
|
|
34
|
+
* ```
|
|
35
|
+
*/
|
|
36
|
+
class LoadbalancerBackend extends pulumi.CustomResource {
|
|
37
|
+
/**
|
|
38
|
+
* Get an existing LoadbalancerBackend resource's state with the given name, ID, and optional extra
|
|
39
|
+
* properties used to qualify the lookup.
|
|
40
|
+
*
|
|
41
|
+
* @param name The _unique_ name of the resulting resource.
|
|
42
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
43
|
+
* @param state Any extra arguments used during the lookup.
|
|
44
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
45
|
+
*/
|
|
46
|
+
static get(name, id, state, opts) {
|
|
47
|
+
return new LoadbalancerBackend(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Returns true if the given object is an instance of LoadbalancerBackend. This is designed to work even
|
|
51
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
52
|
+
*/
|
|
53
|
+
static isInstance(obj) {
|
|
54
|
+
if (obj === undefined || obj === null) {
|
|
55
|
+
return false;
|
|
56
|
+
}
|
|
57
|
+
return obj['__pulumiType'] === LoadbalancerBackend.__pulumiType;
|
|
58
|
+
}
|
|
59
|
+
constructor(name, argsOrState, opts) {
|
|
60
|
+
let resourceInputs = {};
|
|
61
|
+
opts = opts || {};
|
|
62
|
+
if (opts.id) {
|
|
63
|
+
const state = argsOrState;
|
|
64
|
+
resourceInputs["loadbalancer"] = state ? state.loadbalancer : undefined;
|
|
65
|
+
resourceInputs["members"] = state ? state.members : undefined;
|
|
66
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
67
|
+
resourceInputs["properties"] = state ? state.properties : undefined;
|
|
68
|
+
resourceInputs["resolverName"] = state ? state.resolverName : undefined;
|
|
69
|
+
resourceInputs["tlsConfigs"] = state ? state.tlsConfigs : undefined;
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const args = argsOrState;
|
|
73
|
+
if ((!args || args.loadbalancer === undefined) && !opts.urn) {
|
|
74
|
+
throw new Error("Missing required property 'loadbalancer'");
|
|
75
|
+
}
|
|
76
|
+
resourceInputs["loadbalancer"] = args ? args.loadbalancer : undefined;
|
|
77
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
78
|
+
resourceInputs["properties"] = args ? args.properties : undefined;
|
|
79
|
+
resourceInputs["resolverName"] = args ? args.resolverName : undefined;
|
|
80
|
+
resourceInputs["members"] = undefined /*out*/;
|
|
81
|
+
resourceInputs["tlsConfigs"] = undefined /*out*/;
|
|
82
|
+
}
|
|
83
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
84
|
+
super(LoadbalancerBackend.__pulumiType, name, resourceInputs, opts);
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.LoadbalancerBackend = LoadbalancerBackend;
|
|
88
|
+
/** @internal */
|
|
89
|
+
LoadbalancerBackend.__pulumiType = 'upcloud:index/loadbalancerBackend:LoadbalancerBackend';
|
|
90
|
+
//# sourceMappingURL=loadbalancerBackend.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadbalancerBackend.js","sourceRoot":"","sources":["../loadbalancerBackend.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AAGzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAa,mBAAoB,SAAQ,MAAM,CAAC,cAAc;IAC1D;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAgC,EAAE,IAAmC;QAC9H,OAAO,IAAI,mBAAmB,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IAC1E,CAAC;IAKD;;;OAGG;IACI,MAAM,CAAC,UAAU,CAAC,GAAQ;Q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D;YACD,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,SAAS,CAAC;YAClE,cAAc,CAAC,cAAc,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;YACtE,cAAc,CAAC,SAAS,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;YAC9C,cAAc,CAAC,YAAY,CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SACpD;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,mBAAmB,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACxE,CAAC;;AAnFL,kDAoFC;AAtEG,gBAAgB;AACO,gCAAY,GAAG,uDAAuD,CAAC"}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource represents backend TLS config
|
|
4
|
+
*/
|
|
5
|
+
export declare class LoadbalancerBackendTlsConfig extends pulumi.CustomResource {
|
|
6
|
+
/**
|
|
7
|
+
* Get an existing LoadbalancerBackendTlsConfig resource's state with the given name, ID, and optional extra
|
|
8
|
+
* properties used to qualify the lookup.
|
|
9
|
+
*
|
|
10
|
+
* @param name The _unique_ name of the resulting resource.
|
|
11
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
12
|
+
* @param state Any extra arguments used during the lookup.
|
|
13
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
14
|
+
*/
|
|
15
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadbalancerBackendTlsConfigState, opts?: pulumi.CustomResourceOptions): LoadbalancerBackendTlsConfig;
|
|
16
|
+
/**
|
|
17
|
+
* Returns true if the given object is an instance of LoadbalancerBackendTlsConfig. This is designed to work even
|
|
18
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
19
|
+
*/
|
|
20
|
+
static isInstance(obj: any): obj is LoadbalancerBackendTlsConfig;
|
|
21
|
+
/**
|
|
22
|
+
* ID of the load balancer backend to which the TLS config is connected.
|
|
23
|
+
*/
|
|
24
|
+
readonly backend: pulumi.Output<string>;
|
|
25
|
+
/**
|
|
26
|
+
* Reference to certificate bundle ID.
|
|
27
|
+
*/
|
|
28
|
+
readonly certificateBundle: pulumi.Output<string>;
|
|
29
|
+
/**
|
|
30
|
+
* The name of the TLS config. Must be unique within customer account.
|
|
31
|
+
*/
|
|
32
|
+
readonly name: pulumi.Output<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Create a LoadbalancerBackendTlsConfig resource with the given unique name, arguments, and options.
|
|
35
|
+
*
|
|
36
|
+
* @param name The _unique_ name of the resource.
|
|
37
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
38
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
39
|
+
*/
|
|
40
|
+
constructor(name: string, args: LoadbalancerBackendTlsConfigArgs, opts?: pulumi.CustomResourceOptions);
|
|
41
|
+
}
|
|
42
|
+
/**
|
|
43
|
+
* Input properties used for looking up and filtering LoadbalancerBackendTlsConfig resources.
|
|
44
|
+
*/
|
|
45
|
+
export interface LoadbalancerBackendTlsConfigState {
|
|
46
|
+
/**
|
|
47
|
+
* ID of the load balancer backend to which the TLS config is connected.
|
|
48
|
+
*/
|
|
49
|
+
backend?: pulumi.Input<string>;
|
|
50
|
+
/**
|
|
51
|
+
* Reference to certificate bundle ID.
|
|
52
|
+
*/
|
|
53
|
+
certificateBundle?: pulumi.Input<string>;
|
|
54
|
+
/**
|
|
55
|
+
* The name of the TLS config. Must be unique within customer account.
|
|
56
|
+
*/
|
|
57
|
+
name?: pulumi.Input<string>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* The set of arguments for constructing a LoadbalancerBackendTlsConfig resource.
|
|
61
|
+
*/
|
|
62
|
+
export interface LoadbalancerBackendTlsConfigArgs {
|
|
63
|
+
/**
|
|
64
|
+
* ID of the load balancer backend to which the TLS config is connected.
|
|
65
|
+
*/
|
|
66
|
+
backend: pulumi.Input<string>;
|
|
67
|
+
/**
|
|
68
|
+
* Reference to certificate bundle ID.
|
|
69
|
+
*/
|
|
70
|
+
certificateBundle: pulumi.Input<string>;
|
|
71
|
+
/**
|
|
72
|
+
* The name of the TLS config. Must be unique within customer account.
|
|
73
|
+
*/
|
|
74
|
+
name?: pulumi.Input<string>;
|
|
75
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.LoadbalancerBackendTlsConfig = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource represents backend TLS config
|
|
10
|
+
*/
|
|
11
|
+
class LoadbalancerBackendTlsConfig extends pulumi.CustomResource {
|
|
12
|
+
/**
|
|
13
|
+
* Get an existing LoadbalancerBackendTlsConfig resource's state with the given name, ID, and optional extra
|
|
14
|
+
* properties used to qualify the lookup.
|
|
15
|
+
*
|
|
16
|
+
* @param name The _unique_ name of the resulting resource.
|
|
17
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
18
|
+
* @param state Any extra arguments used during the lookup.
|
|
19
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
20
|
+
*/
|
|
21
|
+
static get(name, id, state, opts) {
|
|
22
|
+
return new LoadbalancerBackendTlsConfig(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* Returns true if the given object is an instance of LoadbalancerBackendTlsConfig. This is designed to work even
|
|
26
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
27
|
+
*/
|
|
28
|
+
static isInstance(obj) {
|
|
29
|
+
if (obj === undefined || obj === null) {
|
|
30
|
+
return false;
|
|
31
|
+
}
|
|
32
|
+
return obj['__pulumiType'] === LoadbalancerBackendTlsConfig.__pulumiType;
|
|
33
|
+
}
|
|
34
|
+
constructor(name, argsOrState, opts) {
|
|
35
|
+
let resourceInputs = {};
|
|
36
|
+
opts = opts || {};
|
|
37
|
+
if (opts.id) {
|
|
38
|
+
const state = argsOrState;
|
|
39
|
+
resourceInputs["backend"] = state ? state.backend : undefined;
|
|
40
|
+
resourceInputs["certificateBundle"] = state ? state.certificateBundle : undefined;
|
|
41
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
42
|
+
}
|
|
43
|
+
else {
|
|
44
|
+
const args = argsOrState;
|
|
45
|
+
if ((!args || args.backend === undefined) && !opts.urn) {
|
|
46
|
+
throw new Error("Missing required property 'backend'");
|
|
47
|
+
}
|
|
48
|
+
if ((!args || args.certificateBundle === undefined) && !opts.urn) {
|
|
49
|
+
throw new Error("Missing required property 'certificateBundle'");
|
|
50
|
+
}
|
|
51
|
+
resourceInputs["backend"] = args ? args.backend : undefined;
|
|
52
|
+
resourceInputs["certificateBundle"] = args ? args.certificateBundle : undefined;
|
|
53
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
54
|
+
}
|
|
55
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
56
|
+
super(LoadbalancerBackendTlsConfig.__pulumiType, name, resourceInputs, opts);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
exports.LoadbalancerBackendTlsConfig = LoadbalancerBackendTlsConfig;
|
|
60
|
+
/** @internal */
|
|
61
|
+
LoadbalancerBackendTlsConfig.__pulumiType = 'upcloud:index/loadbalancerBackendTlsConfig:LoadbalancerBackendTlsConfig';
|
|
62
|
+
//# sourceMappingURL=loadbalancerBackendTlsConfig.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadbalancerBackendTlsConfig.js","sourceRoot":"","sources":["../loadbalancerBackendTlsConfig.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;GAEG;AACH,MAAa,4BAA6B,SAAQ,MAAM,CAAC,cAAc;IACnE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAAyC,EAAE,IAAmC;QACvI,OAAO,IAAI,4BAA4B,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACnF,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,4BAA4B,CAAC,YAAY,CAAC;IAC7E,CAAC;IAuBD,YAAY,IAAY,EAAE,WAAkF,EAAE,IAAmC;QAC7I,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA4D,CAAC;YAC3E,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9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+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource represents load balancer dynamic backend member
|
|
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 config = new pulumi.Config();
|
|
12
|
+
* const lbZone = config.get("lbZone") || "fi-hel2";
|
|
13
|
+
* const lbNetwork = new upcloud.Network("lbNetwork", {
|
|
14
|
+
* zone: lbZone,
|
|
15
|
+
* ipNetwork: {
|
|
16
|
+
* address: "10.0.0.0/24",
|
|
17
|
+
* dhcp: true,
|
|
18
|
+
* family: "IPv4",
|
|
19
|
+
* },
|
|
20
|
+
* });
|
|
21
|
+
* const lb = new upcloud.Loadbalancer("lb", {
|
|
22
|
+
* configuredStatus: "started",
|
|
23
|
+
* plan: "development",
|
|
24
|
+
* zone: lbZone,
|
|
25
|
+
* network: resource.upcloud_network.lb_network.id,
|
|
26
|
+
* });
|
|
27
|
+
* const lbDns1 = new upcloud.LoadbalancerResolver("lbDns1", {
|
|
28
|
+
* loadbalancer: resource.upcloud_loadbalancer.lb.id,
|
|
29
|
+
* cacheInvalid: 10,
|
|
30
|
+
* cacheValid: 100,
|
|
31
|
+
* retries: 5,
|
|
32
|
+
* timeout: 10,
|
|
33
|
+
* timeoutRetry: 10,
|
|
34
|
+
* nameservers: [
|
|
35
|
+
* "94.237.127.9:53",
|
|
36
|
+
* "94.237.40.9:53",
|
|
37
|
+
* ],
|
|
38
|
+
* });
|
|
39
|
+
* const lbBe1 = new upcloud.LoadbalancerBackend("lbBe1", {
|
|
40
|
+
* loadbalancer: resource.upcloud_loadbalancer.lb.id,
|
|
41
|
+
* resolverName: resource.upcloud_loadbalancer_resolver.lb_dns_1.name,
|
|
42
|
+
* });
|
|
43
|
+
* const lbBe1Dm1 = new upcloud.LoadbalancerDynamicBackendMember("lbBe1Dm1", {
|
|
44
|
+
* backend: resource.upcloud_loadbalancer_backend.lb_be_1.id,
|
|
45
|
+
* weight: 10,
|
|
46
|
+
* maxSessions: 10,
|
|
47
|
+
* enabled: false,
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
50
|
+
*/
|
|
51
|
+
export declare class LoadbalancerDynamicBackendMember extends pulumi.CustomResource {
|
|
52
|
+
/**
|
|
53
|
+
* Get an existing LoadbalancerDynamicBackendMember resource's state with the given name, ID, and optional extra
|
|
54
|
+
* properties used to qualify the lookup.
|
|
55
|
+
*
|
|
56
|
+
* @param name The _unique_ name of the resulting resource.
|
|
57
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
58
|
+
* @param state Any extra arguments used during the lookup.
|
|
59
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
60
|
+
*/
|
|
61
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadbalancerDynamicBackendMemberState, opts?: pulumi.CustomResourceOptions): LoadbalancerDynamicBackendMember;
|
|
62
|
+
/**
|
|
63
|
+
* Returns true if the given object is an instance of LoadbalancerDynamicBackendMember. 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: any): obj is LoadbalancerDynamicBackendMember;
|
|
67
|
+
/**
|
|
68
|
+
* ID of the load balancer backend to which the member is connected.
|
|
69
|
+
*/
|
|
70
|
+
readonly backend: pulumi.Output<string>;
|
|
71
|
+
/**
|
|
72
|
+
* Indicates if the member is enabled. Disabled members are excluded from load balancing.
|
|
73
|
+
*/
|
|
74
|
+
readonly enabled: pulumi.Output<boolean>;
|
|
75
|
+
/**
|
|
76
|
+
* Optional fallback IP address in case of failure on DNS resolving.
|
|
77
|
+
*/
|
|
78
|
+
readonly ip: pulumi.Output<string>;
|
|
79
|
+
/**
|
|
80
|
+
* Maximum number of sessions before queueing.
|
|
81
|
+
*/
|
|
82
|
+
readonly maxSessions: pulumi.Output<number>;
|
|
83
|
+
/**
|
|
84
|
+
* The name of the member. Must be unique within within the load balancer backend.
|
|
85
|
+
*/
|
|
86
|
+
readonly name: pulumi.Output<string>;
|
|
87
|
+
/**
|
|
88
|
+
* Server port. Port is optional and can be specified in DNS SRV record.
|
|
89
|
+
*/
|
|
90
|
+
readonly port: pulumi.Output<number>;
|
|
91
|
+
/**
|
|
92
|
+
* Weight of the member. The higher the weight, the more traffic the member receives.
|
|
93
|
+
*/
|
|
94
|
+
readonly weight: pulumi.Output<number>;
|
|
95
|
+
/**
|
|
96
|
+
* Create a LoadbalancerDynamicBackendMember resource with the given unique name, arguments, and options.
|
|
97
|
+
*
|
|
98
|
+
* @param name The _unique_ name of the resource.
|
|
99
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
100
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
101
|
+
*/
|
|
102
|
+
constructor(name: string, args: LoadbalancerDynamicBackendMemberArgs, opts?: pulumi.CustomResourceOptions);
|
|
103
|
+
}
|
|
104
|
+
/**
|
|
105
|
+
* Input properties used for looking up and filtering LoadbalancerDynamicBackendMember resources.
|
|
106
|
+
*/
|
|
107
|
+
export interface LoadbalancerDynamicBackendMemberState {
|
|
108
|
+
/**
|
|
109
|
+
* ID of the load balancer backend to which the member is connected.
|
|
110
|
+
*/
|
|
111
|
+
backend?: pulumi.Input<string>;
|
|
112
|
+
/**
|
|
113
|
+
* Indicates if the member is enabled. Disabled members are excluded from load balancing.
|
|
114
|
+
*/
|
|
115
|
+
enabled?: pulumi.Input<boolean>;
|
|
116
|
+
/**
|
|
117
|
+
* Optional fallback IP address in case of failure on DNS resolving.
|
|
118
|
+
*/
|
|
119
|
+
ip?: pulumi.Input<string>;
|
|
120
|
+
/**
|
|
121
|
+
* Maximum number of sessions before queueing.
|
|
122
|
+
*/
|
|
123
|
+
maxSessions?: pulumi.Input<number>;
|
|
124
|
+
/**
|
|
125
|
+
* The name of the member. Must be unique within within the load balancer backend.
|
|
126
|
+
*/
|
|
127
|
+
name?: pulumi.Input<string>;
|
|
128
|
+
/**
|
|
129
|
+
* Server port. Port is optional and can be specified in DNS SRV record.
|
|
130
|
+
*/
|
|
131
|
+
port?: pulumi.Input<number>;
|
|
132
|
+
/**
|
|
133
|
+
* Weight of the member. The higher the weight, the more traffic the member receives.
|
|
134
|
+
*/
|
|
135
|
+
weight?: pulumi.Input<number>;
|
|
136
|
+
}
|
|
137
|
+
/**
|
|
138
|
+
* The set of arguments for constructing a LoadbalancerDynamicBackendMember resource.
|
|
139
|
+
*/
|
|
140
|
+
export interface LoadbalancerDynamicBackendMemberArgs {
|
|
141
|
+
/**
|
|
142
|
+
* ID of the load balancer backend to which the member is connected.
|
|
143
|
+
*/
|
|
144
|
+
backend: pulumi.Input<string>;
|
|
145
|
+
/**
|
|
146
|
+
* Indicates if the member is enabled. Disabled members are excluded from load balancing.
|
|
147
|
+
*/
|
|
148
|
+
enabled?: pulumi.Input<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* Optional fallback IP address in case of failure on DNS resolving.
|
|
151
|
+
*/
|
|
152
|
+
ip?: pulumi.Input<string>;
|
|
153
|
+
/**
|
|
154
|
+
* Maximum number of sessions before queueing.
|
|
155
|
+
*/
|
|
156
|
+
maxSessions: pulumi.Input<number>;
|
|
157
|
+
/**
|
|
158
|
+
* The name of the member. Must be unique within within the load balancer backend.
|
|
159
|
+
*/
|
|
160
|
+
name?: pulumi.Input<string>;
|
|
161
|
+
/**
|
|
162
|
+
* Server port. Port is optional and can be specified in DNS SRV record.
|
|
163
|
+
*/
|
|
164
|
+
port?: pulumi.Input<number>;
|
|
165
|
+
/**
|
|
166
|
+
* Weight of the member. The higher the weight, the more traffic the member receives.
|
|
167
|
+
*/
|
|
168
|
+
weight: pulumi.Input<number>;
|
|
169
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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.LoadbalancerDynamicBackendMember = void 0;
|
|
6
|
+
const pulumi = require("@pulumi/pulumi");
|
|
7
|
+
const utilities = require("./utilities");
|
|
8
|
+
/**
|
|
9
|
+
* This resource represents load balancer dynamic backend member
|
|
10
|
+
*
|
|
11
|
+
* ## Example Usage
|
|
12
|
+
*
|
|
13
|
+
* ```typescript
|
|
14
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
15
|
+
* import * as upcloud from "@upcloud/pulumi-upcloud";
|
|
16
|
+
*
|
|
17
|
+
* const config = new pulumi.Config();
|
|
18
|
+
* const lbZone = config.get("lbZone") || "fi-hel2";
|
|
19
|
+
* const lbNetwork = new upcloud.Network("lbNetwork", {
|
|
20
|
+
* zone: lbZone,
|
|
21
|
+
* ipNetwork: {
|
|
22
|
+
* address: "10.0.0.0/24",
|
|
23
|
+
* dhcp: true,
|
|
24
|
+
* family: "IPv4",
|
|
25
|
+
* },
|
|
26
|
+
* });
|
|
27
|
+
* const lb = new upcloud.Loadbalancer("lb", {
|
|
28
|
+
* configuredStatus: "started",
|
|
29
|
+
* plan: "development",
|
|
30
|
+
* zone: lbZone,
|
|
31
|
+
* network: resource.upcloud_network.lb_network.id,
|
|
32
|
+
* });
|
|
33
|
+
* const lbDns1 = new upcloud.LoadbalancerResolver("lbDns1", {
|
|
34
|
+
* loadbalancer: resource.upcloud_loadbalancer.lb.id,
|
|
35
|
+
* cacheInvalid: 10,
|
|
36
|
+
* cacheValid: 100,
|
|
37
|
+
* retries: 5,
|
|
38
|
+
* timeout: 10,
|
|
39
|
+
* timeoutRetry: 10,
|
|
40
|
+
* nameservers: [
|
|
41
|
+
* "94.237.127.9:53",
|
|
42
|
+
* "94.237.40.9:53",
|
|
43
|
+
* ],
|
|
44
|
+
* });
|
|
45
|
+
* const lbBe1 = new upcloud.LoadbalancerBackend("lbBe1", {
|
|
46
|
+
* loadbalancer: resource.upcloud_loadbalancer.lb.id,
|
|
47
|
+
* resolverName: resource.upcloud_loadbalancer_resolver.lb_dns_1.name,
|
|
48
|
+
* });
|
|
49
|
+
* const lbBe1Dm1 = new upcloud.LoadbalancerDynamicBackendMember("lbBe1Dm1", {
|
|
50
|
+
* backend: resource.upcloud_loadbalancer_backend.lb_be_1.id,
|
|
51
|
+
* weight: 10,
|
|
52
|
+
* maxSessions: 10,
|
|
53
|
+
* enabled: false,
|
|
54
|
+
* });
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
class LoadbalancerDynamicBackendMember extends pulumi.CustomResource {
|
|
58
|
+
/**
|
|
59
|
+
* Get an existing LoadbalancerDynamicBackendMember resource's state with the given name, ID, and optional extra
|
|
60
|
+
* properties used to qualify the lookup.
|
|
61
|
+
*
|
|
62
|
+
* @param name The _unique_ name of the resulting resource.
|
|
63
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
64
|
+
* @param state Any extra arguments used during the lookup.
|
|
65
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
66
|
+
*/
|
|
67
|
+
static get(name, id, state, opts) {
|
|
68
|
+
return new LoadbalancerDynamicBackendMember(name, state, Object.assign(Object.assign({}, opts), { id: id }));
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Returns true if the given object is an instance of LoadbalancerDynamicBackendMember. This is designed to work even
|
|
72
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
73
|
+
*/
|
|
74
|
+
static isInstance(obj) {
|
|
75
|
+
if (obj === undefined || obj === null) {
|
|
76
|
+
return false;
|
|
77
|
+
}
|
|
78
|
+
return obj['__pulumiType'] === LoadbalancerDynamicBackendMember.__pulumiType;
|
|
79
|
+
}
|
|
80
|
+
constructor(name, argsOrState, opts) {
|
|
81
|
+
let resourceInputs = {};
|
|
82
|
+
opts = opts || {};
|
|
83
|
+
if (opts.id) {
|
|
84
|
+
const state = argsOrState;
|
|
85
|
+
resourceInputs["backend"] = state ? state.backend : undefined;
|
|
86
|
+
resourceInputs["enabled"] = state ? state.enabled : undefined;
|
|
87
|
+
resourceInputs["ip"] = state ? state.ip : undefined;
|
|
88
|
+
resourceInputs["maxSessions"] = state ? state.maxSessions : undefined;
|
|
89
|
+
resourceInputs["name"] = state ? state.name : undefined;
|
|
90
|
+
resourceInputs["port"] = state ? state.port : undefined;
|
|
91
|
+
resourceInputs["weight"] = state ? state.weight : undefined;
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
const args = argsOrState;
|
|
95
|
+
if ((!args || args.backend === undefined) && !opts.urn) {
|
|
96
|
+
throw new Error("Missing required property 'backend'");
|
|
97
|
+
}
|
|
98
|
+
if ((!args || args.maxSessions === undefined) && !opts.urn) {
|
|
99
|
+
throw new Error("Missing required property 'maxSessions'");
|
|
100
|
+
}
|
|
101
|
+
if ((!args || args.weight === undefined) && !opts.urn) {
|
|
102
|
+
throw new Error("Missing required property 'weight'");
|
|
103
|
+
}
|
|
104
|
+
resourceInputs["backend"] = args ? args.backend : undefined;
|
|
105
|
+
resourceInputs["enabled"] = args ? args.enabled : undefined;
|
|
106
|
+
resourceInputs["ip"] = args ? args.ip : undefined;
|
|
107
|
+
resourceInputs["maxSessions"] = args ? args.maxSessions : undefined;
|
|
108
|
+
resourceInputs["name"] = args ? args.name : undefined;
|
|
109
|
+
resourceInputs["port"] = args ? args.port : undefined;
|
|
110
|
+
resourceInputs["weight"] = args ? args.weight : undefined;
|
|
111
|
+
}
|
|
112
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
113
|
+
super(LoadbalancerDynamicBackendMember.__pulumiType, name, resourceInputs, opts);
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
exports.LoadbalancerDynamicBackendMember = LoadbalancerDynamicBackendMember;
|
|
117
|
+
/** @internal */
|
|
118
|
+
LoadbalancerDynamicBackendMember.__pulumiType = 'upcloud:index/loadbalancerDynamicBackendMember:LoadbalancerDynamicBackendMember';
|
|
119
|
+
//# sourceMappingURL=loadbalancerDynamicBackendMember.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"loadbalancerDynamicBackendMember.js","sourceRoot":"","sources":["../loadbalancerDynamicBackendMember.ts"],"names":[],"mappings":";AAAA,wFAAwF;AACxF,iFAAiF;;;AAEjF,yCAAyC;AACzC,yCAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgDG;AACH,MAAa,gCAAiC,SAAQ,MAAM,CAAC,cAAc;IACvE;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA6C,EAAE,IAAmC;QAC3I,OAAO,IAAI,gCAAgC,CAAC,IAAI,EAAO,KAAK,kCAAO,IAAI,KAAE,EAAE,EAAE,EAAE,IAAG,CAAC;IACvF,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,gCAAgC,CAAC,YAAY,CAAC;IACjF,CAAC;IAuCD,YAAY,IAAY,EAAE,WAA0F,EAAE,IAAmC;QACrJ,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAAgE,CAAC;YAC/E,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC9D,cAAc,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;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AAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC;YAC5D,cAAc,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC;YAClD,cAAc,CAAC,aAAa,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,SAAS,CAAC;YACpE,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC;YACtD,cAAc,CAAC,QAAQ,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC;SAC7D;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,gCAAgC,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACrF,CAAC;;AAlGL,4EAmGC;AArFG,gBAAgB;AACO,6CAAY,GAAG,iFAAiF,CAAC"}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import * as pulumi from "@pulumi/pulumi";
|
|
2
|
+
/**
|
|
3
|
+
* This resource represents dynamic certificate bundle
|
|
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 lbCbD1 = new upcloud.LoadbalancerDynamicCertificateBundle("lbCbD1", {
|
|
12
|
+
* hostnames: [
|
|
13
|
+
* "example.com",
|
|
14
|
+
* "app.example.net",
|
|
15
|
+
* ],
|
|
16
|
+
* keyType: "rsa",
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
19
|
+
*/
|
|
20
|
+
export declare class LoadbalancerDynamicCertificateBundle extends pulumi.CustomResource {
|
|
21
|
+
/**
|
|
22
|
+
* Get an existing LoadbalancerDynamicCertificateBundle resource's state with the given name, ID, and optional extra
|
|
23
|
+
* properties used to qualify the lookup.
|
|
24
|
+
*
|
|
25
|
+
* @param name The _unique_ name of the resulting resource.
|
|
26
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
27
|
+
* @param state Any extra arguments used during the lookup.
|
|
28
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
29
|
+
*/
|
|
30
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: LoadbalancerDynamicCertificateBundleState, opts?: pulumi.CustomResourceOptions): LoadbalancerDynamicCertificateBundle;
|
|
31
|
+
/**
|
|
32
|
+
* Returns true if the given object is an instance of LoadbalancerDynamicCertificateBundle. This is designed to work even
|
|
33
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
34
|
+
*/
|
|
35
|
+
static isInstance(obj: any): obj is LoadbalancerDynamicCertificateBundle;
|
|
36
|
+
/**
|
|
37
|
+
* Certificate hostnames.
|
|
38
|
+
*/
|
|
39
|
+
readonly hostnames: pulumi.Output<string[]>;
|
|
40
|
+
/**
|
|
41
|
+
* Private key type (`rsa` / `ecdsa`).
|
|
42
|
+
*/
|
|
43
|
+
readonly keyType: pulumi.Output<string>;
|
|
44
|
+
/**
|
|
45
|
+
* The name of the certificate bundle. Must be unique within customer account.
|
|
46
|
+
*/
|
|
47
|
+
readonly name: pulumi.Output<string>;
|
|
48
|
+
/**
|
|
49
|
+
* The time after which a certificate is no longer valid.
|
|
50
|
+
*/
|
|
51
|
+
readonly notAfter: pulumi.Output<string>;
|
|
52
|
+
/**
|
|
53
|
+
* The time on which a certificate becomes valid.
|
|
54
|
+
*/
|
|
55
|
+
readonly notBefore: pulumi.Output<string>;
|
|
56
|
+
/**
|
|
57
|
+
* The service operational state indicates the service's current operational, effective state. Managed by the system.
|
|
58
|
+
*/
|
|
59
|
+
readonly operationalState: pulumi.Output<string>;
|
|
60
|
+
/**
|
|
61
|
+
* Create a LoadbalancerDynamicCertificateBundle resource with the given unique name, arguments, and options.
|
|
62
|
+
*
|
|
63
|
+
* @param name The _unique_ name of the resource.
|
|
64
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
65
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
66
|
+
*/
|
|
67
|
+
constructor(name: string, args: LoadbalancerDynamicCertificateBundleArgs, opts?: pulumi.CustomResourceOptions);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Input properties used for looking up and filtering LoadbalancerDynamicCertificateBundle resources.
|
|
71
|
+
*/
|
|
72
|
+
export interface LoadbalancerDynamicCertificateBundleState {
|
|
73
|
+
/**
|
|
74
|
+
* Certificate hostnames.
|
|
75
|
+
*/
|
|
76
|
+
hostnames?: pulumi.Input<pulumi.Input<string>[]>;
|
|
77
|
+
/**
|
|
78
|
+
* Private key type (`rsa` / `ecdsa`).
|
|
79
|
+
*/
|
|
80
|
+
keyType?: pulumi.Input<string>;
|
|
81
|
+
/**
|
|
82
|
+
* The name of the certificate bundle. Must be unique within customer account.
|
|
83
|
+
*/
|
|
84
|
+
name?: pulumi.Input<string>;
|
|
85
|
+
/**
|
|
86
|
+
* The time after which a certificate is no longer valid.
|
|
87
|
+
*/
|
|
88
|
+
notAfter?: pulumi.Input<string>;
|
|
89
|
+
/**
|
|
90
|
+
* The time on which a certificate becomes valid.
|
|
91
|
+
*/
|
|
92
|
+
notBefore?: pulumi.Input<string>;
|
|
93
|
+
/**
|
|
94
|
+
* The service operational state indicates the service's current operational, effective state. Managed by the system.
|
|
95
|
+
*/
|
|
96
|
+
operationalState?: pulumi.Input<string>;
|
|
97
|
+
}
|
|
98
|
+
/**
|
|
99
|
+
* The set of arguments for constructing a LoadbalancerDynamicCertificateBundle resource.
|
|
100
|
+
*/
|
|
101
|
+
export interface LoadbalancerDynamicCertificateBundleArgs {
|
|
102
|
+
/**
|
|
103
|
+
* Certificate hostnames.
|
|
104
|
+
*/
|
|
105
|
+
hostnames: pulumi.Input<pulumi.Input<string>[]>;
|
|
106
|
+
/**
|
|
107
|
+
* Private key type (`rsa` / `ecdsa`).
|
|
108
|
+
*/
|
|
109
|
+
keyType: pulumi.Input<string>;
|
|
110
|
+
/**
|
|
111
|
+
* The name of the certificate bundle. Must be unique within customer account.
|
|
112
|
+
*/
|
|
113
|
+
name?: pulumi.Input<string>;
|
|
114
|
+
}
|