@aws-sdk/client-route53profiles 3.560.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/LICENSE +201 -0
- package/README.md +335 -0
- package/dist-cjs/Route53Profiles.js +43 -0
- package/dist-cjs/Route53ProfilesClient.js +56 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/AssociateProfileCommand.js +28 -0
- package/dist-cjs/commands/AssociateResourceToProfileCommand.js +28 -0
- package/dist-cjs/commands/CreateProfileCommand.js +28 -0
- package/dist-cjs/commands/DeleteProfileCommand.js +28 -0
- package/dist-cjs/commands/DisassociateProfileCommand.js +28 -0
- package/dist-cjs/commands/DisassociateResourceFromProfileCommand.js +28 -0
- package/dist-cjs/commands/GetProfileAssociationCommand.js +28 -0
- package/dist-cjs/commands/GetProfileCommand.js +28 -0
- package/dist-cjs/commands/GetProfileResourceAssociationCommand.js +28 -0
- package/dist-cjs/commands/ListProfileAssociationsCommand.js +28 -0
- package/dist-cjs/commands/ListProfileResourceAssociationsCommand.js +28 -0
- package/dist-cjs/commands/ListProfilesCommand.js +28 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +28 -0
- package/dist-cjs/commands/TagResourceCommand.js +28 -0
- package/dist-cjs/commands/UntagResourceCommand.js +28 -0
- package/dist-cjs/commands/UpdateProfileResourceAssociationCommand.js +28 -0
- package/dist-cjs/commands/index.js +19 -0
- package/dist-cjs/endpoint/EndpointParameters.js +18 -0
- package/dist-cjs/endpoint/endpointResolver.js +14 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/Route53ProfilesServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +161 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListProfileAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListProfileResourceAssociationsPaginator.js +7 -0
- package/dist-cjs/pagination/ListProfilesPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +7 -0
- package/dist-cjs/protocols/Aws_restJson1.js +719 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +49 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-es/Route53Profiles.js +39 -0
- package/dist-es/Route53ProfilesClient.js +52 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/AssociateProfileCommand.js +24 -0
- package/dist-es/commands/AssociateResourceToProfileCommand.js +24 -0
- package/dist-es/commands/CreateProfileCommand.js +24 -0
- package/dist-es/commands/DeleteProfileCommand.js +24 -0
- package/dist-es/commands/DisassociateProfileCommand.js +24 -0
- package/dist-es/commands/DisassociateResourceFromProfileCommand.js +24 -0
- package/dist-es/commands/GetProfileAssociationCommand.js +24 -0
- package/dist-es/commands/GetProfileCommand.js +24 -0
- package/dist-es/commands/GetProfileResourceAssociationCommand.js +24 -0
- package/dist-es/commands/ListProfileAssociationsCommand.js +24 -0
- package/dist-es/commands/ListProfileResourceAssociationsCommand.js +24 -0
- package/dist-es/commands/ListProfilesCommand.js +24 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
- package/dist-es/commands/TagResourceCommand.js +24 -0
- package/dist-es/commands/UntagResourceCommand.js +24 -0
- package/dist-es/commands/UpdateProfileResourceAssociationCommand.js +24 -0
- package/dist-es/commands/index.js +16 -0
- package/dist-es/endpoint/EndpointParameters.js +14 -0
- package/dist-es/endpoint/endpointResolver.js +10 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/Route53ProfilesServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +148 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListProfileAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListProfileResourceAssociationsPaginator.js +4 -0
- package/dist-es/pagination/ListProfilesPaginator.js +4 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +684 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +44 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-types/Route53Profiles.d.ts +126 -0
- package/dist-types/Route53ProfilesClient.d.ts +189 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/AssociateProfileCommand.d.ts +119 -0
- package/dist-types/commands/AssociateResourceToProfileCommand.d.ts +116 -0
- package/dist-types/commands/CreateProfileCommand.d.ts +104 -0
- package/dist-types/commands/DeleteProfileCommand.d.ts +97 -0
- package/dist-types/commands/DisassociateProfileCommand.d.ts +102 -0
- package/dist-types/commands/DisassociateResourceFromProfileCommand.d.ts +114 -0
- package/dist-types/commands/GetProfileAssociationCommand.d.ts +91 -0
- package/dist-types/commands/GetProfileCommand.d.ts +92 -0
- package/dist-types/commands/GetProfileResourceAssociationCommand.d.ts +98 -0
- package/dist-types/commands/ListProfileAssociationsCommand.d.ts +102 -0
- package/dist-types/commands/ListProfileResourceAssociationsCommand.d.ts +114 -0
- package/dist-types/commands/ListProfilesCommand.d.ts +95 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +88 -0
- package/dist-types/commands/TagResourceCommand.d.ts +82 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +87 -0
- package/dist-types/commands/UpdateProfileResourceAssociationCommand.d.ts +115 -0
- package/dist-types/commands/index.d.ts +16 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +40 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +16 -0
- package/dist-types/models/Route53ProfilesServiceException.d.ts +13 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +1067 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListProfileAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfileResourceAssociationsPaginator.d.ts +7 -0
- package/dist-types/pagination/ListProfilesPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +146 -0
- package/dist-types/runtimeConfig.browser.d.ts +45 -0
- package/dist-types/runtimeConfig.d.ts +45 -0
- package/dist-types/runtimeConfig.native.d.ts +44 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/Route53Profiles.d.ts +281 -0
- package/dist-types/ts3.4/Route53ProfilesClient.d.ts +217 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +44 -0
- package/dist-types/ts3.4/commands/AssociateProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/AssociateResourceToProfileCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/CreateProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteProfileCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DisassociateProfileCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/DisassociateResourceFromProfileCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetProfileAssociationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/GetProfileCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/GetProfileResourceAssociationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListProfileAssociationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListProfileResourceAssociationsCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/ListProfilesCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UpdateProfileResourceAssociationCommand.d.ts +39 -0
- package/dist-types/ts3.4/commands/index.d.ts +16 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +51 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +9 -0
- package/dist-types/ts3.4/models/Route53ProfilesServiceException.d.ts +8 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +261 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
- package/dist-types/ts3.4/pagination/ListProfileAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfileResourceAssociationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListProfilesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +197 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +81 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
- package/package.json +103 -0
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.de_UpdateProfileResourceAssociationCommand = exports.de_UntagResourceCommand = exports.de_TagResourceCommand = exports.de_ListTagsForResourceCommand = exports.de_ListProfilesCommand = exports.de_ListProfileResourceAssociationsCommand = exports.de_ListProfileAssociationsCommand = exports.de_GetProfileResourceAssociationCommand = exports.de_GetProfileAssociationCommand = exports.de_GetProfileCommand = exports.de_DisassociateResourceFromProfileCommand = exports.de_DisassociateProfileCommand = exports.de_DeleteProfileCommand = exports.de_CreateProfileCommand = exports.de_AssociateResourceToProfileCommand = exports.de_AssociateProfileCommand = exports.se_UpdateProfileResourceAssociationCommand = exports.se_UntagResourceCommand = exports.se_TagResourceCommand = exports.se_ListTagsForResourceCommand = exports.se_ListProfilesCommand = exports.se_ListProfileResourceAssociationsCommand = exports.se_ListProfileAssociationsCommand = exports.se_GetProfileResourceAssociationCommand = exports.se_GetProfileAssociationCommand = exports.se_GetProfileCommand = exports.se_DisassociateResourceFromProfileCommand = exports.se_DisassociateProfileCommand = exports.se_DeleteProfileCommand = exports.se_CreateProfileCommand = exports.se_AssociateResourceToProfileCommand = exports.se_AssociateProfileCommand = void 0;
|
|
4
|
+
const core_1 = require("@aws-sdk/core");
|
|
5
|
+
const core_2 = require("@smithy/core");
|
|
6
|
+
const smithy_client_1 = require("@smithy/smithy-client");
|
|
7
|
+
const uuid_1 = require("uuid");
|
|
8
|
+
const models_0_1 = require("../models/models_0");
|
|
9
|
+
const Route53ProfilesServiceException_1 = require("../models/Route53ProfilesServiceException");
|
|
10
|
+
const se_AssociateProfileCommand = async (input, context) => {
|
|
11
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
12
|
+
const headers = {
|
|
13
|
+
"content-type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
b.bp("/profileassociation");
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
18
|
+
Name: [],
|
|
19
|
+
ProfileId: [],
|
|
20
|
+
ResourceId: [],
|
|
21
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
22
|
+
}));
|
|
23
|
+
b.m("POST").h(headers).b(body);
|
|
24
|
+
return b.build();
|
|
25
|
+
};
|
|
26
|
+
exports.se_AssociateProfileCommand = se_AssociateProfileCommand;
|
|
27
|
+
const se_AssociateResourceToProfileCommand = async (input, context) => {
|
|
28
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
29
|
+
const headers = {
|
|
30
|
+
"content-type": "application/json",
|
|
31
|
+
};
|
|
32
|
+
b.bp("/profileresourceassociation");
|
|
33
|
+
let body;
|
|
34
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
35
|
+
Name: [],
|
|
36
|
+
ProfileId: [],
|
|
37
|
+
ResourceArn: [],
|
|
38
|
+
ResourceProperties: [],
|
|
39
|
+
}));
|
|
40
|
+
b.m("POST").h(headers).b(body);
|
|
41
|
+
return b.build();
|
|
42
|
+
};
|
|
43
|
+
exports.se_AssociateResourceToProfileCommand = se_AssociateResourceToProfileCommand;
|
|
44
|
+
const se_CreateProfileCommand = async (input, context) => {
|
|
45
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
46
|
+
const headers = {
|
|
47
|
+
"content-type": "application/json",
|
|
48
|
+
};
|
|
49
|
+
b.bp("/profile");
|
|
50
|
+
let body;
|
|
51
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
52
|
+
ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
53
|
+
Name: [],
|
|
54
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
55
|
+
}));
|
|
56
|
+
b.m("POST").h(headers).b(body);
|
|
57
|
+
return b.build();
|
|
58
|
+
};
|
|
59
|
+
exports.se_CreateProfileCommand = se_CreateProfileCommand;
|
|
60
|
+
const se_DeleteProfileCommand = async (input, context) => {
|
|
61
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
62
|
+
const headers = {};
|
|
63
|
+
b.bp("/profile/{ProfileId}");
|
|
64
|
+
b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
65
|
+
let body;
|
|
66
|
+
b.m("DELETE").h(headers).b(body);
|
|
67
|
+
return b.build();
|
|
68
|
+
};
|
|
69
|
+
exports.se_DeleteProfileCommand = se_DeleteProfileCommand;
|
|
70
|
+
const se_DisassociateProfileCommand = async (input, context) => {
|
|
71
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
72
|
+
const headers = {};
|
|
73
|
+
b.bp("/profileassociation/Profileid/{ProfileId}/resourceid/{ResourceId}");
|
|
74
|
+
b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
75
|
+
b.p("ResourceId", () => input.ResourceId, "{ResourceId}", false);
|
|
76
|
+
let body;
|
|
77
|
+
b.m("DELETE").h(headers).b(body);
|
|
78
|
+
return b.build();
|
|
79
|
+
};
|
|
80
|
+
exports.se_DisassociateProfileCommand = se_DisassociateProfileCommand;
|
|
81
|
+
const se_DisassociateResourceFromProfileCommand = async (input, context) => {
|
|
82
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
83
|
+
const headers = {};
|
|
84
|
+
b.bp("/profileresourceassociation/profileid/{ProfileId}/resourcearn/{ResourceArn}");
|
|
85
|
+
b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
86
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
87
|
+
let body;
|
|
88
|
+
b.m("DELETE").h(headers).b(body);
|
|
89
|
+
return b.build();
|
|
90
|
+
};
|
|
91
|
+
exports.se_DisassociateResourceFromProfileCommand = se_DisassociateResourceFromProfileCommand;
|
|
92
|
+
const se_GetProfileCommand = async (input, context) => {
|
|
93
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
94
|
+
const headers = {};
|
|
95
|
+
b.bp("/profile/{ProfileId}");
|
|
96
|
+
b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
97
|
+
let body;
|
|
98
|
+
b.m("GET").h(headers).b(body);
|
|
99
|
+
return b.build();
|
|
100
|
+
};
|
|
101
|
+
exports.se_GetProfileCommand = se_GetProfileCommand;
|
|
102
|
+
const se_GetProfileAssociationCommand = async (input, context) => {
|
|
103
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
104
|
+
const headers = {};
|
|
105
|
+
b.bp("/profileassociation/{ProfileAssociationId}");
|
|
106
|
+
b.p("ProfileAssociationId", () => input.ProfileAssociationId, "{ProfileAssociationId}", false);
|
|
107
|
+
let body;
|
|
108
|
+
b.m("GET").h(headers).b(body);
|
|
109
|
+
return b.build();
|
|
110
|
+
};
|
|
111
|
+
exports.se_GetProfileAssociationCommand = se_GetProfileAssociationCommand;
|
|
112
|
+
const se_GetProfileResourceAssociationCommand = async (input, context) => {
|
|
113
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
114
|
+
const headers = {};
|
|
115
|
+
b.bp("/profileresourceassociation/{ProfileResourceAssociationId}");
|
|
116
|
+
b.p("ProfileResourceAssociationId", () => input.ProfileResourceAssociationId, "{ProfileResourceAssociationId}", false);
|
|
117
|
+
let body;
|
|
118
|
+
b.m("GET").h(headers).b(body);
|
|
119
|
+
return b.build();
|
|
120
|
+
};
|
|
121
|
+
exports.se_GetProfileResourceAssociationCommand = se_GetProfileResourceAssociationCommand;
|
|
122
|
+
const se_ListProfileAssociationsCommand = async (input, context) => {
|
|
123
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
124
|
+
const headers = {};
|
|
125
|
+
b.bp("/profileassociations");
|
|
126
|
+
const query = (0, smithy_client_1.map)({
|
|
127
|
+
[_rI]: [, input[_RI]],
|
|
128
|
+
[_pI]: [, input[_PI]],
|
|
129
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
130
|
+
[_nT]: [, input[_NT]],
|
|
131
|
+
});
|
|
132
|
+
let body;
|
|
133
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
134
|
+
return b.build();
|
|
135
|
+
};
|
|
136
|
+
exports.se_ListProfileAssociationsCommand = se_ListProfileAssociationsCommand;
|
|
137
|
+
const se_ListProfileResourceAssociationsCommand = async (input, context) => {
|
|
138
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
139
|
+
const headers = {};
|
|
140
|
+
b.bp("/profileresourceassociations/profileid/{ProfileId}");
|
|
141
|
+
b.p("ProfileId", () => input.ProfileId, "{ProfileId}", false);
|
|
142
|
+
const query = (0, smithy_client_1.map)({
|
|
143
|
+
[_rT]: [, input[_RT]],
|
|
144
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
145
|
+
[_nT]: [, input[_NT]],
|
|
146
|
+
});
|
|
147
|
+
let body;
|
|
148
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
149
|
+
return b.build();
|
|
150
|
+
};
|
|
151
|
+
exports.se_ListProfileResourceAssociationsCommand = se_ListProfileResourceAssociationsCommand;
|
|
152
|
+
const se_ListProfilesCommand = async (input, context) => {
|
|
153
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
154
|
+
const headers = {};
|
|
155
|
+
b.bp("/profiles");
|
|
156
|
+
const query = (0, smithy_client_1.map)({
|
|
157
|
+
[_mR]: [() => input.MaxResults !== void 0, () => input[_MR].toString()],
|
|
158
|
+
[_nT]: [, input[_NT]],
|
|
159
|
+
});
|
|
160
|
+
let body;
|
|
161
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
162
|
+
return b.build();
|
|
163
|
+
};
|
|
164
|
+
exports.se_ListProfilesCommand = se_ListProfilesCommand;
|
|
165
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
166
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
167
|
+
const headers = {};
|
|
168
|
+
b.bp("/tags/{ResourceArn}");
|
|
169
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
170
|
+
let body;
|
|
171
|
+
b.m("GET").h(headers).b(body);
|
|
172
|
+
return b.build();
|
|
173
|
+
};
|
|
174
|
+
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
175
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
176
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
177
|
+
const headers = {
|
|
178
|
+
"content-type": "application/json",
|
|
179
|
+
};
|
|
180
|
+
b.bp("/tags/{ResourceArn}");
|
|
181
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
182
|
+
let body;
|
|
183
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
184
|
+
Tags: (_) => (0, smithy_client_1._json)(_),
|
|
185
|
+
}));
|
|
186
|
+
b.m("POST").h(headers).b(body);
|
|
187
|
+
return b.build();
|
|
188
|
+
};
|
|
189
|
+
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
190
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
191
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
192
|
+
const headers = {};
|
|
193
|
+
b.bp("/tags/{ResourceArn}");
|
|
194
|
+
b.p("ResourceArn", () => input.ResourceArn, "{ResourceArn}", false);
|
|
195
|
+
const query = (0, smithy_client_1.map)({
|
|
196
|
+
[_tK]: [
|
|
197
|
+
(0, smithy_client_1.expectNonNull)(input.TagKeys, `TagKeys`) != null,
|
|
198
|
+
() => (input[_TK] || []).map((_entry) => _entry),
|
|
199
|
+
],
|
|
200
|
+
});
|
|
201
|
+
let body;
|
|
202
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
203
|
+
return b.build();
|
|
204
|
+
};
|
|
205
|
+
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
206
|
+
const se_UpdateProfileResourceAssociationCommand = async (input, context) => {
|
|
207
|
+
const b = (0, core_2.requestBuilder)(input, context);
|
|
208
|
+
const headers = {
|
|
209
|
+
"content-type": "application/json",
|
|
210
|
+
};
|
|
211
|
+
b.bp("/profileresourceassociation/{ProfileResourceAssociationId}");
|
|
212
|
+
b.p("ProfileResourceAssociationId", () => input.ProfileResourceAssociationId, "{ProfileResourceAssociationId}", false);
|
|
213
|
+
let body;
|
|
214
|
+
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
215
|
+
Name: [],
|
|
216
|
+
ResourceProperties: [],
|
|
217
|
+
}));
|
|
218
|
+
b.m("PATCH").h(headers).b(body);
|
|
219
|
+
return b.build();
|
|
220
|
+
};
|
|
221
|
+
exports.se_UpdateProfileResourceAssociationCommand = se_UpdateProfileResourceAssociationCommand;
|
|
222
|
+
const de_AssociateProfileCommand = async (output, context) => {
|
|
223
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
224
|
+
return de_CommandError(output, context);
|
|
225
|
+
}
|
|
226
|
+
const contents = (0, smithy_client_1.map)({
|
|
227
|
+
$metadata: deserializeMetadata(output),
|
|
228
|
+
});
|
|
229
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
230
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
231
|
+
ProfileAssociation: (_) => de_ProfileAssociation(_, context),
|
|
232
|
+
});
|
|
233
|
+
Object.assign(contents, doc);
|
|
234
|
+
return contents;
|
|
235
|
+
};
|
|
236
|
+
exports.de_AssociateProfileCommand = de_AssociateProfileCommand;
|
|
237
|
+
const de_AssociateResourceToProfileCommand = async (output, context) => {
|
|
238
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
239
|
+
return de_CommandError(output, context);
|
|
240
|
+
}
|
|
241
|
+
const contents = (0, smithy_client_1.map)({
|
|
242
|
+
$metadata: deserializeMetadata(output),
|
|
243
|
+
});
|
|
244
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
245
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
246
|
+
ProfileResourceAssociation: (_) => de_ProfileResourceAssociation(_, context),
|
|
247
|
+
});
|
|
248
|
+
Object.assign(contents, doc);
|
|
249
|
+
return contents;
|
|
250
|
+
};
|
|
251
|
+
exports.de_AssociateResourceToProfileCommand = de_AssociateResourceToProfileCommand;
|
|
252
|
+
const de_CreateProfileCommand = async (output, context) => {
|
|
253
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
254
|
+
return de_CommandError(output, context);
|
|
255
|
+
}
|
|
256
|
+
const contents = (0, smithy_client_1.map)({
|
|
257
|
+
$metadata: deserializeMetadata(output),
|
|
258
|
+
});
|
|
259
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
260
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
261
|
+
Profile: (_) => de_Profile(_, context),
|
|
262
|
+
});
|
|
263
|
+
Object.assign(contents, doc);
|
|
264
|
+
return contents;
|
|
265
|
+
};
|
|
266
|
+
exports.de_CreateProfileCommand = de_CreateProfileCommand;
|
|
267
|
+
const de_DeleteProfileCommand = async (output, context) => {
|
|
268
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
269
|
+
return de_CommandError(output, context);
|
|
270
|
+
}
|
|
271
|
+
const contents = (0, smithy_client_1.map)({
|
|
272
|
+
$metadata: deserializeMetadata(output),
|
|
273
|
+
});
|
|
274
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
275
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
276
|
+
Profile: (_) => de_Profile(_, context),
|
|
277
|
+
});
|
|
278
|
+
Object.assign(contents, doc);
|
|
279
|
+
return contents;
|
|
280
|
+
};
|
|
281
|
+
exports.de_DeleteProfileCommand = de_DeleteProfileCommand;
|
|
282
|
+
const de_DisassociateProfileCommand = async (output, context) => {
|
|
283
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
284
|
+
return de_CommandError(output, context);
|
|
285
|
+
}
|
|
286
|
+
const contents = (0, smithy_client_1.map)({
|
|
287
|
+
$metadata: deserializeMetadata(output),
|
|
288
|
+
});
|
|
289
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
290
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
291
|
+
ProfileAssociation: (_) => de_ProfileAssociation(_, context),
|
|
292
|
+
});
|
|
293
|
+
Object.assign(contents, doc);
|
|
294
|
+
return contents;
|
|
295
|
+
};
|
|
296
|
+
exports.de_DisassociateProfileCommand = de_DisassociateProfileCommand;
|
|
297
|
+
const de_DisassociateResourceFromProfileCommand = async (output, context) => {
|
|
298
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
299
|
+
return de_CommandError(output, context);
|
|
300
|
+
}
|
|
301
|
+
const contents = (0, smithy_client_1.map)({
|
|
302
|
+
$metadata: deserializeMetadata(output),
|
|
303
|
+
});
|
|
304
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
305
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
306
|
+
ProfileResourceAssociation: (_) => de_ProfileResourceAssociation(_, context),
|
|
307
|
+
});
|
|
308
|
+
Object.assign(contents, doc);
|
|
309
|
+
return contents;
|
|
310
|
+
};
|
|
311
|
+
exports.de_DisassociateResourceFromProfileCommand = de_DisassociateResourceFromProfileCommand;
|
|
312
|
+
const de_GetProfileCommand = async (output, context) => {
|
|
313
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
314
|
+
return de_CommandError(output, context);
|
|
315
|
+
}
|
|
316
|
+
const contents = (0, smithy_client_1.map)({
|
|
317
|
+
$metadata: deserializeMetadata(output),
|
|
318
|
+
});
|
|
319
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
320
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
321
|
+
Profile: (_) => de_Profile(_, context),
|
|
322
|
+
});
|
|
323
|
+
Object.assign(contents, doc);
|
|
324
|
+
return contents;
|
|
325
|
+
};
|
|
326
|
+
exports.de_GetProfileCommand = de_GetProfileCommand;
|
|
327
|
+
const de_GetProfileAssociationCommand = async (output, context) => {
|
|
328
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
329
|
+
return de_CommandError(output, context);
|
|
330
|
+
}
|
|
331
|
+
const contents = (0, smithy_client_1.map)({
|
|
332
|
+
$metadata: deserializeMetadata(output),
|
|
333
|
+
});
|
|
334
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
335
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
336
|
+
ProfileAssociation: (_) => de_ProfileAssociation(_, context),
|
|
337
|
+
});
|
|
338
|
+
Object.assign(contents, doc);
|
|
339
|
+
return contents;
|
|
340
|
+
};
|
|
341
|
+
exports.de_GetProfileAssociationCommand = de_GetProfileAssociationCommand;
|
|
342
|
+
const de_GetProfileResourceAssociationCommand = async (output, context) => {
|
|
343
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
344
|
+
return de_CommandError(output, context);
|
|
345
|
+
}
|
|
346
|
+
const contents = (0, smithy_client_1.map)({
|
|
347
|
+
$metadata: deserializeMetadata(output),
|
|
348
|
+
});
|
|
349
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
350
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
351
|
+
ProfileResourceAssociation: (_) => de_ProfileResourceAssociation(_, context),
|
|
352
|
+
});
|
|
353
|
+
Object.assign(contents, doc);
|
|
354
|
+
return contents;
|
|
355
|
+
};
|
|
356
|
+
exports.de_GetProfileResourceAssociationCommand = de_GetProfileResourceAssociationCommand;
|
|
357
|
+
const de_ListProfileAssociationsCommand = async (output, context) => {
|
|
358
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
359
|
+
return de_CommandError(output, context);
|
|
360
|
+
}
|
|
361
|
+
const contents = (0, smithy_client_1.map)({
|
|
362
|
+
$metadata: deserializeMetadata(output),
|
|
363
|
+
});
|
|
364
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
365
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
366
|
+
NextToken: smithy_client_1.expectString,
|
|
367
|
+
ProfileAssociations: (_) => de_ProfileAssociations(_, context),
|
|
368
|
+
});
|
|
369
|
+
Object.assign(contents, doc);
|
|
370
|
+
return contents;
|
|
371
|
+
};
|
|
372
|
+
exports.de_ListProfileAssociationsCommand = de_ListProfileAssociationsCommand;
|
|
373
|
+
const de_ListProfileResourceAssociationsCommand = async (output, context) => {
|
|
374
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
375
|
+
return de_CommandError(output, context);
|
|
376
|
+
}
|
|
377
|
+
const contents = (0, smithy_client_1.map)({
|
|
378
|
+
$metadata: deserializeMetadata(output),
|
|
379
|
+
});
|
|
380
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
381
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
382
|
+
NextToken: smithy_client_1.expectString,
|
|
383
|
+
ProfileResourceAssociations: (_) => de_ProfileResourceAssociations(_, context),
|
|
384
|
+
});
|
|
385
|
+
Object.assign(contents, doc);
|
|
386
|
+
return contents;
|
|
387
|
+
};
|
|
388
|
+
exports.de_ListProfileResourceAssociationsCommand = de_ListProfileResourceAssociationsCommand;
|
|
389
|
+
const de_ListProfilesCommand = async (output, context) => {
|
|
390
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
391
|
+
return de_CommandError(output, context);
|
|
392
|
+
}
|
|
393
|
+
const contents = (0, smithy_client_1.map)({
|
|
394
|
+
$metadata: deserializeMetadata(output),
|
|
395
|
+
});
|
|
396
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
397
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
398
|
+
NextToken: smithy_client_1.expectString,
|
|
399
|
+
ProfileSummaries: smithy_client_1._json,
|
|
400
|
+
});
|
|
401
|
+
Object.assign(contents, doc);
|
|
402
|
+
return contents;
|
|
403
|
+
};
|
|
404
|
+
exports.de_ListProfilesCommand = de_ListProfilesCommand;
|
|
405
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
406
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
407
|
+
return de_CommandError(output, context);
|
|
408
|
+
}
|
|
409
|
+
const contents = (0, smithy_client_1.map)({
|
|
410
|
+
$metadata: deserializeMetadata(output),
|
|
411
|
+
});
|
|
412
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
413
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
414
|
+
Tags: smithy_client_1._json,
|
|
415
|
+
});
|
|
416
|
+
Object.assign(contents, doc);
|
|
417
|
+
return contents;
|
|
418
|
+
};
|
|
419
|
+
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
420
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
421
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
422
|
+
return de_CommandError(output, context);
|
|
423
|
+
}
|
|
424
|
+
const contents = (0, smithy_client_1.map)({
|
|
425
|
+
$metadata: deserializeMetadata(output),
|
|
426
|
+
});
|
|
427
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
428
|
+
return contents;
|
|
429
|
+
};
|
|
430
|
+
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
431
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
432
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
433
|
+
return de_CommandError(output, context);
|
|
434
|
+
}
|
|
435
|
+
const contents = (0, smithy_client_1.map)({
|
|
436
|
+
$metadata: deserializeMetadata(output),
|
|
437
|
+
});
|
|
438
|
+
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
439
|
+
return contents;
|
|
440
|
+
};
|
|
441
|
+
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
442
|
+
const de_UpdateProfileResourceAssociationCommand = async (output, context) => {
|
|
443
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
444
|
+
return de_CommandError(output, context);
|
|
445
|
+
}
|
|
446
|
+
const contents = (0, smithy_client_1.map)({
|
|
447
|
+
$metadata: deserializeMetadata(output),
|
|
448
|
+
});
|
|
449
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await (0, core_1.parseJsonBody)(output.body, context)), "body");
|
|
450
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
451
|
+
ProfileResourceAssociation: (_) => de_ProfileResourceAssociation(_, context),
|
|
452
|
+
});
|
|
453
|
+
Object.assign(contents, doc);
|
|
454
|
+
return contents;
|
|
455
|
+
};
|
|
456
|
+
exports.de_UpdateProfileResourceAssociationCommand = de_UpdateProfileResourceAssociationCommand;
|
|
457
|
+
const de_CommandError = async (output, context) => {
|
|
458
|
+
const parsedOutput = {
|
|
459
|
+
...output,
|
|
460
|
+
body: await (0, core_1.parseJsonErrorBody)(output.body, context),
|
|
461
|
+
};
|
|
462
|
+
const errorCode = (0, core_1.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
463
|
+
switch (errorCode) {
|
|
464
|
+
case "AccessDeniedException":
|
|
465
|
+
case "com.amazonaws.route53profiles#AccessDeniedException":
|
|
466
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
467
|
+
case "ConflictException":
|
|
468
|
+
case "com.amazonaws.route53profiles#ConflictException":
|
|
469
|
+
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
470
|
+
case "InvalidParameterException":
|
|
471
|
+
case "com.amazonaws.route53profiles#InvalidParameterException":
|
|
472
|
+
throw await de_InvalidParameterExceptionRes(parsedOutput, context);
|
|
473
|
+
case "LimitExceededException":
|
|
474
|
+
case "com.amazonaws.route53profiles#LimitExceededException":
|
|
475
|
+
throw await de_LimitExceededExceptionRes(parsedOutput, context);
|
|
476
|
+
case "ResourceExistsException":
|
|
477
|
+
case "com.amazonaws.route53profiles#ResourceExistsException":
|
|
478
|
+
throw await de_ResourceExistsExceptionRes(parsedOutput, context);
|
|
479
|
+
case "ResourceNotFoundException":
|
|
480
|
+
case "com.amazonaws.route53profiles#ResourceNotFoundException":
|
|
481
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
482
|
+
case "ThrottlingException":
|
|
483
|
+
case "com.amazonaws.route53profiles#ThrottlingException":
|
|
484
|
+
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
485
|
+
case "ValidationException":
|
|
486
|
+
case "com.amazonaws.route53profiles#ValidationException":
|
|
487
|
+
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
488
|
+
case "InternalServiceErrorException":
|
|
489
|
+
case "com.amazonaws.route53profiles#InternalServiceErrorException":
|
|
490
|
+
throw await de_InternalServiceErrorExceptionRes(parsedOutput, context);
|
|
491
|
+
case "InvalidNextTokenException":
|
|
492
|
+
case "com.amazonaws.route53profiles#InvalidNextTokenException":
|
|
493
|
+
throw await de_InvalidNextTokenExceptionRes(parsedOutput, context);
|
|
494
|
+
default:
|
|
495
|
+
const parsedBody = parsedOutput.body;
|
|
496
|
+
return throwDefaultError({
|
|
497
|
+
output,
|
|
498
|
+
parsedBody,
|
|
499
|
+
errorCode,
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
const throwDefaultError = (0, smithy_client_1.withBaseException)(Route53ProfilesServiceException_1.Route53ProfilesServiceException);
|
|
504
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
505
|
+
const contents = (0, smithy_client_1.map)({});
|
|
506
|
+
const data = parsedOutput.body;
|
|
507
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
508
|
+
Message: smithy_client_1.expectString,
|
|
509
|
+
});
|
|
510
|
+
Object.assign(contents, doc);
|
|
511
|
+
const exception = new models_0_1.AccessDeniedException({
|
|
512
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
513
|
+
...contents,
|
|
514
|
+
});
|
|
515
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
516
|
+
};
|
|
517
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
518
|
+
const contents = (0, smithy_client_1.map)({});
|
|
519
|
+
const data = parsedOutput.body;
|
|
520
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
521
|
+
Message: smithy_client_1.expectString,
|
|
522
|
+
});
|
|
523
|
+
Object.assign(contents, doc);
|
|
524
|
+
const exception = new models_0_1.ConflictException({
|
|
525
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
526
|
+
...contents,
|
|
527
|
+
});
|
|
528
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
529
|
+
};
|
|
530
|
+
const de_InternalServiceErrorExceptionRes = async (parsedOutput, context) => {
|
|
531
|
+
const contents = (0, smithy_client_1.map)({});
|
|
532
|
+
const data = parsedOutput.body;
|
|
533
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
534
|
+
Message: smithy_client_1.expectString,
|
|
535
|
+
});
|
|
536
|
+
Object.assign(contents, doc);
|
|
537
|
+
const exception = new models_0_1.InternalServiceErrorException({
|
|
538
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
539
|
+
...contents,
|
|
540
|
+
});
|
|
541
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
542
|
+
};
|
|
543
|
+
const de_InvalidNextTokenExceptionRes = async (parsedOutput, context) => {
|
|
544
|
+
const contents = (0, smithy_client_1.map)({});
|
|
545
|
+
const data = parsedOutput.body;
|
|
546
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
547
|
+
Message: smithy_client_1.expectString,
|
|
548
|
+
});
|
|
549
|
+
Object.assign(contents, doc);
|
|
550
|
+
const exception = new models_0_1.InvalidNextTokenException({
|
|
551
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
552
|
+
...contents,
|
|
553
|
+
});
|
|
554
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
555
|
+
};
|
|
556
|
+
const de_InvalidParameterExceptionRes = async (parsedOutput, context) => {
|
|
557
|
+
const contents = (0, smithy_client_1.map)({});
|
|
558
|
+
const data = parsedOutput.body;
|
|
559
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
560
|
+
FieldName: smithy_client_1.expectString,
|
|
561
|
+
Message: smithy_client_1.expectString,
|
|
562
|
+
});
|
|
563
|
+
Object.assign(contents, doc);
|
|
564
|
+
const exception = new models_0_1.InvalidParameterException({
|
|
565
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
566
|
+
...contents,
|
|
567
|
+
});
|
|
568
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
569
|
+
};
|
|
570
|
+
const de_LimitExceededExceptionRes = async (parsedOutput, context) => {
|
|
571
|
+
const contents = (0, smithy_client_1.map)({});
|
|
572
|
+
const data = parsedOutput.body;
|
|
573
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
574
|
+
Message: smithy_client_1.expectString,
|
|
575
|
+
ResourceType: smithy_client_1.expectString,
|
|
576
|
+
});
|
|
577
|
+
Object.assign(contents, doc);
|
|
578
|
+
const exception = new models_0_1.LimitExceededException({
|
|
579
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
580
|
+
...contents,
|
|
581
|
+
});
|
|
582
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
583
|
+
};
|
|
584
|
+
const de_ResourceExistsExceptionRes = async (parsedOutput, context) => {
|
|
585
|
+
const contents = (0, smithy_client_1.map)({});
|
|
586
|
+
const data = parsedOutput.body;
|
|
587
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
588
|
+
Message: smithy_client_1.expectString,
|
|
589
|
+
ResourceType: smithy_client_1.expectString,
|
|
590
|
+
});
|
|
591
|
+
Object.assign(contents, doc);
|
|
592
|
+
const exception = new models_0_1.ResourceExistsException({
|
|
593
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
594
|
+
...contents,
|
|
595
|
+
});
|
|
596
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
597
|
+
};
|
|
598
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
599
|
+
const contents = (0, smithy_client_1.map)({});
|
|
600
|
+
const data = parsedOutput.body;
|
|
601
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
602
|
+
Message: smithy_client_1.expectString,
|
|
603
|
+
ResourceType: smithy_client_1.expectString,
|
|
604
|
+
});
|
|
605
|
+
Object.assign(contents, doc);
|
|
606
|
+
const exception = new models_0_1.ResourceNotFoundException({
|
|
607
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
608
|
+
...contents,
|
|
609
|
+
});
|
|
610
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
611
|
+
};
|
|
612
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
613
|
+
const contents = (0, smithy_client_1.map)({});
|
|
614
|
+
const data = parsedOutput.body;
|
|
615
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
616
|
+
Message: smithy_client_1.expectString,
|
|
617
|
+
});
|
|
618
|
+
Object.assign(contents, doc);
|
|
619
|
+
const exception = new models_0_1.ThrottlingException({
|
|
620
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
621
|
+
...contents,
|
|
622
|
+
});
|
|
623
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
624
|
+
};
|
|
625
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
626
|
+
const contents = (0, smithy_client_1.map)({});
|
|
627
|
+
const data = parsedOutput.body;
|
|
628
|
+
const doc = (0, smithy_client_1.take)(data, {
|
|
629
|
+
Message: smithy_client_1.expectString,
|
|
630
|
+
});
|
|
631
|
+
Object.assign(contents, doc);
|
|
632
|
+
const exception = new models_0_1.ValidationException({
|
|
633
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
634
|
+
...contents,
|
|
635
|
+
});
|
|
636
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
637
|
+
};
|
|
638
|
+
const de_Profile = (output, context) => {
|
|
639
|
+
return (0, smithy_client_1.take)(output, {
|
|
640
|
+
Arn: smithy_client_1.expectString,
|
|
641
|
+
ClientToken: smithy_client_1.expectString,
|
|
642
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
643
|
+
Id: smithy_client_1.expectString,
|
|
644
|
+
ModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
645
|
+
Name: smithy_client_1.expectString,
|
|
646
|
+
OwnerId: smithy_client_1.expectString,
|
|
647
|
+
ShareStatus: smithy_client_1.expectString,
|
|
648
|
+
Status: smithy_client_1.expectString,
|
|
649
|
+
StatusMessage: smithy_client_1.expectString,
|
|
650
|
+
});
|
|
651
|
+
};
|
|
652
|
+
const de_ProfileAssociation = (output, context) => {
|
|
653
|
+
return (0, smithy_client_1.take)(output, {
|
|
654
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
655
|
+
Id: smithy_client_1.expectString,
|
|
656
|
+
ModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
657
|
+
Name: smithy_client_1.expectString,
|
|
658
|
+
OwnerId: smithy_client_1.expectString,
|
|
659
|
+
ProfileId: smithy_client_1.expectString,
|
|
660
|
+
ResourceId: smithy_client_1.expectString,
|
|
661
|
+
Status: smithy_client_1.expectString,
|
|
662
|
+
StatusMessage: smithy_client_1.expectString,
|
|
663
|
+
});
|
|
664
|
+
};
|
|
665
|
+
const de_ProfileAssociations = (output, context) => {
|
|
666
|
+
const retVal = (output || [])
|
|
667
|
+
.filter((e) => e != null)
|
|
668
|
+
.map((entry) => {
|
|
669
|
+
return de_ProfileAssociation(entry, context);
|
|
670
|
+
});
|
|
671
|
+
return retVal;
|
|
672
|
+
};
|
|
673
|
+
const de_ProfileResourceAssociation = (output, context) => {
|
|
674
|
+
return (0, smithy_client_1.take)(output, {
|
|
675
|
+
CreationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
676
|
+
Id: smithy_client_1.expectString,
|
|
677
|
+
ModificationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))),
|
|
678
|
+
Name: smithy_client_1.expectString,
|
|
679
|
+
OwnerId: smithy_client_1.expectString,
|
|
680
|
+
ProfileId: smithy_client_1.expectString,
|
|
681
|
+
ResourceArn: smithy_client_1.expectString,
|
|
682
|
+
ResourceProperties: smithy_client_1.expectString,
|
|
683
|
+
ResourceType: smithy_client_1.expectString,
|
|
684
|
+
Status: smithy_client_1.expectString,
|
|
685
|
+
StatusMessage: smithy_client_1.expectString,
|
|
686
|
+
});
|
|
687
|
+
};
|
|
688
|
+
const de_ProfileResourceAssociations = (output, context) => {
|
|
689
|
+
const retVal = (output || [])
|
|
690
|
+
.filter((e) => e != null)
|
|
691
|
+
.map((entry) => {
|
|
692
|
+
return de_ProfileResourceAssociation(entry, context);
|
|
693
|
+
});
|
|
694
|
+
return retVal;
|
|
695
|
+
};
|
|
696
|
+
const deserializeMetadata = (output) => ({
|
|
697
|
+
httpStatusCode: output.statusCode,
|
|
698
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
699
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
700
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
701
|
+
});
|
|
702
|
+
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
703
|
+
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
704
|
+
value !== null &&
|
|
705
|
+
value !== "" &&
|
|
706
|
+
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
707
|
+
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
708
|
+
const _MR = "MaxResults";
|
|
709
|
+
const _NT = "NextToken";
|
|
710
|
+
const _PI = "ProfileId";
|
|
711
|
+
const _RI = "ResourceId";
|
|
712
|
+
const _RT = "ResourceType";
|
|
713
|
+
const _TK = "TagKeys";
|
|
714
|
+
const _mR = "maxResults";
|
|
715
|
+
const _nT = "nextToken";
|
|
716
|
+
const _pI = "profileId";
|
|
717
|
+
const _rI = "resourceId";
|
|
718
|
+
const _rT = "resourceType";
|
|
719
|
+
const _tK = "tagKeys";
|