@aws-sdk/client-codestar-connections 3.450.0 → 3.454.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 (92) hide show
  1. package/README.md +120 -0
  2. package/dist-cjs/CodeStarConnections.js +30 -0
  3. package/dist-cjs/commands/CreateRepositoryLinkCommand.js +51 -0
  4. package/dist-cjs/commands/CreateSyncConfigurationCommand.js +51 -0
  5. package/dist-cjs/commands/DeleteRepositoryLinkCommand.js +51 -0
  6. package/dist-cjs/commands/DeleteSyncConfigurationCommand.js +51 -0
  7. package/dist-cjs/commands/GetRepositoryLinkCommand.js +51 -0
  8. package/dist-cjs/commands/GetRepositorySyncStatusCommand.js +51 -0
  9. package/dist-cjs/commands/GetResourceSyncStatusCommand.js +51 -0
  10. package/dist-cjs/commands/GetSyncBlockerSummaryCommand.js +51 -0
  11. package/dist-cjs/commands/GetSyncConfigurationCommand.js +51 -0
  12. package/dist-cjs/commands/ListRepositoryLinksCommand.js +51 -0
  13. package/dist-cjs/commands/ListRepositorySyncDefinitionsCommand.js +51 -0
  14. package/dist-cjs/commands/ListSyncConfigurationsCommand.js +51 -0
  15. package/dist-cjs/commands/UpdateRepositoryLinkCommand.js +51 -0
  16. package/dist-cjs/commands/UpdateSyncBlockerCommand.js +51 -0
  17. package/dist-cjs/commands/UpdateSyncConfigurationCommand.js +51 -0
  18. package/dist-cjs/commands/index.js +15 -0
  19. package/dist-cjs/models/models_0.js +192 -1
  20. package/dist-cjs/pagination/ListRepositoryLinksPaginator.js +29 -0
  21. package/dist-cjs/pagination/ListSyncConfigurationsPaginator.js +29 -0
  22. package/dist-cjs/pagination/index.js +2 -0
  23. package/dist-cjs/protocols/Aws_json1_0.js +1102 -65
  24. package/dist-es/CodeStarConnections.js +30 -0
  25. package/dist-es/commands/CreateRepositoryLinkCommand.js +47 -0
  26. package/dist-es/commands/CreateSyncConfigurationCommand.js +47 -0
  27. package/dist-es/commands/DeleteRepositoryLinkCommand.js +47 -0
  28. package/dist-es/commands/DeleteSyncConfigurationCommand.js +47 -0
  29. package/dist-es/commands/GetRepositoryLinkCommand.js +47 -0
  30. package/dist-es/commands/GetRepositorySyncStatusCommand.js +47 -0
  31. package/dist-es/commands/GetResourceSyncStatusCommand.js +47 -0
  32. package/dist-es/commands/GetSyncBlockerSummaryCommand.js +47 -0
  33. package/dist-es/commands/GetSyncConfigurationCommand.js +47 -0
  34. package/dist-es/commands/ListRepositoryLinksCommand.js +47 -0
  35. package/dist-es/commands/ListRepositorySyncDefinitionsCommand.js +47 -0
  36. package/dist-es/commands/ListSyncConfigurationsCommand.js +47 -0
  37. package/dist-es/commands/UpdateRepositoryLinkCommand.js +47 -0
  38. package/dist-es/commands/UpdateSyncBlockerCommand.js +47 -0
  39. package/dist-es/commands/UpdateSyncConfigurationCommand.js +47 -0
  40. package/dist-es/commands/index.js +15 -0
  41. package/dist-es/models/models_0.js +179 -0
  42. package/dist-es/pagination/ListRepositoryLinksPaginator.js +25 -0
  43. package/dist-es/pagination/ListSyncConfigurationsPaginator.js +25 -0
  44. package/dist-es/pagination/index.js +2 -0
  45. package/dist-es/protocols/Aws_json1_0.js +1061 -55
  46. package/dist-types/CodeStarConnections.d.ts +105 -0
  47. package/dist-types/CodeStarConnectionsClient.d.ts +17 -2
  48. package/dist-types/commands/CreateRepositoryLinkCommand.d.ts +111 -0
  49. package/dist-types/commands/CreateSyncConfigurationCommand.d.ts +111 -0
  50. package/dist-types/commands/DeleteRepositoryLinkCommand.d.ts +95 -0
  51. package/dist-types/commands/DeleteSyncConfigurationCommand.d.ts +90 -0
  52. package/dist-types/commands/GetRepositoryLinkCommand.d.ts +100 -0
  53. package/dist-types/commands/GetRepositorySyncStatusCommand.d.ts +102 -0
  54. package/dist-types/commands/GetResourceSyncStatusCommand.d.ts +155 -0
  55. package/dist-types/commands/GetSyncBlockerSummaryCommand.d.ts +109 -0
  56. package/dist-types/commands/GetSyncConfigurationCommand.d.ts +99 -0
  57. package/dist-types/commands/ListRepositoryLinksCommand.d.ts +103 -0
  58. package/dist-types/commands/ListRepositorySyncDefinitionsCommand.d.ts +97 -0
  59. package/dist-types/commands/ListSyncConfigurationsCommand.d.ts +104 -0
  60. package/dist-types/commands/UpdateRepositoryLinkCommand.d.ts +106 -0
  61. package/dist-types/commands/UpdateSyncBlockerCommand.d.ts +113 -0
  62. package/dist-types/commands/UpdateSyncConfigurationCommand.d.ts +109 -0
  63. package/dist-types/commands/index.d.ts +15 -0
  64. package/dist-types/models/models_0.d.ts +1107 -6
  65. package/dist-types/pagination/ListRepositoryLinksPaginator.d.ts +7 -0
  66. package/dist-types/pagination/ListSyncConfigurationsPaginator.d.ts +7 -0
  67. package/dist-types/pagination/index.d.ts +2 -0
  68. package/dist-types/protocols/Aws_json1_0.d.ts +135 -0
  69. package/dist-types/ts3.4/CodeStarConnections.d.ts +255 -0
  70. package/dist-types/ts3.4/CodeStarConnectionsClient.d.ts +92 -2
  71. package/dist-types/ts3.4/commands/CreateRepositoryLinkCommand.d.ts +42 -0
  72. package/dist-types/ts3.4/commands/CreateSyncConfigurationCommand.d.ts +42 -0
  73. package/dist-types/ts3.4/commands/DeleteRepositoryLinkCommand.d.ts +42 -0
  74. package/dist-types/ts3.4/commands/DeleteSyncConfigurationCommand.d.ts +42 -0
  75. package/dist-types/ts3.4/commands/GetRepositoryLinkCommand.d.ts +38 -0
  76. package/dist-types/ts3.4/commands/GetRepositorySyncStatusCommand.d.ts +42 -0
  77. package/dist-types/ts3.4/commands/GetResourceSyncStatusCommand.d.ts +42 -0
  78. package/dist-types/ts3.4/commands/GetSyncBlockerSummaryCommand.d.ts +42 -0
  79. package/dist-types/ts3.4/commands/GetSyncConfigurationCommand.d.ts +42 -0
  80. package/dist-types/ts3.4/commands/ListRepositoryLinksCommand.d.ts +39 -0
  81. package/dist-types/ts3.4/commands/ListRepositorySyncDefinitionsCommand.d.ts +42 -0
  82. package/dist-types/ts3.4/commands/ListSyncConfigurationsCommand.d.ts +42 -0
  83. package/dist-types/ts3.4/commands/UpdateRepositoryLinkCommand.d.ts +42 -0
  84. package/dist-types/ts3.4/commands/UpdateSyncBlockerCommand.d.ts +38 -0
  85. package/dist-types/ts3.4/commands/UpdateSyncConfigurationCommand.d.ts +42 -0
  86. package/dist-types/ts3.4/commands/index.d.ts +15 -0
  87. package/dist-types/ts3.4/models/models_0.d.ts +346 -0
  88. package/dist-types/ts3.4/pagination/ListRepositoryLinksPaginator.d.ts +11 -0
  89. package/dist-types/ts3.4/pagination/ListSyncConfigurationsPaginator.d.ts +11 -0
  90. package/dist-types/ts3.4/pagination/index.d.ts +2 -0
  91. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +180 -0
  92. package/package.json +35 -35
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetSyncConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class GetSyncConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSyncConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "GetSyncConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "GetSyncConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_GetSyncConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_GetSyncConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.GetSyncConfigurationCommand = GetSyncConfigurationCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRepositoryLinksCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class ListRepositoryLinksCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRepositoryLinksCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "ListRepositoryLinksCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "ListRepositoryLinks",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_ListRepositoryLinksCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_ListRepositoryLinksCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListRepositoryLinksCommand = ListRepositoryLinksCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRepositorySyncDefinitionsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class ListRepositorySyncDefinitionsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListRepositorySyncDefinitionsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "ListRepositorySyncDefinitionsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "ListRepositorySyncDefinitions",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_ListRepositorySyncDefinitionsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_ListRepositorySyncDefinitionsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListRepositorySyncDefinitionsCommand = ListRepositorySyncDefinitionsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListSyncConfigurationsCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class ListSyncConfigurationsCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListSyncConfigurationsCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "ListSyncConfigurationsCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "ListSyncConfigurations",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_ListSyncConfigurationsCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_ListSyncConfigurationsCommand)(output, context);
49
+ }
50
+ }
51
+ exports.ListSyncConfigurationsCommand = ListSyncConfigurationsCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateRepositoryLinkCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class UpdateRepositoryLinkCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateRepositoryLinkCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "UpdateRepositoryLinkCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "UpdateRepositoryLink",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_UpdateRepositoryLinkCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_UpdateRepositoryLinkCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateRepositoryLinkCommand = UpdateRepositoryLinkCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSyncBlockerCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class UpdateSyncBlockerCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSyncBlockerCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "UpdateSyncBlockerCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "UpdateSyncBlocker",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_UpdateSyncBlockerCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_UpdateSyncBlockerCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateSyncBlockerCommand = UpdateSyncBlockerCommand;
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.UpdateSyncConfigurationCommand = exports.$Command = void 0;
4
+ const middleware_endpoint_1 = require("@smithy/middleware-endpoint");
5
+ const middleware_serde_1 = require("@smithy/middleware-serde");
6
+ const smithy_client_1 = require("@smithy/smithy-client");
7
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } });
8
+ const types_1 = require("@smithy/types");
9
+ const Aws_json1_0_1 = require("../protocols/Aws_json1_0");
10
+ class UpdateSyncConfigurationCommand extends smithy_client_1.Command {
11
+ static getEndpointParameterInstructions() {
12
+ return {
13
+ UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
14
+ Endpoint: { type: "builtInParams", name: "endpoint" },
15
+ Region: { type: "builtInParams", name: "region" },
16
+ UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
17
+ };
18
+ }
19
+ constructor(input) {
20
+ super();
21
+ this.input = input;
22
+ }
23
+ resolveMiddleware(clientStack, configuration, options) {
24
+ this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
25
+ this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateSyncConfigurationCommand.getEndpointParameterInstructions()));
26
+ const stack = clientStack.concat(this.middlewareStack);
27
+ const { logger } = configuration;
28
+ const clientName = "CodeStarConnectionsClient";
29
+ const commandName = "UpdateSyncConfigurationCommand";
30
+ const handlerExecutionContext = {
31
+ logger,
32
+ clientName,
33
+ commandName,
34
+ inputFilterSensitiveLog: (_) => _,
35
+ outputFilterSensitiveLog: (_) => _,
36
+ [types_1.SMITHY_CONTEXT_KEY]: {
37
+ service: "CodeStar_connections_20191201",
38
+ operation: "UpdateSyncConfiguration",
39
+ },
40
+ };
41
+ const { requestHandler } = configuration;
42
+ return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
43
+ }
44
+ serialize(input, context) {
45
+ return (0, Aws_json1_0_1.se_UpdateSyncConfigurationCommand)(input, context);
46
+ }
47
+ deserialize(output, context) {
48
+ return (0, Aws_json1_0_1.de_UpdateSyncConfigurationCommand)(output, context);
49
+ }
50
+ }
51
+ exports.UpdateSyncConfigurationCommand = UpdateSyncConfigurationCommand;
@@ -3,13 +3,28 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  tslib_1.__exportStar(require("./CreateConnectionCommand"), exports);
5
5
  tslib_1.__exportStar(require("./CreateHostCommand"), exports);
