@aws-sdk/client-appsync 3.183.0 → 3.185.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (63) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/dist-cjs/protocols/Aws_restJson1.js +2 -2
  3. package/dist-es/AppSync.js +209 -202
  4. package/dist-es/AppSyncClient.js +28 -22
  5. package/dist-es/commands/AssociateApiCommand.js +28 -21
  6. package/dist-es/commands/CreateApiCacheCommand.js +28 -21
  7. package/dist-es/commands/CreateApiKeyCommand.js +28 -21
  8. package/dist-es/commands/CreateDataSourceCommand.js +28 -21
  9. package/dist-es/commands/CreateDomainNameCommand.js +28 -21
  10. package/dist-es/commands/CreateFunctionCommand.js +28 -21
  11. package/dist-es/commands/CreateGraphqlApiCommand.js +28 -21
  12. package/dist-es/commands/CreateResolverCommand.js +28 -21
  13. package/dist-es/commands/CreateTypeCommand.js +28 -21
  14. package/dist-es/commands/DeleteApiCacheCommand.js +28 -21
  15. package/dist-es/commands/DeleteApiKeyCommand.js +28 -21
  16. package/dist-es/commands/DeleteDataSourceCommand.js +28 -21
  17. package/dist-es/commands/DeleteDomainNameCommand.js +28 -21
  18. package/dist-es/commands/DeleteFunctionCommand.js +28 -21
  19. package/dist-es/commands/DeleteGraphqlApiCommand.js +28 -21
  20. package/dist-es/commands/DeleteResolverCommand.js +28 -21
  21. package/dist-es/commands/DeleteTypeCommand.js +28 -21
  22. package/dist-es/commands/DisassociateApiCommand.js +28 -21
  23. package/dist-es/commands/EvaluateMappingTemplateCommand.js +28 -21
  24. package/dist-es/commands/FlushApiCacheCommand.js +28 -21
  25. package/dist-es/commands/GetApiAssociationCommand.js +28 -21
  26. package/dist-es/commands/GetApiCacheCommand.js +28 -21
  27. package/dist-es/commands/GetDataSourceCommand.js +28 -21
  28. package/dist-es/commands/GetDomainNameCommand.js +28 -21
  29. package/dist-es/commands/GetFunctionCommand.js +28 -21
  30. package/dist-es/commands/GetGraphqlApiCommand.js +28 -21
  31. package/dist-es/commands/GetIntrospectionSchemaCommand.js +28 -21
  32. package/dist-es/commands/GetResolverCommand.js +28 -21
  33. package/dist-es/commands/GetSchemaCreationStatusCommand.js +28 -21
  34. package/dist-es/commands/GetTypeCommand.js +28 -21
  35. package/dist-es/commands/ListApiKeysCommand.js +28 -21
  36. package/dist-es/commands/ListDataSourcesCommand.js +28 -21
  37. package/dist-es/commands/ListDomainNamesCommand.js +28 -21
  38. package/dist-es/commands/ListFunctionsCommand.js +28 -21
  39. package/dist-es/commands/ListGraphqlApisCommand.js +28 -21
  40. package/dist-es/commands/ListResolversByFunctionCommand.js +28 -21
  41. package/dist-es/commands/ListResolversCommand.js +28 -21
  42. package/dist-es/commands/ListTagsForResourceCommand.js +28 -21
  43. package/dist-es/commands/ListTypesCommand.js +28 -21
  44. package/dist-es/commands/StartSchemaCreationCommand.js +28 -21
  45. package/dist-es/commands/TagResourceCommand.js +28 -21
  46. package/dist-es/commands/UntagResourceCommand.js +28 -21
  47. package/dist-es/commands/UpdateApiCacheCommand.js +28 -21
  48. package/dist-es/commands/UpdateApiKeyCommand.js +28 -21
  49. package/dist-es/commands/UpdateDataSourceCommand.js +28 -21
  50. package/dist-es/commands/UpdateDomainNameCommand.js +28 -21
  51. package/dist-es/commands/UpdateFunctionCommand.js +28 -21
  52. package/dist-es/commands/UpdateGraphqlApiCommand.js +28 -21
  53. package/dist-es/commands/UpdateResolverCommand.js +28 -21
  54. package/dist-es/commands/UpdateTypeCommand.js +28 -21
  55. package/dist-es/endpoints.js +8 -8
  56. package/dist-es/models/AppSyncServiceException.js +10 -5
  57. package/dist-es/models/models_0.js +252 -511
  58. package/dist-es/protocols/Aws_restJson1.js +5049 -3617
  59. package/dist-es/runtimeConfig.browser.js +12 -26
  60. package/dist-es/runtimeConfig.js +12 -30
  61. package/dist-es/runtimeConfig.native.js +5 -8
  62. package/dist-es/runtimeConfig.shared.js +11 -8
  63. package/package.json +5 -5
