@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.
Files changed (99) hide show
  1. package/README.md +108 -107
  2. package/dist-cjs/index.js +1826 -15
  3. package/dist-es/AppConfig.js +28 -0
  4. package/dist-es/commands/CreateExperimentDefinitionCommand.js +16 -0
  5. package/dist-es/commands/DeleteExperimentDefinitionCommand.js +16 -0
  6. package/dist-es/commands/GetExperimentDefinitionCommand.js +16 -0
  7. package/dist-es/commands/GetExperimentRunCommand.js +16 -0
  8. package/dist-es/commands/ListExperimentDefinitionsCommand.js +16 -0
  9. package/dist-es/commands/ListExperimentRunEventsCommand.js +16 -0
  10. package/dist-es/commands/ListExperimentRunsCommand.js +16 -0
  11. package/dist-es/commands/StartExperimentRunCommand.js +16 -0
  12. package/dist-es/commands/StopExperimentRunCommand.js +16 -0
  13. package/dist-es/commands/UpdateExperimentDefinitionCommand.js +16 -0
  14. package/dist-es/commands/UpdateExperimentRunCommand.js +16 -0
  15. package/dist-es/commands/index.js +11 -0
  16. package/dist-es/models/enums.js +23 -0
  17. package/dist-es/pagination/ListExperimentDefinitionsPaginator.js +4 -0
  18. package/dist-es/pagination/ListExperimentRunEventsPaginator.js +4 -0
  19. package/dist-es/pagination/ListExperimentRunsPaginator.js +4 -0
  20. package/dist-es/pagination/index.js +3 -0
  21. package/dist-es/runtimeConfig.browser.js +0 -2
  22. package/dist-es/runtimeConfig.js +1 -2
  23. package/dist-es/runtimeConfig.native.js +0 -2
  24. package/dist-es/runtimeConfig.shared.js +2 -0
  25. package/dist-es/schemas/schemas_0.js +328 -49
  26. package/dist-types/AppConfig.d.ts +130 -107
  27. package/dist-types/AppConfigClient.d.ts +44 -109
  28. package/dist-types/commands/CreateApplicationCommand.d.ts +0 -3
  29. package/dist-types/commands/CreateConfigurationProfileCommand.d.ts +0 -3
  30. package/dist-types/commands/CreateDeploymentStrategyCommand.d.ts +0 -3
  31. package/dist-types/commands/CreateEnvironmentCommand.d.ts +0 -3
  32. package/dist-types/commands/CreateExperimentDefinitionCommand.d.ts +266 -0
  33. package/dist-types/commands/CreateExtensionAssociationCommand.d.ts +0 -3
  34. package/dist-types/commands/CreateExtensionCommand.d.ts +0 -3
  35. package/dist-types/commands/CreateHostedConfigurationVersionCommand.d.ts +1 -4
  36. package/dist-types/commands/DeleteExperimentDefinitionCommand.d.ts +103 -0
  37. package/dist-types/commands/GetAccountSettingsCommand.d.ts +3 -0
  38. package/dist-types/commands/GetExperimentDefinitionCommand.d.ts +184 -0
  39. package/dist-types/commands/GetExperimentRunCommand.d.ts +209 -0
  40. package/dist-types/commands/ListDeploymentsCommand.d.ts +2 -0
  41. package/dist-types/commands/ListExperimentDefinitionsCommand.d.ts +131 -0
  42. package/dist-types/commands/ListExperimentRunEventsCommand.d.ts +136 -0
  43. package/dist-types/commands/ListExperimentRunsCommand.d.ts +125 -0
  44. package/dist-types/commands/StartDeploymentCommand.d.ts +5 -0
  45. package/dist-types/commands/StartExperimentRunCommand.d.ts +230 -0
  46. package/dist-types/commands/StopExperimentRunCommand.d.ts +231 -0
  47. package/dist-types/commands/UpdateAccountSettingsCommand.d.ts +6 -0
  48. package/dist-types/commands/UpdateExperimentDefinitionCommand.d.ts +237 -0
  49. package/dist-types/commands/UpdateExperimentRunCommand.d.ts +229 -0
  50. package/dist-types/commands/index.d.ts +11 -0
  51. package/dist-types/index.d.ts +31 -107
  52. package/dist-types/models/enums.d.ts +63 -0
  53. package/dist-types/models/errors.d.ts +0 -3
  54. package/dist-types/models/models_0.d.ts +1080 -37
  55. package/dist-types/pagination/ListExperimentDefinitionsPaginator.d.ts +7 -0
  56. package/dist-types/pagination/ListExperimentRunEventsPaginator.d.ts +7 -0
  57. package/dist-types/pagination/ListExperimentRunsPaginator.d.ts +7 -0
  58. package/dist-types/pagination/index.d.ts +3 -0
  59. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  60. package/dist-types/runtimeConfig.d.ts +2 -2
  61. package/dist-types/runtimeConfig.native.d.ts +2 -2
  62. package/dist-types/runtimeConfig.shared.d.ts +1 -0
  63. package/dist-types/schemas/schemas_0.d.ts +39 -0
  64. package/dist-types/ts3.4/AppConfig.d.ts +209 -0
  65. package/dist-types/ts3.4/AppConfigClient.d.ts +66 -0
  66. package/dist-types/ts3.4/commands/CreateExperimentDefinitionCommand.d.ts +53 -0
  67. package/dist-types/ts3.4/commands/DeleteExperimentDefinitionCommand.d.ts +49 -0
  68. package/dist-types/ts3.4/commands/GetExperimentDefinitionCommand.d.ts +53 -0
  69. package/dist-types/ts3.4/commands/GetExperimentRunCommand.d.ts +49 -0
  70. package/dist-types/ts3.4/commands/ListExperimentDefinitionsCommand.d.ts +53 -0
  71. package/dist-types/ts3.4/commands/ListExperimentRunEventsCommand.d.ts +53 -0
  72. package/dist-types/ts3.4/commands/ListExperimentRunsCommand.d.ts +50 -0
  73. package/dist-types/ts3.4/commands/StartExperimentRunCommand.d.ts +50 -0
  74. package/dist-types/ts3.4/commands/StopExperimentRunCommand.d.ts +50 -0
  75. package/dist-types/ts3.4/commands/UpdateExperimentDefinitionCommand.d.ts +53 -0
  76. package/dist-types/ts3.4/commands/UpdateExperimentRunCommand.d.ts +50 -0
  77. package/dist-types/ts3.4/commands/index.d.ts +11 -0
  78. package/dist-types/ts3.4/models/enums.d.ts +32 -0
  79. package/dist-types/ts3.4/models/models_0.d.ts +292 -0
  80. package/dist-types/ts3.4/pagination/ListExperimentDefinitionsPaginator.d.ts +11 -0
  81. package/dist-types/ts3.4/pagination/ListExperimentRunEventsPaginator.d.ts +11 -0
  82. package/dist-types/ts3.4/pagination/ListExperimentRunsPaginator.d.ts +11 -0
  83. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  84. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -2
  85. package/dist-types/ts3.4/runtimeConfig.d.ts +8 -2
  86. package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -2
  87. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -0
  88. package/dist-types/ts3.4/schemas/schemas_0.d.ts +39 -0
  89. package/package.json +8 -10
  90. package/dist-cjs/auth/httpAuthSchemeProvider.js +0 -40
  91. package/dist-cjs/endpoint/bdd.js +0 -52
  92. package/dist-cjs/endpoint/endpointResolver.js +0 -14
  93. package/dist-cjs/models/AppConfigServiceException.js +0 -8
  94. package/dist-cjs/models/errors.js +0 -97
  95. package/dist-cjs/runtimeConfig.browser.js +0 -32
  96. package/dist-cjs/runtimeConfig.js +0 -45
  97. package/dist-cjs/runtimeConfig.native.js +0 -12
  98. package/dist-cjs/runtimeConfig.shared.js +0 -38
  99. package/dist-cjs/schemas/schemas_0.js +0 -980
