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