Skip to content

Commit

Permalink
Merge branch 'main' into chore-remove-ecs-integ-test
Browse files Browse the repository at this point in the history
  • Loading branch information
ianbotsf committed Feb 5, 2025
2 parents e15126c + 20517d9 commit 41c7989
Show file tree
Hide file tree
Showing 33 changed files with 5,088 additions and 556 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/codebuild-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,8 @@ jobs:
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Run Service Check Batch and Calculate Artifact Size Metrics
id: svc-check-batch
run: |
Expand Down Expand Up @@ -212,6 +214,8 @@ jobs:
with:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Calculate Artifact Size Metrics
id: svc-check-batch
run: |
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
path: 'aws-sdk-kotlin'
- name: Setup Build
uses: ./aws-sdk-kotlin/.github/actions/setup-build
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin
- name: Test
working-directory: ./aws-sdk-kotlin
shell: bash
Expand Down Expand Up @@ -60,6 +64,10 @@ jobs:
path: 'aws-sdk-kotlin'
- name: Setup Build
uses: ./aws-sdk-kotlin/.github/actions/setup-build
- name: Configure Gradle - smithy-kotlin
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./smithy-kotlin
- name: Build smithy-kotlin
working-directory: ./smithy-kotlin
shell: bash
Expand All @@ -68,6 +76,10 @@ jobs:
pwd
./gradlew --parallel assemble
./gradlew publishToMavenLocal
- name: Configure Gradle aws-sdk-kotlin
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin
- name: Test
working-directory: ./aws-sdk-kotlin
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/kat-transform.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,11 @@ jobs:
role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }}
aws-region: us-west-2

- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
with:
working-directory: ./aws-sdk-kotlin

- name: Setup kat
uses: awslabs/aws-kotlin-repo-tools/.github/actions/setup-kat@main

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ jobs:
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Lint ${{ env.PACKAGE_NAME }}
run: |
./gradlew ktlint
2 changes: 2 additions & 0 deletions .github/workflows/update-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
distribution: 'corretto'
java-version: 17
cache: 'gradle'
- name: Configure Gradle
uses: awslabs/aws-kotlin-repo-tools/.github/actions/configure-gradle@main
- name: Check merge base
shell: bash
run: |
Expand Down
59 changes: 59 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,64 @@
# Changelog

## [1.4.14] - 02/05/2025

