@aws-sdk/client-codebuild 3.987.0 → 3.988.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.
@@ -6,6 +6,7 @@ import { fromBase64, toBase64 } from "@smithy/util-base64";
6
6
  import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
7
7
  import { defaultCodeBuildHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
8
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
+ import { errorTypeRegistries } from "./schemas/schemas_0";
9
10
  export const getRuntimeConfig = (config) => {
10
11
  return {
11
12
  apiVersion: "2016-10-06",
@@ -26,6 +27,7 @@ export const getRuntimeConfig = (config) => {
26
27
  protocol: config?.protocol ?? AwsJson1_1Protocol,
27
28
  protocolSettings: config?.protocolSettings ?? {
28
29
  defaultNamespace: "com.amazonaws.codebuild",
30
+ errorTypeRegistries,
29
31
  version: "2016-10-06",
30
32
  serviceTarget: "CodeBuild_20161006",
31
33
  },
@@ -527,7 +527,7 @@ const _rT = "retryType";
527
527
  const _rTe = "requestTime";
528
528
  const _re = "restrictions";
529
529
  const _res = "resource";
530
- const _s = "sandboxes";
530
+ const _s = "smithy.ts.sdk.synthetic.com.amazonaws.codebuild";
531
531
  const _sA = "secondaryArtifacts";
532
532
  const _sAO = "secondaryArtifactsOverride";
533
533
  const _sAOo = "sourceAuthOverride";
@@ -571,11 +571,11 @@ const _sTer = "serverType";
571
571
  const _sTu = "submitTime";
572
572
  const _sU = "streamUrl";
573
573
  const _sV = "sourceVersion";
574
- const _sa = "sandbox";
574
+ const _sa = "sandboxes";
575
+ const _san = "sandbox";
575
576
  const _sc = "scope";
576
577
  const _se = "secret";
577
578
  const _sh = "sha256sum";
578
- const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.codebuild";
579
579
  const _so = "source";
580
580
  const _st = "status";
581
581
  const _sta = "stats";
@@ -609,20 +609,52 @@ const n0 = "com.amazonaws.codebuild";
609
609
  import { TypeRegistry } from "@smithy/core/schema";
610
610
  import { CodeBuildServiceException } from "../models/CodeBuildServiceException";
611
611
  import { AccountLimitExceededException, AccountSuspendedException, InvalidInputException, OAuthProviderException, ResourceAlreadyExistsException, ResourceNotFoundException, } from "../models/errors";
612
- var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
613
- var SensitiveString = [0, n0, _SS, 8, 0];
612
+ const _s_registry = TypeRegistry.for(_s);
613
+ export var CodeBuildServiceException$ = [-3, _s, "CodeBuildServiceException", 0, [], []];
614
+ _s_registry.registerError(CodeBuildServiceException$, CodeBuildServiceException);
615
+ const n0_registry = TypeRegistry.for(n0);
614
616
  export var AccountLimitExceededException$ = [-3, n0, _ALEE,
615
617
  { [_e]: _c },
616
618
  [_m],
617
619
  [0]
618
620
  ];
619
- TypeRegistry.for(n0).registerError(AccountLimitExceededException$, AccountLimitExceededException);
621
+ n0_registry.registerError(AccountLimitExceededException$, AccountLimitExceededException);
620
622
  export var AccountSuspendedException$ = [-3, n0, _ASE,
621
623
  { [_e]: _c },
622
624
  [_m],
623
625
  [0]
624
626
  ];
625
- TypeRegistry.for(n0).registerError(AccountSuspendedException$, AccountSuspendedException);
627
+ n0_registry.registerError(AccountSuspendedException$, AccountSuspendedException);
628
+ export var InvalidInputException$ = [-3, n0, _IIE,
629
+ { [_e]: _c },
630
+ [_m],
631
+ [0]
632
+ ];
633
+ n0_registry.registerError(InvalidInputException$, InvalidInputException);
634
+ export var OAuthProviderException$ = [-3, n0, _OAPE,
635
+ { [_e]: _c },
636
+ [_m],
637
+ [0]
638
+ ];
639
+ n0_registry.registerError(OAuthProviderException$, OAuthProviderException);
640
+ export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
641
+ { [_e]: _c },
642
+ [_m],
643
+ [0]
644
+ ];
645
+ n0_registry.registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
646
+ export var ResourceNotFoundException$ = [-3, n0, _RNFE,
647
+ { [_e]: _c },
648
+ [_m],
649
+ [0]
650
+ ];
651
+ n0_registry.registerError(ResourceNotFoundException$, ResourceNotFoundException);
652
+ export const errorTypeRegistries = [
653
+ _s_registry,
654
+ n0_registry,
655
+ ];
656
+ var SensitiveNonEmptyString = [0, n0, _SNES, 8, 0];
657
+ var SensitiveString = [0, n0, _SS, 8, 0];
626
658
  export var AutoRetryConfig$ = [3, n0, _ARC,
627
659
  0,
628
660
  [_aRL, _aRN, _nAR, _pAR],
@@ -715,7 +747,7 @@ export var BatchGetSandboxesInput$ = [3, n0, _BGSI,
715
747
  ];
716
748
  export var BatchGetSandboxesOutput$ = [3, n0, _BGSO,
717
749
  0,
718
- [_s, _sNF],
750
+ [_sa, _sNF],
719
751
  [() => Sandboxes, 64 | 0]
720
752
  ];
721
753
  export var BatchRestrictions$ = [3, n0, _BR,
@@ -1038,12 +1070,6 @@ export var InvalidateProjectCacheOutput$ = [3, n0, _IPCO,
1038
1070
  [],
1039
1071
  []
1040
1072
  ];
1041
- export var InvalidInputException$ = [-3, n0, _IIE,
1042
- { [_e]: _c },
1043
- [_m],
1044
- [0]
1045
- ];
1046
- TypeRegistry.for(n0).registerError(InvalidInputException$, InvalidInputException);
1047
1073
  export var ListBuildBatchesForProjectInput$ = [3, n0, _LBBFPI,
1048
1074
  0,
1049
1075
  [_pN, _fi, _mR, _sO, _nT],
@@ -1219,12 +1245,6 @@ export var NetworkInterface$ = [3, n0, _NI,
1219
1245
  [_sIu, _nII],
1220
1246
  [0, 0]
1221
1247
  ];
1222
- export var OAuthProviderException$ = [-3, n0, _OAPE,
1223
- { [_e]: _c },
1224
- [_m],
1225
- [0]
1226
- ];
1227
- TypeRegistry.for(n0).registerError(OAuthProviderException$, OAuthProviderException);
1228
1248
  export var PhaseContext$ = [3, n0, _PC,
1229
1249
  0,
1230
1250
  [_sC, _m],
@@ -1340,18 +1360,6 @@ export var ResolvedArtifact$ = [3, n0, _RA,
1340
1360
  [_t, _lo, _ide],
1341
1361
  [0, 0, 0]
1342
1362
  ];
1343
- export var ResourceAlreadyExistsException$ = [-3, n0, _RAEE,
1344
- { [_e]: _c },
1345
- [_m],
1346
- [0]
1347
- ];
1348
- TypeRegistry.for(n0).registerError(ResourceAlreadyExistsException$, ResourceAlreadyExistsException);
1349
- export var ResourceNotFoundException$ = [-3, n0, _RNFE,
1350
- { [_e]: _c },
1351
- [_m],
1352
- [0]
1353
- ];
1354
- TypeRegistry.for(n0).registerError(ResourceNotFoundException$, ResourceNotFoundException);
1355
1363
  export var RetryBuildBatchInput$ = [3, n0, _RBBI,
1356
1364
  0,
1357
1365
  [_id, _iTd, _rT],
@@ -1474,7 +1482,7 @@ export var StartSandboxInput$ = [3, n0, _SSI,
1474
1482
  ];
1475
1483
  export var StartSandboxOutput$ = [3, n0, _SSO,
1476
1484
  0,
1477
- [_sa],
1485
+ [_san],
1478
1486
  [() => Sandbox$]
1479
1487
  ];
1480
1488
  export var StopBuildBatchInput$ = [3, n0, _SBBIt,
@@ -1504,7 +1512,7 @@ export var StopSandboxInput$ = [3, n0, _SSIt,
1504
1512
  ];
1505
1513
  export var StopSandboxOutput$ = [3, n0, _SSOt,
1506
1514
  0,
1507
- [_sa],
1515
+ [_san],
1508
1516
  [() => Sandbox$]
1509
1517
  ];
1510
1518
  export var Tag$ = [3, n0, _T,
@@ -1597,8 +1605,6 @@ export var WebhookFilter$ = [3, n0, _WF,
1597
1605
  [_t, _pat, _eMP],
1598
1606
  [0, 0, 2], 2
1599
1607
  ];
1600
- export var CodeBuildServiceException$ = [-3, _sm, "CodeBuildServiceException", 0, [], []];
1601
- TypeRegistry.for(_sm).registerError(CodeBuildServiceException$, CodeBuildServiceException);
1602
1608
  var BuildArtifactsList = [1, n0, _BAL,
1603
1609
  0, () => BuildArtifacts$
1604
1610
  ];
@@ -1,6 +1,18 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import type { StaticErrorSchema, StaticOperationSchema, StaticStructureSchema } from "@smithy/types";
3
+ export declare var CodeBuildServiceException$: StaticErrorSchema;
2
4
  export declare var AccountLimitExceededException$: StaticErrorSchema;
3
5
  export declare var AccountSuspendedException$: StaticErrorSchema;
6
+ export declare var InvalidInputException$: StaticErrorSchema;
7
+ export declare var OAuthProviderException$: StaticErrorSchema;
8
+ export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
9
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
10
+ /**
11
+ * TypeRegistry instances containing modeled errors.
12
+ * @internal
13
+ *
14
+ */
15
+ export declare const errorTypeRegistries: TypeRegistry[];
4
16
  export declare var AutoRetryConfig$: StaticStructureSchema;
5
17
  export declare var BatchDeleteBuildsInput$: StaticStructureSchema;
6
18
  export declare var BatchDeleteBuildsOutput$: StaticStructureSchema;
@@ -84,7 +96,6 @@ export declare var ImportSourceCredentialsInput$: StaticStructureSchema;
84
96
  export declare var ImportSourceCredentialsOutput$: StaticStructureSchema;
85
97
  export declare var InvalidateProjectCacheInput$: StaticStructureSchema;
86
98
  export declare var InvalidateProjectCacheOutput$: StaticStructureSchema;
87
- export declare var InvalidInputException$: StaticErrorSchema;
88
99
  export declare var ListBuildBatchesForProjectInput$: StaticStructureSchema;
89
100
  export declare var ListBuildBatchesForProjectOutput$: StaticStructureSchema;
90
101
  export declare var ListBuildBatchesInput$: StaticStructureSchema;
@@ -120,7 +131,6 @@ export declare var ListSourceCredentialsOutput$: StaticStructureSchema;
120
131
  export declare var LogsConfig$: StaticStructureSchema;
121
132
  export declare var LogsLocation$: StaticStructureSchema;
122
133
  export declare var NetworkInterface$: StaticStructureSchema;
123
- export declare var OAuthProviderException$: StaticErrorSchema;
124
134
  export declare var PhaseContext$: StaticStructureSchema;
125
135
  export declare var Project$: StaticStructureSchema;
126
136
  export declare var ProjectArtifacts$: StaticStructureSchema;
@@ -144,8 +154,6 @@ export declare var ReportGroup$: StaticStructureSchema;
144
154
  export declare var ReportGroupTrendStats$: StaticStructureSchema;
145
155
  export declare var ReportWithRawData$: StaticStructureSchema;
146
156
  export declare var ResolvedArtifact$: StaticStructureSchema;
147
- export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
148
- export declare var ResourceNotFoundException$: StaticErrorSchema;
149
157
  export declare var RetryBuildBatchInput$: StaticStructureSchema;
150
158
  export declare var RetryBuildBatchOutput$: StaticStructureSchema;
151
159
  export declare var RetryBuildInput$: StaticStructureSchema;
@@ -195,7 +203,6 @@ export declare var UpdateWebhookOutput$: StaticStructureSchema;
195
203
  export declare var VpcConfig$: StaticStructureSchema;
196
204
  export declare var Webhook$: StaticStructureSchema;
197
205
  export declare var WebhookFilter$: StaticStructureSchema;
198
- export declare var CodeBuildServiceException$: StaticErrorSchema;
199
206
  export declare var BatchDeleteBuilds$: StaticOperationSchema;
200
207
  export declare var BatchGetBuildBatches$: StaticOperationSchema;
201
208
  export declare var BatchGetBuilds$: StaticOperationSchema;
@@ -1,10 +1,17 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import {
2
3
  StaticErrorSchema,
3
4
  StaticOperationSchema,
4
5
  StaticStructureSchema,
5
6
  } from "@smithy/types";
7
+ export declare var CodeBuildServiceException$: StaticErrorSchema;
6
8
  export declare var AccountLimitExceededException$: StaticErrorSchema;
7
9
  export declare var AccountSuspendedException$: StaticErrorSchema;
10
+ export declare var InvalidInputException$: StaticErrorSchema;
11
+ export declare var OAuthProviderException$: StaticErrorSchema;
12
+ export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
13
+ export declare var ResourceNotFoundException$: StaticErrorSchema;
14
+ export declare const errorTypeRegistries: TypeRegistry[];
8
15
  export declare var AutoRetryConfig$: StaticStructureSchema;
9
16
  export declare var BatchDeleteBuildsInput$: StaticStructureSchema;
10
17
  export declare var BatchDeleteBuildsOutput$: StaticStructureSchema;
@@ -88,7 +95,6 @@ export declare var ImportSourceCredentialsInput$: StaticStructureSchema;
88
95
  export declare var ImportSourceCredentialsOutput$: StaticStructureSchema;
89
96
  export declare var InvalidateProjectCacheInput$: StaticStructureSchema;
90
97
  export declare var InvalidateProjectCacheOutput$: StaticStructureSchema;
91
- export declare var InvalidInputException$: StaticErrorSchema;
92
98
  export declare var ListBuildBatchesForProjectInput$: StaticStructureSchema;
93
99
  export declare var ListBuildBatchesForProjectOutput$: StaticStructureSchema;
94
100
  export declare var ListBuildBatchesInput$: StaticStructureSchema;
@@ -124,7 +130,6 @@ export declare var ListSourceCredentialsOutput$: StaticStructureSchema;
124
130
  export declare var LogsConfig$: StaticStructureSchema;
125
131
  export declare var LogsLocation$: StaticStructureSchema;
126
132
  export declare var NetworkInterface$: StaticStructureSchema;
127
- export declare var OAuthProviderException$: StaticErrorSchema;
128
133
  export declare var PhaseContext$: StaticStructureSchema;
129
134
  export declare var Project$: StaticStructureSchema;
130
135
  export declare var ProjectArtifacts$: StaticStructureSchema;
@@ -148,8 +153,6 @@ export declare var ReportGroup$: StaticStructureSchema;
148
153
  export declare var ReportGroupTrendStats$: StaticStructureSchema;
149
154
  export declare var ReportWithRawData$: StaticStructureSchema;
150
155
  export declare var ResolvedArtifact$: StaticStructureSchema;
151
- export declare var ResourceAlreadyExistsException$: StaticErrorSchema;
152
- export declare var ResourceNotFoundException$: StaticErrorSchema;
153
156
  export declare var RetryBuildBatchInput$: StaticStructureSchema;
154
157
  export declare var RetryBuildBatchOutput$: StaticStructureSchema;
155
158
  export declare var RetryBuildInput$: StaticStructureSchema;
@@ -199,7 +202,6 @@ export declare var UpdateWebhookOutput$: StaticStructureSchema;
199
202
  export declare var VpcConfig$: StaticStructureSchema;
200
203
  export declare var Webhook$: StaticStructureSchema;
201
204
  export declare var WebhookFilter$: StaticStructureSchema;
202
- export declare var CodeBuildServiceException$: StaticErrorSchema;
203
205
  export declare var BatchDeleteBuilds$: StaticOperationSchema;
204
206
  export declare var BatchGetBuildBatches$: StaticOperationSchema;
205
207
  export declare var BatchGetBuilds$: StaticOperationSchema;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-codebuild",
3
3
  "description": "AWS SDK for JavaScript Codebuild Client for Node.js, Browser and React Native",
4
- "version": "3.987.0",
4
+ "version": "3.988.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-codebuild",
@@ -21,38 +21,38 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.973.7",
25
- "@aws-sdk/credential-provider-node": "^3.972.6",
24
+ "@aws-sdk/core": "^3.973.8",
25
+ "@aws-sdk/credential-provider-node": "^3.972.7",
26
26
  "@aws-sdk/middleware-host-header": "^3.972.3",
27
27
  "@aws-sdk/middleware-logger": "^3.972.3",
28
28
  "@aws-sdk/middleware-recursion-detection": "^3.972.3",
29
- "@aws-sdk/middleware-user-agent": "^3.972.7",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.8",
30
30
  "@aws-sdk/region-config-resolver": "^3.972.3",
31
31
  "@aws-sdk/types": "^3.973.1",
32
- "@aws-sdk/util-endpoints": "3.987.0",
32
+ "@aws-sdk/util-endpoints": "3.988.0",
33
33
  "@aws-sdk/util-user-agent-browser": "^3.972.3",
34
- "@aws-sdk/util-user-agent-node": "^3.972.5",
34
+ "@aws-sdk/util-user-agent-node": "^3.972.6",
35
35
  "@smithy/config-resolver": "^4.4.6",
36
- "@smithy/core": "^3.22.1",
36
+ "@smithy/core": "^3.23.0",
37
37
  "@smithy/fetch-http-handler": "^5.3.9",
38
38
  "@smithy/hash-node": "^4.2.8",
39
39
  "@smithy/invalid-dependency": "^4.2.8",
40
40
  "@smithy/middleware-content-length": "^4.2.8",
41
- "@smithy/middleware-endpoint": "^4.4.13",
42
- "@smithy/middleware-retry": "^4.4.30",
41
+ "@smithy/middleware-endpoint": "^4.4.14",
42
+ "@smithy/middleware-retry": "^4.4.31",
43
43
  "@smithy/middleware-serde": "^4.2.9",
44
44
  "@smithy/middleware-stack": "^4.2.8",
45
45
  "@smithy/node-config-provider": "^4.3.8",
46
- "@smithy/node-http-handler": "^4.4.9",
46
+ "@smithy/node-http-handler": "^4.4.10",
47
47
  "@smithy/protocol-http": "^5.3.8",
48
- "@smithy/smithy-client": "^4.11.2",
48
+ "@smithy/smithy-client": "^4.11.3",
49
49
  "@smithy/types": "^4.12.0",
50
50
  "@smithy/url-parser": "^4.2.8",
51
51
  "@smithy/util-base64": "^4.3.0",
52
52
  "@smithy/util-body-length-browser": "^4.2.0",
53
53
  "@smithy/util-body-length-node": "^4.2.1",
54
- "@smithy/util-defaults-mode-browser": "^4.3.29",
55
- "@smithy/util-defaults-mode-node": "^4.2.32",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.30",
55
+ "@smithy/util-defaults-mode-node": "^4.2.33",
56
56
  "@smithy/util-endpoints": "^3.2.8",
57
57
  "@smithy/util-middleware": "^4.2.8",
58
58
  "@smithy/util-retry": "^4.2.8",