Skip to content

Commit

Permalink
Updates SDK to v2.1675.0
Browse files Browse the repository at this point in the history
  • Loading branch information
awstools committed Aug 14, 2024
1 parent a1c0ff7 commit c0ec9d3
Show file tree
Hide file tree
Showing 12 changed files with 60 additions and 39 deletions.
12 changes: 12 additions & 0 deletions .changes/2.1675.0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[
{
"type": "bugfix",
"category": "s3",
"description": "omit locationConstraint in createBucket to us-east-1"
},
{
"type": "feature",
"category": "CodeBuild",
"description": "AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project."
}
]
5 changes: 0 additions & 5 deletions .changes/next-release/bugfix-s3-9367ca5d.json

This file was deleted.

6 changes: 5 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
# Changelog for AWS SDK for JavaScript
<!--LATEST=2.1674.0-->
<!--LATEST=2.1675.0-->
<!--ENTRYINSERT-->

## 2.1675.0
* bugfix: s3: omit locationConstraint in createBucket to us-east-1
* feature: CodeBuild: AWS CodeBuild now supports using Secrets Manager to store git credentials and using multiple source credentials in a single project.

## 2.1674.0
* feature: Amplify: Add a new field "cacheConfig" that enables users to configure the CDN cache settings for an App
* feature: AppStream: This release includes following new APIs: CreateThemeForStack, DescribeThemeForStack, UpdateThemeForStack, DeleteThemeForStack to support custom branding programmatically.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ require('aws-sdk/lib/maintenance_mode_message').suppress = true;
To use the SDK in the browser, simply add the following script tag to your
HTML pages:

<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1674.0.min.js"></script>
<script src="https://sdk.amazonaws.com/js/aws-sdk-2.1675.0.min.js"></script>

