Skip to content

Commit

Permalink
Merge branch 'aws:main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
xogoodnow authored Jan 9, 2025
2 parents 16f5a8c + ebb7c02 commit 454fb00
Show file tree
Hide file tree
Showing 534 changed files with 8,273 additions and 32,000 deletions.
8 changes: 8 additions & 0 deletions .changelog/b2213048b0dd4619bd611e41eb07bcb0.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"id": "b2213048-b0dd-4619-bd61-1e41eb07bcb0",
"type": "bugfix",
"description": "Retry transient net.ErrClosed errors by default.",
"modules": [
"."
]
}
6 changes: 6 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,9 @@ If you believe the contents of any of these files need to be changed, please [op
If the PR addresses an existing bug or feature, please reference it here.

To help speed up the process and reduce the time to merge please ensure that `Allow edits by maintainers` is checked before submitting your PR. This will allow the project maintainers to make minor adjustments or improvements to the submitted PR, allow us to reduce the roundtrip time for merging your request.

# Changelog

Make sure that your pull request contains a changelog entry. You can run `make external-changelog` to create a placeholder entry. See [Changelog documents in CONTRIBUTING.md](aws/aws-sdk-go-v2/blob/main/CONTRIBUTING.md#changelog-documents) for more details.

You can generate a UUID either by running `uuidgen` or by visiting a site like [uuidtools](https://www.uuidtools.com/v4)
69 changes: 69 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,72 @@
# Release (2025-01-08)

## General Highlights
* **Dependency Update**: Updated to the latest SDK module versions

## Module Highlights
* `github.com/aws/aws-sdk-go-v2/service/rds`: [v1.93.3](service/rds/CHANGELOG.md#v1933-2025-01-08)
* **Documentation**: Updates Amazon RDS documentation to clarify the RestoreDBClusterToPointInTime description.
* `github.com/aws/aws-sdk-go-v2/service/route53`: [v1.47.0](service/route53/CHANGELOG.md#v1470-2025-01-08)
* **Feature**: Amazon Route 53 now supports the Asia Pacific (Thailand) Region (ap-southeast-7) for latency records, geoproximity records, and private DNS for Amazon VPCs in that region
* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.172.0](service/sagemaker/CHANGELOG.md#v11720-2025-01-08)
* **Feature**: Adds support for IPv6 for SageMaker HyperPod cluster nodes.

# Release (2025-01-07)

## General Highlights
* **Dependency Update**: Updated to the latest SDK module versions

## Module Highlights
* `github.com/aws/aws-sdk-go-v2/service/cloudhsmv2`: [v1.29.0](service/cloudhsmv2/CHANGELOG.md#v1290-2025-01-07)
* **Feature**: Adds support to ModifyCluster for modifying a Cluster's Hsm Type.
* `github.com/aws/aws-sdk-go-v2/service/dynamodb`: [v1.39.0](service/dynamodb/CHANGELOG.md#v1390-2025-01-07)
* **Feature**: This release makes Amazon DynamoDB point-in-time-recovery (PITR) to be configurable. You can set PITR recovery period for each table individually to between 1 and 35 days.
* `github.com/aws/aws-sdk-go-v2/service/imagebuilder`: [v1.40.0](service/imagebuilder/CHANGELOG.md#v1400-2025-01-07)
* **Feature**: This release adds support for importing images from ISO disk files. Added new ImportDiskImage API operation.
* `github.com/aws/aws-sdk-go-v2/service/iot1clickdevicesservice`: [v1.24.0](service/iot1clickdevicesservice/CHANGELOG.md#v1240-2025-01-07)
* **Feature**: Mark service/iot1clickdevicesservice and service/iot1clickprojects as deprecated. Those 2 services are no longer available for use. See https://docs.aws.amazon.com/iot/latest/developerguide/iot-legacy-services.html#faq-1-click-eol
* `github.com/aws/aws-sdk-go-v2/service/iot1clickprojects`: [v1.24.0](service/iot1clickprojects/CHANGELOG.md#v1240-2025-01-07)
* **Feature**: Mark service/iot1clickdevicesservice and service/iot1clickprojects as deprecated. Those 2 services are no longer available for use. See https://docs.aws.amazon.com/iot/latest/developerguide/iot-legacy-services.html#faq-1-click-eol

# Release (2025-01-06)

## Module Highlights
* `github.com/aws/aws-sdk-go-v2/service/iotsecuretunneling`: [v1.28.0](service/iotsecuretunneling/CHANGELOG.md#v1280-2025-01-06)
* **Feature**: Adds dualstack endpoint support for IoT Secure Tunneling
* `github.com/aws/aws-sdk-go-v2/service/supplychain`: [v1.11.0](service/supplychain/CHANGELOG.md#v1110-2025-01-06)
* **Feature**: Allow vanity DNS domain when creating a new ASC instance

# Release (2025-01-03)

## General Highlights
* **Dependency Update**: Updated to the latest SDK module versions

## Module Highlights
* `github.com/aws/aws-sdk-go-v2/service/ecs`: [v1.53.2](service/ecs/CHANGELOG.md#v1532-2025-01-03)
* **Documentation**: Adding SDK reference examples for Amazon ECS operations.
* `github.com/aws/aws-sdk-go-v2/service/route53domains`: [v1.28.2](service/route53domains/CHANGELOG.md#v1282-2025-01-03)
* **Documentation**: Doc only update for Route 53 Domains that fixes several customer-reported issues
* `github.com/aws/aws-sdk-go-v2/service/s3`: [v1.72.0](service/s3/CHANGELOG.md#v1720-2025-01-03)
* **Feature**: This change is only for updating the model regexp of CopySource which is not for validation but only for documentation and user guide change.

# Release (2025-01-02)

## Module Highlights
* `github.com/aws/aws-sdk-go-v2/service/appsync`: [v1.41.0](service/appsync/CHANGELOG.md#v1410-2025-01-02)
* **Feature**: Modify UpdateGraphQLAPI operation and flag authenticationType as required.
* `github.com/aws/aws-sdk-go-v2/service/gamelift`: [v1.38.0](service/gamelift/CHANGELOG.md#v1380-2025-01-02)
* **Feature**: Amazon GameLift releases a new game session shutdown feature. Use the Amazon GameLift console or AWS CLI to terminate an in-progress game session that's entered a bad state or is no longer needed.
* `github.com/aws/aws-sdk-go-v2/service/mediaconnect`: [v1.37.0](service/mediaconnect/CHANGELOG.md#v1370-2025-01-02)
* **Feature**: AWS Elemental MediaConnect now supports Content Quality Analysis for enhanced source stream monitoring. This enables you to track specific audio and video metrics in transport stream source flows, ensuring your content meets quality standards.
* `github.com/aws/aws-sdk-go-v2/service/mediaconvert`: [v1.65.0](service/mediaconvert/CHANGELOG.md#v1650-2025-01-02)
* **Feature**: This release adds support for the AVC3 codec and fixes an alignment issue with Japanese vertical captions.
* `github.com/aws/aws-sdk-go-v2/service/organizations`: [v1.37.0](service/organizations/CHANGELOG.md#v1370-2025-01-02)
* **Feature**: Added ALL_FEATURES_MIGRATION_ORGANIZATION_SIZE_LIMIT_EXCEEDED to ConstraintViolationException for the EnableAllFeatures operation.
* `github.com/aws/aws-sdk-go-v2/service/sagemaker`: [v1.171.0](service/sagemaker/CHANGELOG.md#v11710-2025-01-02)
* **Feature**: Adding ETag information with Model Artifacts for Model Registry
* `github.com/aws/aws-sdk-go-v2/service/sqs`: [v1.37.4](service/sqs/CHANGELOG.md#v1374-2025-01-02)
* **Documentation**: In-flight message typo fix from 20k to 120k.

# Release (2024-12-28)

## Module Highlights
Expand Down
44 changes: 32 additions & 12 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ Jump To:
1. Fork the repository.
2. In your fork, make your change in a branch that's based on this repo's `main` branch.
3. Commit the change to your fork, using a clear and descriptive commit message.
4. Create a pull request, answering any questions in the pull request form.
4. Create a changelog message running `make external-changelog`, replacing all
values in the template
5. Open a pull request, answering any questions in the pull request form.

For contributions that will take a significant amount of time, open a new
issue to pitch your idea before you get started. Explain the problem and
Expand Down Expand Up @@ -155,19 +157,37 @@ make sandbox-go18

### Changelog Documents

You can see all release changes in the `CHANGELOG.md` file at the root of the
repository. The release notes added to this file will contain service client
updates, and major SDK changes. When submitting a pull request please include an entry in `CHANGELOG_PENDING.md` under the appropriate changelog type so your changelog entry is included on the following release.
When submitting a pull request please include a changelog file on a folder named `.changelog`.
These are used to generate the content `CHANGELOG.md` and Release Notes. The format of the file is as follows:

#### Changelog Types
```
{
"id": "12345678-1234-1234-1234-123456789012"
"type": "bugfix"
"collapse": true
"description": "Fix improper use of printf-style functions.",
"modules": [
".",
"config",
"credentials",
"feature/s3/manager",
"internal/endpoints/v2",
"service/kinesis/internal/testing",
"service/transcribestreaming/internal/testing"
]
}
```

* `SDK Features` - For major additive features, internal changes that have
outward impact, or updates to the SDK foundations. This will result in a minor
version change.
* `SDK Enhancements` - For minor additive features or incremental sized changes.
This will result in a patch version change.
* `SDK Bugs` - For minor changes that resolve an issue. This will result in a
patch version change.
* id: a UUID. This should also be used for the name of the file, so if your id is `12345678-1234-1234-1234-123456789012` the file should be named `12345678-1234-1234-1234-123456789012.json/`
* type: one of the following:
* bugfix: Fixing an existing bug
* Feature: Adding a new feature to an existing service
* Release: Releasing a new module
* Dependency: Updating dependencies
* Announcement: Making an announcement, like deprecation of a module
* collapse: whether this change should appear separately on the release notes on every module listed on `modules` (`"collapse": false`), or if it should show up as a single entry (`"collapse": true`)
* description: Description of this change. Most of the times is the same as the title of the PR
* modules: which modules does this change impact. Most of the times, these are the same as the directories that you're modifying on the PR

[issues]: https://github.com/aws/aws-sdk-go-v2/issues
[pr]: https://github.com/aws/aws-sdk-go-v2/pulls
Expand Down
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -484,6 +484,14 @@ set-smithy-go-version:
fi
go run ${REPOTOOLS_CMD_EDIT_MODULE_DEPENDENCY} -s "github.com/aws/smithy-go" -v "${SMITHY_GO_VERSION}"

external-changelog:
mkdir -p .changelog
cp changelog-template.json .changelog/00000000-0000-0000-0000-000000000000.json
@echo "Generate a new UUID and update the file at .changelog/00000000-0000-0000-0000-000000000000.json"
@echo "Make sure to rename the file with your new id, like .changelog/12345678-1234-1234-1234-123456789012.json"
@echo "See CONTRIBUTING.md 'Changelog Documents' and an example at https://github.com/aws/aws-sdk-go-v2/pull/2934/files"


##################
# Linting/Verify #
##################
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ import (
)

func main() {
// Using the SDK's default configuration, loading additional config
// Using the SDK's default configuration, load additional config
// and credentials values from the environment variables, shared
// credentials, and shared configuration files
cfg, err := config.LoadDefaultConfig(context.TODO(), config.WithRegion("us-west-2"))
Expand Down
6 changes: 6 additions & 0 deletions aws/retry/retryable_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,13 @@ func (r RetryableConnectionError) IsErrorRetryable(err error) aws.Ternary {
case errors.As(err, &conErr) && conErr.ConnectionError():
retryable = true

case strings.Contains(err.Error(), "use of closed network connection"):
fallthrough
case strings.Contains(err.Error(), "connection reset"):
// The errors "connection reset" and "use of closed network connection"
// are effectively the same. It appears to be the difference between
// sync and async read of TCP RST in the stdlib's net.Conn read loop.
// see #2737
retryable = true

case errors.As(err, &urlErr):
Expand Down
4 changes: 4 additions & 0 deletions aws/retry/retryable_error_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ func TestRetryConnectionErrors(t *testing.T) {
Err: fmt.Errorf("some error %w", mockTimeoutError{b: true}),
},
},
"net.ErrClosed": {
Retryable: aws.TrueTernary,
Err: net.ErrClosed,
},
}

for name, c := range cases {
Expand Down
10 changes: 10 additions & 0 deletions changelog-template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"id": "00000000-0000-0000-0000-000000000000",
"type": "feature|bugfix|dependency",
"description": "Description of your changes",
"collapse": false,
"modules": [
"service/amplify",
"service/connect"
]
}
3 changes: 2 additions & 1 deletion codegen/sdk-codegen/aws-models/appsync.json
Original file line number Diff line number Diff line change
Expand Up @@ -10207,7 +10207,8 @@
"authenticationType": {
"target": "com.amazonaws.appsync#AuthenticationType",
"traits": {
"smithy.api#documentation": "<p>The new authentication type for the <code>GraphqlApi</code> object.</p>"
"smithy.api#documentation": "<p>The new authentication type for the <code>GraphqlApi</code> object.</p>",
"smithy.api#required": {}
}
},
"userPoolConfig": {
Expand Down
23 changes: 20 additions & 3 deletions codegen/sdk-codegen/aws-models/cloudhsm-v2.json
Original file line number Diff line number Diff line change
Expand Up @@ -1437,6 +1437,12 @@
"smithy.api#documentation": "<p>The type of HSM that the cluster contains.</p>"
}
},
"HsmTypeRollbackExpiration": {
"target": "com.amazonaws.cloudhsmv2#Timestamp",
"traits": {
"smithy.api#documentation": "<p>The timestamp until when the cluster can be rolled back to its original HSM type.</p>"
}
},
"PreCoPassword": {
"target": "com.amazonaws.cloudhsmv2#PreCoPassword",
"traits": {
Expand Down Expand Up @@ -1482,7 +1488,7 @@
"NetworkType": {
"target": "com.amazonaws.cloudhsmv2#NetworkType",
"traits": {
"smithy.api#documentation": "<p>The cluster's NetworkType can be set to either IPV4 (which is the default) or DUALSTACK.\n When set to IPV4, communication between your application and the Hardware Security Modules (HSMs) is restricted to the IPv4 protocol only.\n In contrast, the DUALSTACK network type enables communication over both the IPv4 and IPv6 protocols.\n To use the DUALSTACK option, you'll need to configure your Virtual Private Cloud (VPC) and subnets to support both IPv4 and IPv6. This involves adding IPv6 Classless Inter-Domain Routing (CIDR) blocks to the existing IPv4 CIDR blocks in your subnets.\n The choice between IPV4 and DUALSTACK network types determines the flexibility of the network addressing setup for your cluster. The DUALSTACK option provides more flexibility by allowing both IPv4 and IPv6 communication.</p>"
"smithy.api#documentation": "<p>The cluster's NetworkType can be IPv4 (the default) or DUALSTACK.\n The IPv4 NetworkType restricts communication between your application and the hardware security modules (HSMs) to the IPv4 protocol only. The DUALSTACK NetworkType enables communication over both IPv4 and IPv6 protocols.\n To use DUALSTACK, configure your virtual private cloud (VPC) and subnets to support both IPv4 and IPv6.\n This configuration involves adding IPv6 Classless Inter-Domain Routing (CIDR) blocks to the existing IPv4 CIDR blocks in your subnets.\n The NetworkType you choose affects the network addressing options for your cluster. DUALSTACK provides more flexibility by supporting both IPv4 and IPv6 communication.</p>"
}
},
"Certificates": {
Expand Down Expand Up @@ -2483,6 +2489,12 @@
"smithy.api#required": {}
}
},
"HsmType": {
"target": "com.amazonaws.cloudhsmv2#HsmType",
"traits": {
"smithy.api#documentation": "<p>The type of HSM.</p>"
}
},
"State": {
"target": "com.amazonaws.cloudhsmv2#HsmState",
"traits": {
Expand Down Expand Up @@ -2838,11 +2850,16 @@
"com.amazonaws.cloudhsmv2#ModifyClusterRequest": {
"type": "structure",
"members": {
"HsmType": {
"target": "com.amazonaws.cloudhsmv2#HsmType",
"traits": {
"smithy.api#documentation": "<p>The desired HSM type of the cluster.</p>"
}
},
"BackupRetentionPolicy": {
"target": "com.amazonaws.cloudhsmv2#BackupRetentionPolicy",
"traits": {
"smithy.api#documentation": "<p>A policy that defines how the service retains backups.</p>",
"smithy.api#required": {}
"smithy.api#documentation": "<p>A policy that defines how the service retains backups.</p>"
}
},
"ClusterId": {
Expand Down
Loading

0 comments on commit 454fb00

Please sign in to comment.