@aws-sdk/client-codebuild 3.52.0 → 3.54.1

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.
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchDeleteBuildsCommandInput, BatchDeleteBuildsCommandOutput } from "./commands/BatchDeleteBuildsCommand";
10
10
  import { BatchGetBuildBatchesCommandInput, BatchGetBuildBatchesCommandOutput } from "./commands/BatchGetBuildBatchesCommand";
11
11
  import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput } from "./commands/BatchGetBuildsCommand";
@@ -73,7 +73,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
73
73
  * A function that can calculate the length of a request body.
74
74
  * @internal
75
75
  */
76
- bodyLengthChecker?: (body: any) => number | undefined;
76
+ bodyLengthChecker?: __BodyLengthCalculator;
77
77
  /**
78
78
  * A function that converts a stream into an array of bytes.
79
79
  * @internal
@@ -3,3 +3,4 @@ export * from "./CodeBuildClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { CodeBuildServiceException } from "./models/CodeBuildServiceException";
@@ -0,0 +1,10 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+ /**
3
+ * Base exception class for all service exceptions from CodeBuild service.
4
+ */
5
+ export declare class CodeBuildServiceException extends __ServiceException {
6
+ /**
7
+ * @internal
8
+ */
9
+ constructor(options: __ServiceExceptionOptions);
10
+ }
@@ -1,11 +1,15 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CodeBuildServiceException as __BaseException } from "./CodeBuildServiceException";
2
3
  /**
3
4
  * <p>An Amazon Web Services service limit was exceeded for the calling Amazon Web Services account.</p>
4
5
  */