6
+ tslib_1.__exportStar(require("./CreateRepositoryLinkCommand"), exports);
7
+ tslib_1.__exportStar(require("./CreateSyncConfigurationCommand"), exports);
6
8
  tslib_1.__exportStar(require("./DeleteConnectionCommand"), exports);
7
9
  tslib_1.__exportStar(require("./DeleteHostCommand"), exports);
10
+ tslib_1.__exportStar(require("./DeleteRepositoryLinkCommand"), exports);
11
+ tslib_1.__exportStar(require("./DeleteSyncConfigurationCommand"), exports);
8
12
  tslib_1.__exportStar(require("./GetConnectionCommand"), exports);
9
13
  tslib_1.__exportStar(require("./GetHostCommand"), exports);
14
+ tslib_1.__exportStar(require("./GetRepositoryLinkCommand"), exports);
15
+ tslib_1.__exportStar(require("./GetRepositorySyncStatusCommand"), exports);
16
+ tslib_1.__exportStar(require("./GetResourceSyncStatusCommand"), exports);
17
+ tslib_1.__exportStar(require("./GetSyncBlockerSummaryCommand"), exports);
18
+ tslib_1.__exportStar(require("./GetSyncConfigurationCommand"), exports);
10
19
  tslib_1.__exportStar(require("./ListConnectionsCommand"), exports);
