@aws-sdk/client-codebuild 3.36.0 → 3.39.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 (133) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist-cjs/CodeBuild.js +0 -13
  3. package/dist-cjs/CodeBuildClient.js +0 -18
  4. package/dist-cjs/commands/BatchDeleteBuildsCommand.js +0 -24
  5. package/dist-cjs/commands/BatchGetBuildBatchesCommand.js +0 -24
  6. package/dist-cjs/commands/BatchGetBuildsCommand.js +0 -24
  7. package/dist-cjs/commands/BatchGetProjectsCommand.js +0 -24
  8. package/dist-cjs/commands/BatchGetReportGroupsCommand.js +0 -26
  9. package/dist-cjs/commands/BatchGetReportsCommand.js +0 -26
  10. package/dist-cjs/commands/CreateProjectCommand.js +0 -24
  11. package/dist-cjs/commands/CreateReportGroupCommand.js +0 -26
  12. package/dist-cjs/commands/CreateWebhookCommand.js +0 -34
  13. package/dist-cjs/commands/DeleteBuildBatchCommand.js +0 -24
  14. package/dist-cjs/commands/DeleteProjectCommand.js +0 -25
  15. package/dist-cjs/commands/DeleteReportCommand.js +0 -26
  16. package/dist-cjs/commands/DeleteReportGroupCommand.js +0 -24
  17. package/dist-cjs/commands/DeleteResourcePolicyCommand.js +0 -24
  18. package/dist-cjs/commands/DeleteSourceCredentialsCommand.js +0 -24
  19. package/dist-cjs/commands/DeleteWebhookCommand.js +0 -26
  20. package/dist-cjs/commands/DescribeCodeCoveragesCommand.js +0 -24
  21. package/dist-cjs/commands/DescribeTestCasesCommand.js +0 -26
  22. package/dist-cjs/commands/GetReportGroupTrendCommand.js +0 -24
  23. package/dist-cjs/commands/GetResourcePolicyCommand.js +0 -24
  24. package/dist-cjs/commands/ImportSourceCredentialsCommand.js +0 -25
  25. package/dist-cjs/commands/InvalidateProjectCacheCommand.js +0 -24
  26. package/dist-cjs/commands/ListBuildBatchesCommand.js +0 -24
  27. package/dist-cjs/commands/ListBuildBatchesForProjectCommand.js +0 -24
  28. package/dist-cjs/commands/ListBuildsCommand.js +0 -24
  29. package/dist-cjs/commands/ListBuildsForProjectCommand.js +0 -25
  30. package/dist-cjs/commands/ListCuratedEnvironmentImagesCommand.js +0 -24
  31. package/dist-cjs/commands/ListProjectsCommand.js +0 -25
  32. package/dist-cjs/commands/ListReportGroupsCommand.js +0 -26
  33. package/dist-cjs/commands/ListReportsCommand.js +0 -26
  34. package/dist-cjs/commands/ListReportsForReportGroupCommand.js +0 -26
  35. package/dist-cjs/commands/ListSharedProjectsCommand.js +0 -24
  36. package/dist-cjs/commands/ListSharedReportGroupsCommand.js +0 -25
  37. package/dist-cjs/commands/ListSourceCredentialsCommand.js +0 -24
  38. package/dist-cjs/commands/PutResourcePolicyCommand.js +0 -25
  39. package/dist-cjs/commands/RetryBuildBatchCommand.js +0 -24
  40. package/dist-cjs/commands/RetryBuildCommand.js +0 -24
  41. package/dist-cjs/commands/StartBuildBatchCommand.js +0 -24
  42. package/dist-cjs/commands/StartBuildCommand.js +0 -24
  43. package/dist-cjs/commands/StopBuildBatchCommand.js +0 -24
  44. package/dist-cjs/commands/StopBuildCommand.js +0 -24
  45. package/dist-cjs/commands/UpdateProjectCommand.js +0 -24
  46. package/dist-cjs/commands/UpdateProjectVisibilityCommand.js +0 -61
  47. package/dist-cjs/commands/UpdateReportGroupCommand.js +0 -26
  48. package/dist-cjs/commands/UpdateWebhookCommand.js +0 -28
  49. package/dist-cjs/commands/index.js +48 -0
  50. package/dist-cjs/endpoints.js +6 -1
  51. package/dist-cjs/index.js +4 -60
  52. package/dist-cjs/models/models_0.js +0 -444
  53. package/dist-cjs/pagination/DescribeCodeCoveragesPaginator.js +0 -10
  54. package/dist-cjs/pagination/DescribeTestCasesPaginator.js +0 -10
  55. package/dist-cjs/pagination/ListBuildBatchesForProjectPaginator.js +0 -10
  56. package/dist-cjs/pagination/ListBuildBatchesPaginator.js +0 -10
  57. package/dist-cjs/pagination/ListBuildsForProjectPaginator.js +0 -10
  58. package/dist-cjs/pagination/ListBuildsPaginator.js +0 -10
  59. package/dist-cjs/pagination/ListProjectsPaginator.js +0 -10
  60. package/dist-cjs/pagination/ListReportGroupsPaginator.js +0 -10
  61. package/dist-cjs/pagination/ListReportsForReportGroupPaginator.js +0 -10
  62. package/dist-cjs/pagination/ListReportsPaginator.js +0 -10
  63. package/dist-cjs/pagination/ListSharedProjectsPaginator.js +0 -10
  64. package/dist-cjs/pagination/ListSharedReportGroupsPaginator.js +0 -10
  65. package/dist-cjs/pagination/index.js +16 -0
  66. package/dist-cjs/protocols/Aws_json1_1.js +0 -5
  67. package/dist-cjs/runtimeConfig.browser.js +1 -5
  68. package/dist-cjs/runtimeConfig.js +1 -5
  69. package/dist-cjs/runtimeConfig.native.js +0 -3
  70. package/dist-cjs/runtimeConfig.shared.js +0 -3
  71. package/dist-es/commands/index.js +45 -0
  72. package/dist-es/endpoints.js +6 -1
  73. package/dist-es/index.js +4 -60
  74. package/dist-es/pagination/index.js +13 -0
  75. package/dist-types/commands/index.d.ts +45 -0
  76. package/dist-types/index.d.ts +4 -60
  77. package/dist-types/pagination/index.d.ts +13 -0
  78. package/dist-types/ts3.4/CodeBuild.d.ts +46 -225
  79. package/dist-types/ts3.4/CodeBuildClient.d.ts +24 -99
  80. package/dist-types/ts3.4/commands/BatchDeleteBuildsCommand.d.ts +2 -20
  81. package/dist-types/ts3.4/commands/BatchGetBuildBatchesCommand.d.ts +2 -20
  82. package/dist-types/ts3.4/commands/BatchGetBuildsCommand.d.ts +2 -20
  83. package/dist-types/ts3.4/commands/BatchGetProjectsCommand.d.ts +2 -20
  84. package/dist-types/ts3.4/commands/BatchGetReportGroupsCommand.d.ts +2 -22
  85. package/dist-types/ts3.4/commands/BatchGetReportsCommand.d.ts +2 -22
  86. package/dist-types/ts3.4/commands/CreateProjectCommand.d.ts +2 -20
  87. package/dist-types/ts3.4/commands/CreateReportGroupCommand.d.ts +2 -22
  88. package/dist-types/ts3.4/commands/CreateWebhookCommand.d.ts +2 -30
  89. package/dist-types/ts3.4/commands/DeleteBuildBatchCommand.d.ts +2 -20
  90. package/dist-types/ts3.4/commands/DeleteProjectCommand.d.ts +2 -21
  91. package/dist-types/ts3.4/commands/DeleteReportCommand.d.ts +2 -22
  92. package/dist-types/ts3.4/commands/DeleteReportGroupCommand.d.ts +2 -20
  93. package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +2 -20
  94. package/dist-types/ts3.4/commands/DeleteSourceCredentialsCommand.d.ts +2 -20
  95. package/dist-types/ts3.4/commands/DeleteWebhookCommand.d.ts +2 -22
  96. package/dist-types/ts3.4/commands/DescribeCodeCoveragesCommand.d.ts +2 -20
  97. package/dist-types/ts3.4/commands/DescribeTestCasesCommand.d.ts +2 -22
  98. package/dist-types/ts3.4/commands/GetReportGroupTrendCommand.d.ts +2 -20
  99. package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +2 -20
  100. package/dist-types/ts3.4/commands/ImportSourceCredentialsCommand.d.ts +2 -21
  101. package/dist-types/ts3.4/commands/InvalidateProjectCacheCommand.d.ts +2 -20
  102. package/dist-types/ts3.4/commands/ListBuildBatchesCommand.d.ts +2 -20
  103. package/dist-types/ts3.4/commands/ListBuildBatchesForProjectCommand.d.ts +2 -20
  104. package/dist-types/ts3.4/commands/ListBuildsCommand.d.ts +2 -20
  105. package/dist-types/ts3.4/commands/ListBuildsForProjectCommand.d.ts +2 -21
  106. package/dist-types/ts3.4/commands/ListCuratedEnvironmentImagesCommand.d.ts +2 -20
  107. package/dist-types/ts3.4/commands/ListProjectsCommand.d.ts +2 -21
  108. package/dist-types/ts3.4/commands/ListReportGroupsCommand.d.ts +2 -22
  109. package/dist-types/ts3.4/commands/ListReportsCommand.d.ts +2 -22
  110. package/dist-types/ts3.4/commands/ListReportsForReportGroupCommand.d.ts +2 -22
  111. package/dist-types/ts3.4/commands/ListSharedProjectsCommand.d.ts +2 -20
  112. package/dist-types/ts3.4/commands/ListSharedReportGroupsCommand.d.ts +2 -21
  113. package/dist-types/ts3.4/commands/ListSourceCredentialsCommand.d.ts +2 -20
  114. package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +2 -21
  115. package/dist-types/ts3.4/commands/RetryBuildBatchCommand.d.ts +2 -20
  116. package/dist-types/ts3.4/commands/RetryBuildCommand.d.ts +2 -20
  117. package/dist-types/ts3.4/commands/StartBuildBatchCommand.d.ts +2 -20
  118. package/dist-types/ts3.4/commands/StartBuildCommand.d.ts +2 -20
  119. package/dist-types/ts3.4/commands/StopBuildBatchCommand.d.ts +2 -20
  120. package/dist-types/ts3.4/commands/StopBuildCommand.d.ts +2 -20
  121. package/dist-types/ts3.4/commands/UpdateProjectCommand.d.ts +2 -20
  122. package/dist-types/ts3.4/commands/UpdateProjectVisibilityCommand.d.ts +2 -57
  123. package/dist-types/ts3.4/commands/UpdateReportGroupCommand.d.ts +2 -22
  124. package/dist-types/ts3.4/commands/UpdateWebhookCommand.d.ts +2 -24
  125. package/dist-types/ts3.4/commands/index.d.ts +45 -0
  126. package/dist-types/ts3.4/index.d.ts +4 -60
  127. package/dist-types/ts3.4/models/models_0.d.ts +768 -4566
  128. package/dist-types/ts3.4/pagination/index.d.ts +13 -0
  129. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -3
  130. package/dist-types/ts3.4/runtimeConfig.d.ts +1 -3
  131. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -3
  132. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +1 -3
  133. package/package.json +32 -32
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p> Gets a list of projects that are shared with other Amazon Web Services accounts or users. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, ListSharedProjectsCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, ListSharedProjectsCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new ListSharedProjectsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListSharedProjectsCommandInput} for command's `input` shape.
21
- * @see {@link ListSharedProjectsCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListSharedProjectsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p> Gets a list of report groups that are shared with other Amazon Web Services accounts or users.
10
- * </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CodeBuildClient, ListSharedReportGroupsCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
15
- * // const { CodeBuildClient, ListSharedReportGroupsCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
16
- * const client = new CodeBuildClient(config);
17
- * const command = new ListSharedReportGroupsCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link ListSharedReportGroupsCommandInput} for command's `input` shape.
22
- * @see {@link ListSharedReportGroupsCommandOutput} for command's `response` shape.
23
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class ListSharedReportGroupsCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p> Returns a list of <code>SourceCredentialsInfo</code> objects. </p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, ListSourceCredentialsCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, ListSourceCredentialsCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new ListSourceCredentialsCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link ListSourceCredentialsCommandInput} for command's `input` shape.
21
- * @see {@link ListSourceCredentialsCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class ListSourceCredentialsCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,36 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p> Stores a resource policy for the ARN of a <code>Project</code> or
10
- * <code>ReportGroup</code> object. </p>
11
- * @example
12
- * Use a bare-bones client and the command you need to make an API call.
13
- * ```javascript
14
- * import { CodeBuildClient, PutResourcePolicyCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
15
- * // const { CodeBuildClient, PutResourcePolicyCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
16
- * const client = new CodeBuildClient(config);
17
- * const command = new PutResourcePolicyCommand(input);
18
- * const response = await client.send(command);
19
- * ```
20
- *
21
- * @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
22
- * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
23
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
24
- *
25
- */
26
8
  class PutResourcePolicyCommand extends smithy_client_1.Command {
27
- // Start section: command_properties
28
- // End section: command_properties
29
9
  constructor(input) {
30
- // Start section: command_constructor
31
10
  super();
32
11
  this.input = input;
33
- // End section: command_constructor
34
12
  }
35
- /**
36
- * @internal
37
- */
38
13
  resolveMiddleware(clientStack, configuration, options) {
39
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
40
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Restarts a failed batch build. Only batch builds that have failed can be retried.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, RetryBuildBatchCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, RetryBuildBatchCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new RetryBuildBatchCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RetryBuildBatchCommandInput} for command's `input` shape.
21
- * @see {@link RetryBuildBatchCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RetryBuildBatchCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Restarts a build.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, RetryBuildCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, RetryBuildCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new RetryBuildCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link RetryBuildCommandInput} for command's `input` shape.
21
- * @see {@link RetryBuildCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class RetryBuildCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Starts a batch build for a project.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, StartBuildBatchCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, StartBuildBatchCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new StartBuildBatchCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link StartBuildBatchCommandInput} for command's `input` shape.
21
- * @see {@link StartBuildBatchCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class StartBuildBatchCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Starts running a build.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, StartBuildCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, StartBuildCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new StartBuildCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link StartBuildCommandInput} for command's `input` shape.
21
- * @see {@link StartBuildCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class StartBuildCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Stops a running batch build.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, StopBuildBatchCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, StopBuildBatchCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new StopBuildBatchCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link StopBuildBatchCommandInput} for command's `input` shape.
21
- * @see {@link StopBuildBatchCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class StopBuildBatchCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Attempts to stop running a build.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, StopBuildCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, StopBuildCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new StopBuildCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link StopBuildCommandInput} for command's `input` shape.
21
- * @see {@link StopBuildCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class StopBuildCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,35 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Changes the settings of a build project.</p>
10
- * @example
11
- * Use a bare-bones client and the command you need to make an API call.
12
- * ```javascript
13
- * import { CodeBuildClient, UpdateProjectCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
14
- * // const { CodeBuildClient, UpdateProjectCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
15
- * const client = new CodeBuildClient(config);
16
- * const command = new UpdateProjectCommand(input);
17
- * const response = await client.send(command);
18
- * ```
19
- *
20
- * @see {@link UpdateProjectCommandInput} for command's `input` shape.
21
- * @see {@link UpdateProjectCommandOutput} for command's `response` shape.
22
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
23
- *
24
- */
25
8
  class UpdateProjectCommand extends smithy_client_1.Command {
26
- // Start section: command_properties
27
- // End section: command_properties
28
9
  constructor(input) {
29
- // Start section: command_constructor
30
10
  super();
31
11
  this.input = input;
32
- // End section: command_constructor
33
12
  }
34
- /**
35
- * @internal
36
- */
37
13
  resolveMiddleware(clientStack, configuration, options) {
38
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
39
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,72 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>Changes the public visibility for a project. The project's build results, logs, and
10
- * artifacts are available to the general public. For more information, see <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/public-builds.html">Public build
11
- * projects</a> in the <i>CodeBuild User Guide</i>.</p>
12
- * <important>
13
- * <p>The following should be kept in mind when making your projects public:</p>
14
- * <ul>
15
- * <li>
16
- * <p>All of a project's build results, logs, and artifacts, including builds that were run
17
- * when the project was private, are available to the general public.</p>
18
- * </li>
19
- * <li>
20
- * <p>All build logs and artifacts are available to the public. Environment variables, source
21
- * code, and other sensitive information may have been output to the build logs and artifacts.
22
- * You must be careful about what information is output to the build logs. Some best practice
23
- * are:</p>
24
- * <ul>
25
- * <li>
26
- * <p>Do not store sensitive values, especially Amazon Web Services access key IDs and secret access
27
- * keys, in environment variables. We recommend that you use an Amazon EC2 Systems Manager Parameter Store
28
- * or Secrets Manager to store sensitive values.</p>
29
- * </li>
30
- * <li>
31
- * <p>Follow <a href="https://docs.aws.amazon.com/codebuild/latest/userguide/webhooks.html#webhook-best-practices">Best
32
- * practices for using webhooks</a> in the <i>CodeBuild User
33
- * Guide</i> to limit which entities can trigger a build, and do
34
- * not store the buildspec in the project itself, to ensure that your webhooks are as
35
- * secure as possible.</p>
36
- * </li>
37
- * </ul>
38
- * </li>
39
- * <li>
40
- * <p>A malicious user can use public builds to distribute malicious artifacts. We recommend
41
- * that you review all pull requests to verify that the pull request is a legitimate change. We
42
- * also recommend that you validate any artifacts with their checksums to make sure that the
43
- * correct artifacts are being downloaded.</p>
44
- * </li>
45
- * </ul>
46
- * </important>
47
- * @example
48
- * Use a bare-bones client and the command you need to make an API call.
49
- * ```javascript
50
- * import { CodeBuildClient, UpdateProjectVisibilityCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
51
- * // const { CodeBuildClient, UpdateProjectVisibilityCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
52
- * const client = new CodeBuildClient(config);
53
- * const command = new UpdateProjectVisibilityCommand(input);
54
- * const response = await client.send(command);
55
- * ```
56
- *
57
- * @see {@link UpdateProjectVisibilityCommandInput} for command's `input` shape.
58
- * @see {@link UpdateProjectVisibilityCommandOutput} for command's `response` shape.
59
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
60
- *
61
- */
62
8
  class UpdateProjectVisibilityCommand extends smithy_client_1.Command {
63
- // Start section: command_properties
64
- // End section: command_properties
65
9
  constructor(input) {
66
- // Start section: command_constructor
67
10
  super();
68
11
  this.input = input;
69
- // End section: command_constructor
70
12
  }
71
- /**
72
- * @internal
73
- */
74
13
  resolveMiddleware(clientStack, configuration, options) {
75
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
76
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,37 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p>
10
- * Updates a report group.
11
- * </p>
12
- * @example
13
- * Use a bare-bones client and the command you need to make an API call.
14
- * ```javascript
15
- * import { CodeBuildClient, UpdateReportGroupCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
16
- * // const { CodeBuildClient, UpdateReportGroupCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
17
- * const client = new CodeBuildClient(config);
18
- * const command = new UpdateReportGroupCommand(input);
19
- * const response = await client.send(command);
20
- * ```
21
- *
22
- * @see {@link UpdateReportGroupCommandInput} for command's `input` shape.
23
- * @see {@link UpdateReportGroupCommandOutput} for command's `response` shape.
24
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
25
- *
26
- */
27
8
  class UpdateReportGroupCommand extends smithy_client_1.Command {
28
- // Start section: command_properties
29
- // End section: command_properties
30
9
  constructor(input) {
31
- // Start section: command_constructor
32
10
  super();
33
11
  this.input = input;
34
- // End section: command_constructor
35
12
  }
36
- /**
37
- * @internal
38
- */
39
13
  resolveMiddleware(clientStack, configuration, options) {
40
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
41
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -5,39 +5,11 @@ const middleware_serde_1 = require("@aws-sdk/middleware-serde");
5
5
  const smithy_client_1 = require("@aws-sdk/smithy-client");
6
6
  const models_0_1 = require("../models/models_0");
7
7
  const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
8
- /**
9
- * <p> Updates the webhook associated with an CodeBuild build project. </p>
10
- * <note>
11
- * <p> If you use Bitbucket for your repository, <code>rotateSecret</code> is ignored.
12
- * </p>
13
- * </note>
14
- * @example
15
- * Use a bare-bones client and the command you need to make an API call.
16
- * ```javascript
17
- * import { CodeBuildClient, UpdateWebhookCommand } from "@aws-sdk/client-codebuild"; // ES Modules import
18
- * // const { CodeBuildClient, UpdateWebhookCommand } = require("@aws-sdk/client-codebuild"); // CommonJS import
19
- * const client = new CodeBuildClient(config);
20
- * const command = new UpdateWebhookCommand(input);
21
- * const response = await client.send(command);
22
- * ```
23
- *
24
- * @see {@link UpdateWebhookCommandInput} for command's `input` shape.
25
- * @see {@link UpdateWebhookCommandOutput} for command's `response` shape.
26
- * @see {@link CodeBuildClientResolvedConfig | config} for command's `input` shape.
27
- *
28
- */
29
8
  class UpdateWebhookCommand extends smithy_client_1.Command {
30
- // Start section: command_properties
31
- // End section: command_properties
32
9
  constructor(input) {
33
- // Start section: command_constructor
34
10
  super();
35
11
  this.input = input;
36
- // End section: command_constructor
37
12
  }
38
- /**
39
- * @internal
40
- */
41
13
  resolveMiddleware(clientStack, configuration, options) {
42
14
  this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
43
15
  const stack = clientStack.concat(this.middlewareStack);
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ const tslib_1 = require("tslib");
4
+ tslib_1.__exportStar(require("./BatchDeleteBuildsCommand"), exports);
5
+ tslib_1.__exportStar(require("./BatchGetBuildBatchesCommand"), exports);
6
+ tslib_1.__exportStar(require("./BatchGetBuildsCommand"), exports);
7
+ tslib_1.__exportStar(require("./BatchGetProjectsCommand"), exports);
8
+ tslib_1.__exportStar(require("./BatchGetReportGroupsCommand"), exports);
9
+ tslib_1.__exportStar(require("./BatchGetReportsCommand"), exports);
10
+ tslib_1.__exportStar(require("./CreateProjectCommand"), exports);
11
+ tslib_1.__exportStar(require("./CreateReportGroupCommand"), exports);
12
+ tslib_1.__exportStar(require("./CreateWebhookCommand"), exports);
13
+ tslib_1.__exportStar(require("./DeleteBuildBatchCommand"), exports);
14
+ tslib_1.__exportStar(require("./DeleteProjectCommand"), exports);
15
+ tslib_1.__exportStar(require("./DeleteReportCommand"), exports);
16
+ tslib_1.__exportStar(require("./DeleteReportGroupCommand"), exports);
17
+ tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports);
18
+ tslib_1.__exportStar(require("./DeleteSourceCredentialsCommand"), exports);
19
+ tslib_1.__exportStar(require("./DeleteWebhookCommand"), exports);
20
+ tslib_1.__exportStar(require("./DescribeCodeCoveragesCommand"), exports);
21
+ tslib_1.__exportStar(require("./DescribeTestCasesCommand"), exports);
22
+ tslib_1.__exportStar(require("./GetReportGroupTrendCommand"), exports);
23
+ tslib_1.__exportStar(require("./GetResourcePolicyCommand"), exports);
24
+ tslib_1.__exportStar(require("./ImportSourceCredentialsCommand"), exports);
25
+ tslib_1.__exportStar(require("./InvalidateProjectCacheCommand"), exports);
26
+ tslib_1.__exportStar(require("./ListBuildBatchesCommand"), exports);
27
+ tslib_1.__exportStar(require("./ListBuildBatchesForProjectCommand"), exports);
28
+ tslib_1.__exportStar(require("./ListBuildsCommand"), exports);
29
+ tslib_1.__exportStar(require("./ListBuildsForProjectCommand"), exports);
30
+ tslib_1.__exportStar(require("./ListCuratedEnvironmentImagesCommand"), exports);
31
+ tslib_1.__exportStar(require("./ListProjectsCommand"), exports);
32
+ tslib_1.__exportStar(require("./ListReportGroupsCommand"), exports);
33
+ tslib_1.__exportStar(require("./ListReportsCommand"), exports);
34
+ tslib_1.__exportStar(require("./ListReportsForReportGroupCommand"), exports);
35
+ tslib_1.__exportStar(require("./ListSharedProjectsCommand"), exports);
36
+ tslib_1.__exportStar(require("./ListSharedReportGroupsCommand"), exports);
37
+ tslib_1.__exportStar(require("./ListSourceCredentialsCommand"), exports);
38
+ tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports);
39
+ tslib_1.__exportStar(require("./RetryBuildBatchCommand"), exports);
40
+ tslib_1.__exportStar(require("./RetryBuildCommand"), exports);
41
+ tslib_1.__exportStar(require("./StartBuildBatchCommand"), exports);
42
+ tslib_1.__exportStar(require("./StartBuildCommand"), exports);
43
+ tslib_1.__exportStar(require("./StopBuildBatchCommand"), exports);
44
+ tslib_1.__exportStar(require("./StopBuildCommand"), exports);
45
+ tslib_1.__exportStar(require("./UpdateProjectCommand"), exports);
46
+ tslib_1.__exportStar(require("./UpdateProjectVisibilityCommand"), exports);
47
+ tslib_1.__exportStar(require("./UpdateReportGroupCommand"), exports);
48
+ tslib_1.__exportStar(require("./UpdateWebhookCommand"), exports);
@@ -57,22 +57,27 @@ const partitionHash = {
57
57
  "us-west-2",
58
58
  "us-west-2-fips",
59
59
  ],
60
+ regionRegex: "^(us|eu|ap|sa|ca|me|af)\\-\\w+\\-\\d+$",
60
61
  hostname: "codebuild.{region}.amazonaws.com",
61
62
  },
62
63
  "aws-cn": {
63
64
  regions: ["cn-north-1", "cn-northwest-1"],
65
+ regionRegex: "^cn\\-\\w+\\-\\d+$",
64
66
  hostname: "codebuild.{region}.amazonaws.com.cn",
65
67
  },
66
68
  "aws-iso": {
67
- regions: ["us-iso-east-1"],
69
+ regions: ["us-iso-east-1", "us-iso-west-1"],
70
+ regionRegex: "^us\\-iso\\-\\w+\\-\\d+$",
68
71
  hostname: "codebuild.{region}.c2s.ic.gov",
69
72
  },
70
73
  "aws-iso-b": {
71
74
  regions: ["us-isob-east-1"],
75
+ regionRegex: "^us\\-isob\\-\\w+\\-\\d+$",
72
76
  hostname: "codebuild.{region}.sc2s.sgov.gov",
73
77
  },
74
78
  "aws-us-gov": {
75
79
  regions: ["us-gov-east-1", "us-gov-east-1-fips", "us-gov-west-1", "us-gov-west-1-fips"],
80
+ regionRegex: "^us\\-gov\\-\\w+\\-\\d+$",
76
81
  hostname: "codebuild.{region}.amazonaws.com",
77
82
  },
78
83
  };