@@ -0,0 +1,136 @@
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 { ExperimentRunEvents, ListExperimentRunEventsRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListExperimentRunEventsCommand}.
14
+ */
15
+ export interface ListExperimentRunEventsCommandInput extends ListExperimentRunEventsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListExperimentRunEventsCommand}.
21
+ */
22
+ export interface ListExperimentRunEventsCommandOutput extends ExperimentRunEvents, __MetadataBearer {
23
+ }
24
+ declare const ListExperimentRunEventsCommand_base: {
25
+ new (input: ListExperimentRunEventsCommandInput): import("@smithy/core/client").CommandImpl<ListExperimentRunEventsCommandInput, ListExperimentRunEventsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListExperimentRunEventsCommandInput): import("@smithy/core/client").CommandImpl<ListExperimentRunEventsCommandInput, ListExperimentRunEventsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Lists the events for a specified experiment run. Events provide a timeline of actions and state changes that occurred during the run.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { AppConfigClient, ListExperimentRunEventsCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
37
+ * // const { AppConfigClient, ListExperimentRunEventsCommand } = 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 = { // ListExperimentRunEventsRequest
42
+ * ApplicationIdentifier: "STRING_VALUE", // required
43
+ * ExperimentDefinitionIdentifier: "STRING_VALUE", // required
44
+ * Run: Number("int"), // required
45
+ * MaxResults: Number("int"),
46
+ * NextToken: "STRING_VALUE",
47
+ * };
48
+ * const command = new ListExperimentRunEventsCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // ExperimentRunEvents
51
+ * // Items: [ // ExperimentRunEventList
52
+ * // { // ExperimentRunEvent
53
+ * // Description: "STRING_VALUE",
54
+ * // AssociatedDeployment: "STRING_VALUE",
55
+ * // EventType: "RUN_STARTED" || "EXPOSURE_UPDATED" || "OVERRIDES_UPDATED" || "RUN_STOPPED",
56
+ * // OccurredAt: new Date("TIMESTAMP"),
57
+ * // TriggeredBy: "USER" || "APPCONFIG" || "CLOUDWATCH_ALARM" || "INTERNAL_ERROR",
58
+ * // ExposurePercentage: Number("float"),
59
+ * // TreatmentOverrides: { // TreatmentOverrides Union: only one key present
60
+ * // Inline: { // TreatmentOverrideMap
61
+ * // "<keys>": "STRING_VALUE",
62
+ * // },
63
+ * // },
64
+ * // },
65
+ * // ],
66
+ * // NextToken: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListExperimentRunEventsCommandInput - {@link ListExperimentRunEventsCommandInput}
72
+ * @returns {@link ListExperimentRunEventsCommandOutput}
73
+ * @see {@link ListExperimentRunEventsCommandInput} for command's `input` shape.
74
+ * @see {@link ListExperimentRunEventsCommandOutput} for command's `response` shape.
75
+ * @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
76
+ *
77
+ * @throws {@link BadRequestException} (client fault)
78
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
79
+ *
80
+ * @throws {@link InternalServerException} (server fault)
81
+ * <p>There was an internal failure in the AppConfig service.</p>
82
+ *
83
+ * @throws {@link ResourceNotFoundException} (client fault)
84
+ * <p>The requested resource could not be found.</p>
85
+ *
86
+ * @throws {@link AppConfigServiceException}
87
+ * <p>Base exception class for all service exceptions from AppConfig service.</p>
88
+ *
89
+ *
90
+ * @example To list experiment run events
91
+ * ```javascript
92
+ * // The following ListExperimentRunEvents example lists the events for an experiment run.
93
+ * const input = {
94
+ * ApplicationIdentifier: "339ohji",
95
+ * ExperimentDefinitionIdentifier: "bsxyd7k",
96
+ * Run: 1
97
+ * };
98
+ * const command = new ListExperimentRunEventsCommand(input);
99
+ * const response = await client.send(command);
100
+ * /* response is
101
+ * {
102
+ * Items: [
103
+ * {
104
+ * Description: "Experiment run stopped",
105
+ * EventType: "RUN_STOPPED",
106
+ * ExposurePercentage: 50.0,
107
+ * OccurredAt: "2026-06-16T17:57:36.083Z",
108
+ * TriggeredBy: "USER"
109
+ * },
110
+ * {
111
+ * Description: "Experiment run started",
112
+ * EventType: "RUN_STARTED",
113
+ * ExposurePercentage: 50.0,
114
+ * OccurredAt: "2026-06-16T17:57:10.567Z",
115
+ * TriggeredBy: "USER"
116
+ * }
117
+ * ]
118
+ * }
119
+ * *\/
120
+ * ```
121
+ *
122
+ * @public
123
+ */
124
+ export declare class ListExperimentRunEventsCommand extends ListExperimentRunEventsCommand_base {
125
+ /** @internal type navigation helper, not in runtime. */
126
+ protected static __types: {
127
+ api: {
128
+ input: ListExperimentRunEventsRequest;
129
+ output: ExperimentRunEvents;
130
+ };
131
+ sdk: {
132
+ input: ListExperimentRunEventsCommandInput;
133
+ output: ListExperimentRunEventsCommandOutput;
134
+ };
135
+ };
136
+ }
@@ -0,0 +1,125 @@
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 { ExperimentRuns, ListExperimentRunsRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListExperimentRunsCommand}.
14
+ */
15
+ export interface ListExperimentRunsCommandInput extends ListExperimentRunsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListExperimentRunsCommand}.
21
+ */
22
+ export interface ListExperimentRunsCommandOutput extends ExperimentRuns, __MetadataBearer {
23
+ }
24
+ declare const ListExperimentRunsCommand_base: {
25
+ new (input: ListExperimentRunsCommandInput): import("@smithy/core/client").CommandImpl<ListExperimentRunsCommandInput, ListExperimentRunsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListExperimentRunsCommandInput): import("@smithy/core/client").CommandImpl<ListExperimentRunsCommandInput, ListExperimentRunsCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Lists the experiment runs for a specified experiment definition. You can filter by status.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { AppConfigClient, ListExperimentRunsCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
37
+ * // const { AppConfigClient, ListExperimentRunsCommand } = 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 = { // ListExperimentRunsRequest
42
+ * ApplicationIdentifier: "STRING_VALUE", // required
43
+ * ExperimentDefinitionIdentifier: "STRING_VALUE", // required
44
+ * MaxResults: Number("int"),
45
+ * NextToken: "STRING_VALUE",
46
+ * Status: "RUNNING" || "DONE",
47
+ * };
48
+ * const command = new ListExperimentRunsCommand(input);
49
+ * const response = await client.send(command);
50
+ * // { // ExperimentRuns
51
+ * // Items: [ // ExperimentRunSummaryList
52
+ * // { // ExperimentRunSummary
53
+ * // ExperimentDefinitionId: "STRING_VALUE",
54
+ * // Run: Number("int"),
55
+ * // Description: "STRING_VALUE",
56
+ * // Status: "RUNNING" || "DONE",
57
+ * // StartedAt: new Date("TIMESTAMP"),
58
+ * // UpdatedAt: new Date("TIMESTAMP"),
59
+ * // EndedAt: new Date("TIMESTAMP"),
60
+ * // },
61
+ * // ],
62
+ * // NextToken: "STRING_VALUE",
63
+ * // };
64
+ *
65
+ * ```
66
+ *
67
+ * @param ListExperimentRunsCommandInput - {@link ListExperimentRunsCommandInput}
68
+ * @returns {@link ListExperimentRunsCommandOutput}
69
+ * @see {@link ListExperimentRunsCommandInput} for command's `input` shape.
70
+ * @see {@link ListExperimentRunsCommandOutput} for command's `response` shape.
71
+ * @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
72
+ *
73
+ * @throws {@link BadRequestException} (client fault)
74
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
75
+ *
76
+ * @throws {@link InternalServerException} (server fault)
77
+ * <p>There was an internal failure in the AppConfig service.</p>
78
+ *
79
+ * @throws {@link ResourceNotFoundException} (client fault)
80
+ * <p>The requested resource could not be found.</p>
81
+ *
82
+ * @throws {@link AppConfigServiceException}
83
+ * <p>Base exception class for all service exceptions from AppConfig service.</p>
84
+ *
85
+ *
86
+ * @example To list experiment runs
87
+ * ```javascript
88
+ * // The following ListExperimentRuns example lists the experiment runs for an experiment definition.
89
+ * const input = {
90
+ * ApplicationIdentifier: "339ohji",
91
+ * ExperimentDefinitionIdentifier: "bsxyd7k"
92
+ * };
93
+ * const command = new ListExperimentRunsCommand(input);
94
+ * const response = await client.send(command);
95
+ * /* response is
96
+ * {
97
+ * Items: [
98
+ * {
99
+ * EndedAt: "2026-06-16T17:57:36.083Z",
100
+ * ExperimentDefinitionId: "bsxyd7k",
101
+ * Run: 1,
102
+ * StartedAt: "2026-06-16T17:57:10.046Z",
103
+ * Status: "DONE",
104
+ * UpdatedAt: "2026-06-16T17:57:36.083Z"
105
+ * }
106
+ * ]
107
+ * }
108
+ * *\/
109
+ * ```
110
+ *
111
+ * @public
112
+ */
113
+ export declare class ListExperimentRunsCommand extends ListExperimentRunsCommand_base {
114
+ /** @internal type navigation helper, not in runtime. */
115
+ protected static __types: {
116
+ api: {
117
+ input: ListExperimentRunsRequest;
118
+ output: ExperimentRuns;
119
+ };
120
+ sdk: {
121
+ input: ListExperimentRunsCommandInput;
122
+ output: ListExperimentRunsCommandOutput;
123
+ };
124
+ };
125
+ }
@@ -30,6 +30,10 @@ declare const StartDeploymentCommand_base: {
30
30
  };