### Documentation
* (**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.

## [1.4.13] - 02/04/2025

### Features
* (**databasemigrationservice**) Introduces TargetDataSettings with the TablePreparationMode option available for data migrations.
* (**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.
* (**neptunegraph**) Added argument to `list-export` to filter by graph ID
* (**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.

### Documentation
* (**datasync**) Doc-only update to provide more information on using Kerberos authentication with SMB locations.
* (**sagemaker**) IPv6 support for Hyperpod clusters

## [1.4.12] - 02/03/2025

### Features
* (**mediatailor**) Add support for CloudWatch Vended Logs which allows for delivery of customer logs to CloudWatch Logs, S3, or Firehose.

## [1.4.11] - 01/31/2025

### Features
* (**amp**) Add support for sending metrics to cross account and CMCK AMP workspaces through RoleConfiguration on Create/Update Scraper.
* (**bedrockagentruntime**) This change is to deprecate the existing citation field under RetrieveAndGenerateStream API response in lieu of GeneratedResponsePart and RetrievedReferences
* (**codebuild**) Added support for CodeBuild self-hosted Buildkite runner builds
* (**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.
* (**sagemaker**) This release introduces a new valid value in InstanceType parameter: p5en.48xlarge, in ProductionVariant.

### Documentation
* (**rds**) Updates to Aurora MySQL and Aurora PostgreSQL API pages with instance log type in the create and modify DB Cluster.

## [1.4.10] - 01/30/2025

### Features
* (**appstream**) Add support for managing admin consent requirement on selected domains for OneDrive Storage Connectors in AppStream2.0.
* (**bedrockagentruntime**) Add a 'reason' field to InternalServerException
* (**ecr**) Temporarily updating dualstack endpoint support
* (**ecrpublic**) Temporarily updating dualstack endpoint support
* (**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.
* (**qbusiness**) Added APIs to manage QBusiness user subscriptions
* (**s3tables**) You can now use the CreateTable API operation to create tables with schemas by adding an optional metadata argument.
* (**verifiedpermissions**) Adds Cedar JSON format support for entities and context data in authorization requests

## [1.4.9] - 01/29/2025

### Features
* (**bcmpricingcalculator**) Added ConflictException error type in DeleteBillScenario, BatchDeleteBillScenarioCommitmentModification, BatchDeleteBillScenarioUsageModification, BatchUpdateBillScenarioUsageModification, and BatchUpdateBillScenarioCommitmentModification API operations.
* (**ecr**) Add support for Dualstack and Dualstack-with-FIPS Endpoints
* (**ecrpublic**) Add support for Dualstack Endpoints
* (**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.
* (**s3**) Change the type of MpuObjectSize in CompleteMultipartUploadRequest from int to long.
* (**transcribestreaming**) This release adds support for AWS HealthScribe Streaming APIs within Amazon Transcribe.

### Fixes
* Upgrade **smithy-kotlin** version to pick up fixes for header signing

## [1.4.8] - 01/28/2025

### Features
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,14 +83,7 @@ public val AwsProfile.credentialProcess: String?
*/
@InternalSdkApi
public val AwsProfile.retryMode: RetryMode?
get() = getOrNull("retry_mode")?.run {
RetryMode.values().firstOrNull { it.name.equals(this, ignoreCase = true) }
?: throw ConfigurationException(
"retry_mode $this is not supported, should be one of: ${
RetryMode.values().joinToString(", ") { it.name.lowercase() }
}",
)
}
get() = getEnumOrNull<RetryMode>("retry_mode")

/**
* Whether service clients should make requests to the FIPS endpoint variant.
Expand Down Expand Up @@ -139,14 +132,7 @@ public val AwsProfile.sdkUserAgentAppId: String?
*/
@InternalSdkApi
public val AwsProfile.accountIdEndpointMode: AccountIdEndpointMode?
get() = getOrNull("account_id_endpoint_mode")?.run {
AccountIdEndpointMode.values().firstOrNull { it.name.equals(this, ignoreCase = true) }
?: throw ConfigurationException(
"account_id_endpoint_mode $this is not supported, should be one of: ${
AccountIdEndpointMode.values().joinToString(", ") { it.name.lowercase() }
}",
)
}
get() = getEnumOrNull<AccountIdEndpointMode>("account_id_endpoint_mode")

/**
* Determines when a request should be compressed or not
Expand Down Expand Up @@ -174,30 +160,14 @@ public val AwsProfile.sigV4aSigningRegionSet: String?
*/
@InternalSdkApi
public val AwsProfile.requestChecksumCalculation: RequestHttpChecksumConfig?
get() = getOrNull("request_checksum_calculation")?.run {
RequestHttpChecksumConfig
.values()
.firstOrNull { it.name.equals(this, ignoreCase = true) }
?: throw ConfigurationException(
"request_checksum_calculation $this is not supported, should be one of: " +
RequestHttpChecksumConfig.values().joinToString(", ") { it.name.lowercase() },
)
}
get() = getEnumOrNull<RequestHttpChecksumConfig>("request_checksum_calculation")

/**
* Configures response checksum validation
*/
@InternalSdkApi
public val AwsProfile.responseChecksumValidation: ResponseHttpChecksumConfig?
get() = getOrNull("response_checksum_validation")?.run {
ResponseHttpChecksumConfig
.values()
.firstOrNull { it.name.equals(this, ignoreCase = true) }
?: throw ConfigurationException(
"response_checksum_validation $this is not supported, should be one of: " +
ResponseHttpChecksumConfig.values().joinToString(", ") { it.name.lowercase() },
)
}
get() = getEnumOrNull<ResponseHttpChecksumConfig>("response_checksum_validation")

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

/**
* Parse a config value as an enum.
*/
@InternalSdkApi
public inline fun <reified T : Enum<T>> AwsProfile.getEnumOrNull(key: String, subKey: String? = null): T? =
getOrNull(key, subKey)?.let { value ->
enumValues<T>().firstOrNull {
it.name.equals(value, ignoreCase = true)
} ?: throw ConfigurationException(
buildString {
append(key)
append(" '")
append(value)
append("' is not supported, should be one of: ")
enumValues<T>().joinTo(this) { it.name.lowercase() }
},
)
}

internal fun AwsProfile.getUrlOrNull(key: String, subKey: String? = null): Url? =
getOrNull(key, subKey)?.let {
try {
Expand Down
Loading

0 comments on commit 41c7989

Please sign in to comment.