@pulumi/confluentcloud 2.84.0-alpha.1790573792 → 2.84.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/getSwitchoverEndpoint.d.ts +98 -0
- package/getSwitchoverEndpoint.d.ts.map +1 -0
- package/getSwitchoverEndpoint.js +87 -0
- package/getSwitchoverEndpoint.js.map +1 -0
- package/getSwitchoverEndpoints.d.ts +60 -0
- package/getSwitchoverEndpoints.d.ts.map +1 -0
- package/getSwitchoverEndpoints.js +61 -0
- package/getSwitchoverEndpoints.js.map +1 -0
- package/getSwitchoverPair.d.ts +102 -0
- package/getSwitchoverPair.d.ts.map +1 -0
- package/getSwitchoverPair.js +87 -0
- package/getSwitchoverPair.js.map +1 -0
- package/getSwitchoverPairs.d.ts +54 -0
- package/getSwitchoverPairs.d.ts.map +1 -0
- package/getSwitchoverPairs.js +59 -0
- package/getSwitchoverPairs.js.map +1 -0
- package/index.d.ts +18 -0
- package/index.d.ts.map +1 -1
- package/index.js +25 -2
- package/index.js.map +1 -1
- package/package.json +2 -2
- package/switchoverEndpoint.d.ts +146 -0
- package/switchoverEndpoint.d.ts.map +1 -0
- package/switchoverEndpoint.js +144 -0
- package/switchoverEndpoint.js.map +1 -0
- package/switchoverPair.d.ts +161 -0
- package/switchoverPair.d.ts.map +1 -0
- package/switchoverPair.js +146 -0
- package/switchoverPair.js.map +1 -0
- package/types/input.d.ts +58 -0
- package/types/input.d.ts.map +1 -1
- package/types/output.d.ts +195 -0
- package/types/output.d.ts.map +1 -1
|
@@ -0,0 +1,144 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SwitchoverEndpoint = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
33
|
+
*
|
|
34
|
+
* > **Warning:** Switchover is a preview feature. Preview features are introduced to gather customer feedback and may change based on that feedback. They are intended for evaluation and non-production use only, and are not covered by Confluent SLAs. Preview features may be discontinued at any time.
|
|
35
|
+
*
|
|
36
|
+
* `confluentcloud.SwitchoverEndpoint` provides a switchover endpoint resource that models a sticky disaster recovery (DR) endpoint bound to a `confluentcloud.SwitchoverPair`. The endpoint follows the pair's active member so that clients keep a stable connection target across a failover.
|
|
37
|
+
*
|
|
38
|
+
* Deleting an endpoint is asynchronous on the API side; the resource waits until the endpoint is gone before completing, so a `terraform destroy` that removes the endpoint and its pair together succeeds in one run (the pair cannot be deleted while an endpoint still exists).
|
|
39
|
+
*
|
|
40
|
+
* The side the endpoint points at is owned by the Switchover service and reported in the computed `target` attribute: it starts on the side matching the pair's active member, and a failover moves it without showing drift or forcing a replacement (which would hand clients a new hostname). Keep the endpoint in the same Terraform configuration as its pair. See the complete example.
|
|
41
|
+
*
|
|
42
|
+
* > **Note:** For PrivateLink Attachment (Enterprise) clusters, use `accessPointCrn` in the form `crn://confluent.cloud/organization=<org>/environment=<env>/gateway=<platt-id>/access-point=<plattc-id>`. For Dedicated clusters on a Confluent-managed network, use `networkCrn`.
|
|
43
|
+
*
|
|
44
|
+
* ## Example Usage
|
|
45
|
+
*
|
|
46
|
+
* ```typescript
|
|
47
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
48
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
49
|
+
*
|
|
50
|
+
* const example = new confluentcloud.SwitchoverEndpoint("example", {
|
|
51
|
+
* displayName: "prod-kafka-dr-endpoint",
|
|
52
|
+
* parentResourceCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123/switchover-pair=sw-abc123",
|
|
53
|
+
* endpoints: [
|
|
54
|
+
* {
|
|
55
|
+
* name: "west-platt",
|
|
56
|
+
* endpointFilter: {
|
|
57
|
+
* type: "private",
|
|
58
|
+
* networkCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123/network=n-west01",
|
|
59
|
+
* },
|
|
60
|
+
* },
|
|
61
|
+
* {
|
|
62
|
+
* name: "east-platt",
|
|
63
|
+
* endpointFilter: {
|
|
64
|
+
* type: "private",
|
|
65
|
+
* networkCrn: "crn://confluent.cloud/organization=org-abc/environment=env-def456/network=n-east01",
|
|
66
|
+
* },
|
|
67
|
+
* },
|
|
68
|
+
* ],
|
|
69
|
+
* });
|
|
70
|
+
* ```
|
|
71
|
+
*
|
|
72
|
+
* ## Import
|
|
73
|
+
*
|
|
74
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a switchover endpoint.
|
|
75
|
+
*
|
|
76
|
+
* You can import a switchover endpoint by using the parent resource CRN and switchover endpoint ID, in the format `<Parent Resource CRN>/<Switchover Endpoint ID>`. The following example shows how to import a switchover endpoint:
|
|
77
|
+
*
|
|
78
|
+
* ```sh
|
|
79
|
+
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
80
|
+
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
81
|
+
* $ pulumi import confluentcloud:index/switchoverEndpoint:SwitchoverEndpoint example crn://confluent.cloud/organization=org-abc/environment=env-abc123/switchover-pair=sw-abc123/se-abc123
|
|
82
|
+
* ```
|
|
83
|
+
*
|
|
84
|
+
* > **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
85
|
+
*/
|
|
86
|
+
class SwitchoverEndpoint extends pulumi.CustomResource {
|
|
87
|
+
/**
|
|
88
|
+
* Get an existing SwitchoverEndpoint resource's state with the given name, ID, and optional extra
|
|
89
|
+
* properties used to qualify the lookup.
|
|
90
|
+
*
|
|
91
|
+
* @param name The _unique_ name of the resulting resource.
|
|
92
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
93
|
+
* @param state Any extra arguments used during the lookup.
|
|
94
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
95
|
+
*/
|
|
96
|
+
static get(name, id, state, opts) {
|
|
97
|
+
return new SwitchoverEndpoint(name, state, { ...opts, id: id });
|
|
98
|
+
}
|
|
99
|
+
/** @internal */
|
|
100
|
+
static __pulumiType = 'confluentcloud:index/switchoverEndpoint:SwitchoverEndpoint';
|
|
101
|
+
/**
|
|
102
|
+
* Returns true if the given object is an instance of SwitchoverEndpoint. This is designed to work even
|
|
103
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
104
|
+
*/
|
|
105
|
+
static isInstance(obj) {
|
|
106
|
+
if (obj === undefined || obj === null) {
|
|
107
|
+
return false;
|
|
108
|
+
}
|
|
109
|
+
return obj['__pulumiType'] === SwitchoverEndpoint.__pulumiType;
|
|
110
|
+
}
|
|
111
|
+
constructor(name, argsOrState, opts) {
|
|
112
|
+
let resourceInputs = {};
|
|
113
|
+
opts = opts || {};
|
|
114
|
+
if (opts.id) {
|
|
115
|
+
const state = argsOrState;
|
|
116
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
117
|
+
resourceInputs["endpoints"] = state?.endpoints;
|
|
118
|
+
resourceInputs["parentResourceCrn"] = state?.parentResourceCrn;
|
|
119
|
+
resourceInputs["phase"] = state?.phase;
|
|
120
|
+
resourceInputs["target"] = state?.target;
|
|
121
|
+
}
|
|
122
|
+
else {
|
|
123
|
+
const args = argsOrState;
|
|
124
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
125
|
+
throw new Error("Missing required property 'displayName'");
|
|
126
|
+
}
|
|
127
|
+
if (args?.endpoints === undefined && !opts.urn) {
|
|
128
|
+
throw new Error("Missing required property 'endpoints'");
|
|
129
|
+
}
|
|
130
|
+
if (args?.parentResourceCrn === undefined && !opts.urn) {
|
|
131
|
+
throw new Error("Missing required property 'parentResourceCrn'");
|
|
132
|
+
}
|
|
133
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
134
|
+
resourceInputs["endpoints"] = args?.endpoints;
|
|
135
|
+
resourceInputs["parentResourceCrn"] = args?.parentResourceCrn;
|
|
136
|
+
resourceInputs["phase"] = undefined /*out*/;
|
|
137
|
+
resourceInputs["target"] = undefined /*out*/;
|
|
138
|
+
}
|
|
139
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
140
|
+
super(SwitchoverEndpoint.__pulumiType, name, resourceInputs, opts);
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
exports.SwitchoverEndpoint = SwitchoverEndpoint;
|
|
144
|
+
//# sourceMappingURL=switchoverEndpo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
|
|
5
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
6
|
+
*
|
|
7
|
+
* > **Warning:** Switchover is a preview feature. Preview features are introduced to gather customer feedback and may change based on that feedback. They are intended for evaluation and non-production use only, and are not covered by Confluent SLAs. Preview features may be discontinued at any time.
|
|
8
|
+
*
|
|
9
|
+
* `confluentcloud.SwitchoverPair` provides a switchover pair resource that models a cluster-level disaster recovery (DR) pairing between two Kafka clusters (an active member and a passive member) on Confluent Cloud.
|
|
10
|
+
*
|
|
11
|
+
* Creating a pair is asynchronous on the API side; the resource waits until the pair reaches `READY_TO_FAILOVER` (up to 30 minutes) before completing, so a `confluentcloud.SwitchoverEndpoint` created in the same apply is not rejected while the pair is still `PROVISIONING`.
|
|
12
|
+
*
|
|
13
|
+
* `activeMember` chooses which member is active when the pair is created. After that the Switchover service owns it: a failover (the Switchover API's `:failover` operation, for example `confluent switchover pair failover <id> --active-member <name>`) changes the active member on the server, and the resource reads the current value back without showing drift or forcing a replacement. Editing `activeMember` in the configuration of an existing pair has no effect — the difference is suppressed, and no plan is produced. See the complete example.
|
|
14
|
+
*
|
|
15
|
+
* ## Example Usage
|
|
16
|
+
*
|
|
17
|
+
* ```typescript
|
|
18
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
19
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
20
|
+
*
|
|
21
|
+
* const example = new confluentcloud.SwitchoverPair("example", {
|
|
22
|
+
* displayName: "prod-kafka-dr",
|
|
23
|
+
* activeMember: "west",
|
|
24
|
+
* members: [
|
|
25
|
+
* {
|
|
26
|
+
* name: "west",
|
|
27
|
+
* memberCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123/cloud-cluster=lkc-west01",
|
|
28
|
+
* },
|
|
29
|
+
* {
|
|
30
|
+
* name: "east",
|
|
31
|
+
* memberCrn: "crn://confluent.cloud/organization=org-abc/environment=env-def456/cloud-cluster=lkc-east01",
|
|
32
|
+
* },
|
|
33
|
+
* ],
|
|
34
|
+
* environmentCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123",
|
|
35
|
+
* });
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* ## Import
|
|
39
|
+
*
|
|
40
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a switchover pair.
|
|
41
|
+
*
|
|
42
|
+
* You can import a switchover pair by using the environment CRN and switchover pair ID, in the format `<Environment CRN>/<Switchover Pair ID>`. The following example shows how to import a switchover pair:
|
|
43
|
+
*
|
|
44
|
+
* ```sh
|
|
45
|
+
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
46
|
+
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
47
|
+
* $ pulumi import confluentcloud:index/switchoverPair:SwitchoverPair example crn://confluent.cloud/organization=org-abc/environment=env-abc123/sw-abc123
|
|
48
|
+
* ```
|
|
49
|
+
*
|
|
50
|
+
* On import, `activeMember` is read from the API and any value in your configuration is accepted without a planned replacement; use the currently active member (or `firstActive`) for clarity.
|
|
51
|
+
*
|
|
52
|
+
* > **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
53
|
+
*/
|
|
54
|
+
export declare class SwitchoverPair extends pulumi.CustomResource {
|
|
55
|
+
/**
|
|
56
|
+
* Get an existing SwitchoverPair resource's state with the given name, ID, and optional extra
|
|
57
|
+
* properties used to qualify the lookup.
|
|
58
|
+
*
|
|
59
|
+
* @param name The _unique_ name of the resulting resource.
|
|
60
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
61
|
+
* @param state Any extra arguments used during the lookup.
|
|
62
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
63
|
+
*/
|
|
64
|
+
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: SwitchoverPairState, opts?: pulumi.CustomResourceOptions): SwitchoverPair;
|
|
65
|
+
/**
|
|
66
|
+
* Returns true if the given object is an instance of SwitchoverPair. This is designed to work even
|
|
67
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
68
|
+
*/
|
|
69
|
+
static isInstance(obj: any): obj is SwitchoverPair;
|
|
70
|
+
/**
|
|
71
|
+
* The name of the member that is active when the pair is created; must match one of the `members[].name` values. After creation the Switchover service owns this value: it is read back from the API and always reflects the currently active member, and changing it in the configuration has no effect (no plan is produced). To change which member is active, trigger a failover through the Switchover API's `:failover` operation (for example with the Confluent CLI).
|
|
72
|
+
*/
|
|
73
|
+
readonly activeMember: pulumi.Output<string>;
|
|
74
|
+
/**
|
|
75
|
+
* A human-readable name for the switchover pair.
|
|
76
|
+
*/
|
|
77
|
+
readonly displayName: pulumi.Output<string>;
|
|
78
|
+
/**
|
|
79
|
+
* The CRN of the environment that owns this switchover pair, for example, `crn://confluent.cloud/organization=org-abc/environment=env-abc123`.
|
|
80
|
+
*/
|
|
81
|
+
readonly environmentCrn: pulumi.Output<string>;
|
|
82
|
+
/**
|
|
83
|
+
* (Required String) The failover semantics most recently applied to this pair (`PLANNED`, `UNPLANNED`, or `RESTORE`). Empty until a failover has been triggered.
|
|
84
|
+
*/
|
|
85
|
+
readonly failoverType: pulumi.Output<string>;
|
|
86
|
+
/**
|
|
87
|
+
* (Required String) The name of the member that was active when the pair was first created. Compare with `activeMember` to tell whether the pair is currently failed over.
|
|
88
|
+
*/
|
|
89
|
+
readonly firstActive: pulumi.Output<string>;
|
|
90
|
+
/**
|
|
91
|
+
* (Required Configuration Block) In addition to the arguments above, each member exports the following:
|
|
92
|
+
*/
|
|
93
|
+
readonly members: pulumi.Output<outputs.SwitchoverPairMember[]>;
|
|
94
|
+
/**
|
|
95
|
+
* (Required String) The lifecycle phase of the switchover pair, for example, `PROVISIONING`, `READY_TO_FAILOVER`, `UPDATING`, `READY_TO_RESTORE`, `FAILED`, or `DEPROVISIONING`.
|
|
96
|
+
*/
|
|
97
|
+
readonly phase: pulumi.Output<string>;
|
|
98
|
+
/**
|
|
99
|
+
* Create a SwitchoverPair resource with the given unique name, arguments, and options.
|
|
100
|
+
*
|
|
101
|
+
* @param name The _unique_ name of the resource.
|
|
102
|
+
* @param args The arguments to use to populate this resource's properties.
|
|
103
|
+
* @param opts A bag of options that control this resource's behavior.
|
|
104
|
+
*/
|
|
105
|
+
constructor(name: string, args: SwitchoverPairArgs, opts?: pulumi.CustomResourceOptions);
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Input properties used for looking up and filtering SwitchoverPair resources.
|
|
109
|
+
*/
|
|
110
|
+
export interface SwitchoverPairState {
|
|
111
|
+
/**
|
|
112
|
+
* The name of the member that is active when the pair is created; must match one of the `members[].name` values. After creation the Switchover service owns this value: it is read back from the API and always reflects the currently active member, and changing it in the configuration has no effect (no plan is produced). To change which member is active, trigger a failover through the Switchover API's `:failover` operation (for example with the Confluent CLI).
|
|
113
|
+
*/
|
|
114
|
+
activeMember?: pulumi.Input<string | undefined>;
|
|
115
|
+
/**
|
|
116
|
+
* A human-readable name for the switchover pair.
|
|
117
|
+
*/
|
|
118
|
+
displayName?: pulumi.Input<string | undefined>;
|
|
119
|
+
/**
|
|
120
|
+
* The CRN of the environment that owns this switchover pair, for example, `crn://confluent.cloud/organization=org-abc/environment=env-abc123`.
|
|
121
|
+
*/
|
|
122
|
+
environmentCrn?: pulumi.Input<string | undefined>;
|
|
123
|
+
/**
|
|
124
|
+
* (Required String) The failover semantics most recently applied to this pair (`PLANNED`, `UNPLANNED`, or `RESTORE`). Empty until a failover has been triggered.
|
|
125
|
+
*/
|
|
126
|
+
failoverType?: pulumi.Input<string | undefined>;
|
|
127
|
+
/**
|
|
128
|
+
* (Required String) The name of the member that was active when the pair was first created. Compare with `activeMember` to tell whether the pair is currently failed over.
|
|
129
|
+
*/
|
|
130
|
+
firstActive?: pulumi.Input<string | undefined>;
|
|
131
|
+
/**
|
|
132
|
+
* (Required Configuration Block) In addition to the arguments above, each member exports the following:
|
|
133
|
+
*/
|
|
134
|
+
members?: pulumi.Input<pulumi.Input<inputs.SwitchoverPairMember>[] | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* (Required String) The lifecycle phase of the switchover pair, for example, `PROVISIONING`, `READY_TO_FAILOVER`, `UPDATING`, `READY_TO_RESTORE`, `FAILED`, or `DEPROVISIONING`.
|
|
137
|
+
*/
|
|
138
|
+
phase?: pulumi.Input<string | undefined>;
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* The set of arguments for constructing a SwitchoverPair resource.
|
|
142
|
+
*/
|
|
143
|
+
export interface SwitchoverPairArgs {
|
|
144
|
+
/**
|
|
145
|
+
* The name of the member that is active when the pair is created; must match one of the `members[].name` values. After creation the Switchover service owns this value: it is read back from the API and always reflects the currently active member, and changing it in the configuration has no effect (no plan is produced). To change which member is active, trigger a failover through the Switchover API's `:failover` operation (for example with the Confluent CLI).
|
|
146
|
+
*/
|
|
147
|
+
activeMember: pulumi.Input<string>;
|
|
148
|
+
/**
|
|
149
|
+
* A human-readable name for the switchover pair.
|
|
150
|
+
*/
|
|
151
|
+
displayName: pulumi.Input<string>;
|
|
152
|
+
/**
|
|
153
|
+
* The CRN of the environment that owns this switchover pair, for example, `crn://confluent.cloud/organization=org-abc/environment=env-abc123`.
|
|
154
|
+
*/
|
|
155
|
+
environmentCrn: pulumi.Input<string>;
|
|
156
|
+
/**
|
|
157
|
+
* (Required Configuration Block) In addition to the arguments above, each member exports the following:
|
|
158
|
+
*/
|
|
159
|
+
members: pulumi.Input<pulumi.Input<inputs.SwitchoverPairMember>[]>;
|
|
160
|
+
}
|
|
161
|
+
//# sourceMappingURL=switchoverPair.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchoverPair.d.ts","sourceRoot":"","sources":["../switchoverPair.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,MAAM,gBAAgB,CAAC;AACzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK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AAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAClD;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAChD;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;IAC/C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,GAAG,SAAS,CAAC,CAAC;IAChF;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,GAAG,SAAS,CAAC,CAAC;CAC5C;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IAClC;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;IACrC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,CAAC,CAAC;CACtE"}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
3
|
+
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
4
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
5
|
+
if (k2 === undefined) k2 = k;
|
|
6
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
7
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
8
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
9
|
+
}
|
|
10
|
+
Object.defineProperty(o, k2, desc);
|
|
11
|
+
}) : (function(o, m, k, k2) {
|
|
12
|
+
if (k2 === undefined) k2 = k;
|
|
13
|
+
o[k2] = m[k];
|
|
14
|
+
}));
|
|
15
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
16
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
17
|
+
}) : function(o, v) {
|
|
18
|
+
o["default"] = v;
|
|
19
|
+
});
|
|
20
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
21
|
+
if (mod && mod.__esModule) return mod;
|
|
22
|
+
var result = {};
|
|
23
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
24
|
+
__setModuleDefault(result, mod);
|
|
25
|
+
return result;
|
|
26
|
+
};
|
|
27
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
exports.SwitchoverPair = void 0;
|
|
29
|
+
const pulumi = __importStar(require("@pulumi/pulumi"));
|
|
30
|
+
const utilities = __importStar(require("./utilities"));
|
|
31
|
+
/**
|
|
32
|
+
* [](https://docs.confluent.io/cloud/current/api.html#section/Versioning/API-Lifecycle-Policy)
|
|
33
|
+
*
|
|
34
|
+
* > **Warning:** Switchover is a preview feature. Preview features are introduced to gather customer feedback and may change based on that feedback. They are intended for evaluation and non-production use only, and are not covered by Confluent SLAs. Preview features may be discontinued at any time.
|
|
35
|
+
*
|
|
36
|
+
* `confluentcloud.SwitchoverPair` provides a switchover pair resource that models a cluster-level disaster recovery (DR) pairing between two Kafka clusters (an active member and a passive member) on Confluent Cloud.
|
|
37
|
+
*
|
|
38
|
+
* Creating a pair is asynchronous on the API side; the resource waits until the pair reaches `READY_TO_FAILOVER` (up to 30 minutes) before completing, so a `confluentcloud.SwitchoverEndpoint` created in the same apply is not rejected while the pair is still `PROVISIONING`.
|
|
39
|
+
*
|
|
40
|
+
* `activeMember` chooses which member is active when the pair is created. After that the Switchover service owns it: a failover (the Switchover API's `:failover` operation, for example `confluent switchover pair failover <id> --active-member <name>`) changes the active member on the server, and the resource reads the current value back without showing drift or forcing a replacement. Editing `activeMember` in the configuration of an existing pair has no effect — the difference is suppressed, and no plan is produced. See the complete example.
|
|
41
|
+
*
|
|
42
|
+
* ## Example Usage
|
|
43
|
+
*
|
|
44
|
+
* ```typescript
|
|
45
|
+
* import * as pulumi from "@pulumi/pulumi";
|
|
46
|
+
* import * as confluentcloud from "@pulumi/confluentcloud";
|
|
47
|
+
*
|
|
48
|
+
* const example = new confluentcloud.SwitchoverPair("example", {
|
|
49
|
+
* displayName: "prod-kafka-dr",
|
|
50
|
+
* activeMember: "west",
|
|
51
|
+
* members: [
|
|
52
|
+
* {
|
|
53
|
+
* name: "west",
|
|
54
|
+
* memberCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123/cloud-cluster=lkc-west01",
|
|
55
|
+
* },
|
|
56
|
+
* {
|
|
57
|
+
* name: "east",
|
|
58
|
+
* memberCrn: "crn://confluent.cloud/organization=org-abc/environment=env-def456/cloud-cluster=lkc-east01",
|
|
59
|
+
* },
|
|
60
|
+
* ],
|
|
61
|
+
* environmentCrn: "crn://confluent.cloud/organization=org-abc/environment=env-abc123",
|
|
62
|
+
* });
|
|
63
|
+
* ```
|
|
64
|
+
*
|
|
65
|
+
* ## Import
|
|
66
|
+
*
|
|
67
|
+
* > **Note:** `CONFLUENT_CLOUD_API_KEY` and `CONFLUENT_CLOUD_API_SECRET` environment variables must be set before importing a switchover pair.
|
|
68
|
+
*
|
|
69
|
+
* You can import a switchover pair by using the environment CRN and switchover pair ID, in the format `<Environment CRN>/<Switchover Pair ID>`. The following example shows how to import a switchover pair:
|
|
70
|
+
*
|
|
71
|
+
* ```sh
|
|
72
|
+
* $ export CONFLUENT_CLOUD_API_KEY="<cloud_api_key>"
|
|
73
|
+
* $ export CONFLUENT_CLOUD_API_SECRET="<cloud_api_secret>"
|
|
74
|
+
* $ pulumi import confluentcloud:index/switchoverPair:SwitchoverPair example crn://confluent.cloud/organization=org-abc/environment=env-abc123/sw-abc123
|
|
75
|
+
* ```
|
|
76
|
+
*
|
|
77
|
+
* On import, `activeMember` is read from the API and any value in your configuration is accepted without a planned replacement; use the currently active member (or `firstActive`) for clarity.
|
|
78
|
+
*
|
|
79
|
+
* > **Warning:** Do not forget to delete terminal command history afterwards for security purposes.
|
|
80
|
+
*/
|
|
81
|
+
class SwitchoverPair extends pulumi.CustomResource {
|
|
82
|
+
/**
|
|
83
|
+
* Get an existing SwitchoverPair resource's state with the given name, ID, and optional extra
|
|
84
|
+
* properties used to qualify the lookup.
|
|
85
|
+
*
|
|
86
|
+
* @param name The _unique_ name of the resulting resource.
|
|
87
|
+
* @param id The _unique_ provider ID of the resource to lookup.
|
|
88
|
+
* @param state Any extra arguments used during the lookup.
|
|
89
|
+
* @param opts Optional settings to control the behavior of the CustomResource.
|
|
90
|
+
*/
|
|
91
|
+
static get(name, id, state, opts) {
|
|
92
|
+
return new SwitchoverPair(name, state, { ...opts, id: id });
|
|
93
|
+
}
|
|
94
|
+
/** @internal */
|
|
95
|
+
static __pulumiType = 'confluentcloud:index/switchoverPair:SwitchoverPair';
|
|
96
|
+
/**
|
|
97
|
+
* Returns true if the given object is an instance of SwitchoverPair. This is designed to work even
|
|
98
|
+
* when multiple copies of the Pulumi SDK have been loaded into the same process.
|
|
99
|
+
*/
|
|
100
|
+
static isInstance(obj) {
|
|
101
|
+
if (obj === undefined || obj === null) {
|
|
102
|
+
return false;
|
|
103
|
+
}
|
|
104
|
+
return obj['__pulumiType'] === SwitchoverPair.__pulumiType;
|
|
105
|
+
}
|
|
106
|
+
constructor(name, argsOrState, opts) {
|
|
107
|
+
let resourceInputs = {};
|
|
108
|
+
opts = opts || {};
|
|
109
|
+
if (opts.id) {
|
|
110
|
+
const state = argsOrState;
|
|
111
|
+
resourceInputs["activeMember"] = state?.activeMember;
|
|
112
|
+
resourceInputs["displayName"] = state?.displayName;
|
|
113
|
+
resourceInputs["environmentCrn"] = state?.environmentCrn;
|
|
114
|
+
resourceInputs["failoverType"] = state?.failoverType;
|
|
115
|
+
resourceInputs["firstActive"] = state?.firstActive;
|
|
116
|
+
resourceInputs["members"] = state?.members;
|
|
117
|
+
resourceInputs["phase"] = state?.phase;
|
|
118
|
+
}
|
|
119
|
+
else {
|
|
120
|
+
const args = argsOrState;
|
|
121
|
+
if (args?.activeMember === undefined && !opts.urn) {
|
|
122
|
+
throw new Error("Missing required property 'activeMember'");
|
|
123
|
+
}
|
|
124
|
+
if (args?.displayName === undefined && !opts.urn) {
|
|
125
|
+
throw new Error("Missing required property 'displayName'");
|
|
126
|
+
}
|
|
127
|
+
if (args?.environmentCrn === undefined && !opts.urn) {
|
|
128
|
+
throw new Error("Missing required property 'environmentCrn'");
|
|
129
|
+
}
|
|
130
|
+
if (args?.members === undefined && !opts.urn) {
|
|
131
|
+
throw new Error("Missing required property 'members'");
|
|
132
|
+
}
|
|
133
|
+
resourceInputs["activeMember"] = args?.activeMember;
|
|
134
|
+
resourceInputs["displayName"] = args?.displayName;
|
|
135
|
+
resourceInputs["environmentCrn"] = args?.environmentCrn;
|
|
136
|
+
resourceInputs["members"] = args?.members;
|
|
137
|
+
resourceInputs["failoverType"] = undefined /*out*/;
|
|
138
|
+
resourceInputs["firstActive"] = undefined /*out*/;
|
|
139
|
+
resourceInputs["phase"] = undefined /*out*/;
|
|
140
|
+
}
|
|
141
|
+
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts);
|
|
142
|
+
super(SwitchoverPair.__pulumiType, name, resourceInputs, opts);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
exports.SwitchoverPair = SwitchoverPair;
|
|
146
|
+
//# sourceMappingURL=switchoverPair.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"switchoverPair.js","sourceRoot":"","sources":["../switchoverPair.ts"],"names":[],"mappings":";AAAA,sEAAsE;AACtE,iFAAiF;;;;;;;;;;;;;;;;;;;;;;;;;;AAEjF,uDAAyC;AAGzC,uDAAyC;AAEzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,MAAa,cAAe,SAAQ,MAAM,CAAC,cAAc;IACrD;;;;;;;;OAQG;IACI,MAAM,CAAC,GAAG,CAAC,IAAY,EAAE,EAA2B,EAAE,KAA2B,EAAE,IAAmC;QACzH,OAAO,IAAI,cAAc,CAAC,IAAI,EAAO,KAAK,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;IACrE,CAAC;IAED,gBAAgB;IACT,MAAM,CAAU,YAAY,GAAG,oDAAoD,CAAC;IAE3F;;;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,cAAc,CAAC,YAAY,CAAC;IAC/D,CAAC;IAuCD,YAAY,IAAY,EAAE,WAAsD,EAAE,IAAmC;QACjH,IAAI,cAAc,GAAkB,EAAE,CAAC;QACvC,IAAI,GAAG,IAAI,IAAI,EAAE,CAAC;QAClB,IAAI,IAAI,CAAC,EAAE,EAAE;YACT,MAAM,KAAK,GAAG,WAA8C,CAAC;YAC7D,cAAc,CAAC,cAAc,CAAC,GAAG,KAAK,EAAE,YAAY,CAAC;YACrD,cAAc,CAAC,aAAa,CAAC,GAAG,KAAK,EAAE,WAAW,CAAC;YACnD,cAAc,CAAC,gBAAgB,CAAC,GAAG,KAAK,EAAE,cAAc,C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CAAC,GAAG,SAAS,CAAC,OAAO,CAAC;SAC/C;QACD,IAAI,GAAG,MAAM,CAAC,YAAY,CAAC,SAAS,CAAC,oBAAoB,EAAE,EAAE,IAAI,CAAC,CAAC;QACnE,KAAK,CAAC,cAAc,CAAC,YAAY,EAAE,IAAI,EAAE,cAAc,EAAE,IAAI,CAAC,CAAC;IACnE,CAAC;;AArGL,wCAsGC"}
|
package/types/input.d.ts
CHANGED
|
@@ -3734,6 +3734,64 @@ export interface SubjectModeSchemaRegistryCluster {
|
|
|
3734
3734
|
*/
|
|
3735
3735
|
id: pulumi.Input<string>;
|
|
3736
3736
|
}
|
|
3737
|
+
export interface SwitchoverEndpointEndpoint {
|
|
3738
|
+
/**
|
|
3739
|
+
* (Required String) The cloud provider this endpoint resolves to.
|
|
3740
|
+
*/
|
|
3741
|
+
cloud?: pulumi.Input<string | undefined>;
|
|
3742
|
+
/**
|
|
3743
|
+
* (Required String) The connection type this endpoint resolves to.
|
|
3744
|
+
*/
|
|
3745
|
+
connectionType?: pulumi.Input<string | undefined>;
|
|
3746
|
+
/**
|
|
3747
|
+
* Filter criteria that identify a network endpoint for this side of the pair. Supports the following:
|
|
3748
|
+
*/
|
|
3749
|
+
endpointFilter: pulumi.Input<inputs.SwitchoverEndpointEndpointEndpointFilter>;
|
|
3750
|
+
/**
|
|
3751
|
+
* (Required String) The resolved hostname for this endpoint.
|
|
3752
|
+
*/
|
|
3753
|
+
hostname?: pulumi.Input<string | undefined>;
|
|
3754
|
+
/**
|
|
3755
|
+
* A logical name for this endpoint side (for example, `west-platt`), unique within the resource.
|
|
3756
|
+
*/
|
|
3757
|
+
name: pulumi.Input<string>;
|
|
3758
|
+
/**
|
|
3759
|
+
* (Required String) The cloud region this endpoint resolves to.
|
|
3760
|
+
*/
|
|
3761
|
+
region?: pulumi.Input<string | undefined>;
|
|
3762
|
+
}
|
|
3763
|
+
export interface SwitchoverEndpointEndpointEndpointFilter {
|
|
3764
|
+
/**
|
|
3765
|
+
* The CRN of the network access point, for access-point (PNI) endpoints.
|
|
3766
|
+
*/
|
|
3767
|
+
accessPointCrn?: pulumi.Input<string | undefined>;
|
|
3768
|
+
/**
|
|
3769
|
+
* The CRN of the network, for network-based private endpoints.
|
|
3770
|
+
*/
|
|
3771
|
+
networkCrn?: pulumi.Input<string | undefined>;
|
|
3772
|
+
/**
|
|
3773
|
+
* Whether the endpoint is `private` or `public`.
|
|
3774
|
+
*/
|
|
3775
|
+
type: pulumi.Input<string>;
|
|
3776
|
+
}
|
|
3777
|
+
export interface SwitchoverPairMember {
|
|
3778
|
+
/**
|
|
3779
|
+
* (Required String) The cloud provider of the member's cluster.
|
|
3780
|
+
*/
|
|
3781
|
+
cloud?: pulumi.Input<string | undefined>;
|
|
3782
|
+
/**
|
|
3783
|
+
* The CRN of the cluster this member represents, for example, `crn://confluent.cloud/organization=org-abc/environment=env-abc123/cloud-cluster=lkc-west01`. The CRN carries the member's own environment, so the two members may live in different environments.
|
|
3784
|
+
*/
|
|
3785
|
+
memberCrn: pulumi.Input<string>;
|
|
3786
|
+
/**
|
|
3787
|
+
* A logical name for this member (for example, `west` or `east`), unique within the pair.
|
|
3788
|
+
*/
|
|
3789
|
+
name: pulumi.Input<string>;
|
|
3790
|
+
/**
|
|
3791
|
+
* (Required String) The cloud region of the member's cluster.
|
|
3792
|
+
*/
|
|
3793
|
+
region?: pulumi.Input<string | undefined>;
|
|
3794
|
+
}
|
|
3737
3795
|
export interface TableflowTopicAzureDataLakeStorageGen2 {
|
|
3738
3796
|
/**
|
|
3739
3797
|
* The container name.
|