You can also build a custom browser SDK with your specified set of AWS services.
This can allow you to reduce the SDK's size, specify different API versions of
Expand Down
22 changes: 12 additions & 10 deletions apis/codebuild-2016-10-06.normal.json
Original file line number Diff line number Diff line change
Expand Up @@ -523,7 +523,7 @@
"shape": "ResourceAlreadyExistsException"
}
],
"documentation": "<p> Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository. </p>"
"documentation": "<p> Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. </p>"
},
"InvalidateProjectCache": {
"name": "InvalidateProjectCache",
Expand Down Expand Up @@ -1104,7 +1104,8 @@
"OAUTH",
"BASIC_AUTH",
"PERSONAL_ACCESS_TOKEN",
"CODECONNECTIONS"
"CODECONNECTIONS",
"SECRETS_MANAGER"
]
},
"BatchDeleteBuildsInput": {
Expand Down Expand Up @@ -2907,15 +2908,15 @@
},
"token": {
"shape": "SensitiveNonEmptyString",
"documentation": "<p> For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the <code>authType</code> CODECONNECTIONS, this is the <code>connectionArn</code>.</p>"
"documentation": "<p> For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the <code>authType</code> CODECONNECTIONS, this is the <code>connectionArn</code>. For the <code>authType</code> SECRETS_MANAGER, this is the <code>secretArn</code>.</p>"
},
"serverType": {
"shape": "ServerType",
"documentation": "<p> The source provider used for this project. </p>"
},
"authType": {
"shape": "AuthType",
"documentation": "<p> The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.</p>"
"documentation": "<p> The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.</p>"
},
"shouldOverwrite": {
"shape": "WrapperBoolean",
Expand Down Expand Up @@ -3887,7 +3888,7 @@
},
"auth": {
"shape": "SourceAuth",
"documentation": "<p>Information about the authorization settings for CodeBuild to access the source code to be built.</p> <p>This information is for the CodeBuild console's use only. Your code should not get or set this information directly.</p>"
"documentation": "<p>Information about the authorization settings for CodeBuild to access the source code to be built.</p>"
},
"reportBuildStatus": {
"shape": "WrapperBoolean",
Expand Down Expand Up @@ -4500,20 +4501,21 @@
"members": {
"type": {
"shape": "SourceAuthType",
"documentation": "<p>The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.</p>"
"documentation": "<p>The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.</p>"
},
"resource": {
"shape": "String",
"documentation": "<p>The resource value that applies to the specified authorization type.</p>"
}
},
"documentation": "<p>Information about the authorization settings for CodeBuild to access the source code to be built.</p> <p>This information is for the CodeBuild console's use only. Your code should not get or set this information directly.</p>"
"documentation": "<p>Information about the authorization settings for CodeBuild to access the source code to be built.</p>"
},
"SourceAuthType": {
"type": "string",
"enum": [
"OAUTH",
"CODECONNECTIONS"
"CODECONNECTIONS",
"SECRETS_MANAGER"
]
},
"SourceCredentialsInfo": {
Expand All @@ -4529,11 +4531,11 @@
},
"authType": {
"shape": "AuthType",
"documentation": "<p> The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS. </p>"
"documentation": "<p> The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER. </p>"
},
"resource": {
"shape": "String",
"documentation": "<p>The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.</p>"
"documentation": "<p>The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER.</p>"
}
},
"documentation": "<p> Information about the credentials for a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. </p>"
Expand Down
20 changes: 10 additions & 10 deletions clients/codebuild.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,11 +196,11 @@ declare class CodeBuild extends Service {
*/
getResourcePolicy(callback?: (err: AWSError, data: CodeBuild.Types.GetResourcePolicyOutput) => void): Request<CodeBuild.Types.GetResourcePolicyOutput, AWSError>;
/**
* Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
* Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.
*/
importSourceCredentials(params: CodeBuild.Types.ImportSourceCredentialsInput, callback?: (err: AWSError, data: CodeBuild.Types.ImportSourceCredentialsOutput) => void): Request<CodeBuild.Types.ImportSourceCredentialsOutput, AWSError>;
/**
* Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, or Bitbucket repository.
* Imports the source repository credentials for an CodeBuild project that has its source code stored in a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository.
*/
importSourceCredentials(callback?: (err: AWSError, data: CodeBuild.Types.ImportSourceCredentialsOutput) => void): Request<CodeBuild.Types.ImportSourceCredentialsOutput, AWSError>;
/**
Expand Down Expand Up @@ -416,7 +416,7 @@ declare namespace CodeBuild {
export type ArtifactNamespace = "NONE"|"BUILD_ID"|string;
export type ArtifactPackaging = "NONE"|"ZIP"|string;
export type ArtifactsType = "CODEPIPELINE"|"S3"|"NO_ARTIFACTS"|string;
export type AuthType = "OAUTH"|"BASIC_AUTH"|"PERSONAL_ACCESS_TOKEN"|"CODECONNECTIONS"|string;
export type AuthType = "OAUTH"|"BASIC_AUTH"|"PERSONAL_ACCESS_TOKEN"|"CODECONNECTIONS"|"SECRETS_MANAGER"|string;
export interface BatchDeleteBuildsInput {
/**
* The IDs of the builds to delete.
Expand Down Expand Up @@ -1578,15 +1578,15 @@ declare namespace CodeBuild {
*/
username?: NonEmptyString;
/**
* For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn.
* For GitHub or GitHub Enterprise, this is the personal access token. For Bitbucket, this is either the access token or the app password. For the authType CODECONNECTIONS, this is the connectionArn. For the authType SECRETS_MANAGER, this is the secretArn.
*/
token: SensitiveNonEmptyString;
/**
* The source provider used for this project.
*/
serverType: ServerType;
/**
* The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console. Note that CODECONNECTIONS is only valid for GitLab and GitLab Self Managed.
* The type of authentication used to connect to a GitHub, GitHub Enterprise, GitLab, GitLab Self Managed, or Bitbucket repository. An OAUTH connection is not supported by the API and must be created using the CodeBuild console.
*/
authType: AuthType;
/**
Expand Down Expand Up @@ -2290,7 +2290,7 @@ declare namespace CodeBuild {
*/
buildspec?: String;
/**
* Information about the authorization settings for CodeBuild to access the source code to be built. This information is for the CodeBuild console's use only. Your code should not get or set this information directly.
* Information about the authorization settings for CodeBuild to access the source code to be built.
*/
auth?: SourceAuth;
/**
Expand Down Expand Up @@ -2629,15 +2629,15 @@ declare namespace CodeBuild {
export type SortOrderType = "ASCENDING"|"DESCENDING"|string;
export interface SourceAuth {
/**
* The authorization type to use. Valid options are OAUTH or CODECONNECTIONS.
* The authorization type to use. Valid options are OAUTH, CODECONNECTIONS, or SECRETS_MANAGER.
*/
type: SourceAuthType;
/**
* The resource value that applies to the specified authorization type.
*/
resource?: String;
}
export type SourceAuthType = "OAUTH"|"CODECONNECTIONS"|string;
export type SourceAuthType = "OAUTH"|"CODECONNECTIONS"|"SECRETS_MANAGER"|string;
export interface SourceCredentialsInfo {
/**
* The Amazon Resource Name (ARN) of the token.
Expand All @@ -2648,11 +2648,11 @@ declare namespace CodeBuild {
*/
serverType?: ServerType;
/**
* The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, or CODECONNECTIONS.
* The type of authentication used by the credentials. Valid options are OAUTH, BASIC_AUTH, PERSONAL_ACCESS_TOKEN, CODECONNECTIONS, or SECRETS_MANAGER.
*/
authType?: AuthType;
/**
* The connection ARN if your serverType type is GITLAB or GITLAB_SELF_MANAGED and your authType is CODECONNECTIONS.
* The connection ARN if your authType is CODECONNECTIONS or SECRETS_MANAGER.
*/
resource?: String;
}
Expand Down
2 changes: 1 addition & 1 deletion dist/aws-sdk-core-react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* @constant
*/
VERSION: '2.1674.0',
VERSION: '2.1675.0',

