@aws-sdk/client-fis 3.31.0 → 3.35.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/CHANGELOG.md +39 -0
- package/{dist/cjs → dist-cjs}/Fis.js +2 -2
- package/dist-cjs/Fis.js.map +1 -0
- package/{dist/cjs → dist-cjs}/FisClient.js +14 -14
- package/dist-cjs/FisClient.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/CreateExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/CreateExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/DeleteExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/DeleteExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetActionCommand.js +5 -5
- package/dist-cjs/commands/GetActionCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetExperimentCommand.js +5 -5
- package/dist-cjs/commands/GetExperimentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/GetExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/GetExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListActionsCommand.js +5 -5
- package/dist-cjs/commands/ListActionsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListExperimentTemplatesCommand.js +5 -5
- package/dist-cjs/commands/ListExperimentTemplatesCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListExperimentsCommand.js +5 -5
- package/dist-cjs/commands/ListExperimentsCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/ListTagsForResourceCommand.js +5 -5
- package/dist-cjs/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StartExperimentCommand.js +5 -5
- package/dist-cjs/commands/StartExperimentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/StopExperimentCommand.js +5 -5
- package/dist-cjs/commands/StopExperimentCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/TagResourceCommand.js +5 -5
- package/dist-cjs/commands/TagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UntagResourceCommand.js +5 -5
- package/dist-cjs/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/commands/UpdateExperimentTemplateCommand.js +5 -5
- package/dist-cjs/commands/UpdateExperimentTemplateCommand.js.map +1 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -1
- package/dist-cjs/endpoints.js.map +1 -0
- package/dist-cjs/index.js +25 -0
- package/dist-cjs/index.js.map +1 -0
- package/{dist/cjs → dist-cjs}/models/index.js +1 -1
- package/{dist/cjs → dist-cjs}/models/index.js.map +1 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -0
- package/dist-cjs/models/models_0.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -0
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js.map +1 -1
- package/{dist/cjs → dist-cjs}/pagination/ListActionsPaginator.js +1 -1
- package/dist-cjs/pagination/ListActionsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListExperimentTemplatesPaginator.js +1 -1
- package/dist-cjs/pagination/ListExperimentTemplatesPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/pagination/ListExperimentsPaginator.js +1 -1
- package/dist-cjs/pagination/ListExperimentsPaginator.js.map +1 -0
- package/{dist/cjs → dist-cjs}/protocols/Aws_restJson1.js +88 -88
- package/dist-cjs/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +5 -4
- package/dist-cjs/runtimeConfig.browser.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +10 -9
- package/dist-cjs/runtimeConfig.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +1 -1
- package/dist-cjs/runtimeConfig.native.js.map +1 -0
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -1
- package/dist-cjs/runtimeConfig.shared.js.map +1 -0
- package/{dist/es → dist-es}/Fis.js +3 -7
- package/dist-es/Fis.js.map +1 -0
- package/{dist/es → dist-es}/FisClient.js +2 -11
- package/dist-es/FisClient.js.map +1 -0
- package/dist-es/commands/CreateExperimentTemplateCommand.js +40 -0
- package/dist-es/commands/CreateExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/DeleteExperimentTemplateCommand.js +4 -29
- package/dist-es/commands/DeleteExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetActionCommand.js +4 -29
- package/dist-es/commands/GetActionCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetExperimentCommand.js +4 -29
- package/dist-es/commands/GetExperimentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/GetExperimentTemplateCommand.js +4 -29
- package/dist-es/commands/GetExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListActionsCommand.js +4 -29
- package/dist-es/commands/ListActionsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListExperimentTemplatesCommand.js +4 -29
- package/dist-es/commands/ListExperimentTemplatesCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListExperimentsCommand.js +4 -29
- package/dist-es/commands/ListExperimentsCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/ListTagsForResourceCommand.js +4 -29
- package/dist-es/commands/ListTagsForResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StartExperimentCommand.js +4 -29
- package/dist-es/commands/StartExperimentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/StopExperimentCommand.js +4 -29
- package/dist-es/commands/StopExperimentCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +4 -29
- package/dist-es/commands/TagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +4 -29
- package/dist-es/commands/UntagResourceCommand.js.map +1 -0
- package/{dist/es → dist-es}/commands/UpdateExperimentTemplateCommand.js +4 -29
- package/dist-es/commands/UpdateExperimentTemplateCommand.js.map +1 -0
- package/{dist/es → dist-es}/endpoints.js +1 -1
- package/dist-es/endpoints.js.map +1 -0
- package/{dist/es → dist-es}/index.js +0 -0
- package/dist-es/index.js.map +1 -0
- package/{dist/es → dist-es}/models/index.js +0 -0
- package/dist-es/models/index.js.map +1 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -171
- package/dist-es/models/models_0.js.map +1 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js +0 -0
- package/{dist/es → dist-es}/pagination/Interfaces.js.map +1 -1
- package/{dist/es → dist-es}/pagination/ListActionsPaginator.js +17 -29
- package/dist-es/pagination/ListActionsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListExperimentTemplatesPaginator.js +17 -29
- package/dist-es/pagination/ListExperimentTemplatesPaginator.js.map +1 -0
- package/{dist/es → dist-es}/pagination/ListExperimentsPaginator.js +17 -29
- package/dist-es/pagination/ListExperimentsPaginator.js.map +1 -0
- package/{dist/es → dist-es}/protocols/Aws_restJson1.js +209 -214
- package/dist-es/protocols/Aws_restJson1.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -4
- package/dist-es/runtimeConfig.browser.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.js +2 -5
- package/dist-es/runtimeConfig.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -3
- package/dist-es/runtimeConfig.native.js.map +1 -0
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -4
- package/dist-es/runtimeConfig.shared.js.map +1 -0
- package/{dist/types → dist-types}/Fis.d.ts +3 -3
- package/{dist/types → dist-types}/FisClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CreateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/DeleteExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetActionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/GetExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListActionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListExperimentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListExperimentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StartExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/StopExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/commands/UpdateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListActionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListExperimentTemplatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListExperimentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.d.ts +37 -36
- package/{dist/types/ts3.4 → dist-types}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/Fis.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/FisClient.d.ts +9 -9
- package/{dist/types → dist-types}/ts3.4/commands/CreateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/DeleteExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetActionCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/GetExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListActionsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListExperimentTemplatesCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListExperimentsCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/ListTagsForResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StartExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/StopExperimentCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/TagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UntagResourceCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/commands/UpdateExperimentTemplateCommand.d.ts +2 -2
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/models_0.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListActionsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListExperimentTemplatesPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListExperimentsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_restJson1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -0
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.d.ts +37 -36
- package/{dist/types → dist-types/ts3.4}/runtimeConfig.native.d.ts +36 -35
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +0 -0
- package/package.json +50 -50
- package/{Fis.ts → src/Fis.ts} +8 -7
- package/{FisClient.ts → src/FisClient.ts} +47 -46
- package/{commands → src/commands}/CreateExperimentTemplateCommand.ts +8 -7
- package/{commands → src/commands}/DeleteExperimentTemplateCommand.ts +8 -7
- package/{commands → src/commands}/GetActionCommand.ts +8 -7
- package/{commands → src/commands}/GetExperimentCommand.ts +8 -7
- package/{commands → src/commands}/GetExperimentTemplateCommand.ts +8 -7
- package/{commands → src/commands}/ListActionsCommand.ts +8 -7
- package/{commands → src/commands}/ListExperimentTemplatesCommand.ts +8 -7
- package/{commands → src/commands}/ListExperimentsCommand.ts +8 -7
- package/{commands → src/commands}/ListTagsForResourceCommand.ts +8 -7
- package/{commands → src/commands}/StartExperimentCommand.ts +8 -7
- package/{commands → src/commands}/StopExperimentCommand.ts +8 -7
- package/{commands → src/commands}/TagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UntagResourceCommand.ts +8 -7
- package/{commands → src/commands}/UpdateExperimentTemplateCommand.ts +8 -7
- package/{endpoints.ts → src/endpoints.ts} +1 -1
- package/{index.ts → src/index.ts} +0 -0
- package/{models → src/models}/index.ts +0 -0
- package/{models → src/models}/models_0.ts +0 -0
- package/{pagination → src/pagination}/Interfaces.ts +2 -1
- package/{pagination → src/pagination}/ListActionsPaginator.ts +3 -2
- package/{pagination → src/pagination}/ListExperimentTemplatesPaginator.ts +4 -3
- package/{pagination → src/pagination}/ListExperimentsPaginator.ts +4 -3
- package/{protocols → src/protocols}/Aws_restJson1.ts +39 -38
- package/{runtimeConfig.browser.ts → src/runtimeConfig.browser.ts} +3 -2
- package/{runtimeConfig.native.ts → src/runtimeConfig.native.ts} +1 -0
- package/{runtimeConfig.shared.ts → src/runtimeConfig.shared.ts} +2 -1
- package/{runtimeConfig.ts → src/runtimeConfig.ts} +4 -3
- package/tsconfig.es.json +1 -3
- package/tsconfig.json +7 -7
- package/tsconfig.types.json +9 -0
- package/dist/cjs/Fis.js.map +0 -1
- package/dist/cjs/FisClient.js.map +0 -1
- package/dist/cjs/commands/CreateExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/GetActionCommand.js.map +0 -1
- package/dist/cjs/commands/GetExperimentCommand.js.map +0 -1
- package/dist/cjs/commands/GetExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/commands/ListActionsCommand.js.map +0 -1
- package/dist/cjs/commands/ListExperimentTemplatesCommand.js.map +0 -1
- package/dist/cjs/commands/ListExperimentsCommand.js.map +0 -1
- package/dist/cjs/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/cjs/commands/StartExperimentCommand.js.map +0 -1
- package/dist/cjs/commands/StopExperimentCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateExperimentTemplateCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js +0 -25
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/ListActionsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListExperimentTemplatesPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListExperimentsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_restJson1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/Fis.js.map +0 -1
- package/dist/es/FisClient.js.map +0 -1
- package/dist/es/commands/CreateExperimentTemplateCommand.js +0 -86
- package/dist/es/commands/CreateExperimentTemplateCommand.js.map +0 -1
- package/dist/es/commands/DeleteExperimentTemplateCommand.js.map +0 -1
- package/dist/es/commands/GetActionCommand.js.map +0 -1
- package/dist/es/commands/GetExperimentCommand.js.map +0 -1
- package/dist/es/commands/GetExperimentTemplateCommand.js.map +0 -1
- package/dist/es/commands/ListActionsCommand.js.map +0 -1
- package/dist/es/commands/ListExperimentTemplatesCommand.js.map +0 -1
- package/dist/es/commands/ListExperimentsCommand.js.map +0 -1
- package/dist/es/commands/ListTagsForResourceCommand.js.map +0 -1
- package/dist/es/commands/StartExperimentCommand.js.map +0 -1
- package/dist/es/commands/StopExperimentCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateExperimentTemplateCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/ListActionsPaginator.js.map +0 -1
- package/dist/es/pagination/ListExperimentTemplatesPaginator.js.map +0 -1
- package/dist/es/pagination/ListExperimentsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_restJson1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
|
@@ -10,14 +10,14 @@ const serializeAws_restJson1CreateExperimentTemplateCommand = async (input, cont
|
|
|
10
10
|
const headers = {
|
|
11
11
|
"content-type": "application/json",
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates";
|
|
14
14
|
let body;
|
|
15
15
|
body = JSON.stringify({
|
|
16
16
|
...(input.actions !== undefined &&
|
|
17
17
|
input.actions !== null && {
|
|
18
18
|
actions: serializeAws_restJson1CreateExperimentTemplateActionInputMap(input.actions, context),
|
|
19
19
|
}),
|
|
20
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
20
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
21
21
|
...(input.description !== undefined && input.description !== null && { description: input.description }),
|
|
22
22
|
...(input.roleArn !== undefined && input.roleArn !== null && { roleArn: input.roleArn }),
|
|
23
23
|
...(input.stopConditions !== undefined &&
|
|
@@ -50,7 +50,7 @@ const serializeAws_restJson1DeleteExperimentTemplateCommand = async (input, cont
|
|
|
50
50
|
if (labelValue.length <= 0) {
|
|
51
51
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
52
52
|
}
|
|
53
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
53
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
54
54
|
}
|
|
55
55
|
else {
|
|
56
56
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -76,7 +76,7 @@ const serializeAws_restJson1GetActionCommand = async (input, context) => {
|
|
|
76
76
|
if (labelValue.length <= 0) {
|
|
77
77
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
78
78
|
}
|
|
79
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
79
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
80
80
|
}
|
|
81
81
|
else {
|
|
82
82
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -102,7 +102,7 @@ const serializeAws_restJson1GetExperimentCommand = async (input, context) => {
|
|
|
102
102
|
if (labelValue.length <= 0) {
|
|
103
103
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
104
104
|
}
|
|
105
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
105
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
106
106
|
}
|
|
107
107
|
else {
|
|
108
108
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -128,7 +128,7 @@ const serializeAws_restJson1GetExperimentTemplateCommand = async (input, context
|
|
|
128
128
|
if (labelValue.length <= 0) {
|
|
129
129
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
130
130
|
}
|
|
131
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
131
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
132
132
|
}
|
|
133
133
|
else {
|
|
134
134
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -148,7 +148,7 @@ exports.serializeAws_restJson1GetExperimentTemplateCommand = serializeAws_restJs
|
|
|
148
148
|
const serializeAws_restJson1ListActionsCommand = async (input, context) => {
|
|
149
149
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
150
150
|
const headers = {};
|
|
151
|
-
|
|
151
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/actions";
|
|
152
152
|
const query = {
|
|
153
153
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
154
154
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
@@ -169,7 +169,7 @@ exports.serializeAws_restJson1ListActionsCommand = serializeAws_restJson1ListAct
|
|
|
169
169
|
const serializeAws_restJson1ListExperimentsCommand = async (input, context) => {
|
|
170
170
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
171
171
|
const headers = {};
|
|
172
|
-
|
|
172
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
|
|
173
173
|
const query = {
|
|
174
174
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
175
175
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
@@ -190,7 +190,7 @@ exports.serializeAws_restJson1ListExperimentsCommand = serializeAws_restJson1Lis
|
|
|
190
190
|
const serializeAws_restJson1ListExperimentTemplatesCommand = async (input, context) => {
|
|
191
191
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
192
192
|
const headers = {};
|
|
193
|
-
|
|
193
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/experimentTemplates";
|
|
194
194
|
const query = {
|
|
195
195
|
...(input.maxResults !== undefined && { maxResults: input.maxResults.toString() }),
|
|
196
196
|
...(input.nextToken !== undefined && { nextToken: input.nextToken }),
|
|
@@ -217,7 +217,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
217
217
|
if (labelValue.length <= 0) {
|
|
218
218
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
219
219
|
}
|
|
220
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
220
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
221
221
|
}
|
|
222
222
|
else {
|
|
223
223
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -240,10 +240,10 @@ const serializeAws_restJson1StartExperimentCommand = async (input, context) => {
|
|
|
240
240
|
const headers = {
|
|
241
241
|
"content-type": "application/json",
|
|
242
242
|
};
|
|
243
|
-
|
|
243
|
+
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/experiments";
|
|
244
244
|
let body;
|
|
245
245
|
body = JSON.stringify({
|
|
246
|
-
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a :
|
|
246
|
+
clientToken: (_a = input.clientToken) !== null && _a !== void 0 ? _a : uuid_1.v4(),
|
|
247
247
|
...(input.experimentTemplateId !== undefined &&
|
|
248
248
|
input.experimentTemplateId !== null && { experimentTemplateId: input.experimentTemplateId }),
|
|
249
249
|
...(input.tags !== undefined && input.tags !== null && { tags: serializeAws_restJson1TagMap(input.tags, context) }),
|
|
@@ -268,7 +268,7 @@ const serializeAws_restJson1StopExperimentCommand = async (input, context) => {
|
|
|
268
268
|
if (labelValue.length <= 0) {
|
|
269
269
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
270
270
|
}
|
|
271
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
271
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
272
272
|
}
|
|
273
273
|
else {
|
|
274
274
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -296,7 +296,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
296
296
|
if (labelValue.length <= 0) {
|
|
297
297
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
298
298
|
}
|
|
299
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
299
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
300
300
|
}
|
|
301
301
|
else {
|
|
302
302
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -325,7 +325,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
325
325
|
if (labelValue.length <= 0) {
|
|
326
326
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
327
327
|
}
|
|
328
|
-
resolvedPath = resolvedPath.replace("{resourceArn}",
|
|
328
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
329
329
|
}
|
|
330
330
|
else {
|
|
331
331
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -357,7 +357,7 @@ const serializeAws_restJson1UpdateExperimentTemplateCommand = async (input, cont
|
|
|
357
357
|
if (labelValue.length <= 0) {
|
|
358
358
|
throw new Error("Empty value provided for input HTTP label: id.");
|
|
359
359
|
}
|
|
360
|
-
resolvedPath = resolvedPath.replace("{id}",
|
|
360
|
+
resolvedPath = resolvedPath.replace("{id}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
361
361
|
}
|
|
362
362
|
else {
|
|
363
363
|
throw new Error("No value provided for input HTTP label: id.");
|
|
@@ -398,7 +398,7 @@ const deserializeAws_restJson1CreateExperimentTemplateCommand = async (output, c
|
|
|
398
398
|
$metadata: deserializeMetadata(output),
|
|
399
399
|
experimentTemplate: undefined,
|
|
400
400
|
};
|
|
401
|
-
const data =
|
|
401
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
402
402
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
403
403
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
404
404
|
}
|
|
@@ -470,7 +470,7 @@ const deserializeAws_restJson1DeleteExperimentTemplateCommand = async (output, c
|
|
|
470
470
|
$metadata: deserializeMetadata(output),
|
|
471
471
|
experimentTemplate: undefined,
|
|
472
472
|
};
|
|
473
|
-
const data =
|
|
473
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
474
474
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
475
475
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
476
476
|
}
|
|
@@ -526,7 +526,7 @@ const deserializeAws_restJson1GetActionCommand = async (output, context) => {
|
|
|
526
526
|
$metadata: deserializeMetadata(output),
|
|
527
527
|
action: undefined,
|
|
528
528
|
};
|
|
529
|
-
const data =
|
|
529
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
530
530
|
if (data.action !== undefined && data.action !== null) {
|
|
531
531
|
contents.action = deserializeAws_restJson1Action(data.action, context);
|
|
532
532
|
}
|
|
@@ -582,7 +582,7 @@ const deserializeAws_restJson1GetExperimentCommand = async (output, context) =>
|
|
|
582
582
|
$metadata: deserializeMetadata(output),
|
|
583
583
|
experiment: undefined,
|
|
584
584
|
};
|
|
585
|
-
const data =
|
|
585
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
586
586
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
587
587
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
588
588
|
}
|
|
@@ -638,7 +638,7 @@ const deserializeAws_restJson1GetExperimentTemplateCommand = async (output, cont
|
|
|
638
638
|
$metadata: deserializeMetadata(output),
|
|
639
639
|
experimentTemplate: undefined,
|
|
640
640
|
};
|
|
641
|
-
const data =
|
|
641
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
642
642
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
643
643
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
644
644
|
}
|
|
@@ -695,12 +695,12 @@ const deserializeAws_restJson1ListActionsCommand = async (output, context) => {
|
|
|
695
695
|
actions: undefined,
|
|
696
696
|
nextToken: undefined,
|
|
697
697
|
};
|
|
698
|
-
const data =
|
|
698
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
699
699
|
if (data.actions !== undefined && data.actions !== null) {
|
|
700
700
|
contents.actions = deserializeAws_restJson1ActionSummaryList(data.actions, context);
|
|
701
701
|
}
|
|
702
702
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
703
|
-
contents.nextToken =
|
|
703
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
704
704
|
}
|
|
705
705
|
return Promise.resolve(contents);
|
|
706
706
|
};
|
|
@@ -747,12 +747,12 @@ const deserializeAws_restJson1ListExperimentsCommand = async (output, context) =
|
|
|
747
747
|
experiments: undefined,
|
|
748
748
|
nextToken: undefined,
|
|
749
749
|
};
|
|
750
|
-
const data =
|
|
750
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
751
751
|
if (data.experiments !== undefined && data.experiments !== null) {
|
|
752
752
|
contents.experiments = deserializeAws_restJson1ExperimentSummaryList(data.experiments, context);
|
|
753
753
|
}
|
|
754
754
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
755
|
-
contents.nextToken =
|
|
755
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
756
756
|
}
|
|
757
757
|
return Promise.resolve(contents);
|
|
758
758
|
};
|
|
@@ -799,12 +799,12 @@ const deserializeAws_restJson1ListExperimentTemplatesCommand = async (output, co
|
|
|
799
799
|
experimentTemplates: undefined,
|
|
800
800
|
nextToken: undefined,
|
|
801
801
|
};
|
|
802
|
-
const data =
|
|
802
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
803
803
|
if (data.experimentTemplates !== undefined && data.experimentTemplates !== null) {
|
|
804
804
|
contents.experimentTemplates = deserializeAws_restJson1ExperimentTemplateSummaryList(data.experimentTemplates, context);
|
|
805
805
|
}
|
|
806
806
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
807
|
-
contents.nextToken =
|
|
807
|
+
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
808
808
|
}
|
|
809
809
|
return Promise.resolve(contents);
|
|
810
810
|
};
|
|
@@ -850,7 +850,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
850
850
|
$metadata: deserializeMetadata(output),
|
|
851
851
|
tags: undefined,
|
|
852
852
|
};
|
|
853
|
-
const data =
|
|
853
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
854
854
|
if (data.tags !== undefined && data.tags !== null) {
|
|
855
855
|
contents.tags = deserializeAws_restJson1TagMap(data.tags, context);
|
|
856
856
|
}
|
|
@@ -890,7 +890,7 @@ const deserializeAws_restJson1StartExperimentCommand = async (output, context) =
|
|
|
890
890
|
$metadata: deserializeMetadata(output),
|
|
891
891
|
experiment: undefined,
|
|
892
892
|
};
|
|
893
|
-
const data =
|
|
893
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
894
894
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
895
895
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
896
896
|
}
|
|
@@ -962,7 +962,7 @@ const deserializeAws_restJson1StopExperimentCommand = async (output, context) =>
|
|
|
962
962
|
$metadata: deserializeMetadata(output),
|
|
963
963
|
experiment: undefined,
|
|
964
964
|
};
|
|
965
|
-
const data =
|
|
965
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
966
966
|
if (data.experiment !== undefined && data.experiment !== null) {
|
|
967
967
|
contents.experiment = deserializeAws_restJson1Experiment(data.experiment, context);
|
|
968
968
|
}
|
|
@@ -1090,7 +1090,7 @@ const deserializeAws_restJson1UpdateExperimentTemplateCommand = async (output, c
|
|
|
1090
1090
|
$metadata: deserializeMetadata(output),
|
|
1091
1091
|
experimentTemplate: undefined,
|
|
1092
1092
|
};
|
|
1093
|
-
const data =
|
|
1093
|
+
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1094
1094
|
if (data.experimentTemplate !== undefined && data.experimentTemplate !== null) {
|
|
1095
1095
|
contents.experimentTemplate = deserializeAws_restJson1ExperimentTemplate(data.experimentTemplate, context);
|
|
1096
1096
|
}
|
|
@@ -1155,7 +1155,7 @@ const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, c
|
|
|
1155
1155
|
};
|
|
1156
1156
|
const data = parsedOutput.body;
|
|
1157
1157
|
if (data.message !== undefined && data.message !== null) {
|
|
1158
|
-
contents.message =
|
|
1158
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1159
1159
|
}
|
|
1160
1160
|
return contents;
|
|
1161
1161
|
};
|
|
@@ -1168,7 +1168,7 @@ const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedO
|
|
|
1168
1168
|
};
|
|
1169
1169
|
const data = parsedOutput.body;
|
|
1170
1170
|
if (data.message !== undefined && data.message !== null) {
|
|
1171
|
-
contents.message =
|
|
1171
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1172
1172
|
}
|
|
1173
1173
|
return contents;
|
|
1174
1174
|
};
|
|
@@ -1181,7 +1181,7 @@ const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (par
|
|
|
1181
1181
|
};
|
|
1182
1182
|
const data = parsedOutput.body;
|
|
1183
1183
|
if (data.message !== undefined && data.message !== null) {
|
|
1184
|
-
contents.message =
|
|
1184
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1185
1185
|
}
|
|
1186
1186
|
return contents;
|
|
1187
1187
|
};
|
|
@@ -1194,7 +1194,7 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
1194
1194
|
};
|
|
1195
1195
|
const data = parsedOutput.body;
|
|
1196
1196
|
if (data.message !== undefined && data.message !== null) {
|
|
1197
|
-
contents.message =
|
|
1197
|
+
contents.message = smithy_client_1.expectString(data.message);
|
|
1198
1198
|
}
|
|
1199
1199
|
return contents;
|
|
1200
1200
|
};
|
|
@@ -1426,8 +1426,8 @@ const serializeAws_restJson1UpdateExperimentTemplateTargetInputMap = (input, con
|
|
|
1426
1426
|
};
|
|
1427
1427
|
const deserializeAws_restJson1Action = (output, context) => {
|
|
1428
1428
|
return {
|
|
1429
|
-
description:
|
|
1430
|
-
id:
|
|
1429
|
+
description: smithy_client_1.expectString(output.description),
|
|
1430
|
+
id: smithy_client_1.expectString(output.id),
|
|
1431
1431
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1432
1432
|
? deserializeAws_restJson1ActionParameterMap(output.parameters, context)
|
|
1433
1433
|
: undefined,
|
|
@@ -1441,8 +1441,8 @@ const deserializeAws_restJson1Action = (output, context) => {
|
|
|
1441
1441
|
};
|
|
1442
1442
|
const deserializeAws_restJson1ActionParameter = (output, context) => {
|
|
1443
1443
|
return {
|
|
1444
|
-
description:
|
|
1445
|
-
required:
|
|
1444
|
+
description: smithy_client_1.expectString(output.description),
|
|
1445
|
+
required: smithy_client_1.expectBoolean(output.required),
|
|
1446
1446
|
};
|
|
1447
1447
|
};
|
|
1448
1448
|
const deserializeAws_restJson1ActionParameterMap = (output, context) => {
|
|
@@ -1458,8 +1458,8 @@ const deserializeAws_restJson1ActionParameterMap = (output, context) => {
|
|
|
1458
1458
|
};
|
|
1459
1459
|
const deserializeAws_restJson1ActionSummary = (output, context) => {
|
|
1460
1460
|
return {
|
|
1461
|
-
description:
|
|
1462
|
-
id:
|
|
1461
|
+
description: smithy_client_1.expectString(output.description),
|
|
1462
|
+
id: smithy_client_1.expectString(output.id),
|
|
1463
1463
|
tags: output.tags !== undefined && output.tags !== null
|
|
1464
1464
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
1465
1465
|
: undefined,
|
|
@@ -1480,7 +1480,7 @@ const deserializeAws_restJson1ActionSummaryList = (output, context) => {
|
|
|
1480
1480
|
};
|
|
1481
1481
|
const deserializeAws_restJson1ActionTarget = (output, context) => {
|
|
1482
1482
|
return {
|
|
1483
|
-
resourceType:
|
|
1483
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1484
1484
|
};
|
|
1485
1485
|
};
|
|
1486
1486
|
const deserializeAws_restJson1ActionTargetMap = (output, context) => {
|
|
@@ -1500,16 +1500,16 @@ const deserializeAws_restJson1Experiment = (output, context) => {
|
|
|
1500
1500
|
? deserializeAws_restJson1ExperimentActionMap(output.actions, context)
|
|
1501
1501
|
: undefined,
|
|
1502
1502
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1503
|
-
?
|
|
1503
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1504
1504
|
: undefined,
|
|
1505
1505
|
endTime: output.endTime !== undefined && output.endTime !== null
|
|
1506
|
-
?
|
|
1506
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.endTime)))
|
|
1507
1507
|
: undefined,
|
|
1508
|
-
experimentTemplateId:
|
|
1509
|
-
id:
|
|
1510
|
-
roleArn:
|
|
1508
|
+
experimentTemplateId: smithy_client_1.expectString(output.experimentTemplateId),
|
|
1509
|
+
id: smithy_client_1.expectString(output.id),
|
|
1510
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
1511
1511
|
startTime: output.startTime !== undefined && output.startTime !== null
|
|
1512
|
-
?
|
|
1512
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.startTime)))
|
|
1513
1513
|
: undefined,
|
|
1514
1514
|
state: output.state !== undefined && output.state !== null
|
|
1515
1515
|
? deserializeAws_restJson1ExperimentState(output.state, context)
|
|
@@ -1527,8 +1527,8 @@ const deserializeAws_restJson1Experiment = (output, context) => {
|
|
|
1527
1527
|
};
|
|
1528
1528
|
const deserializeAws_restJson1ExperimentAction = (output, context) => {
|
|
1529
1529
|
return {
|
|
1530
|
-
actionId:
|
|
1531
|
-
description:
|
|
1530
|
+
actionId: smithy_client_1.expectString(output.actionId),
|
|
1531
|
+
description: smithy_client_1.expectString(output.description),
|
|
1532
1532
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1533
1533
|
? deserializeAws_restJson1ExperimentActionParameterMap(output.parameters, context)
|
|
1534
1534
|
: undefined,
|
|
@@ -1561,7 +1561,7 @@ const deserializeAws_restJson1ExperimentActionParameterMap = (output, context) =
|
|
|
1561
1561
|
}
|
|
1562
1562
|
return {
|
|
1563
1563
|
...acc,
|
|
1564
|
-
[key]:
|
|
1564
|
+
[key]: smithy_client_1.expectString(value),
|
|
1565
1565
|
};
|
|
1566
1566
|
}, {});
|
|
1567
1567
|
};
|
|
@@ -1572,13 +1572,13 @@ const deserializeAws_restJson1ExperimentActionStartAfterList = (output, context)
|
|
|
1572
1572
|
if (entry === null) {
|
|
1573
1573
|
return null;
|
|
1574
1574
|
}
|
|
1575
|
-
return
|
|
1575
|
+
return smithy_client_1.expectString(entry);
|
|
1576
1576
|
});
|
|
1577
1577
|
};
|
|
1578
1578
|
const deserializeAws_restJson1ExperimentActionState = (output, context) => {
|
|
1579
1579
|
return {
|
|
1580
|
-
reason:
|
|
1581
|
-
status:
|
|
1580
|
+
reason: smithy_client_1.expectString(output.reason),
|
|
1581
|
+
status: smithy_client_1.expectString(output.status),
|
|
1582
1582
|
};
|
|
1583
1583
|
};
|
|
1584
1584
|
const deserializeAws_restJson1ExperimentActionTargetMap = (output, context) => {
|
|
@@ -1588,20 +1588,20 @@ const deserializeAws_restJson1ExperimentActionTargetMap = (output, context) => {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
return {
|
|
1590
1590
|
...acc,
|
|
1591
|
-
[key]:
|
|
1591
|
+
[key]: smithy_client_1.expectString(value),
|
|
1592
1592
|
};
|
|
1593
1593
|
}, {});
|
|
1594
1594
|
};
|
|
1595
1595
|
const deserializeAws_restJson1ExperimentState = (output, context) => {
|
|
1596
1596
|
return {
|
|
1597
|
-
reason:
|
|
1598
|
-
status:
|
|
1597
|
+
reason: smithy_client_1.expectString(output.reason),
|
|
1598
|
+
status: smithy_client_1.expectString(output.status),
|
|
1599
1599
|
};
|
|
1600
1600
|
};
|
|
1601
1601
|
const deserializeAws_restJson1ExperimentStopCondition = (output, context) => {
|
|
1602
1602
|
return {
|
|
1603
|
-
source:
|
|
1604
|
-
value:
|
|
1603
|
+
source: smithy_client_1.expectString(output.source),
|
|
1604
|
+
value: smithy_client_1.expectString(output.value),
|
|
1605
1605
|
};
|
|
1606
1606
|
};
|
|
1607
1607
|
const deserializeAws_restJson1ExperimentStopConditionList = (output, context) => {
|
|
@@ -1617,10 +1617,10 @@ const deserializeAws_restJson1ExperimentStopConditionList = (output, context) =>
|
|
|
1617
1617
|
const deserializeAws_restJson1ExperimentSummary = (output, context) => {
|
|
1618
1618
|
return {
|
|
1619
1619
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1620
|
-
?
|
|
1620
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1621
1621
|
: undefined,
|
|
1622
|
-
experimentTemplateId:
|
|
1623
|
-
id:
|
|
1622
|
+
experimentTemplateId: smithy_client_1.expectString(output.experimentTemplateId),
|
|
1623
|
+
id: smithy_client_1.expectString(output.id),
|
|
1624
1624
|
state: output.state !== undefined && output.state !== null
|
|
1625
1625
|
? deserializeAws_restJson1ExperimentState(output.state, context)
|
|
1626
1626
|
: undefined,
|
|
@@ -1650,13 +1650,13 @@ const deserializeAws_restJson1ExperimentTarget = (output, context) => {
|
|
|
1650
1650
|
resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
|
|
1651
1651
|
? deserializeAws_restJson1TagMap(output.resourceTags, context)
|
|
1652
1652
|
: undefined,
|
|
1653
|
-
resourceType:
|
|
1654
|
-
selectionMode:
|
|
1653
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1654
|
+
selectionMode: smithy_client_1.expectString(output.selectionMode),
|
|
1655
1655
|
};
|
|
1656
1656
|
};
|
|
1657
1657
|
const deserializeAws_restJson1ExperimentTargetFilter = (output, context) => {
|
|
1658
1658
|
return {
|
|
1659
|
-
path:
|
|
1659
|
+
path: smithy_client_1.expectString(output.path),
|
|
1660
1660
|
values: output.values !== undefined && output.values !== null
|
|
1661
1661
|
? deserializeAws_restJson1ExperimentTargetFilterValues(output.values, context)
|
|
1662
1662
|
: undefined,
|
|
@@ -1679,7 +1679,7 @@ const deserializeAws_restJson1ExperimentTargetFilterValues = (output, context) =
|
|
|
1679
1679
|
if (entry === null) {
|
|
1680
1680
|
return null;
|
|
1681
1681
|
}
|
|
1682
|
-
return
|
|
1682
|
+
return smithy_client_1.expectString(entry);
|
|
1683
1683
|
});
|
|
1684
1684
|
};
|
|
1685
1685
|
const deserializeAws_restJson1ExperimentTargetMap = (output, context) => {
|
|
@@ -1699,14 +1699,14 @@ const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
|
1699
1699
|
? deserializeAws_restJson1ExperimentTemplateActionMap(output.actions, context)
|
|
1700
1700
|
: undefined,
|
|
1701
1701
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1702
|
-
?
|
|
1702
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1703
1703
|
: undefined,
|
|
1704
|
-
description:
|
|
1705
|
-
id:
|
|
1704
|
+
description: smithy_client_1.expectString(output.description),
|
|
1705
|
+
id: smithy_client_1.expectString(output.id),
|
|
1706
1706
|
lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
|
|
1707
|
-
?
|
|
1707
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateTime)))
|
|
1708
1708
|
: undefined,
|
|
1709
|
-
roleArn:
|
|
1709
|
+
roleArn: smithy_client_1.expectString(output.roleArn),
|
|
1710
1710
|
stopConditions: output.stopConditions !== undefined && output.stopConditions !== null
|
|
1711
1711
|
? deserializeAws_restJson1ExperimentTemplateStopConditionList(output.stopConditions, context)
|
|
1712
1712
|
: undefined,
|
|
@@ -1720,8 +1720,8 @@ const deserializeAws_restJson1ExperimentTemplate = (output, context) => {
|
|
|
1720
1720
|
};
|
|
1721
1721
|
const deserializeAws_restJson1ExperimentTemplateAction = (output, context) => {
|
|
1722
1722
|
return {
|
|
1723
|
-
actionId:
|
|
1724
|
-
description:
|
|
1723
|
+
actionId: smithy_client_1.expectString(output.actionId),
|
|
1724
|
+
description: smithy_client_1.expectString(output.description),
|
|
1725
1725
|
parameters: output.parameters !== undefined && output.parameters !== null
|
|
1726
1726
|
? deserializeAws_restJson1ExperimentTemplateActionParameterMap(output.parameters, context)
|
|
1727
1727
|
: undefined,
|
|
@@ -1751,7 +1751,7 @@ const deserializeAws_restJson1ExperimentTemplateActionParameterMap = (output, co
|
|
|
1751
1751
|
}
|
|
1752
1752
|
return {
|
|
1753
1753
|
...acc,
|
|
1754
|
-
[key]:
|
|
1754
|
+
[key]: smithy_client_1.expectString(value),
|
|
1755
1755
|
};
|
|
1756
1756
|
}, {});
|
|
1757
1757
|
};
|
|
@@ -1762,7 +1762,7 @@ const deserializeAws_restJson1ExperimentTemplateActionStartAfterList = (output,
|
|
|
1762
1762
|
if (entry === null) {
|
|
1763
1763
|
return null;
|
|
1764
1764
|
}
|
|
1765
|
-
return
|
|
1765
|
+
return smithy_client_1.expectString(entry);
|
|
1766
1766
|
});
|
|
1767
1767
|
};
|
|
1768
1768
|
const deserializeAws_restJson1ExperimentTemplateActionTargetMap = (output, context) => {
|
|
@@ -1772,14 +1772,14 @@ const deserializeAws_restJson1ExperimentTemplateActionTargetMap = (output, conte
|
|
|
1772
1772
|
}
|
|
1773
1773
|
return {
|
|
1774
1774
|
...acc,
|
|
1775
|
-
[key]:
|
|
1775
|
+
[key]: smithy_client_1.expectString(value),
|
|
1776
1776
|
};
|
|
1777
1777
|
}, {});
|
|
1778
1778
|
};
|
|
1779
1779
|
const deserializeAws_restJson1ExperimentTemplateStopCondition = (output, context) => {
|
|
1780
1780
|
return {
|
|
1781
|
-
source:
|
|
1782
|
-
value:
|
|
1781
|
+
source: smithy_client_1.expectString(output.source),
|
|
1782
|
+
value: smithy_client_1.expectString(output.value),
|
|
1783
1783
|
};
|
|
1784
1784
|
};
|
|
1785
1785
|
const deserializeAws_restJson1ExperimentTemplateStopConditionList = (output, context) => {
|
|
@@ -1795,12 +1795,12 @@ const deserializeAws_restJson1ExperimentTemplateStopConditionList = (output, con
|
|
|
1795
1795
|
const deserializeAws_restJson1ExperimentTemplateSummary = (output, context) => {
|
|
1796
1796
|
return {
|
|
1797
1797
|
creationTime: output.creationTime !== undefined && output.creationTime !== null
|
|
1798
|
-
?
|
|
1798
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.creationTime)))
|
|
1799
1799
|
: undefined,
|
|
1800
|
-
description:
|
|
1801
|
-
id:
|
|
1800
|
+
description: smithy_client_1.expectString(output.description),
|
|
1801
|
+
id: smithy_client_1.expectString(output.id),
|
|
1802
1802
|
lastUpdateTime: output.lastUpdateTime !== undefined && output.lastUpdateTime !== null
|
|
1803
|
-
?
|
|
1803
|
+
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.lastUpdateTime)))
|
|
1804
1804
|
: undefined,
|
|
1805
1805
|
tags: output.tags !== undefined && output.tags !== null
|
|
1806
1806
|
? deserializeAws_restJson1TagMap(output.tags, context)
|
|
@@ -1828,13 +1828,13 @@ const deserializeAws_restJson1ExperimentTemplateTarget = (output, context) => {
|
|
|
1828
1828
|
resourceTags: output.resourceTags !== undefined && output.resourceTags !== null
|
|
1829
1829
|
? deserializeAws_restJson1TagMap(output.resourceTags, context)
|
|
1830
1830
|
: undefined,
|
|
1831
|
-
resourceType:
|
|
1832
|
-
selectionMode:
|
|
1831
|
+
resourceType: smithy_client_1.expectString(output.resourceType),
|
|
1832
|
+
selectionMode: smithy_client_1.expectString(output.selectionMode),
|
|
1833
1833
|
};
|
|
1834
1834
|
};
|
|
1835
1835
|
const deserializeAws_restJson1ExperimentTemplateTargetFilter = (output, context) => {
|
|
1836
1836
|
return {
|
|
1837
|
-
path:
|
|
1837
|
+
path: smithy_client_1.expectString(output.path),
|
|
1838
1838
|
values: output.values !== undefined && output.values !== null
|
|
1839
1839
|
? deserializeAws_restJson1ExperimentTemplateTargetFilterValues(output.values, context)
|
|
1840
1840
|
: undefined,
|
|
@@ -1857,7 +1857,7 @@ const deserializeAws_restJson1ExperimentTemplateTargetFilterValues = (output, co
|
|
|
1857
1857
|
if (entry === null) {
|
|
1858
1858
|
return null;
|
|
1859
1859
|
}
|
|
1860
|
-
return
|
|
1860
|
+
return smithy_client_1.expectString(entry);
|
|
1861
1861
|
});
|
|
1862
1862
|
};
|
|
1863
1863
|
const deserializeAws_restJson1ExperimentTemplateTargetMap = (output, context) => {
|
|
@@ -1878,7 +1878,7 @@ const deserializeAws_restJson1ResourceArnList = (output, context) => {
|
|
|
1878
1878
|
if (entry === null) {
|
|
1879
1879
|
return null;
|
|
1880
1880
|
}
|
|
1881
|
-
return
|
|
1881
|
+
return smithy_client_1.expectString(entry);
|
|
1882
1882
|
});
|
|
1883
1883
|
};
|
|
1884
1884
|
const deserializeAws_restJson1TagMap = (output, context) => {
|
|
@@ -1888,7 +1888,7 @@ const deserializeAws_restJson1TagMap = (output, context) => {
|
|
|
1888
1888
|
}
|
|
1889
1889
|
return {
|
|
1890
1890
|
...acc,
|
|
1891
|
-
[key]:
|
|
1891
|
+
[key]: smithy_client_1.expectString(value),
|
|
1892
1892
|
};
|
|
1893
1893
|
}, {});
|
|
1894
1894
|
};
|