31
31
  /**
32
32
  * <p>Starts a deployment.</p>
33
+ * <note>
34
+ * <p>AppConfig Agent supports deploying feature flag or free-form configuration data to specific segments or individual users during a gradual rollout. Entity-based gradual deployments ensure that once a user or segment receives a configuration version, they continue to receive that same version throughout the deployment period, regardless of which compute resource serves their requests. For more information, see <a href="https://docs.aws.amazon.com/appconfig/latest/userguide/appconfig-agent-how-to-use.html#appconfig-entity-based-gradual-deployments">Using AppConfig Agent for user-based or entity-based gradual deployments</a>
35
+ * </p>
36
+ * </note>
33
37
  * @example
34
38
  * Use a bare-bones client and the command you need to make an API call.
35
39
  * ```javascript
@@ -52,6 +56,7 @@ declare const StartDeploymentCommand_base: {
52
56
  * DynamicExtensionParameters: { // DynamicParameterMap
53
57
  * "<keys>": "STRING_VALUE",
54
58
  * },
59
+ * LatestDeploymentNumber: Number("int"),
55
60
  * };
56
61
  * const command = new StartDeploymentCommand(input);
57
62
  * const response = await client.send(command);
@@ -0,0 +1,230 @@
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, StartExperimentRunRequest } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartExperimentRunCommand}.
14
+ */
15
+ export interface StartExperimentRunCommandInput extends StartExperimentRunRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartExperimentRunCommand}.
21
+ */
22
+ export interface StartExperimentRunCommandOutput extends ExperimentRun, __MetadataBearer {
23
+ }
24
+ declare const StartExperimentRunCommand_base: {
25
+ new (input: StartExperimentRunCommandInput): import("@smithy/core/client").CommandImpl<StartExperimentRunCommandInput, StartExperimentRunCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartExperimentRunCommandInput): import("@smithy/core/client").CommandImpl<StartExperimentRunCommandInput, StartExperimentRunCommandOutput, AppConfigClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): {
28
+ [x: string]: unknown;
29
+ };
30
+ };
31
+ /**
32
+ * <p>Starts an experiment run for the specified experiment definition. An experiment run delivers treatments to the target audience and collects metrics. You can start multiple experiment runs from the same experiment definition.</p>
33
+ * @example
34
+ * Use a bare-bones client and the command you need to make an API call.
35
+ * ```javascript
36
+ * import { AppConfigClient, StartExperimentRunCommand } from "@aws-sdk/client-appconfig"; // ES Modules import
37
+ * // const { AppConfigClient, StartExperimentRunCommand } = 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 = { // StartExperimentRunRequest
42
+ * ApplicationIdentifier: "STRING_VALUE", // required
43
+ * ExperimentDefinitionIdentifier: "STRING_VALUE", // required
44
+ * Description: "STRING_VALUE",
45
+ * ExposurePercentage: Number("float"),
46
+ * TreatmentOverrides: { // TreatmentOverrides Union: only one key present
47
+ * Inline: { // TreatmentOverrideMap
48
+ * "<keys>": "STRING_VALUE",
49
+ * },
50
+ * },
51
+ * Tags: { // TagMap
52
+ * "<keys>": "STRING_VALUE",
53
+ * },
54
+ * DeploymentParameters: { // DeploymentParameters
55
+ * DynamicExtensionParameters: { // DynamicParameterMap
56
+ * "<keys>": "STRING_VALUE",
57
+ * },
58
+ * Tags: {
59
+ * "<keys>": "STRING_VALUE",
60
+ * },
61
+ * },
62
+ * };
63
+ * const command = new StartExperimentRunCommand(input);
64
+ * const response = await client.send(command);
65
+ * // { // ExperimentRun
66
+ * // ApplicationId: "STRING_VALUE",
67
+ * // ExperimentDefinitionId: "STRING_VALUE",
68
+ * // Run: Number("int"),
69
+ * // Description: "STRING_VALUE",
70
+ * // Status: "RUNNING" || "DONE",
71
+ * // ExposurePercentage: Number("float"),
72
+ * // TreatmentOverrides: { // TreatmentOverrides Union: only one key present
73
+ * // Inline: { // TreatmentOverrideMap
74
+ * // "<keys>": "STRING_VALUE",
75
+ * // },
76
+ * // },
77
+ * // Result: { // ExperimentRunResult
78
+ * // ExecutiveSummary: "STRING_VALUE",
79
+ * // ReasonsToLaunch: "STRING_VALUE",
80
+ * // ReasonsNotToLaunch: "STRING_VALUE",
81
+ * // },
82
+ * // StartedAt: new Date("TIMESTAMP"),
83
+ * // UpdatedAt: new Date("TIMESTAMP"),
84
+ * // EndedAt: new Date("TIMESTAMP"),
85
+ * // ExperimentDefinitionSnapshot: { // ExperimentDefinitionSnapshot
86
+ * // ApplicationId: "STRING_VALUE",
87
+ * // Id: "STRING_VALUE",
88
+ * // Name: "STRING_VALUE",
89
+ * // Hypothesis: "STRING_VALUE",
90
+ * // ConfigurationProfileId: "STRING_VALUE",
91
+ * // EnvironmentId: "STRING_VALUE",
92
+ * // FlagKey: "STRING_VALUE",
93
+ * // AudienceRule: "STRING_VALUE",
94
+ * // AudienceDescription: "STRING_VALUE",
95
+ * // LaunchCriteria: "STRING_VALUE",
96
+ * // Treatments: [ // TreatmentList
97
+ * // { // Treatment
98
+ * // Key: "STRING_VALUE",
99
+ * // Weight: Number("float"), // required
100
+ * // Description: "STRING_VALUE",
101
+ * // FlagValue: { // FlagValue
102
+ * // Enabled: true || false, // required
103
+ * // AttributeValues: { // AttributeValueMap
104
+ * // "<keys>": { // AttributeValue Union: only one key present
105
+ * // StringValue: "STRING_VALUE",
106
+ * // NumberValue: Number("double"),
107
+ * // BooleanValue: true || false,
108
+ * // StringArray: [ // StringList
109
+ * // "STRING_VALUE",
110
+ * // ],
111
+ * // NumberArray: [ // NumberList
112
+ * // Number("double"),
113
+ * // ],
114
+ * // },
115
+ * // },
116
+ * // },
117
+ * // },
118
+ * // ],
119
+ * // Control: {
120
+ * // Key: "STRING_VALUE",
121
+ * // Weight: Number("float"), // required
122
+ * // Description: "STRING_VALUE",
123
+ * // FlagValue: {
124
+ * // Enabled: true || false, // required
125
+ * // AttributeValues: {
126
+ * // "<keys>": {// Union: only one key present
127
+ * // StringValue: "STRING_VALUE",
128
+ * // NumberValue: Number("double"),
129
+ * // BooleanValue: true || false,
130
+ * // StringArray: [
131
+ * // "STRING_VALUE",
132
+ * // ],
133
+ * // NumberArray: [
134
+ * // Number("double"),
135
+ * // ],
136
+ * // },
137
+ * // },
138
+ * // },
139
+ * // },
140
+ * // },
141
+ * // };
142
+ *
143
+ * ```
144
+ *
145
+ * @param StartExperimentRunCommandInput - {@link StartExperimentRunCommandInput}
146
+ * @returns {@link StartExperimentRunCommandOutput}
147
+ * @see {@link StartExperimentRunCommandInput} for command's `input` shape.
148
+ * @see {@link StartExperimentRunCommandOutput} for command's `response` shape.
149
+ * @see {@link AppConfigClientResolvedConfig | config} for AppConfigClient's `config` shape.
150
+ *
151
+ * @throws {@link BadRequestException} (client fault)
152
+ * <p>The input fails to satisfy the constraints specified by an Amazon Web Services service.</p>
153
+ *
154
+ * @throws {@link ConflictException} (client fault)
155
+ * <p>The request could not be processed because of conflict in the current state of the
156
+ * resource.</p>
157
+ *
158
+ * @throws {@link InternalServerException} (server fault)
159
+ * <p>There was an internal failure in the AppConfig service.</p>
160
+ *
161
+ * @throws {@link ResourceNotFoundException} (client fault)
162
+ * <p>The requested resource could not be found.</p>
163
+ *
164
+ * @throws {@link AppConfigServiceException}
165
+ * <p>Base exception class for all service exceptions from AppConfig service.</p>
166
+ *
167
+ *
168
+ * @example To start an experiment run
169
+ * ```javascript
170
+ * // The following StartExperimentRun example starts an experiment run with 50% audience exposure.
171
+ * const input = {
172
+ * ApplicationIdentifier: "339ohji",
173
+ * ExperimentDefinitionIdentifier: "bsxyd7k",
174
+ * ExposurePercentage: 50.0
175
+ * };
176
+ * const command = new StartExperimentRunCommand(input);
177
+ * const response = await client.send(command);
178
+ * /* response is
179
+ * {
180
+ * ApplicationId: "339ohji",
181
+ * ExperimentDefinitionId: "bsxyd7k",
182
+ * ExperimentDefinitionSnapshot: {
183
+ * ApplicationId: "339ohji",
184
+ * AudienceRule: `(eq $country "US")`,
185
+ * ConfigurationProfileId: "ur8hx2f",
186
+ * Control: {
187
+ * FlagValue: {
188
+ * Enabled: false
189
+ * },
190
+ * Key: "c",
191
+ * Weight: 50.0
192
+ * },
193
+ * EnvironmentId: "54j1r29",
194
+ * FlagKey: "my-feature-flag",
195
+ * Id: "bsxyd7k",
196
+ * Name: "Example-Experiment-Definition",
197
+ * Treatments: [
198
+ * {
199
+ * FlagValue: {
200
+ * Enabled: true
201
+ * },
202
+ * Key: "t1",
203
+ * Weight: 50.0
204
+ * }
205
+ * ]
206
+ * },
207
+ * ExposurePercentage: 50.0,
208
+ * Run: 1,
209
+ * StartedAt: "2026-06-16T17:57:10.046Z",
210
+ * Status: "RUNNING",
211
+ * UpdatedAt: "2026-06-16T17:57:10.567Z"
212
+ * }
213
+ * *\/
214
+ * ```
215
+ *
216
+ * @public
217
+ */
218
+ export declare class StartExperimentRunCommand extends StartExperimentRunCommand_base {
219
+ /** @internal type navigation helper, not in runtime. */
220
+ protected static __types: {
221
+ api: {
222
+ input: StartExperimentRunRequest;
223
+ output: ExperimentRun;
224
+ };
225
+ sdk: {
226
+ input: StartExperimentRunCommandInput;
227
+ output: StartExperimentRunCommandOutput;
228
+ };
229
+ };
230
+ }