@aws-sdk/client-appconfig 3.1075.0 → 3.1077.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/README.md +108 -107
- package/dist-cjs/index.js +1826 -15
- package/dist-es/AppConfig.js +28 -0
- package/dist-es/commands/CreateExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/DeleteExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/GetExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/GetExperimentRunCommand.js +16 -0
- package/dist-es/commands/ListExperimentDefinitionsCommand.js +16 -0
- package/dist-es/commands/ListExperimentRunEventsCommand.js +16 -0
- package/dist-es/commands/ListExperimentRunsCommand.js +16 -0
- package/dist-es/commands/StartExperimentRunCommand.js +16 -0
- package/dist-es/commands/StopExperimentRunCommand.js +16 -0
- package/dist-es/commands/UpdateExperimentDefinitionCommand.js +16 -0
- package/dist-es/commands/UpdateExperimentRunCommand.js +16 -0
- package/dist-es/commands/index.js +11 -0
- package/dist-es/models/enums.js +23 -0
- package/dist-es/pagination/ListExperimentDefinitionsPaginator.js +4 -0
- package/dist-es/pagination/ListExperimentRunEventsPaginator.js +4 -0
- package/dist-es/pagination/ListExperimentRunsPaginator.js +4 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/runtimeConfig.browser.js +0 -2
- package/dist-es/runtimeConfig.js +1 -2
- package/dist-es/runtimeConfig.native.js +0 -2
- package/dist-es/runtimeConfig.shared.js +2 -0
- package/dist-es/schemas/schemas_0.js +328 -49
- package/dist-types/AppConfig.d.ts +130 -107
- package/dist-types/AppConfigClient.d.ts +44 -109
- package/dist-types/commands/CreateApplicationCommand.d.ts +0 -3
- package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +0 -3
- package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +0 -3
- package/dist-types/commands/CreateEnvironmentCommand.d.ts +0 -3
- package/dist-types/commands/CreateExperimentDefinitionCommand.d.ts +266 -0
- package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +0 -3
- package/dist-types/commands/CreateExtensionCommand.d.ts +0 -3
- package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +1 -4
- package/dist-types/commands/DeleteExperimentDefinitionCommand.d.ts +103 -0
- package/dist-types/commands/GetAccountSettingsCommand.d.ts +3 -0
- package/dist-types/commands/GetExperimentDefinitionCommand.d.ts +184 -0
- package/dist-types/commands/GetExperimentRunCommand.d.ts +209 -0
- package/dist-types/commands/ListDeploymentsCommand.d.ts +2 -0
- package/dist-types/commands/ListExperimentDefinitionsCommand.d.ts +131 -0
- package/dist-types/commands/ListExperimentRunEventsCommand.d.ts +136 -0
- package/dist-types/commands/ListExperimentRunsCommand.d.ts +125 -0
- package/dist-types/commands/StartDeploymentCommand.d.ts +5 -0
- package/dist-types/commands/StartExperimentRunCommand.d.ts +230 -0
- package/dist-types/commands/StopExperimentRunCommand.d.ts +231 -0
- package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +6 -0
- package/dist-types/commands/UpdateExperimentDefinitionCommand.d.ts +237 -0
- package/dist-types/commands/UpdateExperimentRunCommand.d.ts +229 -0
- package/dist-types/commands/index.d.ts +11 -0
- package/dist-types/index.d.ts +31 -107
- package/dist-types/models/enums.d.ts +63 -0
- package/dist-types/models/errors.d.ts +0 -3
- package/dist-types/models/models_0.d.ts +1080 -37
- package/dist-types/pagination/ListExperimentDefinitionsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExperimentRunEventsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListExperimentRunsPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/runtimeConfig.browser.d.ts +2 -2
- package/dist-types/runtimeConfig.d.ts +2 -2
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/schemas/schemas_0.d.ts +39 -0
- package/dist-types/ts3.4/AppConfig.d.ts +209 -0
- package/dist-types/ts3.4/AppConfigClient.d.ts +66 -0
- package/dist-types/ts3.4/commands/CreateExperimentDefinitionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/DeleteExperimentDefinitionCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/GetExperimentDefinitionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/GetExperimentRunCommand.d.ts +49 -0
- package/dist-types/ts3.4/commands/ListExperimentDefinitionsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListExperimentRunEventsCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/ListExperimentRunsCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StartExperimentRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/StopExperimentRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/UpdateExperimentDefinitionCommand.d.ts +53 -0
- package/dist-types/ts3.4/commands/UpdateExperimentRunCommand.d.ts +50 -0
- package/dist-types/ts3.4/commands/index.d.ts +11 -0
- package/dist-types/ts3.4/models/enums.d.ts +32 -0
- package/dist-types/ts3.4/models/models_0.d.ts +292 -0
- package/dist-types/ts3.4/pagination/ListExperimentDefinitionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExperimentRunEventsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListExperimentRunsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
- package/dist-types/ts3.4/schemas/schemas_0.d.ts +39 -0
- package/package.json +8 -10
- package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
- package/dist-cjs/endpoint/bdd.js +0 -52
- package/dist-cjs/endpoint/endpointResolver.js +0 -14
- package/dist-cjs/models/AppConfigServiceException.js +0 -8
- package/dist-cjs/models/errors.js +0 -97
- package/dist-cjs/runtimeConfig.browser.js +0 -32
- package/dist-cjs/runtimeConfig.js +0 -45
- package/dist-cjs/runtimeConfig.native.js +0 -12
- package/dist-cjs/runtimeConfig.shared.js +0 -38
- package/dist-cjs/schemas/schemas_0.js +0 -980
|
@@ -0,0 +1,231 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigClient";
|
|
4
|
+
import type { ExperimentRun, StopExperimentRunRequest } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link StopExperimentRunCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface StopExperimentRunCommandInput extends StopExperimentRunRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link StopExperimentRunCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface StopExperimentRunCommandOutput extends ExperimentRun, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const StopExperimentRunCommand_base: {
|
|
25
|
+
new (input: StopExperimentRunCommandInput): import("@smithy/core/client").CommandImpl<StopExperimentRunCommandInput, StopExperimentRunCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: StopExperimentRunCommandInput): import("@smithy/core/client").CommandImpl<StopExperimentRunCommandInput, StopExperimentRunCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Stops a running experiment. Stopping an experiment run ends audience exposure and returns users to the currently deployed feature flag configuration.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { AppConfigClient, StopExperimentRunCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
|
|
37
|
+
* // const { AppConfigClient, StopExperimentRunCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
|
|
38
|
+
* // import type { AppConfigClientConfig } from "@aws-sdk/client-appconfig";
|
|
39
|
+
* const config = {}; // type is AppConfigClientConfig
|
|
40
|
+
* const client = new AppConfigClient(config);
|
|
41
|
+
* const input = { // StopExperimentRunRequest
|
|
42
|
+
* ApplicationIdentifier: "STRING_VALUE", // required
|
|
43
|
+
* ExperimentDefinitionIdentifier: "STRING_VALUE", // required
|
|
44
|
+
* Run: Number("int"), // required
|
|
45
|
+
* Result: { // ExperimentRunResult
|
|
46
|
+
* ExecutiveSummary: "STRING_VALUE",
|
|
47
|
+
* ReasonsToLaunch: "STRING_VALUE",
|
|
48
|
+
* ReasonsNotToLaunch: "STRING_VALUE",
|
|
49
|
+
* },
|
|
50
|
+
* DeploymentParameters: { // DeploymentParameters
|
|
51
|
+
* DynamicExtensionParameters: { // DynamicParameterMap
|
|
52
|
+
* "<keys>": "STRING_VALUE",
|
|
53
|
+
* },
|
|
54
|
+
* Tags: { // TagMap
|
|
55
|
+
* "<keys>": "STRING_VALUE",
|
|
56
|
+
* },
|
|
57
|
+
* },
|
|
58
|
+
* };
|
|
59
|
+
* const command = new StopExperimentRunCommand(input);
|
|
60
|
+
* const response = await client.send(command);
|
|
61
|
+
* // { // ExperimentRun
|
|
62
|
+
* // ApplicationId: "STRING_VALUE",
|
|
63
|
+
* // ExperimentDefinitionId: "STRING_VALUE",
|
|
64
|
+
* // Run: Number("int"),
|
|
65
|
+
* // Description: "STRING_VALUE",
|
|
66
|
+
* // Status: "RUNNING" || "DONE",
|
|
67
|
+
* // ExposurePercentage: Number("float"),
|
|
68
|
+
* // TreatmentOverrides: { // TreatmentOverrides Union: only one key present
|
|
69
|
+
* // Inline: { // TreatmentOverrideMap
|
|
70
|
+
* // "<keys>": "STRING_VALUE",
|
|
71
|
+
* // },
|
|
72
|
+
* // },
|
|
73
|
+
* // Result: { // ExperimentRunResult
|
|
74
|
+
* // ExecutiveSummary: "STRING_VALUE",
|
|
75
|
+
* // ReasonsToLaunch: "STRING_VALUE",
|
|
76
|
+
* // ReasonsNotToLaunch: "STRING_VALUE",
|
|
77
|
+
* // },
|
|
78
|
+
* // StartedAt: new Date("TIMESTAMP"),
|
|
79
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
80
|
+
* // EndedAt: new Date("TIMESTAMP"),
|
|
81
|
+
* // ExperimentDefinitionSnapshot: { // ExperimentDefinitionSnapshot
|
|
82
|
+
* // ApplicationId: "STRING_VALUE",
|
|
83
|
+
* // Id: "STRING_VALUE",
|
|
84
|
+
* // Name: "STRING_VALUE",
|
|
85
|
+
* // Hypothesis: "STRING_VALUE",
|
|
86
|
+
* // ConfigurationProfileId: "STRING_VALUE",
|
|
87
|
+
* // EnvironmentId: "STRING_VALUE",
|
|
88
|
+
* // FlagKey: "STRING_VALUE",
|
|
89
|
+
* // AudienceRule: "STRING_VALUE",
|
|
90
|
+
* // AudienceDescription: "STRING_VALUE",
|
|
91
|
+
* // LaunchCriteria: "STRING_VALUE",
|
|
92
|
+
* // Treatments: [ // TreatmentList
|
|
93
|
+
* // { // Treatment
|
|
94
|
+
* // Key: "STRING_VALUE",
|
|
95
|
+
* // Weight: Number("float"), // required
|
|
96
|
+
* // Description: "STRING_VALUE",
|
|
97
|
+
* // FlagValue: { // FlagValue
|
|
98
|
+
* // Enabled: true || false, // required
|
|
99
|
+
* // AttributeValues: { // AttributeValueMap
|
|
100
|
+
* // "<keys>": { // AttributeValue Union: only one key present
|
|
101
|
+
* // StringValue: "STRING_VALUE",
|
|
102
|
+
* // NumberValue: Number("double"),
|
|
103
|
+
* // BooleanValue: true || false,
|
|
104
|
+
* // StringArray: [ // StringList
|
|
105
|
+
* // "STRING_VALUE",
|
|
106
|
+
* // ],
|
|
107
|
+
* // NumberArray: [ // NumberList
|
|
108
|
+
* // Number("double"),
|
|
109
|
+
* // ],
|
|
110
|
+
* // },
|
|
111
|
+
* // },
|
|
112
|
+
* // },
|
|
113
|
+
* // },
|
|
114
|
+
* // ],
|
|
115
|
+
* // Control: {
|
|
116
|
+
* // Key: "STRING_VALUE",
|
|
117
|
+
* // Weight: Number("float"), // required
|
|
118
|
+
* // Description: "STRING_VALUE",
|
|
119
|
+
* // FlagValue: {
|
|
120
|
+
* // Enabled: true || false, // required
|
|
121
|
+
* // AttributeValues: {
|
|
122
|
+
* // "<keys>": {// Union: only one key present
|
|
123
|
+
* // StringValue: "STRING_VALUE",
|
|
124
|
+
* // NumberValue: Number("double"),
|
|
125
|
+
* // BooleanValue: true || false,
|
|
126
|
+
* // StringArray: [
|
|
127
|
+
* // "STRING_VALUE",
|
|
128
|
+
* // ],
|
|
129
|
+
* // NumberArray: [
|
|
130
|
+
* // Number("double"),
|
|
131
|
+
* // ],
|
|
132
|
+
* // },
|
|
133
|
+
* // },
|
|
134
|
+
* // },
|
|
135
|
+
* // },
|
|
136
|
+
* // },
|
|
137
|
+
* // };
|
|
138
|
+
*
|
|
139
|
+
* ```
|
|
140
|
+
*
|
|
141
|
+
* @param StopExperimentRunCommandInput - {@link StopExperimentRunCommandInput}
|
|
142
|
+
* @returns {@link StopExperimentRunCommandOutput}
|
|
143
|
+
* @see {@link StopExperimentRunCommandInput} for command's `input` shape.
|
|
144
|
+
* @see {@link StopExperimentRunCommandOutput} for command's `response` shape.
|
|
145
|
+
* @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
|
|
146
|
+
*
|
|
147
|
+
* @throws {@link BadRequestException} (client fault)
|
|
148
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
149
|
+
*
|
|
150
|
+
* @throws {@link InternalServerException} (server fault)
|
|
151
|
+
* <p>There was an internal failure in the AppConfig service.</p>
|
|
152
|
+
*
|
|
153
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
154
|
+
* <p>The requested resource could not be found.</p>
|
|
155
|
+
*
|
|
156
|
+
* @throws {@link AppConfigServiceException}
|
|
157
|
+
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
158
|
+
*
|
|
159
|
+
*
|
|
160
|
+
* @example To stop an experiment run
|
|
161
|
+
* ```javascript
|
|
162
|
+
* // The following StopExperimentRun example stops a running experiment and records the result.
|
|
163
|
+
* const input = {
|
|
164
|
+
* ApplicationIdentifier: "339ohji",
|
|
165
|
+
* ExperimentDefinitionIdentifier: "bsxyd7k",
|
|
166
|
+
* Result: {
|
|
167
|
+
* ExecutiveSummary: "t1 wins with 16% lift in conversion",
|
|
168
|
+
* ReasonsToLaunch: "Significant improvement in key metric"
|
|
169
|
+
* },
|
|
170
|
+
* Run: 1
|
|
171
|
+
* };
|
|
172
|
+
* const command = new StopExperimentRunCommand(input);
|
|
173
|
+
* const response = await client.send(command);
|
|
174
|
+
* /* response is
|
|
175
|
+
* {
|
|
176
|
+
* ApplicationId: "339ohji",
|
|
177
|
+
* EndedAt: "2026-06-16T17:57:36.083Z",
|
|
178
|
+
* ExperimentDefinitionId: "bsxyd7k",
|
|
179
|
+
* ExperimentDefinitionSnapshot: {
|
|
180
|
+
* ApplicationId: "339ohji",
|
|
181
|
+
* AudienceRule: `(eq $country "US")`,
|
|
182
|
+
* ConfigurationProfileId: "ur8hx2f",
|
|
183
|
+
* Control: {
|
|
184
|
+
* FlagValue: {
|
|
185
|
+
* Enabled: false
|
|
186
|
+
* },
|
|
187
|
+
* Key: "c",
|
|
188
|
+
* Weight: 50.0
|
|
189
|
+
* },
|
|
190
|
+
* EnvironmentId: "54j1r29",
|
|
191
|
+
* FlagKey: "my-feature-flag",
|
|
192
|
+
* Id: "bsxyd7k",
|
|
193
|
+
* Name: "Example-Experiment-Definition",
|
|
194
|
+
* Treatments: [
|
|
195
|
+
* {
|
|
196
|
+
* FlagValue: {
|
|
197
|
+
* Enabled: true
|
|
198
|
+
* },
|
|
199
|
+
* Key: "t1",
|
|
200
|
+
* Weight: 50.0
|
|
201
|
+
* }
|
|
202
|
+
* ]
|
|
203
|
+
* },
|
|
204
|
+
* ExposurePercentage: 50.0,
|
|
205
|
+
* Result: {
|
|
206
|
+
* ExecutiveSummary: "t1 wins with 16% lift in conversion",
|
|
207
|
+
* ReasonsToLaunch: "Significant improvement in key metric"
|
|
208
|
+
* },
|
|
209
|
+
* Run: 1,
|
|
210
|
+
* StartedAt: "2026-06-16T17:57:10.046Z",
|
|
211
|
+
* Status: "DONE",
|
|
212
|
+
* UpdatedAt: "2026-06-16T17:57:36.083Z"
|
|
213
|
+
* }
|
|
214
|
+
* *\/
|
|
215
|
+
* ```
|
|
216
|
+
*
|
|
217
|
+
* @public
|
|
218
|
+
*/
|
|
219
|
+
export declare class StopExperimentRunCommand extends StopExperimentRunCommand_base {
|
|
220
|
+
/** @internal type navigation helper, not in runtime. */
|
|
221
|
+
protected static __types: {
|
|
222
|
+
api: {
|
|
223
|
+
input: StopExperimentRunRequest;
|
|
224
|
+
output: ExperimentRun;
|
|
225
|
+
};
|
|
226
|
+
sdk: {
|
|
227
|
+
input: StopExperimentRunCommandInput;
|
|
228
|
+
output: StopExperimentRunCommandOutput;
|
|
229
|
+
};
|
|
230
|
+
};
|
|
231
|
+
}
|
|
@@ -43,6 +43,9 @@ declare const UpdateAccountSettingsCommand_base: {
|
|
|
43
43
|
* Enabled: true || false,
|
|
44
44
|
* ProtectionPeriodInMinutes: Number("int"),
|
|
45
45
|
* },
|
|
46
|
+
* VendedMetrics: { // VendedMetricsSettings
|
|
47
|
+
* Enabled: true || false,
|
|
48
|
+
* },
|
|
46
49
|
* };
|
|
47
50
|
* const command = new UpdateAccountSettingsCommand(input);
|
|
48
51
|
* const response = await client.send(command);
|
|
@@ -51,6 +54,9 @@ declare const UpdateAccountSettingsCommand_base: {
|
|
|
51
54
|
* // Enabled: true || false,
|
|
52
55
|
* // ProtectionPeriodInMinutes: Number("int"),
|
|
53
56
|
* // },
|
|
57
|
+
* // VendedMetrics: { // VendedMetricsSettings
|
|
58
|
+
* // Enabled: true || false,
|
|
59
|
+
* // },
|
|
54
60
|
* // };
|
|
55
61
|
*
|
|
56
62
|
* ```
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/core/client";
|
|
2
|
+
import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import type { AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../AppConfigClient";
|
|
4
|
+
import type { ExperimentDefinition, UpdateExperimentDefinitionRequest } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateExperimentDefinitionCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateExperimentDefinitionCommandInput extends UpdateExperimentDefinitionRequest {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateExperimentDefinitionCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateExperimentDefinitionCommandOutput extends ExperimentDefinition, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateExperimentDefinitionCommand_base: {
|
|
25
|
+
new (input: UpdateExperimentDefinitionCommandInput): import("@smithy/core/client").CommandImpl<UpdateExperimentDefinitionCommandInput, UpdateExperimentDefinitionCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (input: UpdateExperimentDefinitionCommandInput): import("@smithy/core/client").CommandImpl<UpdateExperimentDefinitionCommandInput, UpdateExperimentDefinitionCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): {
|
|
28
|
+
[x: string]: unknown;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* <p>Updates an experiment definition. You can update treatments, the control, audience rules, and other properties. You cannot update an experiment definition while an experiment run is active.</p>
|
|
33
|
+
* @example
|
|
34
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
35
|
+
* ```javascript
|
|
36
|
+
* import { AppConfigClient, UpdateExperimentDefinitionCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
|
|
37
|
+
* // const { AppConfigClient, UpdateExperimentDefinitionCommand } = require("@aws-sdk/client-appconfig"); // CommonJS import
|
|
38
|
+
* // import type { AppConfigClientConfig } from "@aws-sdk/client-appconfig";
|
|
39
|
+
* const config = {}; // type is AppConfigClientConfig
|
|
40
|
+
* const client = new AppConfigClient(config);
|
|
41
|
+
* const input = { // UpdateExperimentDefinitionRequest
|
|
42
|
+
* ApplicationIdentifier: "STRING_VALUE", // required
|
|
43
|
+
* ExperimentDefinitionIdentifier: "STRING_VALUE", // required
|
|
44
|
+
* Treatments: [ // TreatmentInputList
|
|
45
|
+
* { // TreatmentInput
|
|
46
|
+
* Weight: Number("float"), // required
|
|
47
|
+
* Description: "STRING_VALUE",
|
|
48
|
+
* FlagValue: { // FlagValue
|
|
49
|
+
* Enabled: true || false, // required
|
|
50
|
+
* AttributeValues: { // AttributeValueMap
|
|
51
|
+
* "<keys>": { // AttributeValue Union: only one key present
|
|
52
|
+
* StringValue: "STRING_VALUE",
|
|
53
|
+
* NumberValue: Number("double"),
|
|
54
|
+
* BooleanValue: true || false,
|
|
55
|
+
* StringArray: [ // StringList
|
|
56
|
+
* "STRING_VALUE",
|
|
57
|
+
* ],
|
|
58
|
+
* NumberArray: [ // NumberList
|
|
59
|
+
* Number("double"),
|
|
60
|
+
* ],
|
|
61
|
+
* },
|
|
62
|
+
* },
|
|
63
|
+
* },
|
|
64
|
+
* },
|
|
65
|
+
* ],
|
|
66
|
+
* Control: {
|
|
67
|
+
* Weight: Number("float"), // required
|
|
68
|
+
* Description: "STRING_VALUE",
|
|
69
|
+
* FlagValue: {
|
|
70
|
+
* Enabled: true || false, // required
|
|
71
|
+
* AttributeValues: {
|
|
72
|
+
* "<keys>": {// Union: only one key present
|
|
73
|
+
* StringValue: "STRING_VALUE",
|
|
74
|
+
* NumberValue: Number("double"),
|
|
75
|
+
* BooleanValue: true || false,
|
|
76
|
+
* StringArray: [
|
|
77
|
+
* "STRING_VALUE",
|
|
78
|
+
* ],
|
|
79
|
+
* NumberArray: [
|
|
80
|
+
* Number("double"),
|
|
81
|
+
* ],
|
|
82
|
+
* },
|
|
83
|
+
* },
|
|
84
|
+
* },
|
|
85
|
+
* },
|
|
86
|
+
* Hypothesis: "STRING_VALUE",
|
|
87
|
+
* AudienceRule: "STRING_VALUE",
|
|
88
|
+
* AudienceDescription: "STRING_VALUE",
|
|
89
|
+
* LaunchCriteria: "STRING_VALUE",
|
|
90
|
+
* };
|
|
91
|
+
* const command = new UpdateExperimentDefinitionCommand(input);
|
|
92
|
+
* const response = await client.send(command);
|
|
93
|
+
* // { // ExperimentDefinition
|
|
94
|
+
* // ApplicationId: "STRING_VALUE",
|
|
95
|
+
* // Id: "STRING_VALUE",
|
|
96
|
+
* // Name: "STRING_VALUE",
|
|
97
|
+
* // Hypothesis: "STRING_VALUE",
|
|
98
|
+
* // Status: "ACTIVE" || "IDLE" || "ARCHIVED",
|
|
99
|
+
* // ConfigurationProfileId: "STRING_VALUE",
|
|
100
|
+
* // EnvironmentId: "STRING_VALUE",
|
|
101
|
+
* // FlagKey: "STRING_VALUE",
|
|
102
|
+
* // AudienceRule: "STRING_VALUE",
|
|
103
|
+
* // AudienceDescription: "STRING_VALUE",
|
|
104
|
+
* // LaunchCriteria: "STRING_VALUE",
|
|
105
|
+
* // Treatments: [ // TreatmentList
|
|
106
|
+
* // { // Treatment
|
|
107
|
+
* // Key: "STRING_VALUE",
|
|
108
|
+
* // Weight: Number("float"), // required
|
|
109
|
+
* // Description: "STRING_VALUE",
|
|
110
|
+
* // FlagValue: { // FlagValue
|
|
111
|
+
* // Enabled: true || false, // required
|
|
112
|
+
* // AttributeValues: { // AttributeValueMap
|
|
113
|
+
* // "<keys>": { // AttributeValue Union: only one key present
|
|
114
|
+
* // StringValue: "STRING_VALUE",
|
|
115
|
+
* // NumberValue: Number("double"),
|
|
116
|
+
* // BooleanValue: true || false,
|
|
117
|
+
* // StringArray: [ // StringList
|
|
118
|
+
* // "STRING_VALUE",
|
|
119
|
+
* // ],
|
|
120
|
+
* // NumberArray: [ // NumberList
|
|
121
|
+
* // Number("double"),
|
|
122
|
+
* // ],
|
|
123
|
+
* // },
|
|
124
|
+
* // },
|
|
125
|
+
* // },
|
|
126
|
+
* // },
|
|
127
|
+
* // ],
|
|
128
|
+
* // Control: {
|
|
129
|
+
* // Key: "STRING_VALUE",
|
|
130
|
+
* // Weight: Number("float"), // required
|
|
131
|
+
* // Description: "STRING_VALUE",
|
|
132
|
+
* // FlagValue: {
|
|
133
|
+
* // Enabled: true || false, // required
|
|
134
|
+
* // AttributeValues: {
|
|
135
|
+
* // "<keys>": {// Union: only one key present
|
|
136
|
+
* // StringValue: "STRING_VALUE",
|
|
137
|
+
* // NumberValue: Number("double"),
|
|
138
|
+
* // BooleanValue: true || false,
|
|
139
|
+
* // StringArray: [
|
|
140
|
+
* // "STRING_VALUE",
|
|
141
|
+
* // ],
|
|
142
|
+
* // NumberArray: [
|
|
143
|
+
* // Number("double"),
|
|
144
|
+
* // ],
|
|
145
|
+
* // },
|
|
146
|
+
* // },
|
|
147
|
+
* // },
|
|
148
|
+
* // },
|
|
149
|
+
* // CreatedAt: new Date("TIMESTAMP"),
|
|
150
|
+
* // UpdatedAt: new Date("TIMESTAMP"),
|
|
151
|
+
* // KmsKeyIdentifier: "STRING_VALUE",
|
|
152
|
+
* // };
|
|
153
|
+
*
|
|
154
|
+
* ```
|
|
155
|
+
*
|
|
156
|
+
* @param UpdateExperimentDefinitionCommandInput - {@link UpdateExperimentDefinitionCommandInput}
|
|
157
|
+
* @returns {@link UpdateExperimentDefinitionCommandOutput}
|
|
158
|
+
* @see {@link UpdateExperimentDefinitionCommandInput} for command's `input` shape.
|
|
159
|
+
* @see {@link UpdateExperimentDefinitionCommandOutput} for command's `response` shape.
|
|
160
|
+
* @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
|
|
161
|
+
*
|
|
162
|
+
* @throws {@link BadRequestException} (client fault)
|
|
163
|
+
* <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
164
|
+
*
|
|
165
|
+
* @throws {@link ConflictException} (client fault)
|
|
166
|
+
* <p>The request could not be processed because of conflict in the current state of the
|
|
167
|
+
* resource.</p>
|
|
168
|
+
*
|
|
169
|
+
* @throws {@link InternalServerException} (server fault)
|
|
170
|
+
* <p>There was an internal failure in the AppConfig service.</p>
|
|
171
|
+
*
|
|
172
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
173
|
+
* <p>The requested resource could not be found.</p>
|
|
174
|
+
*
|
|
175
|
+
* @throws {@link AppConfigServiceException}
|
|
176
|
+
* <p>Base exception class for all service exceptions from AppConfig service.</p>
|
|
177
|
+
*
|
|
178
|
+
*
|
|
179
|
+
* @example To update an experiment definition
|
|
180
|
+
* ```javascript
|
|
181
|
+
* // The following UpdateExperimentDefinition example updates the hypothesis and audience rule of an experiment definition.
|
|
182
|
+
* const input = {
|
|
183
|
+
* ApplicationIdentifier: "339ohji",
|
|
184
|
+
* AudienceRule: `(eq $country "US")`,
|
|
185
|
+
* ExperimentDefinitionIdentifier: "bsxyd7k",
|
|
186
|
+
* Hypothesis: "Enabling the feature will increase conversion by 10%"
|
|
187
|
+
* };
|
|
188
|
+
* const command = new UpdateExperimentDefinitionCommand(input);
|
|
189
|
+
* const response = await client.send(command);
|
|
190
|
+
* /* response is
|
|
191
|
+
* {
|
|
192
|
+
* ApplicationId: "339ohji",
|
|
193
|
+
* AudienceRule: `(eq $country "US")`,
|
|
194
|
+
* ConfigurationProfileId: "ur8hx2f",
|
|
195
|
+
* Control: {
|
|
196
|
+
* FlagValue: {
|
|
197
|
+
* Enabled: false
|
|
198
|
+
* },
|
|
199
|
+
* Key: "c",
|
|
200
|
+
* Weight: 50.0
|
|
201
|
+
* },
|
|
202
|
+
* CreatedAt: "2026-06-16T17:54:55.847Z",
|
|
203
|
+
* EnvironmentId: "54j1r29",
|
|
204
|
+
* FlagKey: "my-feature-flag",
|
|
205
|
+
* Hypothesis: "Enabling the feature will increase conversion by 10%",
|
|
206
|
+
* Id: "bsxyd7k",
|
|
207
|
+
* Name: "Example-Experiment-Definition",
|
|
208
|
+
* Status: "IDLE",
|
|
209
|
+
* Treatments: [
|
|
210
|
+
* {
|
|
211
|
+
* FlagValue: {
|
|
212
|
+
* Enabled: true
|
|
213
|
+
* },
|
|
214
|
+
* Key: "t1",
|
|
215
|
+
* Weight: 50.0
|
|
216
|
+
* }
|
|
217
|
+
* ],
|
|
218
|
+
* UpdatedAt: "2026-06-16T18:04:33.632Z"
|
|
219
|
+
* }
|
|
220
|
+
* *\/
|
|
221
|
+
* ```
|
|
222
|
+
*
|
|
223
|
+
* @public
|
|
224
|
+
*/
|
|
225
|
+
export declare class UpdateExperimentDefinitionCommand extends UpdateExperimentDefinitionCommand_base {
|
|
226
|
+
/** @internal type navigation helper, not in runtime. */
|
|
227
|
+
protected static __types: {
|
|
228
|
+
api: {
|
|
229
|
+
input: UpdateExperimentDefinitionRequest;
|
|
230
|
+
output: ExperimentDefinition;
|
|
231
|
+
};
|
|
232
|
+
sdk: {
|
|
233
|
+
input: UpdateExperimentDefinitionCommandInput;
|
|
234
|
+
output: UpdateExperimentDefinitionCommandOutput;
|
|
235
|
+
};
|
|
236
|
+
};
|
|
237
|
+
}
|