Skip to content

Commit 41c7989

Browse files
committed
Merge branch 'main' into chore-remove-ecs-integ-test
2 parents e15126c + 20517d9 commit 41c7989

File tree

33 files changed

+5088
-556
lines changed

33 files changed

+5088
-556
lines changed

.github/workflows/codebuild-ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,8 @@ jobs:
8585
with:
8686
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
8787
aws-region: us-west-2
88+
- name: Configure Gradle
89+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
8890
- name: Run Service Check Batch and Calculate Artifact Size Metrics
8991
id: svc-check-batch
9092
run: |
@@ -212,6 +214,8 @@ jobs:
212214
with:
213215
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
214216
aws-region: us-west-2
217+
- name: Configure Gradle
218+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
215219
- name: Calculate Artifact Size Metrics
216220
id: svc-check-batch
217221
run: |

.github/workflows/continuous-integration.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ jobs:
3333
path: 'aws-sdk-kotlin'
3434
- name: Setup Build
3535
uses: ./aws-sdk-kotlin/.github/actions/setup-build
36+
- name: Configure Gradle
37+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
38+
with:
39+
working-directory: ./aws-sdk-kotlin
3640
- name: Test
3741
working-directory: ./aws-sdk-kotlin
3842
shell: bash
@@ -60,6 +64,10 @@ jobs:
6064
path: 'aws-sdk-kotlin'
6165
- name: Setup Build
6266
uses: ./aws-sdk-kotlin/.github/actions/setup-build
67+
- name: Configure Gradle - smithy-kotlin
68+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
69+
with:
70+
working-directory: ./smithy-kotlin
6371
- name: Build smithy-kotlin
6472
working-directory: ./smithy-kotlin
6573
shell: bash
@@ -68,6 +76,10 @@ jobs:
6876
pwd
6977
./gradlew --parallel assemble
7078
./gradlew publishToMavenLocal
79+
- name: Configure Gradle aws-sdk-kotlin
80+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
81+
with:
82+
working-directory: ./aws-sdk-kotlin
7183
- name: Test
7284
working-directory: ./aws-sdk-kotlin
7385
shell: bash

.github/workflows/kat-transform.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ jobs:
3838
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
3939
aws-region: us-west-2
4040

41+
- name: Configure Gradle
42+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
43+
with:
44+
working-directory: ./aws-sdk-kotlin
45+
4146
- name: Setup kat
4247
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main
4348

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ jobs:
2121
steps:
2222
- name: Checkout sources
2323
uses: actions/checkout@v4
24+
- name: Configure Gradle
25+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
2426
- name: Lint ${{ env.PACKAGE_NAME }}
2527
run: |
2628
./gradlew ktlint

.github/workflows/update-release-branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343
distribution: 'corretto'
4444
java-version: 17
4545
cache: 'gradle'
46+
- name: Configure Gradle
47+
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
4648
- name: Check merge base
4749
shell: bash
4850
run: |

CHANGELOG.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,64 @@
11
# Changelog
22