11
20
  tslib_1.__exportStar(require("./ListHostsCommand"), exports);
21
+ tslib_1.__exportStar(require("./ListRepositoryLinksCommand"), exports);
22
+ tslib_1.__exportStar(require("./ListRepositorySyncDefinitionsCommand"), exports);
23
+ tslib_1.__exportStar(require("./ListSyncConfigurationsCommand"), exports);
12
24
  tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports);
13
25
  tslib_1.__exportStar(require("./TagResourceCommand"), exports);
14
26
  tslib_1.__exportStar(require("./UntagResourceCommand"), exports);
15
27
  tslib_1.__exportStar(require("./UpdateHostCommand"), exports);
28
+ tslib_1.__exportStar(require("./UpdateRepositoryLinkCommand"), exports);
29
+ tslib_1.__exportStar(require("./UpdateSyncBlockerCommand"), exports);
30
+ tslib_1.__exportStar(require("./UpdateSyncConfigurationCommand"), exports);
@@ -1,7 +1,28 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnsupportedOperationException = exports.ConflictException = exports.ConnectionStatus = exports.ResourceUnavailableException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.ProviderType = void 0;
3
+ exports.SyncBlockerDoesNotExistException = exports.RetryLatestCommitFailedException = exports.UpdateOutOfSyncException = exports.ConditionalCheckFailedException = exports.UnsupportedOperationException = exports.ConflictException = exports.ResourceSyncStatus = exports.RepositorySyncStatus = exports.ConnectionStatus = exports.UnsupportedProviderTypeException = exports.SyncConfigurationStillExistsException = exports.SyncConfigurationType = exports.ThrottlingException = exports.ResourceAlreadyExistsException = exports.InvalidInputException = exports.InternalServerException = exports.ConcurrentModificationException = exports.ResourceUnavailableException = exports.ResourceNotFoundException = exports.LimitExceededException = exports.ProviderType = exports.BlockerType = exports.BlockerStatus = exports.AccessDeniedException = void 0;
4
4
  const CodeStarConnectionsServiceException_1 = require("./CodeStarConnectionsServiceException");