/**
* @api private
Expand Down
8 changes: 6 additions & 2 deletions dist/aws-sdk-react-native.js
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ return /******/ (function(modules) { // webpackBootstrap
/**
* @constant
*/
VERSION: '2.1674.0',
VERSION: '2.1675.0',

/**
* @api private
Expand Down Expand Up @@ -42659,7 +42659,11 @@ return /******/ (function(modules) { // webpackBootstrap
// mutate params object argument passed in by user
var copiedParams = AWS.util.copy(params);

if (hostname !== this.api.globalEndpoint && !params.CreateBucketConfiguration) {
if (
this.config.region !== 'us-east-1'
&& hostname !== this.api.globalEndpoint
&& !params.CreateBucketConfiguration
) {
copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region };
}
return this.makeRequest('createBucket', copiedParams, callback);
Expand Down
12 changes: 8 additions & 4 deletions dist/aws-sdk.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// AWS SDK for JavaScript v2.1674.0
// AWS SDK for JavaScript v2.1675.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
(function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i<t.length;i++)o(t[i]);return o}return r})()({1:[function(require,module,exports){
Expand Down Expand Up @@ -277592,7 +277592,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.1674.0',
VERSION: '2.1675.0',

/**
* @api private
Expand Down Expand Up @@ -289587,7 +289587,11 @@ AWS.util.update(AWS.S3.prototype, {
// mutate params object argument passed in by user
var copiedParams = AWS.util.copy(params);

if (hostname !== this.api.globalEndpoint && !params.CreateBucketConfiguration) {
if (
this.config.region !== 'us-east-1'
&& hostname !== this.api.globalEndpoint
&& !params.CreateBucketConfiguration
) {
copiedParams.CreateBucketConfiguration = { LocationConstraint: this.config.region };
}
return this.makeRequest('createBucket', copiedParams, callback);
Expand Down Expand Up @@ -299909,7 +299913,7 @@ var LRUCache = /** @class */ (function () {
}());
exports.LRUCache = LRUCache;
},{}],467:[function(require,module,exports){
// AWS SDK for JavaScript v2.1674.0
// AWS SDK for JavaScript v2.1675.0
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
// License at https://sdk.amazonaws.com/js/BUNDLE_LICENSE.txt
require('./browser_loader');
Expand Down
6 changes: 3 additions & 3 deletions dist/aws-sdk.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion lib/core.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ AWS.util.update(AWS, {
/**
* @constant
*/
VERSION: '2.1674.0',
VERSION: '2.1675.0',

/**
* @api private
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "aws-sdk",
"description": "AWS SDK for JavaScript",
"version": "2.1674.0",
"version": "2.1675.0",
"author": {
"name": "Amazon Web Services",
"email": "",
Expand Down

0 comments on commit c0ec9d3

Please sign in to comment.