5
- export interface AccountLimitExceededException extends __SmithyException, $MetadataBearer {
6
- name: "AccountLimitExceededException";
7
- $fault: "client";
8
- message?: string;
6
+ export declare class AccountLimitExceededException extends __BaseException {
7
+ readonly name: "AccountLimitExceededException";
8
+ readonly $fault: "client";
9
+ /**
10
+ * @internal
11
+ */
12
+ constructor(opts: __ExceptionOptionType<AccountLimitExceededException, __BaseException>);
9
13
  }
10
14
  export declare enum ArtifactNamespace {
11
15
  BUILD_ID = "BUILD_ID",
@@ -75,10 +79,13 @@ export declare namespace BatchDeleteBuildsOutput {
75
79
  /**
76
80
  * <p>The input value that was provided is not valid.</p>
77
81
  */
78
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
79
- name: "InvalidInputException";
80
- $fault: "client";
81
- message?: string;
82
+ export declare class InvalidInputException extends __BaseException {
83
+ readonly name: "InvalidInputException";
84
+ readonly $fault: "client";
85
+ /**
86
+ * @internal
87
+ */
88
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
82
89
  }
83
90
  export interface BatchGetBuildBatchesInput {
84
91
  /**
@@ -3430,10 +3437,13 @@ export declare namespace CreateProjectOutput {
3430
3437
  * <p>The specified Amazon Web Services resource cannot be created, because an Amazon Web Services resource with the same
3431
3438
  * settings already exists.</p>
3432
3439
  */
3433
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
3434
- name: "ResourceAlreadyExistsException";
3435
- $fault: "client";
3436
- message?: string;
3440
+ export declare class ResourceAlreadyExistsException extends __BaseException {
3441
+ readonly name: "ResourceAlreadyExistsException";
3442
+ readonly $fault: "client";
3443
+ /**
3444
+ * @internal
3445
+ */
3446
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
3437
3447
  }
3438
3448
  export interface CreateReportGroupInput {
3439
3449
  /**
@@ -3534,18 +3544,24 @@ export declare namespace CreateWebhookOutput {
3534
3544
  /**
3535
3545
  * <p>There was a problem with the underlying OAuth provider.</p>
3536
3546
  */
3537
- export interface OAuthProviderException extends __SmithyException, $MetadataBearer {
3538
- name: "OAuthProviderException";
3539
- $fault: "client";
3540
- message?: string;
3547
+ export declare class OAuthProviderException extends __BaseException {
3548
+ readonly name: "OAuthProviderException";
3549
+ readonly $fault: "client";
3550
+ /**
3551
+ * @internal
3552
+ */
3553
+ constructor(opts: __ExceptionOptionType<OAuthProviderException, __BaseException>);
3541
3554
  }
3542
3555
  /**
3543
3556
  * <p>The specified Amazon Web Services resource cannot be found.</p>
3544
3557
  */
3545
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
3546
- name: "ResourceNotFoundException";
3547
- $fault: "client";
3548
- message?: string;
3558
+ export declare class ResourceNotFoundException extends __BaseException {
3559
+ readonly name: "ResourceNotFoundException";
3560
+ readonly $fault: "client";
3561
+ /**
3562
+ * @internal
3563
+ */
3564
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
3549
3565
  }
3550
3566
  export interface DeleteBuildBatchInput {
3551
3567
  /**
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CodeBuildClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CodeBuildClientConfig) => {
8
8
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
9
9
  base64Decoder: import("@aws-sdk/types").Decoder;
10
10
  base64Encoder: import("@aws-sdk/types").Encoder;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
13
13
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
14
14
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -8,7 +8,7 @@ export declare const getRuntimeConfig: (config: CodeBuildClientConfig) => {
8
8
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
9
9
  apiVersion: string;
10
10
  urlParser: import("@aws-sdk/types").UrlParser;
11
- bodyLengthChecker: (body: any) => number | undefined;
11
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
12
12
  streamCollector: import("@aws-sdk/types").StreamCollector;
13
13
  base64Decoder: import("@aws-sdk/types").Decoder;
14
14
  base64Encoder: import("@aws-sdk/types").Encoder;
@@ -5,7 +5,7 @@ import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-s
5
5
  import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
6
6
  import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
7
7
  import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
8
- import { Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
8
+ import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, RegionInfoProvider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@aws-sdk/types";
9
9
  import { BatchDeleteBuildsCommandInput, BatchDeleteBuildsCommandOutput } from "./commands/BatchDeleteBuildsCommand";
10
10
  import { BatchGetBuildBatchesCommandInput, BatchGetBuildBatchesCommandOutput } from "./commands/BatchGetBuildBatchesCommand";
11
11
  import { BatchGetBuildsCommandInput, BatchGetBuildsCommandOutput } from "./commands/BatchGetBuildsCommand";
@@ -61,7 +61,7 @@ export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__
61
61
 
62
62
  urlParser?: __UrlParser;
63
63
 
64
- bodyLengthChecker?: (body: any) => number | undefined;
64
+ bodyLengthChecker?: __BodyLengthCalculator;
65
65
 
66
66
  streamCollector?: __StreamCollector;
67
67
 
@@ -3,3 +3,4 @@ export * from "./CodeBuildClient";
3
3
  export * from "./commands";
4
4
  export * from "./models";
5
5
  export * from "./pagination";
6
+ export { CodeBuildServiceException } from "./models/CodeBuildServiceException";
@@ -0,0 +1,6 @@
1
+ import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@aws-sdk/smithy-client";
2
+
3
+ export declare class CodeBuildServiceException extends __ServiceException {
4
+
5
+ constructor(options: __ServiceExceptionOptions);
6
+ }
@@ -1,9 +1,11 @@
1
- import { MetadataBearer as $MetadataBearer, SmithyException as __SmithyException } from "@aws-sdk/types";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@aws-sdk/smithy-client";
2
+ import { CodeBuildServiceException as __BaseException } from "./CodeBuildServiceException";
2
3
 
3
- export interface AccountLimitExceededException extends __SmithyException, $MetadataBearer {
4
- name: "AccountLimitExceededException";
5
- $fault: "client";
6
- message?: string;
4
+ export declare class AccountLimitExceededException extends __BaseException {
5
+ readonly name: "AccountLimitExceededException";
6
+ readonly $fault: "client";
7
+
8
+ constructor(opts: __ExceptionOptionType<AccountLimitExceededException, __BaseException>);
7
9
  }
8
10
  export declare enum ArtifactNamespace {
9
11
  BUILD_ID = "BUILD_ID",
@@ -53,10 +55,11 @@ export declare namespace BatchDeleteBuildsOutput {
53
55
  const filterSensitiveLog: (obj: BatchDeleteBuildsOutput) => any;
54
56
  }
55
57
 
56
- export interface InvalidInputException extends __SmithyException, $MetadataBearer {
57
- name: "InvalidInputException";
58
- $fault: "client";
59
- message?: string;
58
+ export declare class InvalidInputException extends __BaseException {
59
+ readonly name: "InvalidInputException";
60
+ readonly $fault: "client";
61
+
62
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
60
63
  }
61
64
  export interface BatchGetBuildBatchesInput {
62
65
 
@@ -1147,10 +1150,11 @@ export declare namespace CreateProjectOutput {
1147
1150
  const filterSensitiveLog: (obj: CreateProjectOutput) => any;
1148
1151
  }
1149
1152
 
1150
- export interface ResourceAlreadyExistsException extends __SmithyException, $MetadataBearer {
1151
- name: "ResourceAlreadyExistsException";
1152
- $fault: "client";
1153
- message?: string;
1153
+ export declare class ResourceAlreadyExistsException extends __BaseException {
1154
+ readonly name: "ResourceAlreadyExistsException";
1155
+ readonly $fault: "client";
1156
+
1157
+ constructor(opts: __ExceptionOptionType<ResourceAlreadyExistsException, __BaseException>);
1154
1158
  }
1155
1159
  export interface CreateReportGroupInput {
1156
1160
 
@@ -1197,16 +1201,18 @@ export declare namespace CreateWebhookOutput {
1197
1201
  const filterSensitiveLog: (obj: CreateWebhookOutput) => any;
1198
1202
  }
1199
1203
 
1200
- export interface OAuthProviderException extends __SmithyException, $MetadataBearer {
1201
- name: "OAuthProviderException";
1202
- $fault: "client";
1203
- message?: string;
1204
+ export declare class OAuthProviderException extends __BaseException {
1205
+ readonly name: "OAuthProviderException";
1206
+ readonly $fault: "client";
1207
+
1208
+ constructor(opts: __ExceptionOptionType<OAuthProviderException, __BaseException>);
1204
1209
  }
1205
1210
 
1206
- export interface ResourceNotFoundException extends __SmithyException, $MetadataBearer {
1207
- name: "ResourceNotFoundException";
1208
- $fault: "client";
1209
- message?: string;
1211
+ export declare class ResourceNotFoundException extends __BaseException {
1212
+ readonly name: "ResourceNotFoundException";
1213
+ readonly $fault: "client";
1214
+
1215
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
1210
1216
  }
1211
1217
  export interface DeleteBuildBatchInput {
1212
1218
 
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: CodeBuildClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: CodeBuildClientConfig) => {
6
6
  defaultsMode: import("@aws-sdk/types").Provider<import("@aws-sdk/smithy-client").ResolvedDefaultsMode>;
7
7
  base64Decoder: import("@aws-sdk/types").Decoder;
8
8
  base64Encoder: import("@aws-sdk/types").Encoder;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  credentialDefaultProvider: (input: any) => import("@aws-sdk/types").Provider<import("@aws-sdk/types").Credentials>;
11
11
  defaultUserAgentProvider: import("@aws-sdk/types").Provider<import("@aws-sdk/types").UserAgent>;
12
12
  maxAttempts: number | import("@aws-sdk/types").Provider<number>;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: CodeBuildClientConfig) => {
6
6
  requestHandler: (import("@aws-sdk/types").RequestHandler<any, any, import("@aws-sdk/types").HttpHandlerOptions> & import("@aws-sdk/protocol-http").HttpHandler) | import("@aws-sdk/fetch-http-handler").FetchHttpHandler;
7
7
  apiVersion: string;
8
8
  urlParser: import("@aws-sdk/types").UrlParser;
9
- bodyLengthChecker: (body: any) => number | undefined;
9
+ bodyLengthChecker: import("@aws-sdk/types").BodyLengthCalculator;
10
10
  streamCollector: import("@aws-sdk/types").StreamCollector;
11
11
  base64Decoder: import("@aws-sdk/types").Decoder;
12
12
  base64Encoder: import("@aws-sdk/types").Encoder;
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.52.0",
4
+ "version": "3.54.1",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -18,34 +18,34 @@
18
18
  "dependencies": {
19
19
  "@aws-crypto/sha256-browser": "2.0.0",
20
20
  "@aws-crypto/sha256-js": "2.0.0",
21
- "@aws-sdk/client-sts": "3.52.0",
22
- "@aws-sdk/config-resolver": "3.52.0",
23
- "@aws-sdk/credential-provider-node": "3.52.0",
24
- "@aws-sdk/fetch-http-handler": "3.52.0",
25
- "@aws-sdk/hash-node": "3.52.0",
26
- "@aws-sdk/invalid-dependency": "3.52.0",
27
- "@aws-sdk/middleware-content-length": "3.52.0",
28
- "@aws-sdk/middleware-host-header": "3.52.0",
29
- "@aws-sdk/middleware-logger": "3.52.0",
30
- "@aws-sdk/middleware-retry": "3.52.0",
31
- "@aws-sdk/middleware-serde": "3.52.0",
32
- "@aws-sdk/middleware-signing": "3.52.0",
33
- "@aws-sdk/middleware-stack": "3.52.0",
34
- "@aws-sdk/middleware-user-agent": "3.52.0",
35
- "@aws-sdk/node-config-provider": "3.52.0",
36
- "@aws-sdk/node-http-handler": "3.52.0",
37
- "@aws-sdk/protocol-http": "3.52.0",
38
- "@aws-sdk/smithy-client": "3.52.0",
39
- "@aws-sdk/types": "3.52.0",
40
- "@aws-sdk/url-parser": "3.52.0",
21
+ "@aws-sdk/client-sts": "3.54.1",
22
+ "@aws-sdk/config-resolver": "3.54.1",
23
+ "@aws-sdk/credential-provider-node": "3.54.1",
24
+ "@aws-sdk/fetch-http-handler": "3.54.1",
25
+ "@aws-sdk/hash-node": "3.54.1",
26
+ "@aws-sdk/invalid-dependency": "3.54.1",
27
+ "@aws-sdk/middleware-content-length": "3.54.1",
28
+ "@aws-sdk/middleware-host-header": "3.54.1",
29
+ "@aws-sdk/middleware-logger": "3.54.1",
30
+ "@aws-sdk/middleware-retry": "3.54.1",
31
+ "@aws-sdk/middleware-serde": "3.54.1",
32
+ "@aws-sdk/middleware-signing": "3.54.1",
33
+ "@aws-sdk/middleware-stack": "3.54.1",
34
+ "@aws-sdk/middleware-user-agent": "3.54.1",
35
+ "@aws-sdk/node-config-provider": "3.54.1",
36
+ "@aws-sdk/node-http-handler": "3.54.1",
37
+ "@aws-sdk/protocol-http": "3.54.1",
38
+ "@aws-sdk/smithy-client": "3.54.1",
39
+ "@aws-sdk/types": "3.54.1",
40
+ "@aws-sdk/url-parser": "3.54.1",
41
41
  "@aws-sdk/util-base64-browser": "3.52.0",
42
42
  "@aws-sdk/util-base64-node": "3.52.0",
43
- "@aws-sdk/util-body-length-browser": "3.52.0",
44
- "@aws-sdk/util-body-length-node": "3.52.0",
45
- "@aws-sdk/util-defaults-mode-browser": "3.52.0",
46
- "@aws-sdk/util-defaults-mode-node": "3.52.0",
47
- "@aws-sdk/util-user-agent-browser": "3.52.0",
48
- "@aws-sdk/util-user-agent-node": "3.52.0",
43
+ "@aws-sdk/util-body-length-browser": "3.54.0",
44
+ "@aws-sdk/util-body-length-node": "3.54.0",
45
+ "@aws-sdk/util-defaults-mode-browser": "3.54.1",
46
+ "@aws-sdk/util-defaults-mode-node": "3.54.1",
47
+ "@aws-sdk/util-user-agent-browser": "3.54.1",
48
+ "@aws-sdk/util-user-agent-node": "3.54.1",
49
49
  "@aws-sdk/util-utf8-browser": "3.52.0",
50
50
  "@aws-sdk/util-utf8-node": "3.52.0",
51
51
  "tslib": "^2.3.0"