@aws-sdk/client-grafana 3.899.0 → 3.906.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/dist-cjs/index.js +1852 -2196
- package/package.json +38 -38
package/dist-cjs/index.js
CHANGED
|
@@ -1,2237 +1,1893 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
var
|
|
7
|
-
var
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
var
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
CreateWorkspaceCommand: () => CreateWorkspaceCommand,
|
|
34
|
-
CreateWorkspaceRequestFilterSensitiveLog: () => CreateWorkspaceRequestFilterSensitiveLog,
|
|
35
|
-
CreateWorkspaceResponseFilterSensitiveLog: () => CreateWorkspaceResponseFilterSensitiveLog,
|
|
36
|
-
CreateWorkspaceServiceAccountCommand: () => CreateWorkspaceServiceAccountCommand,
|
|
37
|
-
CreateWorkspaceServiceAccountTokenCommand: () => CreateWorkspaceServiceAccountTokenCommand,
|
|
38
|
-
CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog: () => CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog,
|
|
39
|
-
DataSourceType: () => DataSourceType,
|
|
40
|
-
DeleteWorkspaceApiKeyCommand: () => DeleteWorkspaceApiKeyCommand,
|
|
41
|
-
DeleteWorkspaceCommand: () => DeleteWorkspaceCommand,
|
|
42
|
-
DeleteWorkspaceResponseFilterSensitiveLog: () => DeleteWorkspaceResponseFilterSensitiveLog,
|
|
43
|
-
DeleteWorkspaceServiceAccountCommand: () => DeleteWorkspaceServiceAccountCommand,
|
|
44
|
-
DeleteWorkspaceServiceAccountTokenCommand: () => DeleteWorkspaceServiceAccountTokenCommand,
|
|
45
|
-
DescribeWorkspaceAuthenticationCommand: () => DescribeWorkspaceAuthenticationCommand,
|
|
46
|
-
DescribeWorkspaceAuthenticationResponseFilterSensitiveLog: () => DescribeWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
47
|
-
DescribeWorkspaceCommand: () => DescribeWorkspaceCommand,
|
|
48
|
-
DescribeWorkspaceConfigurationCommand: () => DescribeWorkspaceConfigurationCommand,
|
|
49
|
-
DescribeWorkspaceResponseFilterSensitiveLog: () => DescribeWorkspaceResponseFilterSensitiveLog,
|
|
50
|
-
DisassociateLicenseCommand: () => DisassociateLicenseCommand,
|
|
51
|
-
DisassociateLicenseResponseFilterSensitiveLog: () => DisassociateLicenseResponseFilterSensitiveLog,
|
|
52
|
-
Grafana: () => Grafana,
|
|
53
|
-
GrafanaClient: () => GrafanaClient,
|
|
54
|
-
GrafanaServiceException: () => GrafanaServiceException,
|
|
55
|
-
IdpMetadata: () => IdpMetadata,
|
|
56
|
-
InternalServerException: () => InternalServerException,
|
|
57
|
-
LicenseType: () => LicenseType,
|
|
58
|
-
ListPermissionsCommand: () => ListPermissionsCommand,
|
|
59
|
-
ListTagsForResourceCommand: () => ListTagsForResourceCommand,
|
|
60
|
-
ListVersionsCommand: () => ListVersionsCommand,
|
|
61
|
-
ListWorkspaceServiceAccountTokensCommand: () => ListWorkspaceServiceAccountTokensCommand,
|
|
62
|
-
ListWorkspaceServiceAccountsCommand: () => ListWorkspaceServiceAccountsCommand,
|
|
63
|
-
ListWorkspacesCommand: () => ListWorkspacesCommand,
|
|
64
|
-
ListWorkspacesResponseFilterSensitiveLog: () => ListWorkspacesResponseFilterSensitiveLog,
|
|
65
|
-
NotificationDestinationType: () => NotificationDestinationType,
|
|
66
|
-
PermissionType: () => PermissionType,
|
|
67
|
-
ResourceNotFoundException: () => ResourceNotFoundException,
|
|
68
|
-
Role: () => Role,
|
|
69
|
-
RoleValuesFilterSensitiveLog: () => RoleValuesFilterSensitiveLog,
|
|
70
|
-
SamlAuthenticationFilterSensitiveLog: () => SamlAuthenticationFilterSensitiveLog,
|
|
71
|
-
SamlConfigurationFilterSensitiveLog: () => SamlConfigurationFilterSensitiveLog,
|
|
72
|
-
SamlConfigurationStatus: () => SamlConfigurationStatus,
|
|
73
|
-
ServiceAccountTokenSummaryWithKeyFilterSensitiveLog: () => ServiceAccountTokenSummaryWithKeyFilterSensitiveLog,
|
|
74
|
-
ServiceQuotaExceededException: () => ServiceQuotaExceededException,
|
|
75
|
-
TagResourceCommand: () => TagResourceCommand,
|
|
76
|
-
ThrottlingException: () => ThrottlingException,
|
|
77
|
-
UntagResourceCommand: () => UntagResourceCommand,
|
|
78
|
-
UpdateAction: () => UpdateAction,
|
|
79
|
-
UpdatePermissionsCommand: () => UpdatePermissionsCommand,
|
|
80
|
-
UpdateWorkspaceAuthenticationCommand: () => UpdateWorkspaceAuthenticationCommand,
|
|
81
|
-
UpdateWorkspaceAuthenticationRequestFilterSensitiveLog: () => UpdateWorkspaceAuthenticationRequestFilterSensitiveLog,
|
|
82
|
-
UpdateWorkspaceAuthenticationResponseFilterSensitiveLog: () => UpdateWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
83
|
-
UpdateWorkspaceCommand: () => UpdateWorkspaceCommand,
|
|
84
|
-
UpdateWorkspaceConfigurationCommand: () => UpdateWorkspaceConfigurationCommand,
|
|
85
|
-
UpdateWorkspaceRequestFilterSensitiveLog: () => UpdateWorkspaceRequestFilterSensitiveLog,
|
|
86
|
-
UpdateWorkspaceResponseFilterSensitiveLog: () => UpdateWorkspaceResponseFilterSensitiveLog,
|
|
87
|
-
UserType: () => UserType,
|
|
88
|
-
ValidationException: () => ValidationException,
|
|
89
|
-
ValidationExceptionReason: () => ValidationExceptionReason,
|
|
90
|
-
WorkspaceDescriptionFilterSensitiveLog: () => WorkspaceDescriptionFilterSensitiveLog,
|
|
91
|
-
WorkspaceStatus: () => WorkspaceStatus,
|
|
92
|
-
WorkspaceSummaryFilterSensitiveLog: () => WorkspaceSummaryFilterSensitiveLog,
|
|
93
|
-
__Client: () => import_smithy_client.Client,
|
|
94
|
-
paginateListPermissions: () => paginateListPermissions,
|
|
95
|
-
paginateListVersions: () => paginateListVersions,
|
|
96
|
-
paginateListWorkspaceServiceAccountTokens: () => paginateListWorkspaceServiceAccountTokens,
|
|
97
|
-
paginateListWorkspaceServiceAccounts: () => paginateListWorkspaceServiceAccounts,
|
|
98
|
-
paginateListWorkspaces: () => paginateListWorkspaces
|
|
99
|
-
});
|
|
100
|
-
module.exports = __toCommonJS(index_exports);
|
|
101
|
-
|
|
102
|
-
// src/GrafanaClient.ts
|
|
103
|
-
var import_middleware_host_header = require("@aws-sdk/middleware-host-header");
|
|
104
|
-
var import_middleware_logger = require("@aws-sdk/middleware-logger");
|
|
105
|
-
var import_middleware_recursion_detection = require("@aws-sdk/middleware-recursion-detection");
|
|
106
|
-
var import_middleware_user_agent = require("@aws-sdk/middleware-user-agent");
|
|
107
|
-
var import_config_resolver = require("@smithy/config-resolver");
|
|
108
|
-
var import_core = require("@smithy/core");
|
|
109
|
-
var import_middleware_content_length = require("@smithy/middleware-content-length");
|
|
110
|
-
var import_middleware_endpoint = require("@smithy/middleware-endpoint");
|
|
111
|
-
var import_middleware_retry = require("@smithy/middleware-retry");
|
|
112
|
-
|
|
113
|
-
var import_httpAuthSchemeProvider = require("./auth/httpAuthSchemeProvider");
|
|
114
|
-
|
|
115
|
-
// src/endpoint/EndpointParameters.ts
|
|
116
|
-
var resolveClientEndpointParameters = /* @__PURE__ */ __name((options) => {
|
|
117
|
-
return Object.assign(options, {
|
|
118
|
-
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
119
|
-
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
120
|
-
defaultSigningName: "grafana"
|
|
121
|
-
});
|
|
122
|
-
}, "resolveClientEndpointParameters");
|
|
123
|
-
var commonParams = {
|
|
124
|
-
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
125
|
-
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
126
|
-
Region: { type: "builtInParams", name: "region" },
|
|
127
|
-
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var middlewareHostHeader = require('@aws-sdk/middleware-host-header');
|
|
4
|
+
var middlewareLogger = require('@aws-sdk/middleware-logger');
|
|
5
|
+
var middlewareRecursionDetection = require('@aws-sdk/middleware-recursion-detection');
|
|
6
|
+
var middlewareUserAgent = require('@aws-sdk/middleware-user-agent');
|
|
7
|
+
var configResolver = require('@smithy/config-resolver');
|
|
8
|
+
var core = require('@smithy/core');
|
|
9
|
+
var middlewareContentLength = require('@smithy/middleware-content-length');
|
|
10
|
+
var middlewareEndpoint = require('@smithy/middleware-endpoint');
|
|
11
|
+
var middlewareRetry = require('@smithy/middleware-retry');
|
|
12
|
+
var smithyClient = require('@smithy/smithy-client');
|
|
13
|
+
var httpAuthSchemeProvider = require('./auth/httpAuthSchemeProvider');
|
|
14
|
+
var runtimeConfig = require('./runtimeConfig');
|
|
15
|
+
var regionConfigResolver = require('@aws-sdk/region-config-resolver');
|
|
16
|
+
var protocolHttp = require('@smithy/protocol-http');
|
|
17
|
+
var middlewareSerde = require('@smithy/middleware-serde');
|
|
18
|
+
var core$1 = require('@aws-sdk/core');
|
|
19
|
+
var uuid = require('@smithy/uuid');
|
|
20
|
+
|
|
21
|
+
const resolveClientEndpointParameters = (options) => {
|
|
22
|
+
return Object.assign(options, {
|
|
23
|
+
useDualstackEndpoint: options.useDualstackEndpoint ?? false,
|
|
24
|
+
useFipsEndpoint: options.useFipsEndpoint ?? false,
|
|
25
|
+
defaultSigningName: "grafana",
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
const commonParams = {
|
|
29
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
30
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
31
|
+
Region: { type: "builtInParams", name: "region" },
|
|
32
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
128
33
|
};
|
|
129
34
|
|
|
130
|
-
|
|
131
|
-
|
|
35
|
+
const getHttpAuthExtensionConfiguration = (runtimeConfig) => {
|
|
36
|
+
const _httpAuthSchemes = runtimeConfig.httpAuthSchemes;
|
|
37
|
+
let _httpAuthSchemeProvider = runtimeConfig.httpAuthSchemeProvider;
|
|
38
|
+
let _credentials = runtimeConfig.credentials;
|
|
39
|
+
return {
|
|
40
|
+
setHttpAuthScheme(httpAuthScheme) {
|
|
41
|
+
const index = _httpAuthSchemes.findIndex((scheme) => scheme.schemeId === httpAuthScheme.schemeId);
|
|
42
|
+
if (index === -1) {
|
|
43
|
+
_httpAuthSchemes.push(httpAuthScheme);
|
|
44
|
+
}
|
|
45
|
+
else {
|
|
46
|
+
_httpAuthSchemes.splice(index, 1, httpAuthScheme);
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
httpAuthSchemes() {
|
|
50
|
+
return _httpAuthSchemes;
|
|
51
|
+
},
|
|
52
|
+
setHttpAuthSchemeProvider(httpAuthSchemeProvider) {
|
|
53
|
+
_httpAuthSchemeProvider = httpAuthSchemeProvider;
|
|
54
|
+
},
|
|
55
|
+
httpAuthSchemeProvider() {
|
|
56
|
+
return _httpAuthSchemeProvider;
|
|
57
|
+
},
|
|
58
|
+
setCredentials(credentials) {
|
|
59
|
+
_credentials = credentials;
|
|
60
|
+
},
|
|
61
|
+
credentials() {
|
|
62
|
+
return _credentials;
|
|
63
|
+
},
|
|
64
|
+
};
|
|
65
|
+
};
|
|
66
|
+
const resolveHttpAuthRuntimeConfig = (config) => {
|
|
67
|
+
return {
|
|
68
|
+
httpAuthSchemes: config.httpAuthSchemes(),
|
|
69
|
+
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
70
|
+
credentials: config.credentials(),
|
|
71
|
+
};
|
|
72
|
+
};
|
|
132
73
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
74
|
+
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
75
|
+
const extensionConfiguration = Object.assign(regionConfigResolver.getAwsRegionExtensionConfiguration(runtimeConfig), smithyClient.getDefaultExtensionConfiguration(runtimeConfig), protocolHttp.getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
|
|
76
|
+
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
77
|
+
return Object.assign(runtimeConfig, regionConfigResolver.resolveAwsRegionExtensionConfiguration(extensionConfiguration), smithyClient.resolveDefaultRuntimeConfig(extensionConfiguration), protocolHttp.resolveHttpHandlerRuntimeConfig(extensionConfiguration), resolveHttpAuthRuntimeConfig(extensionConfiguration));
|
|
78
|
+
};
|
|
137
79
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
80
|
+
class GrafanaClient extends smithyClient.Client {
|
|
81
|
+
config;
|
|
82
|
+
constructor(...[configuration]) {
|
|
83
|
+
const _config_0 = runtimeConfig.getRuntimeConfig(configuration || {});
|
|
84
|
+
super(_config_0);
|
|
85
|
+
this.initConfig = _config_0;
|
|
86
|
+
const _config_1 = resolveClientEndpointParameters(_config_0);
|
|
87
|
+
const _config_2 = middlewareUserAgent.resolveUserAgentConfig(_config_1);
|
|
88
|
+
const _config_3 = middlewareRetry.resolveRetryConfig(_config_2);
|
|
89
|
+
const _config_4 = configResolver.resolveRegionConfig(_config_3);
|
|
90
|
+
const _config_5 = middlewareHostHeader.resolveHostHeaderConfig(_config_4);
|
|
91
|
+
const _config_6 = middlewareEndpoint.resolveEndpointConfig(_config_5);
|
|
92
|
+
const _config_7 = httpAuthSchemeProvider.resolveHttpAuthSchemeConfig(_config_6);
|
|
93
|
+
const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []);
|
|
94
|
+
this.config = _config_8;
|
|
95
|
+
this.middlewareStack.use(middlewareUserAgent.getUserAgentPlugin(this.config));
|
|
96
|
+
this.middlewareStack.use(middlewareRetry.getRetryPlugin(this.config));
|
|
97
|
+
this.middlewareStack.use(middlewareContentLength.getContentLengthPlugin(this.config));
|
|
98
|
+
this.middlewareStack.use(middlewareHostHeader.getHostHeaderPlugin(this.config));
|
|
99
|
+
this.middlewareStack.use(middlewareLogger.getLoggerPlugin(this.config));
|
|
100
|
+
this.middlewareStack.use(middlewareRecursionDetection.getRecursionDetectionPlugin(this.config));
|
|
101
|
+
this.middlewareStack.use(core.getHttpAuthSchemeEndpointRuleSetPlugin(this.config, {
|
|
102
|
+
httpAuthSchemeParametersProvider: httpAuthSchemeProvider.defaultGrafanaHttpAuthSchemeParametersProvider,
|
|
103
|
+
identityProviderConfigProvider: async (config) => new core.DefaultIdentityProviderConfig({
|
|
104
|
+
"aws.auth#sigv4": config.credentials,
|
|
105
|
+
}),
|
|
106
|
+
}));
|
|
107
|
+
this.middlewareStack.use(core.getHttpSigningPlugin(this.config));
|
|
166
108
|
}
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
httpAuthSchemes: config.httpAuthSchemes(),
|
|
172
|
-
httpAuthSchemeProvider: config.httpAuthSchemeProvider(),
|
|
173
|
-
credentials: config.credentials()
|
|
174
|
-
};
|
|
175
|
-
}, "resolveHttpAuthRuntimeConfig");
|
|
176
|
-
|
|
177
|
-
// src/runtimeExtensions.ts
|
|
178
|
-
var resolveRuntimeExtensions = /* @__PURE__ */ __name((runtimeConfig, extensions) => {
|
|
179
|
-
const extensionConfiguration = Object.assign(
|
|
180
|
-
(0, import_region_config_resolver.getAwsRegionExtensionConfiguration)(runtimeConfig),
|
|
181
|
-
(0, import_smithy_client.getDefaultExtensionConfiguration)(runtimeConfig),
|
|
182
|
-
(0, import_protocol_http.getHttpHandlerExtensionConfiguration)(runtimeConfig),
|
|
183
|
-
getHttpAuthExtensionConfiguration(runtimeConfig)
|
|
184
|
-
);
|
|
185
|
-
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
186
|
-
return Object.assign(
|
|
187
|
-
runtimeConfig,
|
|
188
|
-
(0, import_region_config_resolver.resolveAwsRegionExtensionConfiguration)(extensionConfiguration),
|
|
189
|
-
(0, import_smithy_client.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
190
|
-
(0, import_protocol_http.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
191
|
-
resolveHttpAuthRuntimeConfig(extensionConfiguration)
|
|
192
|
-
);
|
|
193
|
-
}, "resolveRuntimeExtensions");
|
|
109
|
+
destroy() {
|
|
110
|
+
super.destroy();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
194
113
|
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
this.middlewareStack.use((0, import_middleware_user_agent.getUserAgentPlugin)(this.config));
|
|
218
|
-
this.middlewareStack.use((0, import_middleware_retry.getRetryPlugin)(this.config));
|
|
219
|
-
this.middlewareStack.use((0, import_middleware_content_length.getContentLengthPlugin)(this.config));
|
|
220
|
-
this.middlewareStack.use((0, import_middleware_host_header.getHostHeaderPlugin)(this.config));
|
|
221
|
-
this.middlewareStack.use((0, import_middleware_logger.getLoggerPlugin)(this.config));
|
|
222
|
-
this.middlewareStack.use((0, import_middleware_recursion_detection.getRecursionDetectionPlugin)(this.config));
|
|
223
|
-
this.middlewareStack.use(
|
|
224
|
-
(0, import_core.getHttpAuthSchemeEndpointRuleSetPlugin)(this.config, {
|
|
225
|
-
httpAuthSchemeParametersProvider: import_httpAuthSchemeProvider.defaultGrafanaHttpAuthSchemeParametersProvider,
|
|
226
|
-
identityProviderConfigProvider: /* @__PURE__ */ __name(async (config) => new import_core.DefaultIdentityProviderConfig({
|
|
227
|
-
"aws.auth#sigv4": config.credentials
|
|
228
|
-
}), "identityProviderConfigProvider")
|
|
229
|
-
})
|
|
230
|
-
);
|
|
231
|
-
this.middlewareStack.use((0, import_core.getHttpSigningPlugin)(this.config));
|
|
232
|
-
}
|
|
233
|
-
/**
|
|
234
|
-
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
235
|
-
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
236
|
-
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
237
|
-
*/
|
|
238
|
-
destroy() {
|
|
239
|
-
super.destroy();
|
|
240
|
-
}
|
|
114
|
+
class GrafanaServiceException extends smithyClient.ServiceException {
|
|
115
|
+
constructor(options) {
|
|
116
|
+
super(options);
|
|
117
|
+
Object.setPrototypeOf(this, GrafanaServiceException.prototype);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
class AccessDeniedException extends GrafanaServiceException {
|
|
122
|
+
name = "AccessDeniedException";
|
|
123
|
+
$fault = "client";
|
|
124
|
+
constructor(opts) {
|
|
125
|
+
super({
|
|
126
|
+
name: "AccessDeniedException",
|
|
127
|
+
$fault: "client",
|
|
128
|
+
...opts,
|
|
129
|
+
});
|
|
130
|
+
Object.setPrototypeOf(this, AccessDeniedException.prototype);
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
const AccountAccessType = {
|
|
134
|
+
CURRENT_ACCOUNT: "CURRENT_ACCOUNT",
|
|
135
|
+
ORGANIZATION: "ORGANIZATION",
|
|
241
136
|
};
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
137
|
+
class ConflictException extends GrafanaServiceException {
|
|
138
|
+
name = "ConflictException";
|
|
139
|
+
$fault = "client";
|
|
140
|
+
resourceId;
|
|
141
|
+
resourceType;
|
|
142
|
+
constructor(opts) {
|
|
143
|
+
super({
|
|
144
|
+
name: "ConflictException",
|
|
145
|
+
$fault: "client",
|
|
146
|
+
...opts,
|
|
147
|
+
});
|
|
148
|
+
Object.setPrototypeOf(this, ConflictException.prototype);
|
|
149
|
+
this.resourceId = opts.resourceId;
|
|
150
|
+
this.resourceType = opts.resourceType;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
class InternalServerException extends GrafanaServiceException {
|
|
154
|
+
name = "InternalServerException";
|
|
155
|
+
$fault = "server";
|
|
156
|
+
$retryable = {};
|
|
157
|
+
retryAfterSeconds;
|
|
158
|
+
constructor(opts) {
|
|
159
|
+
super({
|
|
160
|
+
name: "InternalServerException",
|
|
161
|
+
$fault: "server",
|
|
162
|
+
...opts,
|
|
163
|
+
});
|
|
164
|
+
Object.setPrototypeOf(this, InternalServerException.prototype);
|
|
165
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
class ResourceNotFoundException extends GrafanaServiceException {
|
|
169
|
+
name = "ResourceNotFoundException";
|
|
170
|
+
$fault = "client";
|
|
171
|
+
resourceId;
|
|
172
|
+
resourceType;
|
|
173
|
+
constructor(opts) {
|
|
174
|
+
super({
|
|
175
|
+
name: "ResourceNotFoundException",
|
|
176
|
+
$fault: "client",
|
|
177
|
+
...opts,
|
|
178
|
+
});
|
|
179
|
+
Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
|
|
180
|
+
this.resourceId = opts.resourceId;
|
|
181
|
+
this.resourceType = opts.resourceType;
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
class ServiceQuotaExceededException extends GrafanaServiceException {
|
|
185
|
+
name = "ServiceQuotaExceededException";
|
|
186
|
+
$fault = "client";
|
|
187
|
+
resourceId;
|
|
188
|
+
resourceType;
|
|
189
|
+
serviceCode;
|
|
190
|
+
quotaCode;
|
|
191
|
+
constructor(opts) {
|
|
192
|
+
super({
|
|
193
|
+
name: "ServiceQuotaExceededException",
|
|
194
|
+
$fault: "client",
|
|
195
|
+
...opts,
|
|
196
|
+
});
|
|
197
|
+
Object.setPrototypeOf(this, ServiceQuotaExceededException.prototype);
|
|
198
|
+
this.resourceId = opts.resourceId;
|
|
199
|
+
this.resourceType = opts.resourceType;
|
|
200
|
+
this.serviceCode = opts.serviceCode;
|
|
201
|
+
this.quotaCode = opts.quotaCode;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
class ThrottlingException extends GrafanaServiceException {
|
|
205
|
+
name = "ThrottlingException";
|
|
206
|
+
$fault = "client";
|
|
207
|
+
$retryable = {};
|
|
208
|
+
serviceCode;
|
|
209
|
+
quotaCode;
|
|
210
|
+
retryAfterSeconds;
|
|
211
|
+
constructor(opts) {
|
|
212
|
+
super({
|
|
213
|
+
name: "ThrottlingException",
|
|
214
|
+
$fault: "client",
|
|
215
|
+
...opts,
|
|
216
|
+
});
|
|
217
|
+
Object.setPrototypeOf(this, ThrottlingException.prototype);
|
|
218
|
+
this.serviceCode = opts.serviceCode;
|
|
219
|
+
this.quotaCode = opts.quotaCode;
|
|
220
|
+
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
const ValidationExceptionReason = {
|
|
224
|
+
CANNOT_PARSE: "CANNOT_PARSE",
|
|
225
|
+
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
226
|
+
OTHER: "OTHER",
|
|
227
|
+
UNKNOWN_OPERATION: "UNKNOWN_OPERATION",
|
|
267
228
|
};
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
};
|
|
288
|
-
var AccountAccessType = {
|
|
289
|
-
/**
|
|
290
|
-
* Indicates that the customer is using Grafana to monitor resources in their current account.
|
|
291
|
-
*/
|
|
292
|
-
CURRENT_ACCOUNT: "CURRENT_ACCOUNT",
|
|
293
|
-
/**
|
|
294
|
-
* Indicates that the customer is using Grafana to monitor resources in organizational units.
|
|
295
|
-
*/
|
|
296
|
-
ORGANIZATION: "ORGANIZATION"
|
|
297
|
-
};
|
|
298
|
-
var ConflictException = class _ConflictException extends GrafanaServiceException {
|
|
299
|
-
static {
|
|
300
|
-
__name(this, "ConflictException");
|
|
301
|
-
}
|
|
302
|
-
name = "ConflictException";
|
|
303
|
-
$fault = "client";
|
|
304
|
-
/**
|
|
305
|
-
* <p>The ID of the resource that is associated with the error.</p>
|
|
306
|
-
* @public
|
|
307
|
-
*/
|
|
308
|
-
resourceId;
|
|
309
|
-
/**
|
|
310
|
-
* <p>The type of the resource that is associated with the error.</p>
|
|
311
|
-
* @public
|
|
312
|
-
*/
|
|
313
|
-
resourceType;
|
|
314
|
-
/**
|
|
315
|
-
* @internal
|
|
316
|
-
*/
|
|
317
|
-
constructor(opts) {
|
|
318
|
-
super({
|
|
319
|
-
name: "ConflictException",
|
|
320
|
-
$fault: "client",
|
|
321
|
-
...opts
|
|
322
|
-
});
|
|
323
|
-
Object.setPrototypeOf(this, _ConflictException.prototype);
|
|
324
|
-
this.resourceId = opts.resourceId;
|
|
325
|
-
this.resourceType = opts.resourceType;
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
var InternalServerException = class _InternalServerException extends GrafanaServiceException {
|
|
329
|
-
static {
|
|
330
|
-
__name(this, "InternalServerException");
|
|
331
|
-
}
|
|
332
|
-
name = "InternalServerException";
|
|
333
|
-
$fault = "server";
|
|
334
|
-
$retryable = {};
|
|
335
|
-
/**
|
|
336
|
-
* <p>How long to wait before you retry this operation.</p>
|
|
337
|
-
* @public
|
|
338
|
-
*/
|
|
339
|
-
retryAfterSeconds;
|
|
340
|
-
/**
|
|
341
|
-
* @internal
|
|
342
|
-
*/
|
|
343
|
-
constructor(opts) {
|
|
344
|
-
super({
|
|
345
|
-
name: "InternalServerException",
|
|
346
|
-
$fault: "server",
|
|
347
|
-
...opts
|
|
348
|
-
});
|
|
349
|
-
Object.setPrototypeOf(this, _InternalServerException.prototype);
|
|
350
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
var ResourceNotFoundException = class _ResourceNotFoundException extends GrafanaServiceException {
|
|
354
|
-
static {
|
|
355
|
-
__name(this, "ResourceNotFoundException");
|
|
356
|
-
}
|
|
357
|
-
name = "ResourceNotFoundException";
|
|
358
|
-
$fault = "client";
|
|
359
|
-
/**
|
|
360
|
-
* <p>The ID of the resource that is associated with the error.</p>
|
|
361
|
-
* @public
|
|
362
|
-
*/
|
|
363
|
-
resourceId;
|
|
364
|
-
/**
|
|
365
|
-
* <p>The type of the resource that is associated with the error.</p>
|
|
366
|
-
* @public
|
|
367
|
-
*/
|
|
368
|
-
resourceType;
|
|
369
|
-
/**
|
|
370
|
-
* @internal
|
|
371
|
-
*/
|
|
372
|
-
constructor(opts) {
|
|
373
|
-
super({
|
|
374
|
-
name: "ResourceNotFoundException",
|
|
375
|
-
$fault: "client",
|
|
376
|
-
...opts
|
|
377
|
-
});
|
|
378
|
-
Object.setPrototypeOf(this, _ResourceNotFoundException.prototype);
|
|
379
|
-
this.resourceId = opts.resourceId;
|
|
380
|
-
this.resourceType = opts.resourceType;
|
|
381
|
-
}
|
|
382
|
-
};
|
|
383
|
-
var ServiceQuotaExceededException = class _ServiceQuotaExceededException extends GrafanaServiceException {
|
|
384
|
-
static {
|
|
385
|
-
__name(this, "ServiceQuotaExceededException");
|
|
386
|
-
}
|
|
387
|
-
name = "ServiceQuotaExceededException";
|
|
388
|
-
$fault = "client";
|
|
389
|
-
/**
|
|
390
|
-
* <p>The ID of the resource that is associated with the error.</p>
|
|
391
|
-
* @public
|
|
392
|
-
*/
|
|
393
|
-
resourceId;
|
|
394
|
-
/**
|
|
395
|
-
* <p>The type of the resource that is associated with the error.</p>
|
|
396
|
-
* @public
|
|
397
|
-
*/
|
|
398
|
-
resourceType;
|
|
399
|
-
/**
|
|
400
|
-
* <p>The value of a parameter in the request caused an error.</p>
|
|
401
|
-
* @public
|
|
402
|
-
*/
|
|
403
|
-
serviceCode;
|
|
404
|
-
/**
|
|
405
|
-
* <p>The ID of the service quota that was exceeded.</p>
|
|
406
|
-
* @public
|
|
407
|
-
*/
|
|
408
|
-
quotaCode;
|
|
409
|
-
/**
|
|
410
|
-
* @internal
|
|
411
|
-
*/
|
|
412
|
-
constructor(opts) {
|
|
413
|
-
super({
|
|
414
|
-
name: "ServiceQuotaExceededException",
|
|
415
|
-
$fault: "client",
|
|
416
|
-
...opts
|
|
417
|
-
});
|
|
418
|
-
Object.setPrototypeOf(this, _ServiceQuotaExceededException.prototype);
|
|
419
|
-
this.resourceId = opts.resourceId;
|
|
420
|
-
this.resourceType = opts.resourceType;
|
|
421
|
-
this.serviceCode = opts.serviceCode;
|
|
422
|
-
this.quotaCode = opts.quotaCode;
|
|
423
|
-
}
|
|
424
|
-
};
|
|
425
|
-
var ThrottlingException = class _ThrottlingException extends GrafanaServiceException {
|
|
426
|
-
static {
|
|
427
|
-
__name(this, "ThrottlingException");
|
|
428
|
-
}
|
|
429
|
-
name = "ThrottlingException";
|
|
430
|
-
$fault = "client";
|
|
431
|
-
$retryable = {};
|
|
432
|
-
/**
|
|
433
|
-
* <p>The ID of the service that is associated with the error.</p>
|
|
434
|
-
* @public
|
|
435
|
-
*/
|
|
436
|
-
serviceCode;
|
|
437
|
-
/**
|
|
438
|
-
* <p>The ID of the service quota that was exceeded.</p>
|
|
439
|
-
* @public
|
|
440
|
-
*/
|
|
441
|
-
quotaCode;
|
|
442
|
-
/**
|
|
443
|
-
* <p>The value of a parameter in the request caused an error.</p>
|
|
444
|
-
* @public
|
|
445
|
-
*/
|
|
446
|
-
retryAfterSeconds;
|
|
447
|
-
/**
|
|
448
|
-
* @internal
|
|
449
|
-
*/
|
|
450
|
-
constructor(opts) {
|
|
451
|
-
super({
|
|
452
|
-
name: "ThrottlingException",
|
|
453
|
-
$fault: "client",
|
|
454
|
-
...opts
|
|
455
|
-
});
|
|
456
|
-
Object.setPrototypeOf(this, _ThrottlingException.prototype);
|
|
457
|
-
this.serviceCode = opts.serviceCode;
|
|
458
|
-
this.quotaCode = opts.quotaCode;
|
|
459
|
-
this.retryAfterSeconds = opts.retryAfterSeconds;
|
|
460
|
-
}
|
|
461
|
-
};
|
|
462
|
-
var ValidationExceptionReason = {
|
|
463
|
-
CANNOT_PARSE: "CANNOT_PARSE",
|
|
464
|
-
FIELD_VALIDATION_FAILED: "FIELD_VALIDATION_FAILED",
|
|
465
|
-
OTHER: "OTHER",
|
|
466
|
-
UNKNOWN_OPERATION: "UNKNOWN_OPERATION"
|
|
467
|
-
};
|
|
468
|
-
var ValidationException = class _ValidationException extends GrafanaServiceException {
|
|
469
|
-
static {
|
|
470
|
-
__name(this, "ValidationException");
|
|
471
|
-
}
|
|
472
|
-
name = "ValidationException";
|
|
473
|
-
$fault = "client";
|
|
474
|
-
/**
|
|
475
|
-
* <p>The reason that the operation failed.</p>
|
|
476
|
-
* @public
|
|
477
|
-
*/
|
|
478
|
-
reason;
|
|
479
|
-
/**
|
|
480
|
-
* <p>A list of fields that might be associated with the error.</p>
|
|
481
|
-
* @public
|
|
482
|
-
*/
|
|
483
|
-
fieldList;
|
|
484
|
-
/**
|
|
485
|
-
* @internal
|
|
486
|
-
*/
|
|
487
|
-
constructor(opts) {
|
|
488
|
-
super({
|
|
489
|
-
name: "ValidationException",
|
|
490
|
-
$fault: "client",
|
|
491
|
-
...opts
|
|
492
|
-
});
|
|
493
|
-
Object.setPrototypeOf(this, _ValidationException.prototype);
|
|
494
|
-
this.reason = opts.reason;
|
|
495
|
-
this.fieldList = opts.fieldList;
|
|
496
|
-
}
|
|
497
|
-
};
|
|
498
|
-
var LicenseType = {
|
|
499
|
-
/**
|
|
500
|
-
* Grafana Enterprise License.
|
|
501
|
-
*/
|
|
502
|
-
ENTERPRISE: "ENTERPRISE",
|
|
503
|
-
/**
|
|
504
|
-
* Grafana Enterprise Free Trial License.
|
|
505
|
-
*/
|
|
506
|
-
ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL"
|
|
507
|
-
};
|
|
508
|
-
var AuthenticationProviderTypes = {
|
|
509
|
-
/**
|
|
510
|
-
* Indicates that AMG workspace has AWS SSO enabled as its authentication provider.
|
|
511
|
-
*/
|
|
512
|
-
AWS_SSO: "AWS_SSO",
|
|
513
|
-
/**
|
|
514
|
-
* Indicates that the AMG workspace has SAML enabled as its authentication provider.
|
|
515
|
-
*/
|
|
516
|
-
SAML: "SAML"
|
|
517
|
-
};
|
|
518
|
-
var SamlConfigurationStatus = {
|
|
519
|
-
/**
|
|
520
|
-
* Indicates that SAML on an AMG workspace is enabled and has been configured.
|
|
521
|
-
*/
|
|
522
|
-
CONFIGURED: "CONFIGURED",
|
|
523
|
-
/**
|
|
524
|
-
* Indicates that SAML on an AMG workspace is enabled but has not been configured.
|
|
525
|
-
*/
|
|
526
|
-
NOT_CONFIGURED: "NOT_CONFIGURED"
|
|
527
|
-
};
|
|
528
|
-
var DataSourceType = {
|
|
529
|
-
/**
|
|
530
|
-
* Amazon OpenSearch Service
|
|
531
|
-
*/
|
|
532
|
-
AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE",
|
|
533
|
-
/**
|
|
534
|
-
* Amazon Athena
|
|
535
|
-
*/
|
|
536
|
-
ATHENA: "ATHENA",
|
|
537
|
-
/**
|
|
538
|
-
* CloudWatch Logs
|
|
539
|
-
*/
|
|
540
|
-
CLOUDWATCH: "CLOUDWATCH",
|
|
541
|
-
/**
|
|
542
|
-
* Managed Prometheus
|
|
543
|
-
*/
|
|
544
|
-
PROMETHEUS: "PROMETHEUS",
|
|
545
|
-
/**
|
|
546
|
-
* Redshift
|
|
547
|
-
*/
|
|
548
|
-
REDSHIFT: "REDSHIFT",
|
|
549
|
-
/**
|
|
550
|
-
* IoT SiteWise
|
|
551
|
-
*/
|
|
552
|
-
SITEWISE: "SITEWISE",
|
|
553
|
-
/**
|
|
554
|
-
* Timestream
|
|
555
|
-
*/
|
|
556
|
-
TIMESTREAM: "TIMESTREAM",
|
|
557
|
-
/**
|
|
558
|
-
* IoT TwinMaker
|
|
559
|
-
*/
|
|
560
|
-
TWINMAKER: "TWINMAKER",
|
|
561
|
-
/**
|
|
562
|
-
* X-Ray
|
|
563
|
-
*/
|
|
564
|
-
XRAY: "XRAY"
|
|
565
|
-
};
|
|
566
|
-
var NotificationDestinationType = {
|
|
567
|
-
/**
|
|
568
|
-
* AWS Simple Notification Service
|
|
569
|
-
*/
|
|
570
|
-
SNS: "SNS"
|
|
571
|
-
};
|
|
572
|
-
var PermissionType = {
|
|
573
|
-
/**
|
|
574
|
-
* Customer Managed
|
|
575
|
-
*/
|
|
576
|
-
CUSTOMER_MANAGED: "CUSTOMER_MANAGED",
|
|
577
|
-
/**
|
|
578
|
-
* Service Managed
|
|
579
|
-
*/
|
|
580
|
-
SERVICE_MANAGED: "SERVICE_MANAGED"
|
|
581
|
-
};
|
|
582
|
-
var WorkspaceStatus = {
|
|
583
|
-
/**
|
|
584
|
-
* Workspace is active.
|
|
585
|
-
*/
|
|
586
|
-
ACTIVE: "ACTIVE",
|
|
587
|
-
/**
|
|
588
|
-
* Workspace is being created.
|
|
589
|
-
*/
|
|
590
|
-
CREATING: "CREATING",
|
|
591
|
-
/**
|
|
592
|
-
* Workspace creation failed.
|
|
593
|
-
*/
|
|
594
|
-
CREATION_FAILED: "CREATION_FAILED",
|
|
595
|
-
/**
|
|
596
|
-
* Workspace is being deleted.
|
|
597
|
-
*/
|
|
598
|
-
DELETING: "DELETING",
|
|
599
|
-
/**
|
|
600
|
-
* Workspace deletion failed.
|
|
601
|
-
*/
|
|
602
|
-
DELETION_FAILED: "DELETION_FAILED",
|
|
603
|
-
/**
|
|
604
|
-
* Workspace is in an invalid state, it can only and should be deleted.
|
|
605
|
-
*/
|
|
606
|
-
FAILED: "FAILED",
|
|
607
|
-
/**
|
|
608
|
-
* Failed to remove enterprise license from workspace.
|
|
609
|
-
*/
|
|
610
|
-
LICENSE_REMOVAL_FAILED: "LICENSE_REMOVAL_FAILED",
|
|
611
|
-
/**
|
|
612
|
-
* Workspace update failed.
|
|
613
|
-
*/
|
|
614
|
-
UPDATE_FAILED: "UPDATE_FAILED",
|
|
615
|
-
/**
|
|
616
|
-
* Workspace is being updated.
|
|
617
|
-
*/
|
|
618
|
-
UPDATING: "UPDATING",
|
|
619
|
-
/**
|
|
620
|
-
* Workspace upgrade failed.
|
|
621
|
-
*/
|
|
622
|
-
UPGRADE_FAILED: "UPGRADE_FAILED",
|
|
623
|
-
/**
|
|
624
|
-
* Workspace is being upgraded to enterprise.
|
|
625
|
-
*/
|
|
626
|
-
UPGRADING: "UPGRADING",
|
|
627
|
-
/**
|
|
628
|
-
* Workspace version update failed.
|
|
629
|
-
*/
|
|
630
|
-
VERSION_UPDATE_FAILED: "VERSION_UPDATE_FAILED",
|
|
631
|
-
/**
|
|
632
|
-
* Workspace version is being updated.
|
|
633
|
-
*/
|
|
634
|
-
VERSION_UPDATING: "VERSION_UPDATING"
|
|
635
|
-
};
|
|
636
|
-
var IdpMetadata;
|
|
637
|
-
((IdpMetadata3) => {
|
|
638
|
-
IdpMetadata3.visit = /* @__PURE__ */ __name((value, visitor) => {
|
|
639
|
-
if (value.url !== void 0) return visitor.url(value.url);
|
|
640
|
-
if (value.xml !== void 0) return visitor.xml(value.xml);
|
|
641
|
-
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
642
|
-
}, "visit");
|
|
643
|
-
})(IdpMetadata || (IdpMetadata = {}));
|
|
644
|
-
var UserType = {
|
|
645
|
-
/**
|
|
646
|
-
* SSO group.
|
|
647
|
-
*/
|
|
648
|
-
SSO_GROUP: "SSO_GROUP",
|
|
649
|
-
/**
|
|
650
|
-
* SSO user.
|
|
651
|
-
*/
|
|
652
|
-
SSO_USER: "SSO_USER"
|
|
653
|
-
};
|
|
654
|
-
var Role = {
|
|
655
|
-
/**
|
|
656
|
-
* Role Admin.
|
|
657
|
-
*/
|
|
658
|
-
ADMIN: "ADMIN",
|
|
659
|
-
/**
|
|
660
|
-
* Role Editor.
|
|
661
|
-
*/
|
|
662
|
-
EDITOR: "EDITOR",
|
|
663
|
-
/**
|
|
664
|
-
* Role Viewer.
|
|
665
|
-
*/
|
|
666
|
-
VIEWER: "VIEWER"
|
|
667
|
-
};
|
|
668
|
-
var UpdateAction = {
|
|
669
|
-
/**
|
|
670
|
-
* Add permissions.
|
|
671
|
-
*/
|
|
672
|
-
ADD: "ADD",
|
|
673
|
-
/**
|
|
674
|
-
* Revoke permissions.
|
|
675
|
-
*/
|
|
676
|
-
REVOKE: "REVOKE"
|
|
677
|
-
};
|
|
678
|
-
var CreateWorkspaceApiKeyResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
679
|
-
...obj,
|
|
680
|
-
...obj.key && { key: import_smithy_client.SENSITIVE_STRING }
|
|
681
|
-
}), "CreateWorkspaceApiKeyResponseFilterSensitiveLog");
|
|
682
|
-
var WorkspaceDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
683
|
-
...obj,
|
|
684
|
-
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
685
|
-
...obj.name && { name: import_smithy_client.SENSITIVE_STRING },
|
|
686
|
-
...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
|
|
687
|
-
...obj.organizationalUnits && { organizationalUnits: import_smithy_client.SENSITIVE_STRING },
|
|
688
|
-
...obj.workspaceRoleArn && { workspaceRoleArn: import_smithy_client.SENSITIVE_STRING }
|
|
689
|
-
}), "WorkspaceDescriptionFilterSensitiveLog");
|
|
690
|
-
var AssociateLicenseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
691
|
-
...obj,
|
|
692
|
-
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
693
|
-
}), "AssociateLicenseResponseFilterSensitiveLog");
|
|
694
|
-
var RoleValuesFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
695
|
-
...obj,
|
|
696
|
-
...obj.editor && { editor: import_smithy_client.SENSITIVE_STRING },
|
|
697
|
-
...obj.admin && { admin: import_smithy_client.SENSITIVE_STRING }
|
|
698
|
-
}), "RoleValuesFilterSensitiveLog");
|
|
699
|
-
var SamlConfigurationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
700
|
-
...obj,
|
|
701
|
-
...obj.idpMetadata && { idpMetadata: obj.idpMetadata },
|
|
702
|
-
...obj.roleValues && { roleValues: RoleValuesFilterSensitiveLog(obj.roleValues) }
|
|
703
|
-
}), "SamlConfigurationFilterSensitiveLog");
|
|
704
|
-
var SamlAuthenticationFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
705
|
-
...obj,
|
|
706
|
-
...obj.configuration && { configuration: SamlConfigurationFilterSensitiveLog(obj.configuration) }
|
|
707
|
-
}), "SamlAuthenticationFilterSensitiveLog");
|
|
708
|
-
var AuthenticationDescriptionFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
709
|
-
...obj,
|
|
710
|
-
...obj.saml && { saml: SamlAuthenticationFilterSensitiveLog(obj.saml) }
|
|
711
|
-
}), "AuthenticationDescriptionFilterSensitiveLog");
|
|
712
|
-
var DescribeWorkspaceAuthenticationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
713
|
-
...obj,
|
|
714
|
-
...obj.authentication && { authentication: AuthenticationDescriptionFilterSensitiveLog(obj.authentication) }
|
|
715
|
-
}), "DescribeWorkspaceAuthenticationResponseFilterSensitiveLog");
|
|
716
|
-
var UpdateWorkspaceAuthenticationRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
717
|
-
...obj,
|
|
718
|
-
...obj.samlConfiguration && { samlConfiguration: SamlConfigurationFilterSensitiveLog(obj.samlConfiguration) }
|
|
719
|
-
}), "UpdateWorkspaceAuthenticationRequestFilterSensitiveLog");
|
|
720
|
-
var UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
721
|
-
...obj,
|
|
722
|
-
...obj.authentication && { authentication: AuthenticationDescriptionFilterSensitiveLog(obj.authentication) }
|
|
723
|
-
}), "UpdateWorkspaceAuthenticationResponseFilterSensitiveLog");
|
|
724
|
-
var DisassociateLicenseResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
725
|
-
...obj,
|
|
726
|
-
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
727
|
-
}), "DisassociateLicenseResponseFilterSensitiveLog");
|
|
728
|
-
var ServiceAccountTokenSummaryWithKeyFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
729
|
-
...obj,
|
|
730
|
-
...obj.key && { key: import_smithy_client.SENSITIVE_STRING }
|
|
731
|
-
}), "ServiceAccountTokenSummaryWithKeyFilterSensitiveLog");
|
|
732
|
-
var CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
733
|
-
...obj,
|
|
734
|
-
...obj.serviceAccountToken && {
|
|
735
|
-
serviceAccountToken: ServiceAccountTokenSummaryWithKeyFilterSensitiveLog(obj.serviceAccountToken)
|
|
736
|
-
}
|
|
737
|
-
}), "CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog");
|
|
738
|
-
var CreateWorkspaceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
739
|
-
...obj,
|
|
740
|
-
...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
|
|
741
|
-
...obj.workspaceDescription && { workspaceDescription: import_smithy_client.SENSITIVE_STRING },
|
|
742
|
-
...obj.workspaceName && { workspaceName: import_smithy_client.SENSITIVE_STRING },
|
|
743
|
-
...obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: import_smithy_client.SENSITIVE_STRING },
|
|
744
|
-
...obj.workspaceRoleArn && { workspaceRoleArn: import_smithy_client.SENSITIVE_STRING }
|
|
745
|
-
}), "CreateWorkspaceRequestFilterSensitiveLog");
|
|
746
|
-
var CreateWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
747
|
-
...obj,
|
|
748
|
-
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
749
|
-
}), "CreateWorkspaceResponseFilterSensitiveLog");
|
|
750
|
-
var DeleteWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
751
|
-
...obj,
|
|
752
|
-
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
753
|
-
}), "DeleteWorkspaceResponseFilterSensitiveLog");
|
|
754
|
-
var DescribeWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
755
|
-
...obj,
|
|
756
|
-
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
757
|
-
}), "DescribeWorkspaceResponseFilterSensitiveLog");
|
|
758
|
-
var WorkspaceSummaryFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
759
|
-
...obj,
|
|
760
|
-
...obj.description && { description: import_smithy_client.SENSITIVE_STRING },
|
|
761
|
-
...obj.name && { name: import_smithy_client.SENSITIVE_STRING }
|
|
762
|
-
}), "WorkspaceSummaryFilterSensitiveLog");
|
|
763
|
-
var ListWorkspacesResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
764
|
-
...obj,
|
|
765
|
-
...obj.workspaces && { workspaces: obj.workspaces.map((item) => WorkspaceSummaryFilterSensitiveLog(item)) }
|
|
766
|
-
}), "ListWorkspacesResponseFilterSensitiveLog");
|
|
767
|
-
var UpdateWorkspaceRequestFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
768
|
-
...obj,
|
|
769
|
-
...obj.organizationRoleName && { organizationRoleName: import_smithy_client.SENSITIVE_STRING },
|
|
770
|
-
...obj.workspaceDescription && { workspaceDescription: import_smithy_client.SENSITIVE_STRING },
|
|
771
|
-
...obj.workspaceName && { workspaceName: import_smithy_client.SENSITIVE_STRING },
|
|
772
|
-
...obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: import_smithy_client.SENSITIVE_STRING },
|
|
773
|
-
...obj.workspaceRoleArn && { workspaceRoleArn: import_smithy_client.SENSITIVE_STRING }
|
|
774
|
-
}), "UpdateWorkspaceRequestFilterSensitiveLog");
|
|
775
|
-
var UpdateWorkspaceResponseFilterSensitiveLog = /* @__PURE__ */ __name((obj) => ({
|
|
776
|
-
...obj,
|
|
777
|
-
...obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }
|
|
778
|
-
}), "UpdateWorkspaceResponseFilterSensitiveLog");
|
|
779
|
-
|
|
780
|
-
// src/protocols/Aws_restJson1.ts
|
|
781
|
-
var import_core2 = require("@aws-sdk/core");
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
var import_uuid = require("@smithy/uuid");
|
|
785
|
-
var se_AssociateLicenseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
786
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
787
|
-
const headers = (0, import_smithy_client.map)({}, import_smithy_client.isSerializableHeaderValue, {
|
|
788
|
-
[_gt]: input[_gT]
|
|
789
|
-
});
|
|
790
|
-
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
791
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
792
|
-
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
793
|
-
let body;
|
|
794
|
-
b.m("POST").h(headers).b(body);
|
|
795
|
-
return b.build();
|
|
796
|
-
}, "se_AssociateLicenseCommand");
|
|
797
|
-
var se_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
798
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
799
|
-
const headers = {
|
|
800
|
-
"content-type": "application/json"
|
|
801
|
-
};
|
|
802
|
-
b.bp("/workspaces");
|
|
803
|
-
let body;
|
|
804
|
-
body = JSON.stringify(
|
|
805
|
-
(0, import_smithy_client.take)(input, {
|
|
806
|
-
accountAccessType: [],
|
|
807
|
-
authenticationProviders: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "authenticationProviders"),
|
|
808
|
-
clientToken: [true, (_) => _ ?? (0, import_uuid.v4)()],
|
|
809
|
-
configuration: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "configuration"),
|
|
810
|
-
grafanaVersion: [],
|
|
811
|
-
networkAccessControl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "networkAccessControl"),
|
|
812
|
-
organizationRoleName: [],
|
|
813
|
-
permissionType: [],
|
|
814
|
-
stackSetName: [],
|
|
815
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags"),
|
|
816
|
-
vpcConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcConfiguration"),
|
|
817
|
-
workspaceDataSources: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceDataSources"),
|
|
818
|
-
workspaceDescription: [],
|
|
819
|
-
workspaceName: [],
|
|
820
|
-
workspaceNotificationDestinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceNotificationDestinations"),
|
|
821
|
-
workspaceOrganizationalUnits: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceOrganizationalUnits"),
|
|
822
|
-
workspaceRoleArn: []
|
|
823
|
-
})
|
|
824
|
-
);
|
|
825
|
-
b.m("POST").h(headers).b(body);
|
|
826
|
-
return b.build();
|
|
827
|
-
}, "se_CreateWorkspaceCommand");
|
|
828
|
-
var se_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
829
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
830
|
-
const headers = {
|
|
831
|
-
"content-type": "application/json"
|
|
832
|
-
};
|
|
833
|
-
b.bp("/workspaces/{workspaceId}/apikeys");
|
|
834
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
835
|
-
let body;
|
|
836
|
-
body = JSON.stringify(
|
|
837
|
-
(0, import_smithy_client.take)(input, {
|
|
838
|
-
keyName: [],
|
|
839
|
-
keyRole: [],
|
|
840
|
-
secondsToLive: []
|
|
841
|
-
})
|
|
842
|
-
);
|
|
843
|
-
b.m("POST").h(headers).b(body);
|
|
844
|
-
return b.build();
|
|
845
|
-
}, "se_CreateWorkspaceApiKeyCommand");
|
|
846
|
-
var se_CreateWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
847
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
848
|
-
const headers = {
|
|
849
|
-
"content-type": "application/json"
|
|
850
|
-
};
|
|
851
|
-
b.bp("/workspaces/{workspaceId}/serviceaccounts");
|
|
852
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
853
|
-
let body;
|
|
854
|
-
body = JSON.stringify(
|
|
855
|
-
(0, import_smithy_client.take)(input, {
|
|
856
|
-
grafanaRole: [],
|
|
857
|
-
name: []
|
|
858
|
-
})
|
|
859
|
-
);
|
|
860
|
-
b.m("POST").h(headers).b(body);
|
|
861
|
-
return b.build();
|
|
862
|
-
}, "se_CreateWorkspaceServiceAccountCommand");
|
|
863
|
-
var se_CreateWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
864
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
865
|
-
const headers = {
|
|
866
|
-
"content-type": "application/json"
|
|
867
|
-
};
|
|
868
|
-
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens");
|
|
869
|
-
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
870
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
871
|
-
let body;
|
|
872
|
-
body = JSON.stringify(
|
|
873
|
-
(0, import_smithy_client.take)(input, {
|
|
874
|
-
name: [],
|
|
875
|
-
secondsToLive: []
|
|
876
|
-
})
|
|
877
|
-
);
|
|
878
|
-
b.m("POST").h(headers).b(body);
|
|
879
|
-
return b.build();
|
|
880
|
-
}, "se_CreateWorkspaceServiceAccountTokenCommand");
|
|
881
|
-
var se_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
882
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
883
|
-
const headers = {};
|
|
884
|
-
b.bp("/workspaces/{workspaceId}");
|
|
885
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
886
|
-
let body;
|
|
887
|
-
b.m("DELETE").h(headers).b(body);
|
|
888
|
-
return b.build();
|
|
889
|
-
}, "se_DeleteWorkspaceCommand");
|
|
890
|
-
var se_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
891
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
892
|
-
const headers = {};
|
|
893
|
-
b.bp("/workspaces/{workspaceId}/apikeys/{keyName}");
|
|
894
|
-
b.p("keyName", () => input.keyName, "{keyName}", false);
|
|
895
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
896
|
-
let body;
|
|
897
|
-
b.m("DELETE").h(headers).b(body);
|
|
898
|
-
return b.build();
|
|
899
|
-
}, "se_DeleteWorkspaceApiKeyCommand");
|
|
900
|
-
var se_DeleteWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
901
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
902
|
-
const headers = {};
|
|
903
|
-
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}");
|
|
904
|
-
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
905
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
906
|
-
let body;
|
|
907
|
-
b.m("DELETE").h(headers).b(body);
|
|
908
|
-
return b.build();
|
|
909
|
-
}, "se_DeleteWorkspaceServiceAccountCommand");
|
|
910
|
-
var se_DeleteWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
911
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
912
|
-
const headers = {};
|
|
913
|
-
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens/{tokenId}");
|
|
914
|
-
b.p("tokenId", () => input.tokenId, "{tokenId}", false);
|
|
915
|
-
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
916
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
917
|
-
let body;
|
|
918
|
-
b.m("DELETE").h(headers).b(body);
|
|
919
|
-
return b.build();
|
|
920
|
-
}, "se_DeleteWorkspaceServiceAccountTokenCommand");
|
|
921
|
-
var se_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
922
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
923
|
-
const headers = {};
|
|
924
|
-
b.bp("/workspaces/{workspaceId}");
|
|
925
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
926
|
-
let body;
|
|
927
|
-
b.m("GET").h(headers).b(body);
|
|
928
|
-
return b.build();
|
|
929
|
-
}, "se_DescribeWorkspaceCommand");
|
|
930
|
-
var se_DescribeWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
931
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
932
|
-
const headers = {};
|
|
933
|
-
b.bp("/workspaces/{workspaceId}/authentication");
|
|
934
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
935
|
-
let body;
|
|
936
|
-
b.m("GET").h(headers).b(body);
|
|
937
|
-
return b.build();
|
|
938
|
-
}, "se_DescribeWorkspaceAuthenticationCommand");
|
|
939
|
-
var se_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
940
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
941
|
-
const headers = {};
|
|
942
|
-
b.bp("/workspaces/{workspaceId}/configuration");
|
|
943
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
944
|
-
let body;
|
|
945
|
-
b.m("GET").h(headers).b(body);
|
|
946
|
-
return b.build();
|
|
947
|
-
}, "se_DescribeWorkspaceConfigurationCommand");
|
|
948
|
-
var se_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
949
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
950
|
-
const headers = {};
|
|
951
|
-
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
952
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
953
|
-
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
954
|
-
let body;
|
|
955
|
-
b.m("DELETE").h(headers).b(body);
|
|
956
|
-
return b.build();
|
|
957
|
-
}, "se_DisassociateLicenseCommand");
|
|
958
|
-
var se_ListPermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
959
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
960
|
-
const headers = {};
|
|
961
|
-
b.bp("/workspaces/{workspaceId}/permissions");
|
|
962
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
963
|
-
const query = (0, import_smithy_client.map)({
|
|
964
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
965
|
-
[_nT]: [, input[_nT]],
|
|
966
|
-
[_uT]: [, input[_uT]],
|
|
967
|
-
[_uI]: [, input[_uI]],
|
|
968
|
-
[_gI]: [, input[_gI]]
|
|
969
|
-
});
|
|
970
|
-
let body;
|
|
971
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
972
|
-
return b.build();
|
|
973
|
-
}, "se_ListPermissionsCommand");
|
|
974
|
-
var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
975
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
976
|
-
const headers = {};
|
|
977
|
-
b.bp("/tags/{resourceArn}");
|
|
978
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
979
|
-
let body;
|
|
980
|
-
b.m("GET").h(headers).b(body);
|
|
981
|
-
return b.build();
|
|
982
|
-
}, "se_ListTagsForResourceCommand");
|
|
983
|
-
var se_ListVersionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
984
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
985
|
-
const headers = {};
|
|
986
|
-
b.bp("/versions");
|
|
987
|
-
const query = (0, import_smithy_client.map)({
|
|
988
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
989
|
-
[_nT]: [, input[_nT]],
|
|
990
|
-
[_wi]: [, input[_wI]]
|
|
991
|
-
});
|
|
992
|
-
let body;
|
|
993
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
994
|
-
return b.build();
|
|
995
|
-
}, "se_ListVersionsCommand");
|
|
996
|
-
var se_ListWorkspacesCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
997
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
998
|
-
const headers = {};
|
|
999
|
-
b.bp("/workspaces");
|
|
1000
|
-
const query = (0, import_smithy_client.map)({
|
|
1001
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1002
|
-
[_nT]: [, input[_nT]]
|
|
1003
|
-
});
|
|
1004
|
-
let body;
|
|
1005
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
1006
|
-
return b.build();
|
|
1007
|
-
}, "se_ListWorkspacesCommand");
|
|
1008
|
-
var se_ListWorkspaceServiceAccountsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1009
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1010
|
-
const headers = {};
|
|
1011
|
-
b.bp("/workspaces/{workspaceId}/serviceaccounts");
|
|
1012
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1013
|
-
const query = (0, import_smithy_client.map)({
|
|
1014
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1015
|
-
[_nT]: [, input[_nT]]
|
|
1016
|
-
});
|
|
1017
|
-
let body;
|
|
1018
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
1019
|
-
return b.build();
|
|
1020
|
-
}, "se_ListWorkspaceServiceAccountsCommand");
|
|
1021
|
-
var se_ListWorkspaceServiceAccountTokensCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1022
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1023
|
-
const headers = {};
|
|
1024
|
-
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens");
|
|
1025
|
-
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
1026
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1027
|
-
const query = (0, import_smithy_client.map)({
|
|
1028
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
1029
|
-
[_nT]: [, input[_nT]]
|
|
1030
|
-
});
|
|
1031
|
-
let body;
|
|
1032
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
1033
|
-
return b.build();
|
|
1034
|
-
}, "se_ListWorkspaceServiceAccountTokensCommand");
|
|
1035
|
-
var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1036
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1037
|
-
const headers = {
|
|
1038
|
-
"content-type": "application/json"
|
|
1039
|
-
};
|
|
1040
|
-
b.bp("/tags/{resourceArn}");
|
|
1041
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1042
|
-
let body;
|
|
1043
|
-
body = JSON.stringify(
|
|
1044
|
-
(0, import_smithy_client.take)(input, {
|
|
1045
|
-
tags: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "tags")
|
|
1046
|
-
})
|
|
1047
|
-
);
|
|
1048
|
-
b.m("POST").h(headers).b(body);
|
|
1049
|
-
return b.build();
|
|
1050
|
-
}, "se_TagResourceCommand");
|
|
1051
|
-
var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1052
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1053
|
-
const headers = {};
|
|
1054
|
-
b.bp("/tags/{resourceArn}");
|
|
1055
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
1056
|
-
const query = (0, import_smithy_client.map)({
|
|
1057
|
-
[_tK]: [(0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []]
|
|
1058
|
-
});
|
|
1059
|
-
let body;
|
|
1060
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
1061
|
-
return b.build();
|
|
1062
|
-
}, "se_UntagResourceCommand");
|
|
1063
|
-
var se_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1064
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1065
|
-
const headers = {
|
|
1066
|
-
"content-type": "application/json"
|
|
1067
|
-
};
|
|
1068
|
-
b.bp("/workspaces/{workspaceId}/permissions");
|
|
1069
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1070
|
-
let body;
|
|
1071
|
-
body = JSON.stringify(
|
|
1072
|
-
(0, import_smithy_client.take)(input, {
|
|
1073
|
-
updateInstructionBatch: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "updateInstructionBatch")
|
|
1074
|
-
})
|
|
1075
|
-
);
|
|
1076
|
-
b.m("PATCH").h(headers).b(body);
|
|
1077
|
-
return b.build();
|
|
1078
|
-
}, "se_UpdatePermissionsCommand");
|
|
1079
|
-
var se_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1080
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1081
|
-
const headers = {
|
|
1082
|
-
"content-type": "application/json"
|
|
1083
|
-
};
|
|
1084
|
-
b.bp("/workspaces/{workspaceId}");
|
|
1085
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1086
|
-
let body;
|
|
1087
|
-
body = JSON.stringify(
|
|
1088
|
-
(0, import_smithy_client.take)(input, {
|
|
1089
|
-
accountAccessType: [],
|
|
1090
|
-
networkAccessControl: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "networkAccessControl"),
|
|
1091
|
-
organizationRoleName: [],
|
|
1092
|
-
permissionType: [],
|
|
1093
|
-
removeNetworkAccessConfiguration: [],
|
|
1094
|
-
removeVpcConfiguration: [],
|
|
1095
|
-
stackSetName: [],
|
|
1096
|
-
vpcConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "vpcConfiguration"),
|
|
1097
|
-
workspaceDataSources: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceDataSources"),
|
|
1098
|
-
workspaceDescription: [],
|
|
1099
|
-
workspaceName: [],
|
|
1100
|
-
workspaceNotificationDestinations: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceNotificationDestinations"),
|
|
1101
|
-
workspaceOrganizationalUnits: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "workspaceOrganizationalUnits"),
|
|
1102
|
-
workspaceRoleArn: []
|
|
1103
|
-
})
|
|
1104
|
-
);
|
|
1105
|
-
b.m("PUT").h(headers).b(body);
|
|
1106
|
-
return b.build();
|
|
1107
|
-
}, "se_UpdateWorkspaceCommand");
|
|
1108
|
-
var se_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1109
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1110
|
-
const headers = {
|
|
1111
|
-
"content-type": "application/json"
|
|
1112
|
-
};
|
|
1113
|
-
b.bp("/workspaces/{workspaceId}/authentication");
|
|
1114
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1115
|
-
let body;
|
|
1116
|
-
body = JSON.stringify(
|
|
1117
|
-
(0, import_smithy_client.take)(input, {
|
|
1118
|
-
authenticationProviders: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "authenticationProviders"),
|
|
1119
|
-
samlConfiguration: /* @__PURE__ */ __name((_) => (0, import_smithy_client._json)(_), "samlConfiguration")
|
|
1120
|
-
})
|
|
1121
|
-
);
|
|
1122
|
-
b.m("POST").h(headers).b(body);
|
|
1123
|
-
return b.build();
|
|
1124
|
-
}, "se_UpdateWorkspaceAuthenticationCommand");
|
|
1125
|
-
var se_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (input, context) => {
|
|
1126
|
-
const b = (0, import_core.requestBuilder)(input, context);
|
|
1127
|
-
const headers = {
|
|
1128
|
-
"content-type": "application/json"
|
|
1129
|
-
};
|
|
1130
|
-
b.bp("/workspaces/{workspaceId}/configuration");
|
|
1131
|
-
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
1132
|
-
let body;
|
|
1133
|
-
body = JSON.stringify(
|
|
1134
|
-
(0, import_smithy_client.take)(input, {
|
|
1135
|
-
configuration: /* @__PURE__ */ __name((_) => import_smithy_client.LazyJsonString.from(_), "configuration"),
|
|
1136
|
-
grafanaVersion: []
|
|
1137
|
-
})
|
|
1138
|
-
);
|
|
1139
|
-
b.m("PUT").h(headers).b(body);
|
|
1140
|
-
return b.build();
|
|
1141
|
-
}, "se_UpdateWorkspaceConfigurationCommand");
|
|
1142
|
-
var de_AssociateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1143
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1144
|
-
return de_CommandError(output, context);
|
|
1145
|
-
}
|
|
1146
|
-
const contents = (0, import_smithy_client.map)({
|
|
1147
|
-
$metadata: deserializeMetadata(output)
|
|
1148
|
-
});
|
|
1149
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1150
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1151
|
-
workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
|
|
1152
|
-
});
|
|
1153
|
-
Object.assign(contents, doc);
|
|
1154
|
-
return contents;
|
|
1155
|
-
}, "de_AssociateLicenseCommand");
|
|
1156
|
-
var de_CreateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1157
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1158
|
-
return de_CommandError(output, context);
|
|
1159
|
-
}
|
|
1160
|
-
const contents = (0, import_smithy_client.map)({
|
|
1161
|
-
$metadata: deserializeMetadata(output)
|
|
1162
|
-
});
|
|
1163
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1164
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1165
|
-
workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
|
|
1166
|
-
});
|
|
1167
|
-
Object.assign(contents, doc);
|
|
1168
|
-
return contents;
|
|
1169
|
-
}, "de_CreateWorkspaceCommand");
|
|
1170
|
-
var de_CreateWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1171
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1172
|
-
return de_CommandError(output, context);
|
|
1173
|
-
}
|
|
1174
|
-
const contents = (0, import_smithy_client.map)({
|
|
1175
|
-
$metadata: deserializeMetadata(output)
|
|
1176
|
-
});
|
|
1177
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1178
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1179
|
-
key: import_smithy_client.expectString,
|
|
1180
|
-
keyName: import_smithy_client.expectString,
|
|
1181
|
-
workspaceId: import_smithy_client.expectString
|
|
1182
|
-
});
|
|
1183
|
-
Object.assign(contents, doc);
|
|
1184
|
-
return contents;
|
|
1185
|
-
}, "de_CreateWorkspaceApiKeyCommand");
|
|
1186
|
-
var de_CreateWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1187
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1188
|
-
return de_CommandError(output, context);
|
|
1189
|
-
}
|
|
1190
|
-
const contents = (0, import_smithy_client.map)({
|
|
1191
|
-
$metadata: deserializeMetadata(output)
|
|
1192
|
-
});
|
|
1193
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1194
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1195
|
-
grafanaRole: import_smithy_client.expectString,
|
|
1196
|
-
id: import_smithy_client.expectString,
|
|
1197
|
-
name: import_smithy_client.expectString,
|
|
1198
|
-
workspaceId: import_smithy_client.expectString
|
|
1199
|
-
});
|
|
1200
|
-
Object.assign(contents, doc);
|
|
1201
|
-
return contents;
|
|
1202
|
-
}, "de_CreateWorkspaceServiceAccountCommand");
|
|
1203
|
-
var de_CreateWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1204
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1205
|
-
return de_CommandError(output, context);
|
|
1206
|
-
}
|
|
1207
|
-
const contents = (0, import_smithy_client.map)({
|
|
1208
|
-
$metadata: deserializeMetadata(output)
|
|
1209
|
-
});
|
|
1210
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1211
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1212
|
-
serviceAccountId: import_smithy_client.expectString,
|
|
1213
|
-
serviceAccountToken: import_smithy_client._json,
|
|
1214
|
-
workspaceId: import_smithy_client.expectString
|
|
1215
|
-
});
|
|
1216
|
-
Object.assign(contents, doc);
|
|
1217
|
-
return contents;
|
|
1218
|
-
}, "de_CreateWorkspaceServiceAccountTokenCommand");
|
|
1219
|
-
var de_DeleteWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1220
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1221
|
-
return de_CommandError(output, context);
|
|
1222
|
-
}
|
|
1223
|
-
const contents = (0, import_smithy_client.map)({
|
|
1224
|
-
$metadata: deserializeMetadata(output)
|
|
1225
|
-
});
|
|
1226
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1227
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1228
|
-
workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
|
|
1229
|
-
});
|
|
1230
|
-
Object.assign(contents, doc);
|
|
1231
|
-
return contents;
|
|
1232
|
-
}, "de_DeleteWorkspaceCommand");
|
|
1233
|
-
var de_DeleteWorkspaceApiKeyCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1234
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1235
|
-
return de_CommandError(output, context);
|
|
1236
|
-
}
|
|
1237
|
-
const contents = (0, import_smithy_client.map)({
|
|
1238
|
-
$metadata: deserializeMetadata(output)
|
|
1239
|
-
});
|
|
1240
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1241
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1242
|
-
keyName: import_smithy_client.expectString,
|
|
1243
|
-
workspaceId: import_smithy_client.expectString
|
|
1244
|
-
});
|
|
1245
|
-
Object.assign(contents, doc);
|
|
1246
|
-
return contents;
|
|
1247
|
-
}, "de_DeleteWorkspaceApiKeyCommand");
|
|
1248
|
-
var de_DeleteWorkspaceServiceAccountCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1249
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1250
|
-
return de_CommandError(output, context);
|
|
1251
|
-
}
|
|
1252
|
-
const contents = (0, import_smithy_client.map)({
|
|
1253
|
-
$metadata: deserializeMetadata(output)
|
|
1254
|
-
});
|
|
1255
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1256
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1257
|
-
serviceAccountId: import_smithy_client.expectString,
|
|
1258
|
-
workspaceId: import_smithy_client.expectString
|
|
1259
|
-
});
|
|
1260
|
-
Object.assign(contents, doc);
|
|
1261
|
-
return contents;
|
|
1262
|
-
}, "de_DeleteWorkspaceServiceAccountCommand");
|
|
1263
|
-
var de_DeleteWorkspaceServiceAccountTokenCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1264
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1265
|
-
return de_CommandError(output, context);
|
|
1266
|
-
}
|
|
1267
|
-
const contents = (0, import_smithy_client.map)({
|
|
1268
|
-
$metadata: deserializeMetadata(output)
|
|
1269
|
-
});
|
|
1270
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1271
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1272
|
-
serviceAccountId: import_smithy_client.expectString,
|
|
1273
|
-
tokenId: import_smithy_client.expectString,
|
|
1274
|
-
workspaceId: import_smithy_client.expectString
|
|
1275
|
-
});
|
|
1276
|
-
Object.assign(contents, doc);
|
|
1277
|
-
return contents;
|
|
1278
|
-
}, "de_DeleteWorkspaceServiceAccountTokenCommand");
|
|
1279
|
-
var de_DescribeWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1280
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1281
|
-
return de_CommandError(output, context);
|
|
1282
|
-
}
|
|
1283
|
-
const contents = (0, import_smithy_client.map)({
|
|
1284
|
-
$metadata: deserializeMetadata(output)
|
|
1285
|
-
});
|
|
1286
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1287
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1288
|
-
workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
|
|
1289
|
-
});
|
|
1290
|
-
Object.assign(contents, doc);
|
|
1291
|
-
return contents;
|
|
1292
|
-
}, "de_DescribeWorkspaceCommand");
|
|
1293
|
-
var de_DescribeWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1294
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1295
|
-
return de_CommandError(output, context);
|
|
1296
|
-
}
|
|
1297
|
-
const contents = (0, import_smithy_client.map)({
|
|
1298
|
-
$metadata: deserializeMetadata(output)
|
|
1299
|
-
});
|
|
1300
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1301
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1302
|
-
authentication: import_smithy_client._json
|
|
1303
|
-
});
|
|
1304
|
-
Object.assign(contents, doc);
|
|
1305
|
-
return contents;
|
|
1306
|
-
}, "de_DescribeWorkspaceAuthenticationCommand");
|
|
1307
|
-
var de_DescribeWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1308
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1309
|
-
return de_CommandError(output, context);
|
|
1310
|
-
}
|
|
1311
|
-
const contents = (0, import_smithy_client.map)({
|
|
1312
|
-
$metadata: deserializeMetadata(output)
|
|
1313
|
-
});
|
|
1314
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1315
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1316
|
-
configuration: import_smithy_client.LazyJsonString.from,
|
|
1317
|
-
grafanaVersion: import_smithy_client.expectString
|
|
1318
|
-
});
|
|
1319
|
-
Object.assign(contents, doc);
|
|
1320
|
-
return contents;
|
|
1321
|
-
}, "de_DescribeWorkspaceConfigurationCommand");
|
|
1322
|
-
var de_DisassociateLicenseCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1323
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1324
|
-
return de_CommandError(output, context);
|
|
1325
|
-
}
|
|
1326
|
-
const contents = (0, import_smithy_client.map)({
|
|
1327
|
-
$metadata: deserializeMetadata(output)
|
|
1328
|
-
});
|
|
1329
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1330
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1331
|
-
workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
|
|
1332
|
-
});
|
|
1333
|
-
Object.assign(contents, doc);
|
|
1334
|
-
return contents;
|
|
1335
|
-
}, "de_DisassociateLicenseCommand");
|
|
1336
|
-
var de_ListPermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1337
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1338
|
-
return de_CommandError(output, context);
|
|
1339
|
-
}
|
|
1340
|
-
const contents = (0, import_smithy_client.map)({
|
|
1341
|
-
$metadata: deserializeMetadata(output)
|
|
1342
|
-
});
|
|
1343
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1344
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1345
|
-
nextToken: import_smithy_client.expectString,
|
|
1346
|
-
permissions: import_smithy_client._json
|
|
1347
|
-
});
|
|
1348
|
-
Object.assign(contents, doc);
|
|
1349
|
-
return contents;
|
|
1350
|
-
}, "de_ListPermissionsCommand");
|
|
1351
|
-
var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1352
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1353
|
-
return de_CommandError(output, context);
|
|
1354
|
-
}
|
|
1355
|
-
const contents = (0, import_smithy_client.map)({
|
|
1356
|
-
$metadata: deserializeMetadata(output)
|
|
1357
|
-
});
|
|
1358
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1359
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1360
|
-
tags: import_smithy_client._json
|
|
1361
|
-
});
|
|
1362
|
-
Object.assign(contents, doc);
|
|
1363
|
-
return contents;
|
|
1364
|
-
}, "de_ListTagsForResourceCommand");
|
|
1365
|
-
var de_ListVersionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1366
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1367
|
-
return de_CommandError(output, context);
|
|
1368
|
-
}
|
|
1369
|
-
const contents = (0, import_smithy_client.map)({
|
|
1370
|
-
$metadata: deserializeMetadata(output)
|
|
1371
|
-
});
|
|
1372
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1373
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1374
|
-
grafanaVersions: import_smithy_client._json,
|
|
1375
|
-
nextToken: import_smithy_client.expectString
|
|
1376
|
-
});
|
|
1377
|
-
Object.assign(contents, doc);
|
|
1378
|
-
return contents;
|
|
1379
|
-
}, "de_ListVersionsCommand");
|
|
1380
|
-
var de_ListWorkspacesCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1381
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1382
|
-
return de_CommandError(output, context);
|
|
1383
|
-
}
|
|
1384
|
-
const contents = (0, import_smithy_client.map)({
|
|
1385
|
-
$metadata: deserializeMetadata(output)
|
|
1386
|
-
});
|
|
1387
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1388
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1389
|
-
nextToken: import_smithy_client.expectString,
|
|
1390
|
-
workspaces: /* @__PURE__ */ __name((_) => de_WorkspaceList(_, context), "workspaces")
|
|
1391
|
-
});
|
|
1392
|
-
Object.assign(contents, doc);
|
|
1393
|
-
return contents;
|
|
1394
|
-
}, "de_ListWorkspacesCommand");
|
|
1395
|
-
var de_ListWorkspaceServiceAccountsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1396
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1397
|
-
return de_CommandError(output, context);
|
|
1398
|
-
}
|
|
1399
|
-
const contents = (0, import_smithy_client.map)({
|
|
1400
|
-
$metadata: deserializeMetadata(output)
|
|
1401
|
-
});
|
|
1402
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1403
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1404
|
-
nextToken: import_smithy_client.expectString,
|
|
1405
|
-
serviceAccounts: import_smithy_client._json,
|
|
1406
|
-
workspaceId: import_smithy_client.expectString
|
|
1407
|
-
});
|
|
1408
|
-
Object.assign(contents, doc);
|
|
1409
|
-
return contents;
|
|
1410
|
-
}, "de_ListWorkspaceServiceAccountsCommand");
|
|
1411
|
-
var de_ListWorkspaceServiceAccountTokensCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1412
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1413
|
-
return de_CommandError(output, context);
|
|
1414
|
-
}
|
|
1415
|
-
const contents = (0, import_smithy_client.map)({
|
|
1416
|
-
$metadata: deserializeMetadata(output)
|
|
1417
|
-
});
|
|
1418
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1419
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1420
|
-
nextToken: import_smithy_client.expectString,
|
|
1421
|
-
serviceAccountId: import_smithy_client.expectString,
|
|
1422
|
-
serviceAccountTokens: /* @__PURE__ */ __name((_) => de_ServiceAccountTokenList(_, context), "serviceAccountTokens"),
|
|
1423
|
-
workspaceId: import_smithy_client.expectString
|
|
1424
|
-
});
|
|
1425
|
-
Object.assign(contents, doc);
|
|
1426
|
-
return contents;
|
|
1427
|
-
}, "de_ListWorkspaceServiceAccountTokensCommand");
|
|
1428
|
-
var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1429
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1430
|
-
return de_CommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const contents = (0, import_smithy_client.map)({
|
|
1433
|
-
$metadata: deserializeMetadata(output)
|
|
1434
|
-
});
|
|
1435
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1436
|
-
return contents;
|
|
1437
|
-
}, "de_TagResourceCommand");
|
|
1438
|
-
var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1439
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1440
|
-
return de_CommandError(output, context);
|
|
1441
|
-
}
|
|
1442
|
-
const contents = (0, import_smithy_client.map)({
|
|
1443
|
-
$metadata: deserializeMetadata(output)
|
|
1444
|
-
});
|
|
1445
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1446
|
-
return contents;
|
|
1447
|
-
}, "de_UntagResourceCommand");
|
|
1448
|
-
var de_UpdatePermissionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1449
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1450
|
-
return de_CommandError(output, context);
|
|
1451
|
-
}
|
|
1452
|
-
const contents = (0, import_smithy_client.map)({
|
|
1453
|
-
$metadata: deserializeMetadata(output)
|
|
1454
|
-
});
|
|
1455
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1456
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1457
|
-
errors: import_smithy_client._json
|
|
1458
|
-
});
|
|
1459
|
-
Object.assign(contents, doc);
|
|
1460
|
-
return contents;
|
|
1461
|
-
}, "de_UpdatePermissionsCommand");
|
|
1462
|
-
var de_UpdateWorkspaceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1463
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1464
|
-
return de_CommandError(output, context);
|
|
1465
|
-
}
|
|
1466
|
-
const contents = (0, import_smithy_client.map)({
|
|
1467
|
-
$metadata: deserializeMetadata(output)
|
|
1468
|
-
});
|
|
1469
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1470
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1471
|
-
workspace: /* @__PURE__ */ __name((_) => de_WorkspaceDescription(_, context), "workspace")
|
|
1472
|
-
});
|
|
1473
|
-
Object.assign(contents, doc);
|
|
1474
|
-
return contents;
|
|
1475
|
-
}, "de_UpdateWorkspaceCommand");
|
|
1476
|
-
var de_UpdateWorkspaceAuthenticationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1477
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1478
|
-
return de_CommandError(output, context);
|
|
1479
|
-
}
|
|
1480
|
-
const contents = (0, import_smithy_client.map)({
|
|
1481
|
-
$metadata: deserializeMetadata(output)
|
|
1482
|
-
});
|
|
1483
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1484
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1485
|
-
authentication: import_smithy_client._json
|
|
1486
|
-
});
|
|
1487
|
-
Object.assign(contents, doc);
|
|
1488
|
-
return contents;
|
|
1489
|
-
}, "de_UpdateWorkspaceAuthenticationCommand");
|
|
1490
|
-
var de_UpdateWorkspaceConfigurationCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
1491
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1492
|
-
return de_CommandError(output, context);
|
|
1493
|
-
}
|
|
1494
|
-
const contents = (0, import_smithy_client.map)({
|
|
1495
|
-
$metadata: deserializeMetadata(output)
|
|
1496
|
-
});
|
|
1497
|
-
await (0, import_smithy_client.collectBody)(output.body, context);
|
|
1498
|
-
return contents;
|
|
1499
|
-
}, "de_UpdateWorkspaceConfigurationCommand");
|
|
1500
|
-
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1501
|
-
const parsedOutput = {
|
|
1502
|
-
...output,
|
|
1503
|
-
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1504
|
-
};
|
|
1505
|
-
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1506
|
-
switch (errorCode) {
|
|
1507
|
-
case "AccessDeniedException":
|
|
1508
|
-
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1509
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1510
|
-
case "InternalServerException":
|
|
1511
|
-
case "com.amazonaws.grafana#InternalServerException":
|
|
1512
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
1513
|
-
case "ResourceNotFoundException":
|
|
1514
|
-
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1515
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1516
|
-
case "ThrottlingException":
|
|
1517
|
-
case "com.amazonaws.grafana#ThrottlingException":
|
|
1518
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
1519
|
-
case "ValidationException":
|
|
1520
|
-
case "com.amazonaws.grafana#ValidationException":
|
|
1521
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1522
|
-
case "ConflictException":
|
|
1523
|
-
case "com.amazonaws.grafana#ConflictException":
|
|
1524
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1525
|
-
case "ServiceQuotaExceededException":
|
|
1526
|
-
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
1527
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1528
|
-
default:
|
|
1529
|
-
const parsedBody = parsedOutput.body;
|
|
1530
|
-
return throwDefaultError({
|
|
1531
|
-
output,
|
|
1532
|
-
parsedBody,
|
|
1533
|
-
errorCode
|
|
1534
|
-
});
|
|
1535
|
-
}
|
|
1536
|
-
}, "de_CommandError");
|
|
1537
|
-
var throwDefaultError = (0, import_smithy_client.withBaseException)(GrafanaServiceException);
|
|
1538
|
-
var de_AccessDeniedExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1539
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1540
|
-
const data = parsedOutput.body;
|
|
1541
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1542
|
-
message: import_smithy_client.expectString
|
|
1543
|
-
});
|
|
1544
|
-
Object.assign(contents, doc);
|
|
1545
|
-
const exception = new AccessDeniedException({
|
|
1546
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1547
|
-
...contents
|
|
1548
|
-
});
|
|
1549
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1550
|
-
}, "de_AccessDeniedExceptionRes");
|
|
1551
|
-
var de_ConflictExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1552
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1553
|
-
const data = parsedOutput.body;
|
|
1554
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1555
|
-
message: import_smithy_client.expectString,
|
|
1556
|
-
resourceId: import_smithy_client.expectString,
|
|
1557
|
-
resourceType: import_smithy_client.expectString
|
|
1558
|
-
});
|
|
1559
|
-
Object.assign(contents, doc);
|
|
1560
|
-
const exception = new ConflictException({
|
|
1561
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1562
|
-
...contents
|
|
1563
|
-
});
|
|
1564
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1565
|
-
}, "de_ConflictExceptionRes");
|
|
1566
|
-
var de_InternalServerExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1567
|
-
const contents = (0, import_smithy_client.map)({
|
|
1568
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1569
|
-
});
|
|
1570
|
-
const data = parsedOutput.body;
|
|
1571
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1572
|
-
message: import_smithy_client.expectString
|
|
1573
|
-
});
|
|
1574
|
-
Object.assign(contents, doc);
|
|
1575
|
-
const exception = new InternalServerException({
|
|
1576
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1577
|
-
...contents
|
|
1578
|
-
});
|
|
1579
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1580
|
-
}, "de_InternalServerExceptionRes");
|
|
1581
|
-
var de_ResourceNotFoundExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1582
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1583
|
-
const data = parsedOutput.body;
|
|
1584
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1585
|
-
message: import_smithy_client.expectString,
|
|
1586
|
-
resourceId: import_smithy_client.expectString,
|
|
1587
|
-
resourceType: import_smithy_client.expectString
|
|
1588
|
-
});
|
|
1589
|
-
Object.assign(contents, doc);
|
|
1590
|
-
const exception = new ResourceNotFoundException({
|
|
1591
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1592
|
-
...contents
|
|
1593
|
-
});
|
|
1594
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1595
|
-
}, "de_ResourceNotFoundExceptionRes");
|
|
1596
|
-
var de_ServiceQuotaExceededExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1597
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1598
|
-
const data = parsedOutput.body;
|
|
1599
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1600
|
-
message: import_smithy_client.expectString,
|
|
1601
|
-
quotaCode: import_smithy_client.expectString,
|
|
1602
|
-
resourceId: import_smithy_client.expectString,
|
|
1603
|
-
resourceType: import_smithy_client.expectString,
|
|
1604
|
-
serviceCode: import_smithy_client.expectString
|
|
1605
|
-
});
|
|
1606
|
-
Object.assign(contents, doc);
|
|
1607
|
-
const exception = new ServiceQuotaExceededException({
|
|
1608
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1609
|
-
...contents
|
|
1610
|
-
});
|
|
1611
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1612
|
-
}, "de_ServiceQuotaExceededExceptionRes");
|
|
1613
|
-
var de_ThrottlingExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1614
|
-
const contents = (0, import_smithy_client.map)({
|
|
1615
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, import_smithy_client.strictParseInt32)(parsedOutput.headers[_ra])]
|
|
1616
|
-
});
|
|
1617
|
-
const data = parsedOutput.body;
|
|
1618
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1619
|
-
message: import_smithy_client.expectString,
|
|
1620
|
-
quotaCode: import_smithy_client.expectString,
|
|
1621
|
-
serviceCode: import_smithy_client.expectString
|
|
1622
|
-
});
|
|
1623
|
-
Object.assign(contents, doc);
|
|
1624
|
-
const exception = new ThrottlingException({
|
|
1625
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1626
|
-
...contents
|
|
1627
|
-
});
|
|
1628
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1629
|
-
}, "de_ThrottlingExceptionRes");
|
|
1630
|
-
var de_ValidationExceptionRes = /* @__PURE__ */ __name(async (parsedOutput, context) => {
|
|
1631
|
-
const contents = (0, import_smithy_client.map)({});
|
|
1632
|
-
const data = parsedOutput.body;
|
|
1633
|
-
const doc = (0, import_smithy_client.take)(data, {
|
|
1634
|
-
fieldList: import_smithy_client._json,
|
|
1635
|
-
message: import_smithy_client.expectString,
|
|
1636
|
-
reason: import_smithy_client.expectString
|
|
1637
|
-
});
|
|
1638
|
-
Object.assign(contents, doc);
|
|
1639
|
-
const exception = new ValidationException({
|
|
1640
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
1641
|
-
...contents
|
|
1642
|
-
});
|
|
1643
|
-
return (0, import_smithy_client.decorateServiceException)(exception, parsedOutput.body);
|
|
1644
|
-
}, "de_ValidationExceptionRes");
|
|
1645
|
-
var de_ServiceAccountTokenList = /* @__PURE__ */ __name((output, context) => {
|
|
1646
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1647
|
-
return de_ServiceAccountTokenSummary(entry, context);
|
|
1648
|
-
});
|
|
1649
|
-
return retVal;
|
|
1650
|
-
}, "de_ServiceAccountTokenList");
|
|
1651
|
-
var de_ServiceAccountTokenSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1652
|
-
return (0, import_smithy_client.take)(output, {
|
|
1653
|
-
createdAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "createdAt"),
|
|
1654
|
-
expiresAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "expiresAt"),
|
|
1655
|
-
id: import_smithy_client.expectString,
|
|
1656
|
-
lastUsedAt: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "lastUsedAt"),
|
|
1657
|
-
name: import_smithy_client.expectString
|
|
1658
|
-
});
|
|
1659
|
-
}, "de_ServiceAccountTokenSummary");
|
|
1660
|
-
var de_WorkspaceDescription = /* @__PURE__ */ __name((output, context) => {
|
|
1661
|
-
return (0, import_smithy_client.take)(output, {
|
|
1662
|
-
accountAccessType: import_smithy_client.expectString,
|
|
1663
|
-
authentication: import_smithy_client._json,
|
|
1664
|
-
created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "created"),
|
|
1665
|
-
dataSources: import_smithy_client._json,
|
|
1666
|
-
description: import_smithy_client.expectString,
|
|
1667
|
-
endpoint: import_smithy_client.expectString,
|
|
1668
|
-
freeTrialConsumed: import_smithy_client.expectBoolean,
|
|
1669
|
-
freeTrialExpiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "freeTrialExpiration"),
|
|
1670
|
-
grafanaToken: import_smithy_client.expectString,
|
|
1671
|
-
grafanaVersion: import_smithy_client.expectString,
|
|
1672
|
-
id: import_smithy_client.expectString,
|
|
1673
|
-
licenseExpiration: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "licenseExpiration"),
|
|
1674
|
-
licenseType: import_smithy_client.expectString,
|
|
1675
|
-
modified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modified"),
|
|
1676
|
-
name: import_smithy_client.expectString,
|
|
1677
|
-
networkAccessControl: import_smithy_client._json,
|
|
1678
|
-
notificationDestinations: import_smithy_client._json,
|
|
1679
|
-
organizationRoleName: import_smithy_client.expectString,
|
|
1680
|
-
organizationalUnits: import_smithy_client._json,
|
|
1681
|
-
permissionType: import_smithy_client.expectString,
|
|
1682
|
-
stackSetName: import_smithy_client.expectString,
|
|
1683
|
-
status: import_smithy_client.expectString,
|
|
1684
|
-
tags: import_smithy_client._json,
|
|
1685
|
-
vpcConfiguration: import_smithy_client._json,
|
|
1686
|
-
workspaceRoleArn: import_smithy_client.expectString
|
|
1687
|
-
});
|
|
1688
|
-
}, "de_WorkspaceDescription");
|
|
1689
|
-
var de_WorkspaceList = /* @__PURE__ */ __name((output, context) => {
|
|
1690
|
-
const retVal = (output || []).filter((e) => e != null).map((entry) => {
|
|
1691
|
-
return de_WorkspaceSummary(entry, context);
|
|
1692
|
-
});
|
|
1693
|
-
return retVal;
|
|
1694
|
-
}, "de_WorkspaceList");
|
|
1695
|
-
var de_WorkspaceSummary = /* @__PURE__ */ __name((output, context) => {
|
|
1696
|
-
return (0, import_smithy_client.take)(output, {
|
|
1697
|
-
authentication: import_smithy_client._json,
|
|
1698
|
-
created: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "created"),
|
|
1699
|
-
description: import_smithy_client.expectString,
|
|
1700
|
-
endpoint: import_smithy_client.expectString,
|
|
1701
|
-
grafanaToken: import_smithy_client.expectString,
|
|
1702
|
-
grafanaVersion: import_smithy_client.expectString,
|
|
1703
|
-
id: import_smithy_client.expectString,
|
|
1704
|
-
licenseType: import_smithy_client.expectString,
|
|
1705
|
-
modified: /* @__PURE__ */ __name((_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))), "modified"),
|
|
1706
|
-
name: import_smithy_client.expectString,
|
|
1707
|
-
notificationDestinations: import_smithy_client._json,
|
|
1708
|
-
status: import_smithy_client.expectString,
|
|
1709
|
-
tags: import_smithy_client._json
|
|
1710
|
-
});
|
|
1711
|
-
}, "de_WorkspaceSummary");
|
|
1712
|
-
var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
1713
|
-
httpStatusCode: output.statusCode,
|
|
1714
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1715
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1716
|
-
cfId: output.headers["x-amz-cf-id"]
|
|
1717
|
-
}), "deserializeMetadata");
|
|
1718
|
-
var _gI = "groupId";
|
|
1719
|
-
var _gT = "grafanaToken";
|
|
1720
|
-
var _gt = "grafana-token";
|
|
1721
|
-
var _mR = "maxResults";
|
|
1722
|
-
var _nT = "nextToken";
|
|
1723
|
-
var _rAS = "retryAfterSeconds";
|
|
1724
|
-
var _ra = "retry-after";
|
|
1725
|
-
var _tK = "tagKeys";
|
|
1726
|
-
var _uI = "userId";
|
|
1727
|
-
var _uT = "userType";
|
|
1728
|
-
var _wI = "workspaceId";
|
|
1729
|
-
var _wi = "workspace-id";
|
|
1730
|
-
|
|
1731
|
-
// src/commands/AssociateLicenseCommand.ts
|
|
1732
|
-
var AssociateLicenseCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1733
|
-
return [
|
|
1734
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1735
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1736
|
-
];
|
|
1737
|
-
}).s("AWSGrafanaControlPlane", "AssociateLicense", {}).n("GrafanaClient", "AssociateLicenseCommand").f(void 0, AssociateLicenseResponseFilterSensitiveLog).ser(se_AssociateLicenseCommand).de(de_AssociateLicenseCommand).build() {
|
|
1738
|
-
static {
|
|
1739
|
-
__name(this, "AssociateLicenseCommand");
|
|
1740
|
-
}
|
|
229
|
+
class ValidationException extends GrafanaServiceException {
|
|
230
|
+
name = "ValidationException";
|
|
231
|
+
$fault = "client";
|
|
232
|
+
reason;
|
|
233
|
+
fieldList;
|
|
234
|
+
constructor(opts) {
|
|
235
|
+
super({
|
|
236
|
+
name: "ValidationException",
|
|
237
|
+
$fault: "client",
|
|
238
|
+
...opts,
|
|
239
|
+
});
|
|
240
|
+
Object.setPrototypeOf(this, ValidationException.prototype);
|
|
241
|
+
this.reason = opts.reason;
|
|
242
|
+
this.fieldList = opts.fieldList;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
const LicenseType = {
|
|
246
|
+
ENTERPRISE: "ENTERPRISE",
|
|
247
|
+
ENTERPRISE_FREE_TRIAL: "ENTERPRISE_FREE_TRIAL",
|
|
1741
248
|
};
|
|
1742
|
-
|
|
1743
|
-
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
var CreateWorkspaceApiKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1748
|
-
return [
|
|
1749
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1750
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1751
|
-
];
|
|
1752
|
-
}).s("AWSGrafanaControlPlane", "CreateWorkspaceApiKey", {}).n("GrafanaClient", "CreateWorkspaceApiKeyCommand").f(void 0, CreateWorkspaceApiKeyResponseFilterSensitiveLog).ser(se_CreateWorkspaceApiKeyCommand).de(de_CreateWorkspaceApiKeyCommand).build() {
|
|
1753
|
-
static {
|
|
1754
|
-
__name(this, "CreateWorkspaceApiKeyCommand");
|
|
1755
|
-
}
|
|
249
|
+
const AuthenticationProviderTypes = {
|
|
250
|
+
AWS_SSO: "AWS_SSO",
|
|
251
|
+
SAML: "SAML",
|
|
1756
252
|
};
|
|
1757
|
-
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
var CreateWorkspaceCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1763
|
-
return [
|
|
1764
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1765
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1766
|
-
];
|
|
1767
|
-
}).s("AWSGrafanaControlPlane", "CreateWorkspace", {}).n("GrafanaClient", "CreateWorkspaceCommand").f(CreateWorkspaceRequestFilterSensitiveLog, CreateWorkspaceResponseFilterSensitiveLog).ser(se_CreateWorkspaceCommand).de(de_CreateWorkspaceCommand).build() {
|
|
1768
|
-
static {
|
|
1769
|
-
__name(this, "CreateWorkspaceCommand");
|
|
1770
|
-
}
|
|
253
|
+
const SamlConfigurationStatus = {
|
|
254
|
+
CONFIGURED: "CONFIGURED",
|
|
255
|
+
NOT_CONFIGURED: "NOT_CONFIGURED",
|
|
1771
256
|
};
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
}).s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccount", {}).n("GrafanaClient", "CreateWorkspaceServiceAccountCommand").f(void 0, void 0).ser(se_CreateWorkspaceServiceAccountCommand).de(de_CreateWorkspaceServiceAccountCommand).build() {
|
|
1783
|
-
static {
|
|
1784
|
-
__name(this, "CreateWorkspaceServiceAccountCommand");
|
|
1785
|
-
}
|
|
257
|
+
const DataSourceType = {
|
|
258
|
+
AMAZON_OPENSEARCH_SERVICE: "AMAZON_OPENSEARCH_SERVICE",
|
|
259
|
+
ATHENA: "ATHENA",
|
|
260
|
+
CLOUDWATCH: "CLOUDWATCH",
|
|
261
|
+
PROMETHEUS: "PROMETHEUS",
|
|
262
|
+
REDSHIFT: "REDSHIFT",
|
|
263
|
+
SITEWISE: "SITEWISE",
|
|
264
|
+
TIMESTREAM: "TIMESTREAM",
|
|
265
|
+
TWINMAKER: "TWINMAKER",
|
|
266
|
+
XRAY: "XRAY",
|
|
1786
267
|
};
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
var CreateWorkspaceServiceAccountTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1793
|
-
return [
|
|
1794
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1795
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1796
|
-
];
|
|
1797
|
-
}).s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccountToken", {}).n("GrafanaClient", "CreateWorkspaceServiceAccountTokenCommand").f(void 0, CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog).ser(se_CreateWorkspaceServiceAccountTokenCommand).de(de_CreateWorkspaceServiceAccountTokenCommand).build() {
|
|
1798
|
-
static {
|
|
1799
|
-
__name(this, "CreateWorkspaceServiceAccountTokenCommand");
|
|
1800
|
-
}
|
|
268
|
+
const NotificationDestinationType = {
|
|
269
|
+
SNS: "SNS",
|
|
1801
270
|
};
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
var DeleteWorkspaceApiKeyCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1808
|
-
return [
|
|
1809
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1810
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1811
|
-
];
|
|
1812
|
-
}).s("AWSGrafanaControlPlane", "DeleteWorkspaceApiKey", {}).n("GrafanaClient", "DeleteWorkspaceApiKeyCommand").f(void 0, void 0).ser(se_DeleteWorkspaceApiKeyCommand).de(de_DeleteWorkspaceApiKeyCommand).build() {
|
|
1813
|
-
static {
|
|
1814
|
-
__name(this, "DeleteWorkspaceApiKeyCommand");
|
|
1815
|
-
}
|
|
271
|
+
const PermissionType = {
|
|
272
|
+
CUSTOMER_MANAGED: "CUSTOMER_MANAGED",
|
|
273
|
+
SERVICE_MANAGED: "SERVICE_MANAGED",
|
|
1816
274
|
};
|
|
1817
|
-
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
275
|
+
const WorkspaceStatus = {
|
|
276
|
+
ACTIVE: "ACTIVE",
|
|
277
|
+
CREATING: "CREATING",
|
|
278
|
+
CREATION_FAILED: "CREATION_FAILED",
|
|
279
|
+
DELETING: "DELETING",
|
|
280
|
+
DELETION_FAILED: "DELETION_FAILED",
|
|
281
|
+
FAILED: "FAILED",
|
|
282
|
+
LICENSE_REMOVAL_FAILED: "LICENSE_REMOVAL_FAILED",
|
|
283
|
+
UPDATE_FAILED: "UPDATE_FAILED",
|
|
284
|
+
UPDATING: "UPDATING",
|
|
285
|
+
UPGRADE_FAILED: "UPGRADE_FAILED",
|
|
286
|
+
UPGRADING: "UPGRADING",
|
|
287
|
+
VERSION_UPDATE_FAILED: "VERSION_UPDATE_FAILED",
|
|
288
|
+
VERSION_UPDATING: "VERSION_UPDATING",
|
|
1831
289
|
};
|
|
1832
|
-
|
|
1833
|
-
|
|
1834
|
-
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
}
|
|
290
|
+
exports.IdpMetadata = void 0;
|
|
291
|
+
(function (IdpMetadata) {
|
|
292
|
+
IdpMetadata.visit = (value, visitor) => {
|
|
293
|
+
if (value.url !== undefined)
|
|
294
|
+
return visitor.url(value.url);
|
|
295
|
+
if (value.xml !== undefined)
|
|
296
|
+
return visitor.xml(value.xml);
|
|
297
|
+
return visitor._(value.$unknown[0], value.$unknown[1]);
|
|
298
|
+
};
|
|
299
|
+
})(exports.IdpMetadata || (exports.IdpMetadata = {}));
|
|
300
|
+
const UserType = {
|
|
301
|
+
SSO_GROUP: "SSO_GROUP",
|
|
302
|
+
SSO_USER: "SSO_USER",
|
|
1846
303
|
};
|
|
1847
|
-
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
var DeleteWorkspaceServiceAccountTokenCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1853
|
-
return [
|
|
1854
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1855
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1856
|
-
];
|
|
1857
|
-
}).s("AWSGrafanaControlPlane", "DeleteWorkspaceServiceAccountToken", {}).n("GrafanaClient", "DeleteWorkspaceServiceAccountTokenCommand").f(void 0, void 0).ser(se_DeleteWorkspaceServiceAccountTokenCommand).de(de_DeleteWorkspaceServiceAccountTokenCommand).build() {
|
|
1858
|
-
static {
|
|
1859
|
-
__name(this, "DeleteWorkspaceServiceAccountTokenCommand");
|
|
1860
|
-
}
|
|
304
|
+
const Role = {
|
|
305
|
+
ADMIN: "ADMIN",
|
|
306
|
+
EDITOR: "EDITOR",
|
|
307
|
+
VIEWER: "VIEWER",
|
|
1861
308
|
};
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
var DescribeWorkspaceAuthenticationCommand = class extends import_smithy_client.Command.classBuilder().ep(commonParams).m(function(Command, cs, config, o) {
|
|
1868
|
-
return [
|
|
1869
|
-
(0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
|
|
1870
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1871
|
-
];
|
|
1872
|
-
}).s("AWSGrafanaControlPlane", "DescribeWorkspaceAuthentication", {}).n("GrafanaClient", "DescribeWorkspaceAuthenticationCommand").f(void 0, DescribeWorkspaceAuthenticationResponseFilterSensitiveLog).ser(se_DescribeWorkspaceAuthenticationCommand).de(de_DescribeWorkspaceAuthenticationCommand).build() {
|
|
1873
|
-
static {
|
|
1874
|
-
__name(this, "DescribeWorkspaceAuthenticationCommand");
|
|
1875
|
-
}
|
|
309
|
+
const UpdateAction = {
|
|
310
|
+
ADD: "ADD",
|
|
311
|
+
REVOKE: "REVOKE",
|
|
1876
312
|
};
|
|
313
|
+
const CreateWorkspaceApiKeyResponseFilterSensitiveLog = (obj) => ({
|
|
314
|
+
...obj,
|
|
315
|
+
...(obj.key && { key: smithyClient.SENSITIVE_STRING }),
|
|
316
|
+
});
|
|
317
|
+
const WorkspaceDescriptionFilterSensitiveLog = (obj) => ({
|
|
318
|
+
...obj,
|
|
319
|
+
...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
|
|
320
|
+
...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
|
|
321
|
+
...(obj.organizationRoleName && { organizationRoleName: smithyClient.SENSITIVE_STRING }),
|
|
322
|
+
...(obj.organizationalUnits && { organizationalUnits: smithyClient.SENSITIVE_STRING }),
|
|
323
|
+
...(obj.workspaceRoleArn && { workspaceRoleArn: smithyClient.SENSITIVE_STRING }),
|
|
324
|
+
});
|
|
325
|
+
const AssociateLicenseResponseFilterSensitiveLog = (obj) => ({
|
|
326
|
+
...obj,
|
|
327
|
+
...(obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }),
|
|
328
|
+
});
|
|
329
|
+
const RoleValuesFilterSensitiveLog = (obj) => ({
|
|
330
|
+
...obj,
|
|
331
|
+
...(obj.editor && { editor: smithyClient.SENSITIVE_STRING }),
|
|
332
|
+
...(obj.admin && { admin: smithyClient.SENSITIVE_STRING }),
|
|
333
|
+
});
|
|
334
|
+
const SamlConfigurationFilterSensitiveLog = (obj) => ({
|
|
335
|
+
...obj,
|
|
336
|
+
...(obj.idpMetadata && { idpMetadata: obj.idpMetadata }),
|
|
337
|
+
...(obj.roleValues && { roleValues: RoleValuesFilterSensitiveLog(obj.roleValues) }),
|
|
338
|
+
});
|
|
339
|
+
const SamlAuthenticationFilterSensitiveLog = (obj) => ({
|
|
340
|
+
...obj,
|
|
341
|
+
...(obj.configuration && { configuration: SamlConfigurationFilterSensitiveLog(obj.configuration) }),
|
|
342
|
+
});
|
|
343
|
+
const AuthenticationDescriptionFilterSensitiveLog = (obj) => ({
|
|
344
|
+
...obj,
|
|
345
|
+
...(obj.saml && { saml: SamlAuthenticationFilterSensitiveLog(obj.saml) }),
|
|
346
|
+
});
|
|
347
|
+
const DescribeWorkspaceAuthenticationResponseFilterSensitiveLog = (obj) => ({
|
|
348
|
+
...obj,
|
|
349
|
+
...(obj.authentication && { authentication: AuthenticationDescriptionFilterSensitiveLog(obj.authentication) }),
|
|
350
|
+
});
|
|
351
|
+
const UpdateWorkspaceAuthenticationRequestFilterSensitiveLog = (obj) => ({
|
|
352
|
+
...obj,
|
|
353
|
+
...(obj.samlConfiguration && { samlConfiguration: SamlConfigurationFilterSensitiveLog(obj.samlConfiguration) }),
|
|
354
|
+
});
|
|
355
|
+
const UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = (obj) => ({
|
|
356
|
+
...obj,
|
|
357
|
+
...(obj.authentication && { authentication: AuthenticationDescriptionFilterSensitiveLog(obj.authentication) }),
|
|
358
|
+
});
|
|
359
|
+
const DisassociateLicenseResponseFilterSensitiveLog = (obj) => ({
|
|
360
|
+
...obj,
|
|
361
|
+
...(obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }),
|
|
362
|
+
});
|
|
363
|
+
const ServiceAccountTokenSummaryWithKeyFilterSensitiveLog = (obj) => ({
|
|
364
|
+
...obj,
|
|
365
|
+
...(obj.key && { key: smithyClient.SENSITIVE_STRING }),
|
|
366
|
+
});
|
|
367
|
+
const CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog = (obj) => ({
|
|
368
|
+
...obj,
|
|
369
|
+
...(obj.serviceAccountToken && {
|
|
370
|
+
serviceAccountToken: ServiceAccountTokenSummaryWithKeyFilterSensitiveLog(obj.serviceAccountToken),
|
|
371
|
+
}),
|
|
372
|
+
});
|
|
373
|
+
const CreateWorkspaceRequestFilterSensitiveLog = (obj) => ({
|
|
374
|
+
...obj,
|
|
375
|
+
...(obj.organizationRoleName && { organizationRoleName: smithyClient.SENSITIVE_STRING }),
|
|
376
|
+
...(obj.workspaceDescription && { workspaceDescription: smithyClient.SENSITIVE_STRING }),
|
|
377
|
+
...(obj.workspaceName && { workspaceName: smithyClient.SENSITIVE_STRING }),
|
|
378
|
+
...(obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: smithyClient.SENSITIVE_STRING }),
|
|
379
|
+
...(obj.workspaceRoleArn && { workspaceRoleArn: smithyClient.SENSITIVE_STRING }),
|
|
380
|
+
});
|
|
381
|
+
const CreateWorkspaceResponseFilterSensitiveLog = (obj) => ({
|
|
382
|
+
...obj,
|
|
383
|
+
...(obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }),
|
|
384
|
+
});
|
|
385
|
+
const DeleteWorkspaceResponseFilterSensitiveLog = (obj) => ({
|
|
386
|
+
...obj,
|
|
387
|
+
...(obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }),
|
|
388
|
+
});
|
|
389
|
+
const DescribeWorkspaceResponseFilterSensitiveLog = (obj) => ({
|
|
390
|
+
...obj,
|
|
391
|
+
...(obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }),
|
|
392
|
+
});
|
|
393
|
+
const WorkspaceSummaryFilterSensitiveLog = (obj) => ({
|
|
394
|
+
...obj,
|
|
395
|
+
...(obj.description && { description: smithyClient.SENSITIVE_STRING }),
|
|
396
|
+
...(obj.name && { name: smithyClient.SENSITIVE_STRING }),
|
|
397
|
+
});
|
|
398
|
+
const ListWorkspacesResponseFilterSensitiveLog = (obj) => ({
|
|
399
|
+
...obj,
|
|
400
|
+
...(obj.workspaces && { workspaces: obj.workspaces.map((item) => WorkspaceSummaryFilterSensitiveLog(item)) }),
|
|
401
|
+
});
|
|
402
|
+
const UpdateWorkspaceRequestFilterSensitiveLog = (obj) => ({
|
|
403
|
+
...obj,
|
|
404
|
+
...(obj.organizationRoleName && { organizationRoleName: smithyClient.SENSITIVE_STRING }),
|
|
405
|
+
...(obj.workspaceDescription && { workspaceDescription: smithyClient.SENSITIVE_STRING }),
|
|
406
|
+
...(obj.workspaceName && { workspaceName: smithyClient.SENSITIVE_STRING }),
|
|
407
|
+
...(obj.workspaceOrganizationalUnits && { workspaceOrganizationalUnits: smithyClient.SENSITIVE_STRING }),
|
|
408
|
+
...(obj.workspaceRoleArn && { workspaceRoleArn: smithyClient.SENSITIVE_STRING }),
|
|
409
|
+
});
|
|
410
|
+
const UpdateWorkspaceResponseFilterSensitiveLog = (obj) => ({
|
|
411
|
+
...obj,
|
|
412
|
+
...(obj.workspace && { workspace: WorkspaceDescriptionFilterSensitiveLog(obj.workspace) }),
|
|
413
|
+
});
|
|
1877
414
|
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
(
|
|
1885
|
-
(
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
__name(this, "DescribeWorkspaceCommand");
|
|
1890
|
-
}
|
|
415
|
+
const se_AssociateLicenseCommand = async (input, context) => {
|
|
416
|
+
const b = core.requestBuilder(input, context);
|
|
417
|
+
const headers = smithyClient.map({}, smithyClient.isSerializableHeaderValue, {
|
|
418
|
+
[_gt]: input[_gT],
|
|
419
|
+
});
|
|
420
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
421
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
422
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
423
|
+
let body;
|
|
424
|
+
b.m("POST").h(headers).b(body);
|
|
425
|
+
return b.build();
|
|
1891
426
|
};
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
427
|
+
const se_CreateWorkspaceCommand = async (input, context) => {
|
|
428
|
+
const b = core.requestBuilder(input, context);
|
|
429
|
+
const headers = {
|
|
430
|
+
"content-type": "application/json",
|
|
431
|
+
};
|
|
432
|
+
b.bp("/workspaces");
|
|
433
|
+
let body;
|
|
434
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
435
|
+
accountAccessType: [],
|
|
436
|
+
authenticationProviders: (_) => smithyClient._json(_),
|
|
437
|
+
clientToken: [true, (_) => _ ?? uuid.v4()],
|
|
438
|
+
configuration: (_) => smithyClient.LazyJsonString.from(_),
|
|
439
|
+
grafanaVersion: [],
|
|
440
|
+
networkAccessControl: (_) => smithyClient._json(_),
|
|
441
|
+
organizationRoleName: [],
|
|
442
|
+
permissionType: [],
|
|
443
|
+
stackSetName: [],
|
|
444
|
+
tags: (_) => smithyClient._json(_),
|
|
445
|
+
vpcConfiguration: (_) => smithyClient._json(_),
|
|
446
|
+
workspaceDataSources: (_) => smithyClient._json(_),
|
|
447
|
+
workspaceDescription: [],
|
|
448
|
+
workspaceName: [],
|
|
449
|
+
workspaceNotificationDestinations: (_) => smithyClient._json(_),
|
|
450
|
+
workspaceOrganizationalUnits: (_) => smithyClient._json(_),
|
|
451
|
+
workspaceRoleArn: [],
|
|
452
|
+
}));
|
|
453
|
+
b.m("POST").h(headers).b(body);
|
|
454
|
+
return b.build();
|
|
1906
455
|
};
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
456
|
+
const se_CreateWorkspaceApiKeyCommand = async (input, context) => {
|
|
457
|
+
const b = core.requestBuilder(input, context);
|
|
458
|
+
const headers = {
|
|
459
|
+
"content-type": "application/json",
|
|
460
|
+
};
|
|
461
|
+
b.bp("/workspaces/{workspaceId}/apikeys");
|
|
462
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
463
|
+
let body;
|
|
464
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
465
|
+
keyName: [],
|
|
466
|
+
keyRole: [],
|
|
467
|
+
secondsToLive: [],
|
|
468
|
+
}));
|
|
469
|
+
b.m("POST").h(headers).b(body);
|
|
470
|
+
return b.build();
|
|
1921
471
|
};
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
472
|
+
const se_CreateWorkspaceServiceAccountCommand = async (input, context) => {
|
|
473
|
+
const b = core.requestBuilder(input, context);
|
|
474
|
+
const headers = {
|
|
475
|
+
"content-type": "application/json",
|
|
476
|
+
};
|
|
477
|
+
b.bp("/workspaces/{workspaceId}/serviceaccounts");
|
|
478
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
479
|
+
let body;
|
|
480
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
481
|
+
grafanaRole: [],
|
|
482
|
+
name: [],
|
|
483
|
+
}));
|
|
484
|
+
b.m("POST").h(headers).b(body);
|
|
485
|
+
return b.build();
|
|
1936
486
|
};
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
(
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
487
|
+
const se_CreateWorkspaceServiceAccountTokenCommand = async (input, context) => {
|
|
488
|
+
const b = core.requestBuilder(input, context);
|
|
489
|
+
const headers = {
|
|
490
|
+
"content-type": "application/json",
|
|
491
|
+
};
|
|
492
|
+
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens");
|
|
493
|
+
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
494
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
495
|
+
let body;
|
|
496
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
497
|
+
name: [],
|
|
498
|
+
secondsToLive: [],
|
|
499
|
+
}));
|
|
500
|
+
b.m("POST").h(headers).b(body);
|
|
501
|
+
return b.build();
|
|
1951
502
|
};
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
1961
|
-
];
|
|
1962
|
-
}).s("AWSGrafanaControlPlane", "ListVersions", {}).n("GrafanaClient", "ListVersionsCommand").f(void 0, void 0).ser(se_ListVersionsCommand).de(de_ListVersionsCommand).build() {
|
|
1963
|
-
static {
|
|
1964
|
-
__name(this, "ListVersionsCommand");
|
|
1965
|
-
}
|
|
503
|
+
const se_DeleteWorkspaceCommand = async (input, context) => {
|
|
504
|
+
const b = core.requestBuilder(input, context);
|
|
505
|
+
const headers = {};
|
|
506
|
+
b.bp("/workspaces/{workspaceId}");
|
|
507
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
508
|
+
let body;
|
|
509
|
+
b.m("DELETE").h(headers).b(body);
|
|
510
|
+
return b.build();
|
|
1966
511
|
};
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
(
|
|
1975
|
-
|
|
1976
|
-
];
|
|
1977
|
-
}).s("AWSGrafanaControlPlane", "ListWorkspaces", {}).n("GrafanaClient", "ListWorkspacesCommand").f(void 0, ListWorkspacesResponseFilterSensitiveLog).ser(se_ListWorkspacesCommand).de(de_ListWorkspacesCommand).build() {
|
|
1978
|
-
static {
|
|
1979
|
-
__name(this, "ListWorkspacesCommand");
|
|
1980
|
-
}
|
|
512
|
+
const se_DeleteWorkspaceApiKeyCommand = async (input, context) => {
|
|
513
|
+
const b = core.requestBuilder(input, context);
|
|
514
|
+
const headers = {};
|
|
515
|
+
b.bp("/workspaces/{workspaceId}/apikeys/{keyName}");
|
|
516
|
+
b.p("keyName", () => input.keyName, "{keyName}", false);
|
|
517
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
518
|
+
let body;
|
|
519
|
+
b.m("DELETE").h(headers).b(body);
|
|
520
|
+
return b.build();
|
|
1981
521
|
};
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
(
|
|
1990
|
-
|
|
1991
|
-
];
|
|
1992
|
-
}).s("AWSGrafanaControlPlane", "ListWorkspaceServiceAccounts", {}).n("GrafanaClient", "ListWorkspaceServiceAccountsCommand").f(void 0, void 0).ser(se_ListWorkspaceServiceAccountsCommand).de(de_ListWorkspaceServiceAccountsCommand).build() {
|
|
1993
|
-
static {
|
|
1994
|
-
__name(this, "ListWorkspaceServiceAccountsCommand");
|
|
1995
|
-
}
|
|
522
|
+
const se_DeleteWorkspaceServiceAccountCommand = async (input, context) => {
|
|
523
|
+
const b = core.requestBuilder(input, context);
|
|
524
|
+
const headers = {};
|
|
525
|
+
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}");
|
|
526
|
+
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
527
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
528
|
+
let body;
|
|
529
|
+
b.m("DELETE").h(headers).b(body);
|
|
530
|
+
return b.build();
|
|
1996
531
|
};
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
|
|
2004
|
-
|
|
2005
|
-
(
|
|
2006
|
-
|
|
2007
|
-
}).s("AWSGrafanaControlPlane", "ListWorkspaceServiceAccountTokens", {}).n("GrafanaClient", "ListWorkspaceServiceAccountTokensCommand").f(void 0, void 0).ser(se_ListWorkspaceServiceAccountTokensCommand).de(de_ListWorkspaceServiceAccountTokensCommand).build() {
|
|
2008
|
-
static {
|
|
2009
|
-
__name(this, "ListWorkspaceServiceAccountTokensCommand");
|
|
2010
|
-
}
|
|
532
|
+
const se_DeleteWorkspaceServiceAccountTokenCommand = async (input, context) => {
|
|
533
|
+
const b = core.requestBuilder(input, context);
|
|
534
|
+
const headers = {};
|
|
535
|
+
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens/{tokenId}");
|
|
536
|
+
b.p("tokenId", () => input.tokenId, "{tokenId}", false);
|
|
537
|
+
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
538
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
539
|
+
let body;
|
|
540
|
+
b.m("DELETE").h(headers).b(body);
|
|
541
|
+
return b.build();
|
|
2011
542
|
};
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2021
|
-
];
|
|
2022
|
-
}).s("AWSGrafanaControlPlane", "TagResource", {}).n("GrafanaClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
|
|
2023
|
-
static {
|
|
2024
|
-
__name(this, "TagResourceCommand");
|
|
2025
|
-
}
|
|
543
|
+
const se_DescribeWorkspaceCommand = async (input, context) => {
|
|
544
|
+
const b = core.requestBuilder(input, context);
|
|
545
|
+
const headers = {};
|
|
546
|
+
b.bp("/workspaces/{workspaceId}");
|
|
547
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
548
|
+
let body;
|
|
549
|
+
b.m("GET").h(headers).b(body);
|
|
550
|
+
return b.build();
|
|
2026
551
|
};
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2036
|
-
];
|
|
2037
|
-
}).s("AWSGrafanaControlPlane", "UntagResource", {}).n("GrafanaClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
|
|
2038
|
-
static {
|
|
2039
|
-
__name(this, "UntagResourceCommand");
|
|
2040
|
-
}
|
|
552
|
+
const se_DescribeWorkspaceAuthenticationCommand = async (input, context) => {
|
|
553
|
+
const b = core.requestBuilder(input, context);
|
|
554
|
+
const headers = {};
|
|
555
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
556
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
557
|
+
let body;
|
|
558
|
+
b.m("GET").h(headers).b(body);
|
|
559
|
+
return b.build();
|
|
2041
560
|
};
|
|
2042
|
-
|
|
2043
|
-
|
|
2044
|
-
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2050
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2051
|
-
];
|
|
2052
|
-
}).s("AWSGrafanaControlPlane", "UpdatePermissions", {}).n("GrafanaClient", "UpdatePermissionsCommand").f(void 0, void 0).ser(se_UpdatePermissionsCommand).de(de_UpdatePermissionsCommand).build() {
|
|
2053
|
-
static {
|
|
2054
|
-
__name(this, "UpdatePermissionsCommand");
|
|
2055
|
-
}
|
|
561
|
+
const se_DescribeWorkspaceConfigurationCommand = async (input, context) => {
|
|
562
|
+
const b = core.requestBuilder(input, context);
|
|
563
|
+
const headers = {};
|
|
564
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
565
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
566
|
+
let body;
|
|
567
|
+
b.m("GET").h(headers).b(body);
|
|
568
|
+
return b.build();
|
|
2056
569
|
};
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2060
|
-
|
|
2061
|
-
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
(
|
|
2065
|
-
|
|
2066
|
-
];
|
|
2067
|
-
}).s("AWSGrafanaControlPlane", "UpdateWorkspaceAuthentication", {}).n("GrafanaClient", "UpdateWorkspaceAuthenticationCommand").f(UpdateWorkspaceAuthenticationRequestFilterSensitiveLog, UpdateWorkspaceAuthenticationResponseFilterSensitiveLog).ser(se_UpdateWorkspaceAuthenticationCommand).de(de_UpdateWorkspaceAuthenticationCommand).build() {
|
|
2068
|
-
static {
|
|
2069
|
-
__name(this, "UpdateWorkspaceAuthenticationCommand");
|
|
2070
|
-
}
|
|
570
|
+
const se_DisassociateLicenseCommand = async (input, context) => {
|
|
571
|
+
const b = core.requestBuilder(input, context);
|
|
572
|
+
const headers = {};
|
|
573
|
+
b.bp("/workspaces/{workspaceId}/licenses/{licenseType}");
|
|
574
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
575
|
+
b.p("licenseType", () => input.licenseType, "{licenseType}", false);
|
|
576
|
+
let body;
|
|
577
|
+
b.m("DELETE").h(headers).b(body);
|
|
578
|
+
return b.build();
|
|
2071
579
|
};
|
|
2072
|
-
|
|
2073
|
-
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
2080
|
-
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
580
|
+
const se_ListPermissionsCommand = async (input, context) => {
|
|
581
|
+
const b = core.requestBuilder(input, context);
|
|
582
|
+
const headers = {};
|
|
583
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
584
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
585
|
+
const query = smithyClient.map({
|
|
586
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
587
|
+
[_nT]: [, input[_nT]],
|
|
588
|
+
[_uT]: [, input[_uT]],
|
|
589
|
+
[_uI]: [, input[_uI]],
|
|
590
|
+
[_gI]: [, input[_gI]],
|
|
591
|
+
});
|
|
592
|
+
let body;
|
|
593
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
594
|
+
return b.build();
|
|
2086
595
|
};
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
(0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
|
|
2096
|
-
];
|
|
2097
|
-
}).s("AWSGrafanaControlPlane", "UpdateWorkspaceConfiguration", {}).n("GrafanaClient", "UpdateWorkspaceConfigurationCommand").f(void 0, void 0).ser(se_UpdateWorkspaceConfigurationCommand).de(de_UpdateWorkspaceConfigurationCommand).build() {
|
|
2098
|
-
static {
|
|
2099
|
-
__name(this, "UpdateWorkspaceConfigurationCommand");
|
|
2100
|
-
}
|
|
596
|
+
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
597
|
+
const b = core.requestBuilder(input, context);
|
|
598
|
+
const headers = {};
|
|
599
|
+
b.bp("/tags/{resourceArn}");
|
|
600
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
601
|
+
let body;
|
|
602
|
+
b.m("GET").h(headers).b(body);
|
|
603
|
+
return b.build();
|
|
2101
604
|
};
|
|
605
|
+
const se_ListVersionsCommand = async (input, context) => {
|
|
606
|
+
const b = core.requestBuilder(input, context);
|
|
607
|
+
const headers = {};
|
|
608
|
+
b.bp("/versions");
|
|
609
|
+
const query = smithyClient.map({
|
|
610
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
611
|
+
[_nT]: [, input[_nT]],
|
|
612
|
+
[_wi]: [, input[_wI]],
|
|
613
|
+
});
|
|
614
|
+
let body;
|
|
615
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
616
|
+
return b.build();
|
|
617
|
+
};
|
|
618
|
+
const se_ListWorkspacesCommand = async (input, context) => {
|
|
619
|
+
const b = core.requestBuilder(input, context);
|
|
620
|
+
const headers = {};
|
|
621
|
+
b.bp("/workspaces");
|
|
622
|
+
const query = smithyClient.map({
|
|
623
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
624
|
+
[_nT]: [, input[_nT]],
|
|
625
|
+
});
|
|
626
|
+
let body;
|
|
627
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
628
|
+
return b.build();
|
|
629
|
+
};
|
|
630
|
+
const se_ListWorkspaceServiceAccountsCommand = async (input, context) => {
|
|
631
|
+
const b = core.requestBuilder(input, context);
|
|
632
|
+
const headers = {};
|
|
633
|
+
b.bp("/workspaces/{workspaceId}/serviceaccounts");
|
|
634
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
635
|
+
const query = smithyClient.map({
|
|
636
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
637
|
+
[_nT]: [, input[_nT]],
|
|
638
|
+
});
|
|
639
|
+
let body;
|
|
640
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
641
|
+
return b.build();
|
|
642
|
+
};
|
|
643
|
+
const se_ListWorkspaceServiceAccountTokensCommand = async (input, context) => {
|
|
644
|
+
const b = core.requestBuilder(input, context);
|
|
645
|
+
const headers = {};
|
|
646
|
+
b.bp("/workspaces/{workspaceId}/serviceaccounts/{serviceAccountId}/tokens");
|
|
647
|
+
b.p("serviceAccountId", () => input.serviceAccountId, "{serviceAccountId}", false);
|
|
648
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
649
|
+
const query = smithyClient.map({
|
|
650
|
+
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
651
|
+
[_nT]: [, input[_nT]],
|
|
652
|
+
});
|
|
653
|
+
let body;
|
|
654
|
+
b.m("GET").h(headers).q(query).b(body);
|
|
655
|
+
return b.build();
|
|
656
|
+
};
|
|
657
|
+
const se_TagResourceCommand = async (input, context) => {
|
|
658
|
+
const b = core.requestBuilder(input, context);
|
|
659
|
+
const headers = {
|
|
660
|
+
"content-type": "application/json",
|
|
661
|
+
};
|
|
662
|
+
b.bp("/tags/{resourceArn}");
|
|
663
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
664
|
+
let body;
|
|
665
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
666
|
+
tags: (_) => smithyClient._json(_),
|
|
667
|
+
}));
|
|
668
|
+
b.m("POST").h(headers).b(body);
|
|
669
|
+
return b.build();
|
|
670
|
+
};
|
|
671
|
+
const se_UntagResourceCommand = async (input, context) => {
|
|
672
|
+
const b = core.requestBuilder(input, context);
|
|
673
|
+
const headers = {};
|
|
674
|
+
b.bp("/tags/{resourceArn}");
|
|
675
|
+
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
676
|
+
const query = smithyClient.map({
|
|
677
|
+
[_tK]: [smithyClient.expectNonNull(input.tagKeys, `tagKeys`) != null, () => input[_tK] || []],
|
|
678
|
+
});
|
|
679
|
+
let body;
|
|
680
|
+
b.m("DELETE").h(headers).q(query).b(body);
|
|
681
|
+
return b.build();
|
|
682
|
+
};
|
|
683
|
+
const se_UpdatePermissionsCommand = async (input, context) => {
|
|
684
|
+
const b = core.requestBuilder(input, context);
|
|
685
|
+
const headers = {
|
|
686
|
+
"content-type": "application/json",
|
|
687
|
+
};
|
|
688
|
+
b.bp("/workspaces/{workspaceId}/permissions");
|
|
689
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
690
|
+
let body;
|
|
691
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
692
|
+
updateInstructionBatch: (_) => smithyClient._json(_),
|
|
693
|
+
}));
|
|
694
|
+
b.m("PATCH").h(headers).b(body);
|
|
695
|
+
return b.build();
|
|
696
|
+
};
|
|
697
|
+
const se_UpdateWorkspaceCommand = async (input, context) => {
|
|
698
|
+
const b = core.requestBuilder(input, context);
|
|
699
|
+
const headers = {
|
|
700
|
+
"content-type": "application/json",
|
|
701
|
+
};
|
|
702
|
+
b.bp("/workspaces/{workspaceId}");
|
|
703
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
704
|
+
let body;
|
|
705
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
706
|
+
accountAccessType: [],
|
|
707
|
+
networkAccessControl: (_) => smithyClient._json(_),
|
|
708
|
+
organizationRoleName: [],
|
|
709
|
+
permissionType: [],
|
|
710
|
+
removeNetworkAccessConfiguration: [],
|
|
711
|
+
removeVpcConfiguration: [],
|
|
712
|
+
stackSetName: [],
|
|
713
|
+
vpcConfiguration: (_) => smithyClient._json(_),
|
|
714
|
+
workspaceDataSources: (_) => smithyClient._json(_),
|
|
715
|
+
workspaceDescription: [],
|
|
716
|
+
workspaceName: [],
|
|
717
|
+
workspaceNotificationDestinations: (_) => smithyClient._json(_),
|
|
718
|
+
workspaceOrganizationalUnits: (_) => smithyClient._json(_),
|
|
719
|
+
workspaceRoleArn: [],
|
|
720
|
+
}));
|
|
721
|
+
b.m("PUT").h(headers).b(body);
|
|
722
|
+
return b.build();
|
|
723
|
+
};
|
|
724
|
+
const se_UpdateWorkspaceAuthenticationCommand = async (input, context) => {
|
|
725
|
+
const b = core.requestBuilder(input, context);
|
|
726
|
+
const headers = {
|
|
727
|
+
"content-type": "application/json",
|
|
728
|
+
};
|
|
729
|
+
b.bp("/workspaces/{workspaceId}/authentication");
|
|
730
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
731
|
+
let body;
|
|
732
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
733
|
+
authenticationProviders: (_) => smithyClient._json(_),
|
|
734
|
+
samlConfiguration: (_) => smithyClient._json(_),
|
|
735
|
+
}));
|
|
736
|
+
b.m("POST").h(headers).b(body);
|
|
737
|
+
return b.build();
|
|
738
|
+
};
|
|
739
|
+
const se_UpdateWorkspaceConfigurationCommand = async (input, context) => {
|
|
740
|
+
const b = core.requestBuilder(input, context);
|
|
741
|
+
const headers = {
|
|
742
|
+
"content-type": "application/json",
|
|
743
|
+
};
|
|
744
|
+
b.bp("/workspaces/{workspaceId}/configuration");
|
|
745
|
+
b.p("workspaceId", () => input.workspaceId, "{workspaceId}", false);
|
|
746
|
+
let body;
|
|
747
|
+
body = JSON.stringify(smithyClient.take(input, {
|
|
748
|
+
configuration: (_) => smithyClient.LazyJsonString.from(_),
|
|
749
|
+
grafanaVersion: [],
|
|
750
|
+
}));
|
|
751
|
+
b.m("PUT").h(headers).b(body);
|
|
752
|
+
return b.build();
|
|
753
|
+
};
|
|
754
|
+
const de_AssociateLicenseCommand = async (output, context) => {
|
|
755
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
756
|
+
return de_CommandError(output, context);
|
|
757
|
+
}
|
|
758
|
+
const contents = smithyClient.map({
|
|
759
|
+
$metadata: deserializeMetadata(output),
|
|
760
|
+
});
|
|
761
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
762
|
+
const doc = smithyClient.take(data, {
|
|
763
|
+
workspace: (_) => de_WorkspaceDescription(_),
|
|
764
|
+
});
|
|
765
|
+
Object.assign(contents, doc);
|
|
766
|
+
return contents;
|
|
767
|
+
};
|
|
768
|
+
const de_CreateWorkspaceCommand = async (output, context) => {
|
|
769
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
770
|
+
return de_CommandError(output, context);
|
|
771
|
+
}
|
|
772
|
+
const contents = smithyClient.map({
|
|
773
|
+
$metadata: deserializeMetadata(output),
|
|
774
|
+
});
|
|
775
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
776
|
+
const doc = smithyClient.take(data, {
|
|
777
|
+
workspace: (_) => de_WorkspaceDescription(_),
|
|
778
|
+
});
|
|
779
|
+
Object.assign(contents, doc);
|
|
780
|
+
return contents;
|
|
781
|
+
};
|
|
782
|
+
const de_CreateWorkspaceApiKeyCommand = async (output, context) => {
|
|
783
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
784
|
+
return de_CommandError(output, context);
|
|
785
|
+
}
|
|
786
|
+
const contents = smithyClient.map({
|
|
787
|
+
$metadata: deserializeMetadata(output),
|
|
788
|
+
});
|
|
789
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
790
|
+
const doc = smithyClient.take(data, {
|
|
791
|
+
key: smithyClient.expectString,
|
|
792
|
+
keyName: smithyClient.expectString,
|
|
793
|
+
workspaceId: smithyClient.expectString,
|
|
794
|
+
});
|
|
795
|
+
Object.assign(contents, doc);
|
|
796
|
+
return contents;
|
|
797
|
+
};
|
|
798
|
+
const de_CreateWorkspaceServiceAccountCommand = async (output, context) => {
|
|
799
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
800
|
+
return de_CommandError(output, context);
|
|
801
|
+
}
|
|
802
|
+
const contents = smithyClient.map({
|
|
803
|
+
$metadata: deserializeMetadata(output),
|
|
804
|
+
});
|
|
805
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
806
|
+
const doc = smithyClient.take(data, {
|
|
807
|
+
grafanaRole: smithyClient.expectString,
|
|
808
|
+
id: smithyClient.expectString,
|
|
809
|
+
name: smithyClient.expectString,
|
|
810
|
+
workspaceId: smithyClient.expectString,
|
|
811
|
+
});
|
|
812
|
+
Object.assign(contents, doc);
|
|
813
|
+
return contents;
|
|
814
|
+
};
|
|
815
|
+
const de_CreateWorkspaceServiceAccountTokenCommand = async (output, context) => {
|
|
816
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
817
|
+
return de_CommandError(output, context);
|
|
818
|
+
}
|
|
819
|
+
const contents = smithyClient.map({
|
|
820
|
+
$metadata: deserializeMetadata(output),
|
|
821
|
+
});
|
|
822
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
823
|
+
const doc = smithyClient.take(data, {
|
|
824
|
+
serviceAccountId: smithyClient.expectString,
|
|
825
|
+
serviceAccountToken: smithyClient._json,
|
|
826
|
+
workspaceId: smithyClient.expectString,
|
|
827
|
+
});
|
|
828
|
+
Object.assign(contents, doc);
|
|
829
|
+
return contents;
|
|
830
|
+
};
|
|
831
|
+
const de_DeleteWorkspaceCommand = async (output, context) => {
|
|
832
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
833
|
+
return de_CommandError(output, context);
|
|
834
|
+
}
|
|
835
|
+
const contents = smithyClient.map({
|
|
836
|
+
$metadata: deserializeMetadata(output),
|
|
837
|
+
});
|
|
838
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
839
|
+
const doc = smithyClient.take(data, {
|
|
840
|
+
workspace: (_) => de_WorkspaceDescription(_),
|
|
841
|
+
});
|
|
842
|
+
Object.assign(contents, doc);
|
|
843
|
+
return contents;
|
|
844
|
+
};
|
|
845
|
+
const de_DeleteWorkspaceApiKeyCommand = async (output, context) => {
|
|
846
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
847
|
+
return de_CommandError(output, context);
|
|
848
|
+
}
|
|
849
|
+
const contents = smithyClient.map({
|
|
850
|
+
$metadata: deserializeMetadata(output),
|
|
851
|
+
});
|
|
852
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
853
|
+
const doc = smithyClient.take(data, {
|
|
854
|
+
keyName: smithyClient.expectString,
|
|
855
|
+
workspaceId: smithyClient.expectString,
|
|
856
|
+
});
|
|
857
|
+
Object.assign(contents, doc);
|
|
858
|
+
return contents;
|
|
859
|
+
};
|
|
860
|
+
const de_DeleteWorkspaceServiceAccountCommand = async (output, context) => {
|
|
861
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
862
|
+
return de_CommandError(output, context);
|
|
863
|
+
}
|
|
864
|
+
const contents = smithyClient.map({
|
|
865
|
+
$metadata: deserializeMetadata(output),
|
|
866
|
+
});
|
|
867
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
868
|
+
const doc = smithyClient.take(data, {
|
|
869
|
+
serviceAccountId: smithyClient.expectString,
|
|
870
|
+
workspaceId: smithyClient.expectString,
|
|
871
|
+
});
|
|
872
|
+
Object.assign(contents, doc);
|
|
873
|
+
return contents;
|
|
874
|
+
};
|
|
875
|
+
const de_DeleteWorkspaceServiceAccountTokenCommand = async (output, context) => {
|
|
876
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
877
|
+
return de_CommandError(output, context);
|
|
878
|
+
}
|
|
879
|
+
const contents = smithyClient.map({
|
|
880
|
+
$metadata: deserializeMetadata(output),
|
|
881
|
+
});
|
|
882
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
883
|
+
const doc = smithyClient.take(data, {
|
|
884
|
+
serviceAccountId: smithyClient.expectString,
|
|
885
|
+
tokenId: smithyClient.expectString,
|
|
886
|
+
workspaceId: smithyClient.expectString,
|
|
887
|
+
});
|
|
888
|
+
Object.assign(contents, doc);
|
|
889
|
+
return contents;
|
|
890
|
+
};
|
|
891
|
+
const de_DescribeWorkspaceCommand = async (output, context) => {
|
|
892
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
893
|
+
return de_CommandError(output, context);
|
|
894
|
+
}
|
|
895
|
+
const contents = smithyClient.map({
|
|
896
|
+
$metadata: deserializeMetadata(output),
|
|
897
|
+
});
|
|
898
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
899
|
+
const doc = smithyClient.take(data, {
|
|
900
|
+
workspace: (_) => de_WorkspaceDescription(_),
|
|
901
|
+
});
|
|
902
|
+
Object.assign(contents, doc);
|
|
903
|
+
return contents;
|
|
904
|
+
};
|
|
905
|
+
const de_DescribeWorkspaceAuthenticationCommand = async (output, context) => {
|
|
906
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
907
|
+
return de_CommandError(output, context);
|
|
908
|
+
}
|
|
909
|
+
const contents = smithyClient.map({
|
|
910
|
+
$metadata: deserializeMetadata(output),
|
|
911
|
+
});
|
|
912
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
913
|
+
const doc = smithyClient.take(data, {
|
|
914
|
+
authentication: smithyClient._json,
|
|
915
|
+
});
|
|
916
|
+
Object.assign(contents, doc);
|
|
917
|
+
return contents;
|
|
918
|
+
};
|
|
919
|
+
const de_DescribeWorkspaceConfigurationCommand = async (output, context) => {
|
|
920
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
921
|
+
return de_CommandError(output, context);
|
|
922
|
+
}
|
|
923
|
+
const contents = smithyClient.map({
|
|
924
|
+
$metadata: deserializeMetadata(output),
|
|
925
|
+
});
|
|
926
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
927
|
+
const doc = smithyClient.take(data, {
|
|
928
|
+
configuration: smithyClient.LazyJsonString.from,
|
|
929
|
+
grafanaVersion: smithyClient.expectString,
|
|
930
|
+
});
|
|
931
|
+
Object.assign(contents, doc);
|
|
932
|
+
return contents;
|
|
933
|
+
};
|
|
934
|
+
const de_DisassociateLicenseCommand = async (output, context) => {
|
|
935
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
936
|
+
return de_CommandError(output, context);
|
|
937
|
+
}
|
|
938
|
+
const contents = smithyClient.map({
|
|
939
|
+
$metadata: deserializeMetadata(output),
|
|
940
|
+
});
|
|
941
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
942
|
+
const doc = smithyClient.take(data, {
|
|
943
|
+
workspace: (_) => de_WorkspaceDescription(_),
|
|
944
|
+
});
|
|
945
|
+
Object.assign(contents, doc);
|
|
946
|
+
return contents;
|
|
947
|
+
};
|
|
948
|
+
const de_ListPermissionsCommand = async (output, context) => {
|
|
949
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
950
|
+
return de_CommandError(output, context);
|
|
951
|
+
}
|
|
952
|
+
const contents = smithyClient.map({
|
|
953
|
+
$metadata: deserializeMetadata(output),
|
|
954
|
+
});
|
|
955
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
956
|
+
const doc = smithyClient.take(data, {
|
|
957
|
+
nextToken: smithyClient.expectString,
|
|
958
|
+
permissions: smithyClient._json,
|
|
959
|
+
});
|
|
960
|
+
Object.assign(contents, doc);
|
|
961
|
+
return contents;
|
|
962
|
+
};
|
|
963
|
+
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
964
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
965
|
+
return de_CommandError(output, context);
|
|
966
|
+
}
|
|
967
|
+
const contents = smithyClient.map({
|
|
968
|
+
$metadata: deserializeMetadata(output),
|
|
969
|
+
});
|
|
970
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
971
|
+
const doc = smithyClient.take(data, {
|
|
972
|
+
tags: smithyClient._json,
|
|
973
|
+
});
|
|
974
|
+
Object.assign(contents, doc);
|
|
975
|
+
return contents;
|
|
976
|
+
};
|
|
977
|
+
const de_ListVersionsCommand = async (output, context) => {
|
|
978
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
979
|
+
return de_CommandError(output, context);
|
|
980
|
+
}
|
|
981
|
+
const contents = smithyClient.map({
|
|
982
|
+
$metadata: deserializeMetadata(output),
|
|
983
|
+
});
|
|
984
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
985
|
+
const doc = smithyClient.take(data, {
|
|
986
|
+
grafanaVersions: smithyClient._json,
|
|
987
|
+
nextToken: smithyClient.expectString,
|
|
988
|
+
});
|
|
989
|
+
Object.assign(contents, doc);
|
|
990
|
+
return contents;
|
|
991
|
+
};
|
|
992
|
+
const de_ListWorkspacesCommand = async (output, context) => {
|
|
993
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
994
|
+
return de_CommandError(output, context);
|
|
995
|
+
}
|
|
996
|
+
const contents = smithyClient.map({
|
|
997
|
+
$metadata: deserializeMetadata(output),
|
|
998
|
+
});
|
|
999
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1000
|
+
const doc = smithyClient.take(data, {
|
|
1001
|
+
nextToken: smithyClient.expectString,
|
|
1002
|
+
workspaces: (_) => de_WorkspaceList(_),
|
|
1003
|
+
});
|
|
1004
|
+
Object.assign(contents, doc);
|
|
1005
|
+
return contents;
|
|
1006
|
+
};
|
|
1007
|
+
const de_ListWorkspaceServiceAccountsCommand = async (output, context) => {
|
|
1008
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1009
|
+
return de_CommandError(output, context);
|
|
1010
|
+
}
|
|
1011
|
+
const contents = smithyClient.map({
|
|
1012
|
+
$metadata: deserializeMetadata(output),
|
|
1013
|
+
});
|
|
1014
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1015
|
+
const doc = smithyClient.take(data, {
|
|
1016
|
+
nextToken: smithyClient.expectString,
|
|
1017
|
+
serviceAccounts: smithyClient._json,
|
|
1018
|
+
workspaceId: smithyClient.expectString,
|
|
1019
|
+
});
|
|
1020
|
+
Object.assign(contents, doc);
|
|
1021
|
+
return contents;
|
|
1022
|
+
};
|
|
1023
|
+
const de_ListWorkspaceServiceAccountTokensCommand = async (output, context) => {
|
|
1024
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1025
|
+
return de_CommandError(output, context);
|
|
1026
|
+
}
|
|
1027
|
+
const contents = smithyClient.map({
|
|
1028
|
+
$metadata: deserializeMetadata(output),
|
|
1029
|
+
});
|
|
1030
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1031
|
+
const doc = smithyClient.take(data, {
|
|
1032
|
+
nextToken: smithyClient.expectString,
|
|
1033
|
+
serviceAccountId: smithyClient.expectString,
|
|
1034
|
+
serviceAccountTokens: (_) => de_ServiceAccountTokenList(_),
|
|
1035
|
+
workspaceId: smithyClient.expectString,
|
|
1036
|
+
});
|
|
1037
|
+
Object.assign(contents, doc);
|
|
1038
|
+
return contents;
|
|
1039
|
+
};
|
|
1040
|
+
const de_TagResourceCommand = async (output, context) => {
|
|
1041
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1042
|
+
return de_CommandError(output, context);
|
|
1043
|
+
}
|
|
1044
|
+
const contents = smithyClient.map({
|
|
1045
|
+
$metadata: deserializeMetadata(output),
|
|
1046
|
+
});
|
|
1047
|
+
await smithyClient.collectBody(output.body, context);
|
|
1048
|
+
return contents;
|
|
1049
|
+
};
|
|
1050
|
+
const de_UntagResourceCommand = async (output, context) => {
|
|
1051
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1052
|
+
return de_CommandError(output, context);
|
|
1053
|
+
}
|
|
1054
|
+
const contents = smithyClient.map({
|
|
1055
|
+
$metadata: deserializeMetadata(output),
|
|
1056
|
+
});
|
|
1057
|
+
await smithyClient.collectBody(output.body, context);
|
|
1058
|
+
return contents;
|
|
1059
|
+
};
|
|
1060
|
+
const de_UpdatePermissionsCommand = async (output, context) => {
|
|
1061
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1062
|
+
return de_CommandError(output, context);
|
|
1063
|
+
}
|
|
1064
|
+
const contents = smithyClient.map({
|
|
1065
|
+
$metadata: deserializeMetadata(output),
|
|
1066
|
+
});
|
|
1067
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1068
|
+
const doc = smithyClient.take(data, {
|
|
1069
|
+
errors: smithyClient._json,
|
|
1070
|
+
});
|
|
1071
|
+
Object.assign(contents, doc);
|
|
1072
|
+
return contents;
|
|
1073
|
+
};
|
|
1074
|
+
const de_UpdateWorkspaceCommand = async (output, context) => {
|
|
1075
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1076
|
+
return de_CommandError(output, context);
|
|
1077
|
+
}
|
|
1078
|
+
const contents = smithyClient.map({
|
|
1079
|
+
$metadata: deserializeMetadata(output),
|
|
1080
|
+
});
|
|
1081
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1082
|
+
const doc = smithyClient.take(data, {
|
|
1083
|
+
workspace: (_) => de_WorkspaceDescription(_),
|
|
1084
|
+
});
|
|
1085
|
+
Object.assign(contents, doc);
|
|
1086
|
+
return contents;
|
|
1087
|
+
};
|
|
1088
|
+
const de_UpdateWorkspaceAuthenticationCommand = async (output, context) => {
|
|
1089
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1090
|
+
return de_CommandError(output, context);
|
|
1091
|
+
}
|
|
1092
|
+
const contents = smithyClient.map({
|
|
1093
|
+
$metadata: deserializeMetadata(output),
|
|
1094
|
+
});
|
|
1095
|
+
const data = smithyClient.expectNonNull(smithyClient.expectObject(await core$1.parseJsonBody(output.body, context)), "body");
|
|
1096
|
+
const doc = smithyClient.take(data, {
|
|
1097
|
+
authentication: smithyClient._json,
|
|
1098
|
+
});
|
|
1099
|
+
Object.assign(contents, doc);
|
|
1100
|
+
return contents;
|
|
1101
|
+
};
|
|
1102
|
+
const de_UpdateWorkspaceConfigurationCommand = async (output, context) => {
|
|
1103
|
+
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
1104
|
+
return de_CommandError(output, context);
|
|
1105
|
+
}
|
|
1106
|
+
const contents = smithyClient.map({
|
|
1107
|
+
$metadata: deserializeMetadata(output),
|
|
1108
|
+
});
|
|
1109
|
+
await smithyClient.collectBody(output.body, context);
|
|
1110
|
+
return contents;
|
|
1111
|
+
};
|
|
1112
|
+
const de_CommandError = async (output, context) => {
|
|
1113
|
+
const parsedOutput = {
|
|
1114
|
+
...output,
|
|
1115
|
+
body: await core$1.parseJsonErrorBody(output.body, context),
|
|
1116
|
+
};
|
|
1117
|
+
const errorCode = core$1.loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1118
|
+
switch (errorCode) {
|
|
1119
|
+
case "AccessDeniedException":
|
|
1120
|
+
case "com.amazonaws.grafana#AccessDeniedException":
|
|
1121
|
+
throw await de_AccessDeniedExceptionRes(parsedOutput);
|
|
1122
|
+
case "InternalServerException":
|
|
1123
|
+
case "com.amazonaws.grafana#InternalServerException":
|
|
1124
|
+
throw await de_InternalServerExceptionRes(parsedOutput);
|
|
1125
|
+
case "ResourceNotFoundException":
|
|
1126
|
+
case "com.amazonaws.grafana#ResourceNotFoundException":
|
|
1127
|
+
throw await de_ResourceNotFoundExceptionRes(parsedOutput);
|
|
1128
|
+
case "ThrottlingException":
|
|
1129
|
+
case "com.amazonaws.grafana#ThrottlingException":
|
|
1130
|
+
throw await de_ThrottlingExceptionRes(parsedOutput);
|
|
1131
|
+
case "ValidationException":
|
|
1132
|
+
case "com.amazonaws.grafana#ValidationException":
|
|
1133
|
+
throw await de_ValidationExceptionRes(parsedOutput);
|
|
1134
|
+
case "ConflictException":
|
|
1135
|
+
case "com.amazonaws.grafana#ConflictException":
|
|
1136
|
+
throw await de_ConflictExceptionRes(parsedOutput);
|
|
1137
|
+
case "ServiceQuotaExceededException":
|
|
1138
|
+
case "com.amazonaws.grafana#ServiceQuotaExceededException":
|
|
1139
|
+
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput);
|
|
1140
|
+
default:
|
|
1141
|
+
const parsedBody = parsedOutput.body;
|
|
1142
|
+
return throwDefaultError({
|
|
1143
|
+
output,
|
|
1144
|
+
parsedBody,
|
|
1145
|
+
errorCode,
|
|
1146
|
+
});
|
|
1147
|
+
}
|
|
1148
|
+
};
|
|
1149
|
+
const throwDefaultError = smithyClient.withBaseException(GrafanaServiceException);
|
|
1150
|
+
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
1151
|
+
const contents = smithyClient.map({});
|
|
1152
|
+
const data = parsedOutput.body;
|
|
1153
|
+
const doc = smithyClient.take(data, {
|
|
1154
|
+
message: smithyClient.expectString,
|
|
1155
|
+
});
|
|
1156
|
+
Object.assign(contents, doc);
|
|
1157
|
+
const exception = new AccessDeniedException({
|
|
1158
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1159
|
+
...contents,
|
|
1160
|
+
});
|
|
1161
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1162
|
+
};
|
|
1163
|
+
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
1164
|
+
const contents = smithyClient.map({});
|
|
1165
|
+
const data = parsedOutput.body;
|
|
1166
|
+
const doc = smithyClient.take(data, {
|
|
1167
|
+
message: smithyClient.expectString,
|
|
1168
|
+
resourceId: smithyClient.expectString,
|
|
1169
|
+
resourceType: smithyClient.expectString,
|
|
1170
|
+
});
|
|
1171
|
+
Object.assign(contents, doc);
|
|
1172
|
+
const exception = new ConflictException({
|
|
1173
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1174
|
+
...contents,
|
|
1175
|
+
});
|
|
1176
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1177
|
+
};
|
|
1178
|
+
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
1179
|
+
const contents = smithyClient.map({
|
|
1180
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
1181
|
+
});
|
|
1182
|
+
const data = parsedOutput.body;
|
|
1183
|
+
const doc = smithyClient.take(data, {
|
|
1184
|
+
message: smithyClient.expectString,
|
|
1185
|
+
});
|
|
1186
|
+
Object.assign(contents, doc);
|
|
1187
|
+
const exception = new InternalServerException({
|
|
1188
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1189
|
+
...contents,
|
|
1190
|
+
});
|
|
1191
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1192
|
+
};
|
|
1193
|
+
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
1194
|
+
const contents = smithyClient.map({});
|
|
1195
|
+
const data = parsedOutput.body;
|
|
1196
|
+
const doc = smithyClient.take(data, {
|
|
1197
|
+
message: smithyClient.expectString,
|
|
1198
|
+
resourceId: smithyClient.expectString,
|
|
1199
|
+
resourceType: smithyClient.expectString,
|
|
1200
|
+
});
|
|
1201
|
+
Object.assign(contents, doc);
|
|
1202
|
+
const exception = new ResourceNotFoundException({
|
|
1203
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1204
|
+
...contents,
|
|
1205
|
+
});
|
|
1206
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1207
|
+
};
|
|
1208
|
+
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
1209
|
+
const contents = smithyClient.map({});
|
|
1210
|
+
const data = parsedOutput.body;
|
|
1211
|
+
const doc = smithyClient.take(data, {
|
|
1212
|
+
message: smithyClient.expectString,
|
|
1213
|
+
quotaCode: smithyClient.expectString,
|
|
1214
|
+
resourceId: smithyClient.expectString,
|
|
1215
|
+
resourceType: smithyClient.expectString,
|
|
1216
|
+
serviceCode: smithyClient.expectString,
|
|
1217
|
+
});
|
|
1218
|
+
Object.assign(contents, doc);
|
|
1219
|
+
const exception = new ServiceQuotaExceededException({
|
|
1220
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1221
|
+
...contents,
|
|
1222
|
+
});
|
|
1223
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1224
|
+
};
|
|
1225
|
+
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
1226
|
+
const contents = smithyClient.map({
|
|
1227
|
+
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => smithyClient.strictParseInt32(parsedOutput.headers[_ra])],
|
|
1228
|
+
});
|
|
1229
|
+
const data = parsedOutput.body;
|
|
1230
|
+
const doc = smithyClient.take(data, {
|
|
1231
|
+
message: smithyClient.expectString,
|
|
1232
|
+
quotaCode: smithyClient.expectString,
|
|
1233
|
+
serviceCode: smithyClient.expectString,
|
|
1234
|
+
});
|
|
1235
|
+
Object.assign(contents, doc);
|
|
1236
|
+
const exception = new ThrottlingException({
|
|
1237
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1238
|
+
...contents,
|
|
1239
|
+
});
|
|
1240
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1241
|
+
};
|
|
1242
|
+
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
1243
|
+
const contents = smithyClient.map({});
|
|
1244
|
+
const data = parsedOutput.body;
|
|
1245
|
+
const doc = smithyClient.take(data, {
|
|
1246
|
+
fieldList: smithyClient._json,
|
|
1247
|
+
message: smithyClient.expectString,
|
|
1248
|
+
reason: smithyClient.expectString,
|
|
1249
|
+
});
|
|
1250
|
+
Object.assign(contents, doc);
|
|
1251
|
+
const exception = new ValidationException({
|
|
1252
|
+
$metadata: deserializeMetadata(parsedOutput),
|
|
1253
|
+
...contents,
|
|
1254
|
+
});
|
|
1255
|
+
return smithyClient.decorateServiceException(exception, parsedOutput.body);
|
|
1256
|
+
};
|
|
1257
|
+
const de_ServiceAccountTokenList = (output, context) => {
|
|
1258
|
+
const retVal = (output || [])
|
|
1259
|
+
.filter((e) => e != null)
|
|
1260
|
+
.map((entry) => {
|
|
1261
|
+
return de_ServiceAccountTokenSummary(entry);
|
|
1262
|
+
});
|
|
1263
|
+
return retVal;
|
|
1264
|
+
};
|
|
1265
|
+
const de_ServiceAccountTokenSummary = (output, context) => {
|
|
1266
|
+
return smithyClient.take(output, {
|
|
1267
|
+
createdAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1268
|
+
expiresAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1269
|
+
id: smithyClient.expectString,
|
|
1270
|
+
lastUsedAt: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1271
|
+
name: smithyClient.expectString,
|
|
1272
|
+
});
|
|
1273
|
+
};
|
|
1274
|
+
const de_WorkspaceDescription = (output, context) => {
|
|
1275
|
+
return smithyClient.take(output, {
|
|
1276
|
+
accountAccessType: smithyClient.expectString,
|
|
1277
|
+
authentication: smithyClient._json,
|
|
1278
|
+
created: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1279
|
+
dataSources: smithyClient._json,
|
|
1280
|
+
description: smithyClient.expectString,
|
|
1281
|
+
endpoint: smithyClient.expectString,
|
|
1282
|
+
freeTrialConsumed: smithyClient.expectBoolean,
|
|
1283
|
+
freeTrialExpiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1284
|
+
grafanaToken: smithyClient.expectString,
|
|
1285
|
+
grafanaVersion: smithyClient.expectString,
|
|
1286
|
+
id: smithyClient.expectString,
|
|
1287
|
+
licenseExpiration: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1288
|
+
licenseType: smithyClient.expectString,
|
|
1289
|
+
modified: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1290
|
+
name: smithyClient.expectString,
|
|
1291
|
+
networkAccessControl: smithyClient._json,
|
|
1292
|
+
notificationDestinations: smithyClient._json,
|
|
1293
|
+
organizationRoleName: smithyClient.expectString,
|
|
1294
|
+
organizationalUnits: smithyClient._json,
|
|
1295
|
+
permissionType: smithyClient.expectString,
|
|
1296
|
+
stackSetName: smithyClient.expectString,
|
|
1297
|
+
status: smithyClient.expectString,
|
|
1298
|
+
tags: smithyClient._json,
|
|
1299
|
+
vpcConfiguration: smithyClient._json,
|
|
1300
|
+
workspaceRoleArn: smithyClient.expectString,
|
|
1301
|
+
});
|
|
1302
|
+
};
|
|
1303
|
+
const de_WorkspaceList = (output, context) => {
|
|
1304
|
+
const retVal = (output || [])
|
|
1305
|
+
.filter((e) => e != null)
|
|
1306
|
+
.map((entry) => {
|
|
1307
|
+
return de_WorkspaceSummary(entry);
|
|
1308
|
+
});
|
|
1309
|
+
return retVal;
|
|
1310
|
+
};
|
|
1311
|
+
const de_WorkspaceSummary = (output, context) => {
|
|
1312
|
+
return smithyClient.take(output, {
|
|
1313
|
+
authentication: smithyClient._json,
|
|
1314
|
+
created: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1315
|
+
description: smithyClient.expectString,
|
|
1316
|
+
endpoint: smithyClient.expectString,
|
|
1317
|
+
grafanaToken: smithyClient.expectString,
|
|
1318
|
+
grafanaVersion: smithyClient.expectString,
|
|
1319
|
+
id: smithyClient.expectString,
|
|
1320
|
+
licenseType: smithyClient.expectString,
|
|
1321
|
+
modified: (_) => smithyClient.expectNonNull(smithyClient.parseEpochTimestamp(smithyClient.expectNumber(_))),
|
|
1322
|
+
name: smithyClient.expectString,
|
|
1323
|
+
notificationDestinations: smithyClient._json,
|
|
1324
|
+
status: smithyClient.expectString,
|
|
1325
|
+
tags: smithyClient._json,
|
|
1326
|
+
});
|
|
1327
|
+
};
|
|
1328
|
+
const deserializeMetadata = (output) => ({
|
|
1329
|
+
httpStatusCode: output.statusCode,
|
|
1330
|
+
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
1331
|
+
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1332
|
+
cfId: output.headers["x-amz-cf-id"],
|
|
1333
|
+
});
|
|
1334
|
+
const _gI = "groupId";
|
|
1335
|
+
const _gT = "grafanaToken";
|
|
1336
|
+
const _gt = "grafana-token";
|
|
1337
|
+
const _mR = "maxResults";
|
|
1338
|
+
const _nT = "nextToken";
|
|
1339
|
+
const _rAS = "retryAfterSeconds";
|
|
1340
|
+
const _ra = "retry-after";
|
|
1341
|
+
const _tK = "tagKeys";
|
|
1342
|
+
const _uI = "userId";
|
|
1343
|
+
const _uT = "userType";
|
|
1344
|
+
const _wI = "workspaceId";
|
|
1345
|
+
const _wi = "workspace-id";
|
|
1346
|
+
|
|
1347
|
+
class AssociateLicenseCommand extends smithyClient.Command
|
|
1348
|
+
.classBuilder()
|
|
1349
|
+
.ep(commonParams)
|
|
1350
|
+
.m(function (Command, cs, config, o) {
|
|
1351
|
+
return [
|
|
1352
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1353
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1354
|
+
];
|
|
1355
|
+
})
|
|
1356
|
+
.s("AWSGrafanaControlPlane", "AssociateLicense", {})
|
|
1357
|
+
.n("GrafanaClient", "AssociateLicenseCommand")
|
|
1358
|
+
.f(void 0, AssociateLicenseResponseFilterSensitiveLog)
|
|
1359
|
+
.ser(se_AssociateLicenseCommand)
|
|
1360
|
+
.de(de_AssociateLicenseCommand)
|
|
1361
|
+
.build() {
|
|
1362
|
+
}
|
|
1363
|
+
|
|
1364
|
+
class CreateWorkspaceApiKeyCommand extends smithyClient.Command
|
|
1365
|
+
.classBuilder()
|
|
1366
|
+
.ep(commonParams)
|
|
1367
|
+
.m(function (Command, cs, config, o) {
|
|
1368
|
+
return [
|
|
1369
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1370
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1371
|
+
];
|
|
1372
|
+
})
|
|
1373
|
+
.s("AWSGrafanaControlPlane", "CreateWorkspaceApiKey", {})
|
|
1374
|
+
.n("GrafanaClient", "CreateWorkspaceApiKeyCommand")
|
|
1375
|
+
.f(void 0, CreateWorkspaceApiKeyResponseFilterSensitiveLog)
|
|
1376
|
+
.ser(se_CreateWorkspaceApiKeyCommand)
|
|
1377
|
+
.de(de_CreateWorkspaceApiKeyCommand)
|
|
1378
|
+
.build() {
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
class CreateWorkspaceCommand extends smithyClient.Command
|
|
1382
|
+
.classBuilder()
|
|
1383
|
+
.ep(commonParams)
|
|
1384
|
+
.m(function (Command, cs, config, o) {
|
|
1385
|
+
return [
|
|
1386
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1387
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1388
|
+
];
|
|
1389
|
+
})
|
|
1390
|
+
.s("AWSGrafanaControlPlane", "CreateWorkspace", {})
|
|
1391
|
+
.n("GrafanaClient", "CreateWorkspaceCommand")
|
|
1392
|
+
.f(CreateWorkspaceRequestFilterSensitiveLog, CreateWorkspaceResponseFilterSensitiveLog)
|
|
1393
|
+
.ser(se_CreateWorkspaceCommand)
|
|
1394
|
+
.de(de_CreateWorkspaceCommand)
|
|
1395
|
+
.build() {
|
|
1396
|
+
}
|
|
1397
|
+
|
|
1398
|
+
class CreateWorkspaceServiceAccountCommand extends smithyClient.Command
|
|
1399
|
+
.classBuilder()
|
|
1400
|
+
.ep(commonParams)
|
|
1401
|
+
.m(function (Command, cs, config, o) {
|
|
1402
|
+
return [
|
|
1403
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1404
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1405
|
+
];
|
|
1406
|
+
})
|
|
1407
|
+
.s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccount", {})
|
|
1408
|
+
.n("GrafanaClient", "CreateWorkspaceServiceAccountCommand")
|
|
1409
|
+
.f(void 0, void 0)
|
|
1410
|
+
.ser(se_CreateWorkspaceServiceAccountCommand)
|
|
1411
|
+
.de(de_CreateWorkspaceServiceAccountCommand)
|
|
1412
|
+
.build() {
|
|
1413
|
+
}
|
|
1414
|
+
|
|
1415
|
+
class CreateWorkspaceServiceAccountTokenCommand extends smithyClient.Command
|
|
1416
|
+
.classBuilder()
|
|
1417
|
+
.ep(commonParams)
|
|
1418
|
+
.m(function (Command, cs, config, o) {
|
|
1419
|
+
return [
|
|
1420
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1421
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1422
|
+
];
|
|
1423
|
+
})
|
|
1424
|
+
.s("AWSGrafanaControlPlane", "CreateWorkspaceServiceAccountToken", {})
|
|
1425
|
+
.n("GrafanaClient", "CreateWorkspaceServiceAccountTokenCommand")
|
|
1426
|
+
.f(void 0, CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog)
|
|
1427
|
+
.ser(se_CreateWorkspaceServiceAccountTokenCommand)
|
|
1428
|
+
.de(de_CreateWorkspaceServiceAccountTokenCommand)
|
|
1429
|
+
.build() {
|
|
1430
|
+
}
|
|
1431
|
+
|
|
1432
|
+
class DeleteWorkspaceApiKeyCommand extends smithyClient.Command
|
|
1433
|
+
.classBuilder()
|
|
1434
|
+
.ep(commonParams)
|
|
1435
|
+
.m(function (Command, cs, config, o) {
|
|
1436
|
+
return [
|
|
1437
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1438
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1439
|
+
];
|
|
1440
|
+
})
|
|
1441
|
+
.s("AWSGrafanaControlPlane", "DeleteWorkspaceApiKey", {})
|
|
1442
|
+
.n("GrafanaClient", "DeleteWorkspaceApiKeyCommand")
|
|
1443
|
+
.f(void 0, void 0)
|
|
1444
|
+
.ser(se_DeleteWorkspaceApiKeyCommand)
|
|
1445
|
+
.de(de_DeleteWorkspaceApiKeyCommand)
|
|
1446
|
+
.build() {
|
|
1447
|
+
}
|
|
1448
|
+
|
|
1449
|
+
class DeleteWorkspaceCommand extends smithyClient.Command
|
|
1450
|
+
.classBuilder()
|
|
1451
|
+
.ep(commonParams)
|
|
1452
|
+
.m(function (Command, cs, config, o) {
|
|
1453
|
+
return [
|
|
1454
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1455
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1456
|
+
];
|
|
1457
|
+
})
|
|
1458
|
+
.s("AWSGrafanaControlPlane", "DeleteWorkspace", {})
|
|
1459
|
+
.n("GrafanaClient", "DeleteWorkspaceCommand")
|
|
1460
|
+
.f(void 0, DeleteWorkspaceResponseFilterSensitiveLog)
|
|
1461
|
+
.ser(se_DeleteWorkspaceCommand)
|
|
1462
|
+
.de(de_DeleteWorkspaceCommand)
|
|
1463
|
+
.build() {
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
class DeleteWorkspaceServiceAccountCommand extends smithyClient.Command
|
|
1467
|
+
.classBuilder()
|
|
1468
|
+
.ep(commonParams)
|
|
1469
|
+
.m(function (Command, cs, config, o) {
|
|
1470
|
+
return [
|
|
1471
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1472
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1473
|
+
];
|
|
1474
|
+
})
|
|
1475
|
+
.s("AWSGrafanaControlPlane", "DeleteWorkspaceServiceAccount", {})
|
|
1476
|
+
.n("GrafanaClient", "DeleteWorkspaceServiceAccountCommand")
|
|
1477
|
+
.f(void 0, void 0)
|
|
1478
|
+
.ser(se_DeleteWorkspaceServiceAccountCommand)
|
|
1479
|
+
.de(de_DeleteWorkspaceServiceAccountCommand)
|
|
1480
|
+
.build() {
|
|
1481
|
+
}
|
|
1482
|
+
|
|
1483
|
+
class DeleteWorkspaceServiceAccountTokenCommand extends smithyClient.Command
|
|
1484
|
+
.classBuilder()
|
|
1485
|
+
.ep(commonParams)
|
|
1486
|
+
.m(function (Command, cs, config, o) {
|
|
1487
|
+
return [
|
|
1488
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1489
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1490
|
+
];
|
|
1491
|
+
})
|
|
1492
|
+
.s("AWSGrafanaControlPlane", "DeleteWorkspaceServiceAccountToken", {})
|
|
1493
|
+
.n("GrafanaClient", "DeleteWorkspaceServiceAccountTokenCommand")
|
|
1494
|
+
.f(void 0, void 0)
|
|
1495
|
+
.ser(se_DeleteWorkspaceServiceAccountTokenCommand)
|
|
1496
|
+
.de(de_DeleteWorkspaceServiceAccountTokenCommand)
|
|
1497
|
+
.build() {
|
|
1498
|
+
}
|
|
1499
|
+
|
|
1500
|
+
class DescribeWorkspaceAuthenticationCommand extends smithyClient.Command
|
|
1501
|
+
.classBuilder()
|
|
1502
|
+
.ep(commonParams)
|
|
1503
|
+
.m(function (Command, cs, config, o) {
|
|
1504
|
+
return [
|
|
1505
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1506
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1507
|
+
];
|
|
1508
|
+
})
|
|
1509
|
+
.s("AWSGrafanaControlPlane", "DescribeWorkspaceAuthentication", {})
|
|
1510
|
+
.n("GrafanaClient", "DescribeWorkspaceAuthenticationCommand")
|
|
1511
|
+
.f(void 0, DescribeWorkspaceAuthenticationResponseFilterSensitiveLog)
|
|
1512
|
+
.ser(se_DescribeWorkspaceAuthenticationCommand)
|
|
1513
|
+
.de(de_DescribeWorkspaceAuthenticationCommand)
|
|
1514
|
+
.build() {
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
class DescribeWorkspaceCommand extends smithyClient.Command
|
|
1518
|
+
.classBuilder()
|
|
1519
|
+
.ep(commonParams)
|
|
1520
|
+
.m(function (Command, cs, config, o) {
|
|
1521
|
+
return [
|
|
1522
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1523
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1524
|
+
];
|
|
1525
|
+
})
|
|
1526
|
+
.s("AWSGrafanaControlPlane", "DescribeWorkspace", {})
|
|
1527
|
+
.n("GrafanaClient", "DescribeWorkspaceCommand")
|
|
1528
|
+
.f(void 0, DescribeWorkspaceResponseFilterSensitiveLog)
|
|
1529
|
+
.ser(se_DescribeWorkspaceCommand)
|
|
1530
|
+
.de(de_DescribeWorkspaceCommand)
|
|
1531
|
+
.build() {
|
|
1532
|
+
}
|
|
1533
|
+
|
|
1534
|
+
class DescribeWorkspaceConfigurationCommand extends smithyClient.Command
|
|
1535
|
+
.classBuilder()
|
|
1536
|
+
.ep(commonParams)
|
|
1537
|
+
.m(function (Command, cs, config, o) {
|
|
1538
|
+
return [
|
|
1539
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1540
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1541
|
+
];
|
|
1542
|
+
})
|
|
1543
|
+
.s("AWSGrafanaControlPlane", "DescribeWorkspaceConfiguration", {})
|
|
1544
|
+
.n("GrafanaClient", "DescribeWorkspaceConfigurationCommand")
|
|
1545
|
+
.f(void 0, void 0)
|
|
1546
|
+
.ser(se_DescribeWorkspaceConfigurationCommand)
|
|
1547
|
+
.de(de_DescribeWorkspaceConfigurationCommand)
|
|
1548
|
+
.build() {
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
class DisassociateLicenseCommand extends smithyClient.Command
|
|
1552
|
+
.classBuilder()
|
|
1553
|
+
.ep(commonParams)
|
|
1554
|
+
.m(function (Command, cs, config, o) {
|
|
1555
|
+
return [
|
|
1556
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1557
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1558
|
+
];
|
|
1559
|
+
})
|
|
1560
|
+
.s("AWSGrafanaControlPlane", "DisassociateLicense", {})
|
|
1561
|
+
.n("GrafanaClient", "DisassociateLicenseCommand")
|
|
1562
|
+
.f(void 0, DisassociateLicenseResponseFilterSensitiveLog)
|
|
1563
|
+
.ser(se_DisassociateLicenseCommand)
|
|
1564
|
+
.de(de_DisassociateLicenseCommand)
|
|
1565
|
+
.build() {
|
|
1566
|
+
}
|
|
1567
|
+
|
|
1568
|
+
class ListPermissionsCommand extends smithyClient.Command
|
|
1569
|
+
.classBuilder()
|
|
1570
|
+
.ep(commonParams)
|
|
1571
|
+
.m(function (Command, cs, config, o) {
|
|
1572
|
+
return [
|
|
1573
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1574
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1575
|
+
];
|
|
1576
|
+
})
|
|
1577
|
+
.s("AWSGrafanaControlPlane", "ListPermissions", {})
|
|
1578
|
+
.n("GrafanaClient", "ListPermissionsCommand")
|
|
1579
|
+
.f(void 0, void 0)
|
|
1580
|
+
.ser(se_ListPermissionsCommand)
|
|
1581
|
+
.de(de_ListPermissionsCommand)
|
|
1582
|
+
.build() {
|
|
1583
|
+
}
|
|
1584
|
+
|
|
1585
|
+
class ListTagsForResourceCommand extends smithyClient.Command
|
|
1586
|
+
.classBuilder()
|
|
1587
|
+
.ep(commonParams)
|
|
1588
|
+
.m(function (Command, cs, config, o) {
|
|
1589
|
+
return [
|
|
1590
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1591
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1592
|
+
];
|
|
1593
|
+
})
|
|
1594
|
+
.s("AWSGrafanaControlPlane", "ListTagsForResource", {})
|
|
1595
|
+
.n("GrafanaClient", "ListTagsForResourceCommand")
|
|
1596
|
+
.f(void 0, void 0)
|
|
1597
|
+
.ser(se_ListTagsForResourceCommand)
|
|
1598
|
+
.de(de_ListTagsForResourceCommand)
|
|
1599
|
+
.build() {
|
|
1600
|
+
}
|
|
1601
|
+
|
|
1602
|
+
class ListVersionsCommand extends smithyClient.Command
|
|
1603
|
+
.classBuilder()
|
|
1604
|
+
.ep(commonParams)
|
|
1605
|
+
.m(function (Command, cs, config, o) {
|
|
1606
|
+
return [
|
|
1607
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1608
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1609
|
+
];
|
|
1610
|
+
})
|
|
1611
|
+
.s("AWSGrafanaControlPlane", "ListVersions", {})
|
|
1612
|
+
.n("GrafanaClient", "ListVersionsCommand")
|
|
1613
|
+
.f(void 0, void 0)
|
|
1614
|
+
.ser(se_ListVersionsCommand)
|
|
1615
|
+
.de(de_ListVersionsCommand)
|
|
1616
|
+
.build() {
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
class ListWorkspacesCommand extends smithyClient.Command
|
|
1620
|
+
.classBuilder()
|
|
1621
|
+
.ep(commonParams)
|
|
1622
|
+
.m(function (Command, cs, config, o) {
|
|
1623
|
+
return [
|
|
1624
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1625
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1626
|
+
];
|
|
1627
|
+
})
|
|
1628
|
+
.s("AWSGrafanaControlPlane", "ListWorkspaces", {})
|
|
1629
|
+
.n("GrafanaClient", "ListWorkspacesCommand")
|
|
1630
|
+
.f(void 0, ListWorkspacesResponseFilterSensitiveLog)
|
|
1631
|
+
.ser(se_ListWorkspacesCommand)
|
|
1632
|
+
.de(de_ListWorkspacesCommand)
|
|
1633
|
+
.build() {
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
class ListWorkspaceServiceAccountsCommand extends smithyClient.Command
|
|
1637
|
+
.classBuilder()
|
|
1638
|
+
.ep(commonParams)
|
|
1639
|
+
.m(function (Command, cs, config, o) {
|
|
1640
|
+
return [
|
|
1641
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1642
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1643
|
+
];
|
|
1644
|
+
})
|
|
1645
|
+
.s("AWSGrafanaControlPlane", "ListWorkspaceServiceAccounts", {})
|
|
1646
|
+
.n("GrafanaClient", "ListWorkspaceServiceAccountsCommand")
|
|
1647
|
+
.f(void 0, void 0)
|
|
1648
|
+
.ser(se_ListWorkspaceServiceAccountsCommand)
|
|
1649
|
+
.de(de_ListWorkspaceServiceAccountsCommand)
|
|
1650
|
+
.build() {
|
|
1651
|
+
}
|
|
1652
|
+
|
|
1653
|
+
class ListWorkspaceServiceAccountTokensCommand extends smithyClient.Command
|
|
1654
|
+
.classBuilder()
|
|
1655
|
+
.ep(commonParams)
|
|
1656
|
+
.m(function (Command, cs, config, o) {
|
|
1657
|
+
return [
|
|
1658
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1659
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1660
|
+
];
|
|
1661
|
+
})
|
|
1662
|
+
.s("AWSGrafanaControlPlane", "ListWorkspaceServiceAccountTokens", {})
|
|
1663
|
+
.n("GrafanaClient", "ListWorkspaceServiceAccountTokensCommand")
|
|
1664
|
+
.f(void 0, void 0)
|
|
1665
|
+
.ser(se_ListWorkspaceServiceAccountTokensCommand)
|
|
1666
|
+
.de(de_ListWorkspaceServiceAccountTokensCommand)
|
|
1667
|
+
.build() {
|
|
1668
|
+
}
|
|
1669
|
+
|
|
1670
|
+
class TagResourceCommand extends smithyClient.Command
|
|
1671
|
+
.classBuilder()
|
|
1672
|
+
.ep(commonParams)
|
|
1673
|
+
.m(function (Command, cs, config, o) {
|
|
1674
|
+
return [
|
|
1675
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1676
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1677
|
+
];
|
|
1678
|
+
})
|
|
1679
|
+
.s("AWSGrafanaControlPlane", "TagResource", {})
|
|
1680
|
+
.n("GrafanaClient", "TagResourceCommand")
|
|
1681
|
+
.f(void 0, void 0)
|
|
1682
|
+
.ser(se_TagResourceCommand)
|
|
1683
|
+
.de(de_TagResourceCommand)
|
|
1684
|
+
.build() {
|
|
1685
|
+
}
|
|
1686
|
+
|
|
1687
|
+
class UntagResourceCommand extends smithyClient.Command
|
|
1688
|
+
.classBuilder()
|
|
1689
|
+
.ep(commonParams)
|
|
1690
|
+
.m(function (Command, cs, config, o) {
|
|
1691
|
+
return [
|
|
1692
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1693
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1694
|
+
];
|
|
1695
|
+
})
|
|
1696
|
+
.s("AWSGrafanaControlPlane", "UntagResource", {})
|
|
1697
|
+
.n("GrafanaClient", "UntagResourceCommand")
|
|
1698
|
+
.f(void 0, void 0)
|
|
1699
|
+
.ser(se_UntagResourceCommand)
|
|
1700
|
+
.de(de_UntagResourceCommand)
|
|
1701
|
+
.build() {
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
class UpdatePermissionsCommand extends smithyClient.Command
|
|
1705
|
+
.classBuilder()
|
|
1706
|
+
.ep(commonParams)
|
|
1707
|
+
.m(function (Command, cs, config, o) {
|
|
1708
|
+
return [
|
|
1709
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1710
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1711
|
+
];
|
|
1712
|
+
})
|
|
1713
|
+
.s("AWSGrafanaControlPlane", "UpdatePermissions", {})
|
|
1714
|
+
.n("GrafanaClient", "UpdatePermissionsCommand")
|
|
1715
|
+
.f(void 0, void 0)
|
|
1716
|
+
.ser(se_UpdatePermissionsCommand)
|
|
1717
|
+
.de(de_UpdatePermissionsCommand)
|
|
1718
|
+
.build() {
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
class UpdateWorkspaceAuthenticationCommand extends smithyClient.Command
|
|
1722
|
+
.classBuilder()
|
|
1723
|
+
.ep(commonParams)
|
|
1724
|
+
.m(function (Command, cs, config, o) {
|
|
1725
|
+
return [
|
|
1726
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1727
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1728
|
+
];
|
|
1729
|
+
})
|
|
1730
|
+
.s("AWSGrafanaControlPlane", "UpdateWorkspaceAuthentication", {})
|
|
1731
|
+
.n("GrafanaClient", "UpdateWorkspaceAuthenticationCommand")
|
|
1732
|
+
.f(UpdateWorkspaceAuthenticationRequestFilterSensitiveLog, UpdateWorkspaceAuthenticationResponseFilterSensitiveLog)
|
|
1733
|
+
.ser(se_UpdateWorkspaceAuthenticationCommand)
|
|
1734
|
+
.de(de_UpdateWorkspaceAuthenticationCommand)
|
|
1735
|
+
.build() {
|
|
1736
|
+
}
|
|
1737
|
+
|
|
1738
|
+
class UpdateWorkspaceCommand extends smithyClient.Command
|
|
1739
|
+
.classBuilder()
|
|
1740
|
+
.ep(commonParams)
|
|
1741
|
+
.m(function (Command, cs, config, o) {
|
|
1742
|
+
return [
|
|
1743
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1744
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1745
|
+
];
|
|
1746
|
+
})
|
|
1747
|
+
.s("AWSGrafanaControlPlane", "UpdateWorkspace", {})
|
|
1748
|
+
.n("GrafanaClient", "UpdateWorkspaceCommand")
|
|
1749
|
+
.f(UpdateWorkspaceRequestFilterSensitiveLog, UpdateWorkspaceResponseFilterSensitiveLog)
|
|
1750
|
+
.ser(se_UpdateWorkspaceCommand)
|
|
1751
|
+
.de(de_UpdateWorkspaceCommand)
|
|
1752
|
+
.build() {
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
class UpdateWorkspaceConfigurationCommand extends smithyClient.Command
|
|
1756
|
+
.classBuilder()
|
|
1757
|
+
.ep(commonParams)
|
|
1758
|
+
.m(function (Command, cs, config, o) {
|
|
1759
|
+
return [
|
|
1760
|
+
middlewareSerde.getSerdePlugin(config, this.serialize, this.deserialize),
|
|
1761
|
+
middlewareEndpoint.getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
|
|
1762
|
+
];
|
|
1763
|
+
})
|
|
1764
|
+
.s("AWSGrafanaControlPlane", "UpdateWorkspaceConfiguration", {})
|
|
1765
|
+
.n("GrafanaClient", "UpdateWorkspaceConfigurationCommand")
|
|
1766
|
+
.f(void 0, void 0)
|
|
1767
|
+
.ser(se_UpdateWorkspaceConfigurationCommand)
|
|
1768
|
+
.de(de_UpdateWorkspaceConfigurationCommand)
|
|
1769
|
+
.build() {
|
|
1770
|
+
}
|
|
1771
|
+
|
|
1772
|
+
const commands = {
|
|
1773
|
+
AssociateLicenseCommand,
|
|
1774
|
+
CreateWorkspaceCommand,
|
|
1775
|
+
CreateWorkspaceApiKeyCommand,
|
|
1776
|
+
CreateWorkspaceServiceAccountCommand,
|
|
1777
|
+
CreateWorkspaceServiceAccountTokenCommand,
|
|
1778
|
+
DeleteWorkspaceCommand,
|
|
1779
|
+
DeleteWorkspaceApiKeyCommand,
|
|
1780
|
+
DeleteWorkspaceServiceAccountCommand,
|
|
1781
|
+
DeleteWorkspaceServiceAccountTokenCommand,
|
|
1782
|
+
DescribeWorkspaceCommand,
|
|
1783
|
+
DescribeWorkspaceAuthenticationCommand,
|
|
1784
|
+
DescribeWorkspaceConfigurationCommand,
|
|
1785
|
+
DisassociateLicenseCommand,
|
|
1786
|
+
ListPermissionsCommand,
|
|
1787
|
+
ListTagsForResourceCommand,
|
|
1788
|
+
ListVersionsCommand,
|
|
1789
|
+
ListWorkspacesCommand,
|
|
1790
|
+
ListWorkspaceServiceAccountsCommand,
|
|
1791
|
+
ListWorkspaceServiceAccountTokensCommand,
|
|
1792
|
+
TagResourceCommand,
|
|
1793
|
+
UntagResourceCommand,
|
|
1794
|
+
UpdatePermissionsCommand,
|
|
1795
|
+
UpdateWorkspaceCommand,
|
|
1796
|
+
UpdateWorkspaceAuthenticationCommand,
|
|
1797
|
+
UpdateWorkspaceConfigurationCommand,
|
|
1798
|
+
};
|
|
1799
|
+
class Grafana extends GrafanaClient {
|
|
1800
|
+
}
|
|
1801
|
+
smithyClient.createAggregatedClient(commands, Grafana);
|
|
2102
1802
|
|
|
2103
|
-
|
|
2104
|
-
var commands = {
|
|
2105
|
-
AssociateLicenseCommand,
|
|
2106
|
-
CreateWorkspaceCommand,
|
|
2107
|
-
CreateWorkspaceApiKeyCommand,
|
|
2108
|
-
CreateWorkspaceServiceAccountCommand,
|
|
2109
|
-
CreateWorkspaceServiceAccountTokenCommand,
|
|
2110
|
-
DeleteWorkspaceCommand,
|
|
2111
|
-
DeleteWorkspaceApiKeyCommand,
|
|
2112
|
-
DeleteWorkspaceServiceAccountCommand,
|
|
2113
|
-
DeleteWorkspaceServiceAccountTokenCommand,
|
|
2114
|
-
DescribeWorkspaceCommand,
|
|
2115
|
-
DescribeWorkspaceAuthenticationCommand,
|
|
2116
|
-
DescribeWorkspaceConfigurationCommand,
|
|
2117
|
-
DisassociateLicenseCommand,
|
|
2118
|
-
ListPermissionsCommand,
|
|
2119
|
-
ListTagsForResourceCommand,
|
|
2120
|
-
ListVersionsCommand,
|
|
2121
|
-
ListWorkspacesCommand,
|
|
2122
|
-
ListWorkspaceServiceAccountsCommand,
|
|
2123
|
-
ListWorkspaceServiceAccountTokensCommand,
|
|
2124
|
-
TagResourceCommand,
|
|
2125
|
-
UntagResourceCommand,
|
|
2126
|
-
UpdatePermissionsCommand,
|
|
2127
|
-
UpdateWorkspaceCommand,
|
|
2128
|
-
UpdateWorkspaceAuthenticationCommand,
|
|
2129
|
-
UpdateWorkspaceConfigurationCommand
|
|
2130
|
-
};
|
|
2131
|
-
var Grafana = class extends GrafanaClient {
|
|
2132
|
-
static {
|
|
2133
|
-
__name(this, "Grafana");
|
|
2134
|
-
}
|
|
2135
|
-
};
|
|
2136
|
-
(0, import_smithy_client.createAggregatedClient)(commands, Grafana);
|
|
2137
|
-
|
|
2138
|
-
// src/pagination/ListPermissionsPaginator.ts
|
|
2139
|
-
|
|
2140
|
-
var paginateListPermissions = (0, import_core.createPaginator)(GrafanaClient, ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2141
|
-
|
|
2142
|
-
// src/pagination/ListVersionsPaginator.ts
|
|
2143
|
-
|
|
2144
|
-
var paginateListVersions = (0, import_core.createPaginator)(GrafanaClient, ListVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2145
|
-
|
|
2146
|
-
// src/pagination/ListWorkspaceServiceAccountTokensPaginator.ts
|
|
2147
|
-
|
|
2148
|
-
var paginateListWorkspaceServiceAccountTokens = (0, import_core.createPaginator)(GrafanaClient, ListWorkspaceServiceAccountTokensCommand, "nextToken", "nextToken", "maxResults");
|
|
1803
|
+
const paginateListPermissions = core.createPaginator(GrafanaClient, ListPermissionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2149
1804
|
|
|
2150
|
-
|
|
1805
|
+
const paginateListVersions = core.createPaginator(GrafanaClient, ListVersionsCommand, "nextToken", "nextToken", "maxResults");
|
|
2151
1806
|
|
|
2152
|
-
|
|
1807
|
+
const paginateListWorkspaceServiceAccountTokens = core.createPaginator(GrafanaClient, ListWorkspaceServiceAccountTokensCommand, "nextToken", "nextToken", "maxResults");
|
|
2153
1808
|
|
|
2154
|
-
|
|
1809
|
+
const paginateListWorkspaceServiceAccounts = core.createPaginator(GrafanaClient, ListWorkspaceServiceAccountsCommand, "nextToken", "nextToken", "maxResults");
|
|
2155
1810
|
|
|
2156
|
-
|
|
2157
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
1811
|
+
const paginateListWorkspaces = core.createPaginator(GrafanaClient, ListWorkspacesCommand, "nextToken", "nextToken", "maxResults");
|
|
2158
1812
|
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
|
|
2162
|
-
GrafanaClient,
|
|
2163
|
-
Grafana,
|
|
2164
|
-
$Command,
|
|
2165
|
-
AssociateLicenseCommand,
|
|
2166
|
-
CreateWorkspaceApiKeyCommand,
|
|
2167
|
-
CreateWorkspaceCommand,
|
|
2168
|
-
CreateWorkspaceServiceAccountCommand,
|
|
2169
|
-
CreateWorkspaceServiceAccountTokenCommand,
|
|
2170
|
-
DeleteWorkspaceApiKeyCommand,
|
|
2171
|
-
DeleteWorkspaceCommand,
|
|
2172
|
-
DeleteWorkspaceServiceAccountCommand,
|
|
2173
|
-
DeleteWorkspaceServiceAccountTokenCommand,
|
|
2174
|
-
DescribeWorkspaceAuthenticationCommand,
|
|
2175
|
-
DescribeWorkspaceCommand,
|
|
2176
|
-
DescribeWorkspaceConfigurationCommand,
|
|
2177
|
-
DisassociateLicenseCommand,
|
|
2178
|
-
ListPermissionsCommand,
|
|
2179
|
-
ListTagsForResourceCommand,
|
|
2180
|
-
ListVersionsCommand,
|
|
2181
|
-
ListWorkspaceServiceAccountTokensCommand,
|
|
2182
|
-
ListWorkspaceServiceAccountsCommand,
|
|
2183
|
-
ListWorkspacesCommand,
|
|
2184
|
-
TagResourceCommand,
|
|
2185
|
-
UntagResourceCommand,
|
|
2186
|
-
UpdatePermissionsCommand,
|
|
2187
|
-
UpdateWorkspaceAuthenticationCommand,
|
|
2188
|
-
UpdateWorkspaceCommand,
|
|
2189
|
-
UpdateWorkspaceConfigurationCommand,
|
|
2190
|
-
paginateListPermissions,
|
|
2191
|
-
paginateListVersions,
|
|
2192
|
-
paginateListWorkspaceServiceAccountTokens,
|
|
2193
|
-
paginateListWorkspaceServiceAccounts,
|
|
2194
|
-
paginateListWorkspaces,
|
|
2195
|
-
AccessDeniedException,
|
|
2196
|
-
AccountAccessType,
|
|
2197
|
-
ConflictException,
|
|
2198
|
-
InternalServerException,
|
|
2199
|
-
ResourceNotFoundException,
|
|
2200
|
-
ServiceQuotaExceededException,
|
|
2201
|
-
ThrottlingException,
|
|
2202
|
-
ValidationExceptionReason,
|
|
2203
|
-
ValidationException,
|
|
2204
|
-
LicenseType,
|
|
2205
|
-
AuthenticationProviderTypes,
|
|
2206
|
-
SamlConfigurationStatus,
|
|
2207
|
-
DataSourceType,
|
|
2208
|
-
NotificationDestinationType,
|
|
2209
|
-
PermissionType,
|
|
2210
|
-
WorkspaceStatus,
|
|
2211
|
-
IdpMetadata,
|
|
2212
|
-
UserType,
|
|
2213
|
-
Role,
|
|
2214
|
-
UpdateAction,
|
|
2215
|
-
CreateWorkspaceApiKeyResponseFilterSensitiveLog,
|
|
2216
|
-
WorkspaceDescriptionFilterSensitiveLog,
|
|
2217
|
-
AssociateLicenseResponseFilterSensitiveLog,
|
|
2218
|
-
RoleValuesFilterSensitiveLog,
|
|
2219
|
-
SamlConfigurationFilterSensitiveLog,
|
|
2220
|
-
SamlAuthenticationFilterSensitiveLog,
|
|
2221
|
-
AuthenticationDescriptionFilterSensitiveLog,
|
|
2222
|
-
DescribeWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
2223
|
-
UpdateWorkspaceAuthenticationRequestFilterSensitiveLog,
|
|
2224
|
-
UpdateWorkspaceAuthenticationResponseFilterSensitiveLog,
|
|
2225
|
-
DisassociateLicenseResponseFilterSensitiveLog,
|
|
2226
|
-
ServiceAccountTokenSummaryWithKeyFilterSensitiveLog,
|
|
2227
|
-
CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog,
|
|
2228
|
-
CreateWorkspaceRequestFilterSensitiveLog,
|
|
2229
|
-
CreateWorkspaceResponseFilterSensitiveLog,
|
|
2230
|
-
DeleteWorkspaceResponseFilterSensitiveLog,
|
|
2231
|
-
DescribeWorkspaceResponseFilterSensitiveLog,
|
|
2232
|
-
WorkspaceSummaryFilterSensitiveLog,
|
|
2233
|
-
ListWorkspacesResponseFilterSensitiveLog,
|
|
2234
|
-
UpdateWorkspaceRequestFilterSensitiveLog,
|
|
2235
|
-
UpdateWorkspaceResponseFilterSensitiveLog
|
|
1813
|
+
Object.defineProperty(exports, "$Command", {
|
|
1814
|
+
enumerable: true,
|
|
1815
|
+
get: function () { return smithyClient.Command; }
|
|
2236
1816
|
});
|
|
2237
|
-
|
|
1817
|
+
Object.defineProperty(exports, "__Client", {
|
|
1818
|
+
enumerable: true,
|
|
1819
|
+
get: function () { return smithyClient.Client; }
|
|
1820
|
+
});
|
|
1821
|
+
exports.AccessDeniedException = AccessDeniedException;
|
|
1822
|
+
exports.AccountAccessType = AccountAccessType;
|
|
1823
|
+
exports.AssociateLicenseCommand = AssociateLicenseCommand;
|
|
1824
|
+
exports.AssociateLicenseResponseFilterSensitiveLog = AssociateLicenseResponseFilterSensitiveLog;
|
|
1825
|
+
exports.AuthenticationDescriptionFilterSensitiveLog = AuthenticationDescriptionFilterSensitiveLog;
|
|
1826
|
+
exports.AuthenticationProviderTypes = AuthenticationProviderTypes;
|
|
1827
|
+
exports.ConflictException = ConflictException;
|
|
1828
|
+
exports.CreateWorkspaceApiKeyCommand = CreateWorkspaceApiKeyCommand;
|
|
1829
|
+
exports.CreateWorkspaceApiKeyResponseFilterSensitiveLog = CreateWorkspaceApiKeyResponseFilterSensitiveLog;
|
|
1830
|
+
exports.CreateWorkspaceCommand = CreateWorkspaceCommand;
|
|
1831
|
+
exports.CreateWorkspaceRequestFilterSensitiveLog = CreateWorkspaceRequestFilterSensitiveLog;
|
|
1832
|
+
exports.CreateWorkspaceResponseFilterSensitiveLog = CreateWorkspaceResponseFilterSensitiveLog;
|
|
1833
|
+
exports.CreateWorkspaceServiceAccountCommand = CreateWorkspaceServiceAccountCommand;
|
|
1834
|
+
exports.CreateWorkspaceServiceAccountTokenCommand = CreateWorkspaceServiceAccountTokenCommand;
|
|
1835
|
+
exports.CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog = CreateWorkspaceServiceAccountTokenResponseFilterSensitiveLog;
|
|
1836
|
+
exports.DataSourceType = DataSourceType;
|
|
1837
|
+
exports.DeleteWorkspaceApiKeyCommand = DeleteWorkspaceApiKeyCommand;
|
|
1838
|
+
exports.DeleteWorkspaceCommand = DeleteWorkspaceCommand;
|
|
1839
|
+
exports.DeleteWorkspaceResponseFilterSensitiveLog = DeleteWorkspaceResponseFilterSensitiveLog;
|
|
1840
|
+
exports.DeleteWorkspaceServiceAccountCommand = DeleteWorkspaceServiceAccountCommand;
|
|
1841
|
+
exports.DeleteWorkspaceServiceAccountTokenCommand = DeleteWorkspaceServiceAccountTokenCommand;
|
|
1842
|
+
exports.DescribeWorkspaceAuthenticationCommand = DescribeWorkspaceAuthenticationCommand;
|
|
1843
|
+
exports.DescribeWorkspaceAuthenticationResponseFilterSensitiveLog = DescribeWorkspaceAuthenticationResponseFilterSensitiveLog;
|
|
1844
|
+
exports.DescribeWorkspaceCommand = DescribeWorkspaceCommand;
|
|
1845
|
+
exports.DescribeWorkspaceConfigurationCommand = DescribeWorkspaceConfigurationCommand;
|
|
1846
|
+
exports.DescribeWorkspaceResponseFilterSensitiveLog = DescribeWorkspaceResponseFilterSensitiveLog;
|
|
1847
|
+
exports.DisassociateLicenseCommand = DisassociateLicenseCommand;
|
|
1848
|
+
exports.DisassociateLicenseResponseFilterSensitiveLog = DisassociateLicenseResponseFilterSensitiveLog;
|
|
1849
|
+
exports.Grafana = Grafana;
|
|
1850
|
+
exports.GrafanaClient = GrafanaClient;
|
|
1851
|
+
exports.GrafanaServiceException = GrafanaServiceException;
|
|
1852
|
+
exports.InternalServerException = InternalServerException;
|
|
1853
|
+
exports.LicenseType = LicenseType;
|
|
1854
|
+
exports.ListPermissionsCommand = ListPermissionsCommand;
|
|
1855
|
+
exports.ListTagsForResourceCommand = ListTagsForResourceCommand;
|
|
1856
|
+
exports.ListVersionsCommand = ListVersionsCommand;
|
|
1857
|
+
exports.ListWorkspaceServiceAccountTokensCommand = ListWorkspaceServiceAccountTokensCommand;
|
|
1858
|
+
exports.ListWorkspaceServiceAccountsCommand = ListWorkspaceServiceAccountsCommand;
|
|
1859
|
+
exports.ListWorkspacesCommand = ListWorkspacesCommand;
|
|
1860
|
+
exports.ListWorkspacesResponseFilterSensitiveLog = ListWorkspacesResponseFilterSensitiveLog;
|
|
1861
|
+
exports.NotificationDestinationType = NotificationDestinationType;
|
|
1862
|
+
exports.PermissionType = PermissionType;
|
|
1863
|
+
exports.ResourceNotFoundException = ResourceNotFoundException;
|
|
1864
|
+
exports.Role = Role;
|
|
1865
|
+
exports.RoleValuesFilterSensitiveLog = RoleValuesFilterSensitiveLog;
|
|
1866
|
+
exports.SamlAuthenticationFilterSensitiveLog = SamlAuthenticationFilterSensitiveLog;
|
|
1867
|
+
exports.SamlConfigurationFilterSensitiveLog = SamlConfigurationFilterSensitiveLog;
|
|
1868
|
+
exports.SamlConfigurationStatus = SamlConfigurationStatus;
|
|
1869
|
+
exports.ServiceAccountTokenSummaryWithKeyFilterSensitiveLog = ServiceAccountTokenSummaryWithKeyFilterSensitiveLog;
|
|
1870
|
+
exports.ServiceQuotaExceededException = ServiceQuotaExceededException;
|
|
1871
|
+
exports.TagResourceCommand = TagResourceCommand;
|
|
1872
|
+
exports.ThrottlingException = ThrottlingException;
|
|
1873
|
+
exports.UntagResourceCommand = UntagResourceCommand;
|
|
1874
|
+
exports.UpdateAction = UpdateAction;
|
|
1875
|
+
exports.UpdatePermissionsCommand = UpdatePermissionsCommand;
|
|
1876
|
+
exports.UpdateWorkspaceAuthenticationCommand = UpdateWorkspaceAuthenticationCommand;
|
|
1877
|
+
exports.UpdateWorkspaceAuthenticationRequestFilterSensitiveLog = UpdateWorkspaceAuthenticationRequestFilterSensitiveLog;
|
|
1878
|
+
exports.UpdateWorkspaceAuthenticationResponseFilterSensitiveLog = UpdateWorkspaceAuthenticationResponseFilterSensitiveLog;
|
|
1879
|
+
exports.UpdateWorkspaceCommand = UpdateWorkspaceCommand;
|
|
1880
|
+
exports.UpdateWorkspaceConfigurationCommand = UpdateWorkspaceConfigurationCommand;
|
|
1881
|
+
exports.UpdateWorkspaceRequestFilterSensitiveLog = UpdateWorkspaceRequestFilterSensitiveLog;
|
|
1882
|
+
exports.UpdateWorkspaceResponseFilterSensitiveLog = UpdateWorkspaceResponseFilterSensitiveLog;
|
|
1883
|
+
exports.UserType = UserType;
|
|
1884
|
+
exports.ValidationException = ValidationException;
|
|
1885
|
+
exports.ValidationExceptionReason = ValidationExceptionReason;
|
|
1886
|
+
exports.WorkspaceDescriptionFilterSensitiveLog = WorkspaceDescriptionFilterSensitiveLog;
|
|
1887
|
+
exports.WorkspaceStatus = WorkspaceStatus;
|
|
1888
|
+
exports.WorkspaceSummaryFilterSensitiveLog = WorkspaceSummaryFilterSensitiveLog;
|
|
1889
|
+
exports.paginateListPermissions = paginateListPermissions;
|
|
1890
|
+
exports.paginateListVersions = paginateListVersions;
|
|
1891
|
+
exports.paginateListWorkspaceServiceAccountTokens = paginateListWorkspaceServiceAccountTokens;
|
|
1892
|
+
exports.paginateListWorkspaceServiceAccounts = paginateListWorkspaceServiceAccounts;
|
|
1893
|
+
exports.paginateListWorkspaces = paginateListWorkspaces;
|