5
+ class AccessDeniedException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
6
+ constructor(opts) {
7
+ super({
8
+ name: "AccessDeniedException",
9
+ $fault: "client",
10
+ ...opts,
11
+ });
12
+ this.name = "AccessDeniedException";
13
+ this.$fault = "client";
14
+ Object.setPrototypeOf(this, AccessDeniedException.prototype);
15
+ this.Message = opts.Message;
16
+ }
17
+ }
18
+ exports.AccessDeniedException = AccessDeniedException;
19
+ exports.BlockerStatus = {
20
+ ACTIVE: "ACTIVE",
21
+ RESOLVED: "RESOLVED",
22
+ };
23
+ exports.BlockerType = {
24
+ AUTOMATED: "AUTOMATED",
25
+ };
5
26
  exports.ProviderType = {
6
27
  BITBUCKET: "Bitbucket",
7
28
  GITHUB: "GitHub",
@@ -50,11 +71,125 @@ class ResourceUnavailableException extends CodeStarConnectionsServiceException_1
50
71
  }
51
72
  }
52
73
  exports.ResourceUnavailableException = ResourceUnavailableException;
74
+ class ConcurrentModificationException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
75
+ constructor(opts) {
76
+ super({
77
+ name: "ConcurrentModificationException",
78
+ $fault: "client",
79
+ ...opts,
80
+ });
81
+ this.name = "ConcurrentModificationException";
82
+ this.$fault = "client";
83
+ Object.setPrototypeOf(this, ConcurrentModificationException.prototype);
84
+ this.Message = opts.Message;
85
+ }
86
+ }
87
+ exports.ConcurrentModificationException = ConcurrentModificationException;
88
+ class InternalServerException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
89
+ constructor(opts) {
90
+ super({
91
+ name: "InternalServerException",
92
+ $fault: "server",
93
+ ...opts,
94
+ });
95
+ this.name = "InternalServerException";
96
+ this.$fault = "server";
97
+ Object.setPrototypeOf(this, InternalServerException.prototype);
98
+ this.Message = opts.Message;
99
+ }
100
+ }
101
+ exports.InternalServerException = InternalServerException;
102
+ class InvalidInputException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
103
+ constructor(opts) {
104
+ super({
105
+ name: "InvalidInputException",
106
+ $fault: "client",
107
+ ...opts,
108
+ });
109
+ this.name = "InvalidInputException";
110
+ this.$fault = "client";
111
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
112
+ this.Message = opts.Message;
113
+ }
114
+ }
115
+ exports.InvalidInputException = InvalidInputException;
116
+ class ResourceAlreadyExistsException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
117
+ constructor(opts) {
118
+ super({
119
+ name: "ResourceAlreadyExistsException",
120
+ $fault: "client",
121
+ ...opts,
122
+ });
123
+ this.name = "ResourceAlreadyExistsException";
124
+ this.$fault = "client";
125
+ Object.setPrototypeOf(this, ResourceAlreadyExistsException.prototype);
126
+ this.Message = opts.Message;
127
+ }
128
+ }
129
+ exports.ResourceAlreadyExistsException = ResourceAlreadyExistsException;
130
+ class ThrottlingException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
131
+ constructor(opts) {
132
+ super({
133
+ name: "ThrottlingException",
134
+ $fault: "client",
135
+ ...opts,
136
+ });
137
+ this.name = "ThrottlingException";
138
+ this.$fault = "client";
139
+ Object.setPrototypeOf(this, ThrottlingException.prototype);
140
+ this.Message = opts.Message;
141
+ }
142
+ }
143
+ exports.ThrottlingException = ThrottlingException;
144
+ exports.SyncConfigurationType = {
145
+ CFN_STACK_SYNC: "CFN_STACK_SYNC",
146
+ };
147
+ class SyncConfigurationStillExistsException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
148
+ constructor(opts) {
149
+ super({
150
+ name: "SyncConfigurationStillExistsException",
151
+ $fault: "client",
152
+ ...opts,
153
+ });
154
+ this.name = "SyncConfigurationStillExistsException";
155
+ this.$fault = "client";
156
+ Object.setPrototypeOf(this, SyncConfigurationStillExistsException.prototype);
157
+ this.Message = opts.Message;
158
+ }
159
+ }
160
+ exports.SyncConfigurationStillExistsException = SyncConfigurationStillExistsException;
161
+ class UnsupportedProviderTypeException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
162
+ constructor(opts) {
163
+ super({
164
+ name: "UnsupportedProviderTypeException",
165
+ $fault: "client",
166
+ ...opts,
167
+ });
168
+ this.name = "UnsupportedProviderTypeException";
169
+ this.$fault = "client";
170
+ Object.setPrototypeOf(this, UnsupportedProviderTypeException.prototype);
171
+ this.Message = opts.Message;
172
+ }
173
+ }
174
+ exports.UnsupportedProviderTypeException = UnsupportedProviderTypeException;
53
175
  exports.ConnectionStatus = {
54
176
  AVAILABLE: "AVAILABLE",
55
177
  ERROR: "ERROR",
56
178
  PENDING: "PENDING",
57
179
  };