3+
## [1.4.14] - 02/05/2025
4+
5+
### Documentation
6+
* (**rds**) Documentation updates to clarify the description for the parameter AllocatedStorage for the DB cluster data type, the description for the parameter DeleteAutomatedBackups for the DeleteDBCluster API operation, and removing an outdated note for the CreateDBParameterGroup API operation.
7+
8+
## [1.4.13] - 02/04/2025
9+
10+
### Features
11+
* (**databasemigrationservice**) Introduces TargetDataSettings with the TablePreparationMode option available for data migrations.
12+
* (**iam**) This release adds support for accepting encrypted SAML assertions. Customers can now configure their identity provider to encrypt the SAML assertions it sends to IAM.
13+
* (**neptunegraph**) Added argument to `list-export` to filter by graph ID
14+
* (**qbusiness**) Adds functionality to enable/disable a new Q Business Chat orchestration feature. If enabled, Q Business can orchestrate over datasources and plugins without the need for customers to select specific chat modes.
15+
16+
### Documentation
17+
* (**datasync**) Doc-only update to provide more information on using Kerberos authentication with SMB locations.
18+
* (**sagemaker**) IPv6 support for Hyperpod clusters
19+
20+
## [1.4.12] - 02/03/2025
21+
22+
### Features
23+
* (**mediatailor**) Add support for CloudWatch Vended Logs which allows for delivery of customer logs to CloudWatch Logs, S3, or Firehose.
24+
25+
## [1.4.11] - 01/31/2025
26+
27+
### Features
28+
* (**amp**) Add support for sending metrics to cross account and CMCK AMP workspaces through RoleConfiguration on Create/Update Scraper.
29+
* (**bedrockagentruntime**) This change is to deprecate the existing citation field under RetrieveAndGenerateStream API response in lieu of GeneratedResponsePart and RetrievedReferences
30+
* (**codebuild**) Added support for CodeBuild self-hosted Buildkite runner builds
31+
* (**georoutes**) The OptimizeWaypoints API now supports 50 waypoints per request (20 with constraints like AccessHours or AppointmentTime). It adds waypoint clustering via Clustering and ClusteringIndex for better optimization. Also, total distance validation is removed for greater flexibility.
32+
* (**sagemaker**) This release introduces a new valid value in InstanceType parameter: p5en.48xlarge, in ProductionVariant.
33+
34+
### Documentation
35+
* (**rds**) Updates to Aurora MySQL and Aurora PostgreSQL API pages with instance log type in the create and modify DB Cluster.
36+
37+
## [1.4.10] - 01/30/2025
38+
39+
### Features
40+
* (**appstream**) Add support for managing admin consent requirement on selected domains for OneDrive Storage Connectors in AppStream2.0.
41+
* (**bedrockagentruntime**) Add a 'reason' field to InternalServerException
42+
* (**ecr**) Temporarily updating dualstack endpoint support
43+
* (**ecrpublic**) Temporarily updating dualstack endpoint support
44+
* (**mediatailor**) Adds options for configuring how MediaTailor conditions ads before inserting them into the content stream. Based on the new settings, MediaTailor will either transcode ads to match the content stream as it has in the past, or it will insert ads without first transcoding them.
45+
* (**qbusiness**) Added APIs to manage QBusiness user subscriptions
46+
* (**s3tables**) You can now use the CreateTable API operation to create tables with schemas by adding an optional metadata argument.
47+
* (**verifiedpermissions**) Adds Cedar JSON format support for entities and context data in authorization requests
48+
49+
## [1.4.9] - 01/29/2025
50+
51+
### Features
52+
* (**bcmpricingcalculator**) Added ConflictException error type in DeleteBillScenario, BatchDeleteBillScenarioCommitmentModification, BatchDeleteBillScenarioUsageModification, BatchUpdateBillScenarioUsageModification, and BatchUpdateBillScenarioCommitmentModification API operations.
53+
* (**ecr**) Add support for Dualstack and Dualstack-with-FIPS Endpoints
54+
* (**ecrpublic**) Add support for Dualstack Endpoints
55+
* (**mailmanager**) This release includes a new feature for Amazon SES Mail Manager which allows customers to specify known addresses and domains and make use of those in traffic policies and rules actions to distinguish between known and unknown entries.
56+
* (**s3**) Change the type of MpuObjectSize in CompleteMultipartUploadRequest from int to long.
57+
* (**transcribestreaming**) This release adds support for AWS HealthScribe Streaming APIs within Amazon Transcribe.
58+
59+
### Fixes
60+
* Upgrade **smithy-kotlin** version to pick up fixes for header signing
61+
362
## [1.4.8] - 01/28/2025
463

564
### Features

aws-runtime/aws-config/common/src/aws/sdk/kotlin/runtime/config/profile/AwsProfile.kt