@@ -1,3 +1,4 @@
1
+ import { __extends } from "tslib";
1
2
  import { resolveEndpointsConfig, resolveRegionConfig, } from "@aws-sdk/config-resolver";
2
3
  import { getContentLengthPlugin } from "@aws-sdk/middleware-content-length";
3
4
  import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header";
@@ -8,26 +9,31 @@ import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-sig
8
9
  import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent";
9
10
  import { Client as __Client, } from "@aws-sdk/smithy-client";
10
11
  import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig";
11
- export class AppSyncClient extends __Client {
12
- constructor(configuration) {
13
- const _config_0 = __getRuntimeConfig(configuration);
14
- const _config_1 = resolveRegionConfig(_config_0);
15
- const _config_2 = resolveEndpointsConfig(_config_1);
16
- const _config_3 = resolveRetryConfig(_config_2);
17
- const _config_4 = resolveHostHeaderConfig(_config_3);
18
- const _config_5 = resolveAwsAuthConfig(_config_4);
19
- const _config_6 = resolveUserAgentConfig(_config_5);
20
- super(_config_6);
21
- this.config = _config_6;
22
- this.middlewareStack.use(getRetryPlugin(this.config));
23
- this.middlewareStack.use(getContentLengthPlugin(this.config));
24
- this.middlewareStack.use(getHostHeaderPlugin(this.config));
25
- this.middlewareStack.use(getLoggerPlugin(this.config));
26
- this.middlewareStack.use(getRecursionDetectionPlugin(this.config));
27
- this.middlewareStack.use(getAwsAuthPlugin(this.config));
28
- this.middlewareStack.use(getUserAgentPlugin(this.config));
12
+ var AppSyncClient = (function (_super) {
13
+ __extends(AppSyncClient, _super);
14
+ function AppSyncClient(configuration) {
15
+ var _this = this;
16
+ var _config_0 = __getRuntimeConfig(configuration);
17
+ var _config_1 = resolveRegionConfig(_config_0);
18
+ var _config_2 = resolveEndpointsConfig(_config_1);
19
+ var _config_3 = resolveRetryConfig(_config_2);
20
+ var _config_4 = resolveHostHeaderConfig(_config_3);
21
+ var _config_5 = resolveAwsAuthConfig(_config_4);
22
+ var _config_6 = resolveUserAgentConfig(_config_5);
23
+ _this = _super.call(this, _config_6) || this;
24
+ _this.config = _config_6;
25
+ _this.middlewareStack.use(getRetryPlugin(_this.config));
26
+ _this.middlewareStack.use(getContentLengthPlugin(_this.config));
27
+ _this.middlewareStack.use(getHostHeaderPlugin(_this.config));
28
+ _this.middlewareStack.use(getLoggerPlugin(_this.config));
29
+ _this.middlewareStack.use(getRecursionDetectionPlugin(_this.config));
30
+ _this.middlewareStack.use(getAwsAuthPlugin(_this.config));
31
+ _this.middlewareStack.use(getUserAgentPlugin(_this.config));
32
+ return _this;
29
33
  }
30
- destroy() {
31
- super.destroy();
32
- }
33
- }
34
+ AppSyncClient.prototype.destroy = function () {
35
+ _super.prototype.destroy.call(this);
36
+ };
37
+ return AppSyncClient;
38
+ }(__Client));
39
+ export { AppSyncClient };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { AssociateApiRequestFilterSensitiveLog, AssociateApiResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1AssociateApiCommand, serializeAws_restJson1AssociateApiCommand, } from "../protocols/Aws_restJson1";
5
- export class AssociateApiCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var AssociateApiCommand = (function (_super) {
7
+ __extends(AssociateApiCommand, _super);
8
+ function AssociateApiCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ AssociateApiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "AssociateApiCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "AssociateApiCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: AssociateApiRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: AssociateApiResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ AssociateApiCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1AssociateApiCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ AssociateApiCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1AssociateApiCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return AssociateApiCommand;
38
+ }($Command));
39
+ export { AssociateApiCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateApiCacheRequestFilterSensitiveLog, CreateApiCacheResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateApiCacheCommand, serializeAws_restJson1CreateApiCacheCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateApiCacheCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateApiCacheCommand = (function (_super) {
7
+ __extends(CreateApiCacheCommand, _super);
8
+ function CreateApiCacheCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateApiCacheCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateApiCacheCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateApiCacheCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateApiCacheRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateApiCacheResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateApiCacheCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateApiCacheCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateApiCacheCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateApiCacheCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateApiCacheCommand;
38
+ }($Command));
39
+ export { CreateApiCacheCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateApiKeyRequestFilterSensitiveLog, CreateApiKeyResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateApiKeyCommand, serializeAws_restJson1CreateApiKeyCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateApiKeyCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateApiKeyCommand = (function (_super) {
7
+ __extends(CreateApiKeyCommand, _super);
8
+ function CreateApiKeyCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateApiKeyCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateApiKeyCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateApiKeyCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateApiKeyRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateApiKeyResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateApiKeyCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateApiKeyCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateApiKeyCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateApiKeyCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateApiKeyCommand;
38
+ }($Command));
39
+ export { CreateApiKeyCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateDataSourceRequestFilterSensitiveLog, CreateDataSourceResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateDataSourceCommand, serializeAws_restJson1CreateDataSourceCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateDataSourceCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateDataSourceCommand = (function (_super) {
7
+ __extends(CreateDataSourceCommand, _super);
8
+ function CreateDataSourceCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateDataSourceCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateDataSourceCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateDataSourceCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateDataSourceRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateDataSourceResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDataSourceCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateDataSourceCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateDataSourceCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateDataSourceCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateDataSourceCommand;
38
+ }($Command));
39
+ export { CreateDataSourceCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateDomainNameRequestFilterSensitiveLog, CreateDomainNameResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateDomainNameCommand, serializeAws_restJson1CreateDomainNameCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateDomainNameCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateDomainNameCommand = (function (_super) {
7
+ __extends(CreateDomainNameCommand, _super);
8
+ function CreateDomainNameCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateDomainNameCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateDomainNameCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateDomainNameCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateDomainNameRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateDomainNameResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateDomainNameCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateDomainNameCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateDomainNameCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateDomainNameCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateDomainNameCommand;
38
+ }($Command));
39
+ export { CreateDomainNameCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateFunctionRequestFilterSensitiveLog, CreateFunctionResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateFunctionCommand, serializeAws_restJson1CreateFunctionCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateFunctionCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateFunctionCommand = (function (_super) {
7
+ __extends(CreateFunctionCommand, _super);
8
+ function CreateFunctionCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateFunctionCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateFunctionCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateFunctionCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateFunctionRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateFunctionResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateFunctionCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateFunctionCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateFunctionCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateFunctionCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateFunctionCommand;
38
+ }($Command));
39
+ export { CreateFunctionCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateGraphqlApiRequestFilterSensitiveLog, CreateGraphqlApiResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateGraphqlApiCommand, serializeAws_restJson1CreateGraphqlApiCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateGraphqlApiCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateGraphqlApiCommand = (function (_super) {
7
+ __extends(CreateGraphqlApiCommand, _super);
8
+ function CreateGraphqlApiCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateGraphqlApiCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateGraphqlApiCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateGraphqlApiCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateGraphqlApiRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateGraphqlApiResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateGraphqlApiCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateGraphqlApiCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateGraphqlApiCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateGraphqlApiCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateGraphqlApiCommand;
38
+ }($Command));
39
+ export { CreateGraphqlApiCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateResolverRequestFilterSensitiveLog, CreateResolverResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateResolverCommand, serializeAws_restJson1CreateResolverCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateResolverCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateResolverCommand = (function (_super) {
7
+ __extends(CreateResolverCommand, _super);
8
+ function CreateResolverCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateResolverCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateResolverCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateResolverCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateResolverRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateResolverResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateResolverCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateResolverCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateResolverCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateResolverCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateResolverCommand;
38
+ }($Command));
39
+ export { CreateResolverCommand };
@@ -1,32 +1,39 @@
1
+ import { __extends } from "tslib";
1
2
  import { getSerdePlugin } from "@aws-sdk/middleware-serde";
2
3
  import { Command as $Command } from "@aws-sdk/smithy-client";
3
4
  import { CreateTypeRequestFilterSensitiveLog, CreateTypeResponseFilterSensitiveLog, } from "../models/models_0";
4
5
  import { deserializeAws_restJson1CreateTypeCommand, serializeAws_restJson1CreateTypeCommand, } from "../protocols/Aws_restJson1";
5
- export class CreateTypeCommand extends $Command {
6
- constructor(input) {
7
- super();
8
- this.input = input;
6
+ var CreateTypeCommand = (function (_super) {
7
+ __extends(CreateTypeCommand, _super);
8
+ function CreateTypeCommand(input) {
9
+ var _this = _super.call(this) || this;
10
+ _this.input = input;
11
+ return _this;
9
12
  }
10
- resolveMiddleware(clientStack, configuration, options) {
13
+ CreateTypeCommand.prototype.resolveMiddleware = function (clientStack, configuration, options) {
11
14
  this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
12
- const stack = clientStack.concat(this.middlewareStack);
13
- const { logger } = configuration;
14
- const clientName = "AppSyncClient";
15
- const commandName = "CreateTypeCommand";
16
- const handlerExecutionContext = {
17
- logger,
18
- clientName,
19
- commandName,
15
+ var stack = clientStack.concat(this.middlewareStack);
16
+ var logger = configuration.logger;
17
+ var clientName = "AppSyncClient";
18
+ var commandName = "CreateTypeCommand";
19
+ var handlerExecutionContext = {
20
+ logger: logger,
21
+ clientName: clientName,
22
+ commandName: commandName,
20
23
  inputFilterSensitiveLog: CreateTypeRequestFilterSensitiveLog,
21
24
  outputFilterSensitiveLog: CreateTypeResponseFilterSensitiveLog,
22
25
  };
23
- const { requestHandler } = configuration;
24
- return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
25
- }
26
- serialize(input, context) {
26
+ var requestHandler = configuration.requestHandler;
27
+ return stack.resolve(function (request) {
28
+ return requestHandler.handle(request.request, options || {});
29
+ }, handlerExecutionContext);
30
+ };
31
+ CreateTypeCommand.prototype.serialize = function (input, context) {
27
32
  return serializeAws_restJson1CreateTypeCommand(input, context);
28
- }
29
- deserialize(output, context) {
33
+ };
34
+ CreateTypeCommand.prototype.deserialize = function (output, context) {
30
35
  return deserializeAws_restJson1CreateTypeCommand(output, context);
31
- }
32
- }
36
+ };
37
+ return CreateTypeCommand;
38
+ }($Command));
39
+ export { CreateTypeCommand };