180
+ exports.RepositorySyncStatus = {
181
+ FAILED: "FAILED",
182
+ INITIATED: "INITIATED",
183
+ IN_PROGRESS: "IN_PROGRESS",
184
+ QUEUED: "QUEUED",
185
+ SUCCEEDED: "SUCCEEDED",
186
+ };
187
+ exports.ResourceSyncStatus = {
188
+ FAILED: "FAILED",
189
+ INITIATED: "INITIATED",
190
+ IN_PROGRESS: "IN_PROGRESS",
191
+ SUCCEEDED: "SUCCEEDED",
192
+ };
58
193
  class ConflictException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
59
194
  constructor(opts) {
60
195
  super({
@@ -83,3 +218,59 @@ class UnsupportedOperationException extends CodeStarConnectionsServiceException_
83
218
  }
84
219
  }
85
220
  exports.UnsupportedOperationException = UnsupportedOperationException;
221
+ class ConditionalCheckFailedException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
222
+ constructor(opts) {
223
+ super({
224
+ name: "ConditionalCheckFailedException",
225
+ $fault: "client",
226
+ ...opts,
227
+ });
228
+ this.name = "ConditionalCheckFailedException";
229
+ this.$fault = "client";
230
+ Object.setPrototypeOf(this, ConditionalCheckFailedException.prototype);
231
+ this.Message = opts.Message;
232
+ }
233
+ }
234
+ exports.ConditionalCheckFailedException = ConditionalCheckFailedException;
235
+ class UpdateOutOfSyncException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
236
+ constructor(opts) {
237
+ super({
238
+ name: "UpdateOutOfSyncException",
239
+ $fault: "client",
240
+ ...opts,
241
+ });
242
+ this.name = "UpdateOutOfSyncException";
243
+ this.$fault = "client";
244
+ Object.setPrototypeOf(this, UpdateOutOfSyncException.prototype);
245
+ this.Message = opts.Message;
246
+ }
247
+ }
248
+ exports.UpdateOutOfSyncException = UpdateOutOfSyncException;
249
+ class RetryLatestCommitFailedException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
250
+ constructor(opts) {
251
+ super({
252
+ name: "RetryLatestCommitFailedException",
253
+ $fault: "server",
254
+ ...opts,
255
+ });
256
+ this.name = "RetryLatestCommitFailedException";
257
+ this.$fault = "server";
258
+ Object.setPrototypeOf(this, RetryLatestCommitFailedException.prototype);
259
+ this.Message = opts.Message;
260
+ }
261
+ }
262
+ exports.RetryLatestCommitFailedException = RetryLatestCommitFailedException;
263
+ class SyncBlockerDoesNotExistException extends CodeStarConnectionsServiceException_1.CodeStarConnectionsServiceException {
264
+ constructor(opts) {
265
+ super({
266
+ name: "SyncBlockerDoesNotExistException",
267
+ $fault: "client",
268
+ ...opts,
269
+ });
270
+ this.name = "SyncBlockerDoesNotExistException";
271
+ this.$fault = "client";
272
+ Object.setPrototypeOf(this, SyncBlockerDoesNotExistException.prototype);
273
+ this.Message = opts.Message;
274
+ }
275
+ }
276
+ exports.SyncBlockerDoesNotExistException = SyncBlockerDoesNotExistException;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListRepositoryLinks = void 0;
4
+ const CodeStarConnectionsClient_1 = require("../CodeStarConnectionsClient");
5
+ const ListRepositoryLinksCommand_1 = require("../commands/ListRepositoryLinksCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListRepositoryLinksCommand_1.ListRepositoryLinksCommand(input), ...args);
8
+ };
9
+ async function* paginateListRepositoryLinks(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof CodeStarConnectionsClient_1.CodeStarConnectionsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CodeStarConnections | CodeStarConnectionsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListRepositoryLinks = paginateListRepositoryLinks;
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.paginateListSyncConfigurations = void 0;
4
+ const CodeStarConnectionsClient_1 = require("../CodeStarConnectionsClient");
5
+ const ListSyncConfigurationsCommand_1 = require("../commands/ListSyncConfigurationsCommand");
6
+ const makePagedClientRequest = async (client, input, ...args) => {
7
+ return await client.send(new ListSyncConfigurationsCommand_1.ListSyncConfigurationsCommand(input), ...args);
8
+ };
9
+ async function* paginateListSyncConfigurations(config, input, ...additionalArguments) {
10
+ let token = config.startingToken || undefined;
11
+ let hasNext = true;
12
+ let page;
13
+ while (hasNext) {
14
+ input.NextToken = token;
15
+ input["MaxResults"] = config.pageSize;
16
+ if (config.client instanceof CodeStarConnectionsClient_1.CodeStarConnectionsClient) {
17
+ page = await makePagedClientRequest(config.client, input, ...additionalArguments);
18
+ }
19
+ else {
20
+ throw new Error("Invalid client, expected CodeStarConnections | CodeStarConnectionsClient");
21
+ }
22
+ yield page;
23
+ const prevToken = token;
24
+ token = page.NextToken;
25
+ hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken));
26
+ }
27
+ return undefined;
28
+ }
29
+ exports.paginateListSyncConfigurations = paginateListSyncConfigurations;