Lines changed: 23 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,7 @@ public val AwsProfile.credentialProcess: String?
8383
*/
8484
@InternalSdkApi
8585
public val AwsProfile.retryMode: RetryMode?
86-
get() = getOrNull("retry_mode")?.run {
87-
RetryMode.values().firstOrNull { it.name.equals(this, ignoreCase = true) }
88-
?: throw ConfigurationException(
89-
"retry_mode $this is not supported, should be one of: ${
90-
RetryMode.values().joinToString(", ") { it.name.lowercase() }
91-
}",
92-
)
93-
}
86+
get() = getEnumOrNull<RetryMode>("retry_mode")
9487

9588
/**
9689
* Whether service clients should make requests to the FIPS endpoint variant.
@@ -139,14 +132,7 @@ public val AwsProfile.sdkUserAgentAppId: String?
139132
*/
140133
@InternalSdkApi
141134
public val AwsProfile.accountIdEndpointMode: AccountIdEndpointMode?
142-
get() = getOrNull("account_id_endpoint_mode")?.run {
143-
AccountIdEndpointMode.values().firstOrNull { it.name.equals(this, ignoreCase = true) }
144-
?: throw ConfigurationException(
145-
"account_id_endpoint_mode $this is not supported, should be one of: ${
146-
AccountIdEndpointMode.values().joinToString(", ") { it.name.lowercase() }
147-
}",
148-
)
149-
}
135+
get() = getEnumOrNull<AccountIdEndpointMode>("account_id_endpoint_mode")
150136

151137
/**
152138
* Determines when a request should be compressed or not
@@ -174,30 +160,14 @@ public val AwsProfile.sigV4aSigningRegionSet: String?
174160
*/
175161
@InternalSdkApi
176162
public val AwsProfile.requestChecksumCalculation: RequestHttpChecksumConfig?
177-
get() = getOrNull("request_checksum_calculation")?.run {
178-
RequestHttpChecksumConfig
179-
.values()
180-
.firstOrNull { it.name.equals(this, ignoreCase = true) }
181-
?: throw ConfigurationException(
182-
"request_checksum_calculation $this is not supported, should be one of: " +
183-
RequestHttpChecksumConfig.values().joinToString(", ") { it.name.lowercase() },
184-
)
185-
}
163+
get() = getEnumOrNull<RequestHttpChecksumConfig>("request_checksum_calculation")
186164

187165
/**
188166
* Configures response checksum validation
189167
*/
190168
@InternalSdkApi
191169
public val AwsProfile.responseChecksumValidation: ResponseHttpChecksumConfig?
192-
get() = getOrNull("response_checksum_validation")?.run {
193-
ResponseHttpChecksumConfig
194-
.values()
195-
.firstOrNull { it.name.equals(this, ignoreCase = true) }
196-
?: throw ConfigurationException(
197-
"response_checksum_validation $this is not supported, should be one of: " +
198-
ResponseHttpChecksumConfig.values().joinToString(", ") { it.name.lowercase() },
199-
)
200-
}
170+
get() = getEnumOrNull<ResponseHttpChecksumConfig>("response_checksum_validation")
201171

202172
/**
203173
* Parse a config value as a boolean, ignoring case.
@@ -232,6 +202,25 @@ public fun AwsProfile.getLongOrNull(key: String, subKey: String? = null): Long?
232202
)
233203
}
234204

205+
/**
206+
* Parse a config value as an enum.
207+
*/
208+
@InternalSdkApi
209+
public inline fun <reified T : Enum<T>> AwsProfile.getEnumOrNull(key: String, subKey: String? = null): T? =
210+
getOrNull(key, subKey)?.let { value ->
211+
enumValues<T>().firstOrNull {
212+
it.name.equals(value, ignoreCase = true)
213+
} ?: throw ConfigurationException(
214+
buildString {
215+
append(key)
216+
append(" '")
217+
append(value)
218+
append("' is not supported, should be one of: ")
219+
enumValues<T>().joinTo(this) { it.name.lowercase() }
220+
},
221+
)
222+
}
223+
235224
internal fun AwsProfile.getUrlOrNull(key: String, subKey: String? = null): Url? =
236225
getOrNull(key, subKey)?.let {
237226
try {

0 commit comments

Comments
 (0)