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