From 16dbb33a6d94aafeaed6bade0c96463dcfc1e8fc Mon Sep 17 00:00:00 2001 From: Mikolaj Grzaslewicz Date: Tue, 23 Jan 2024 09:33:07 +0100 Subject: [PATCH] Add lacking Aws.Builder.housekeeping --- CHANGELOG.md | 3 +++ .../kotlin/com/atlassian/performance/tools/aws/api/Aws.kt | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 1a534c9..4cec0eb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -23,6 +23,9 @@ Dropping a requirement of a major version of a dependency is a new contract. ## [Unreleased] [Unreleased]: https://github.com/atlassian-labs/aws-resources/compare/release-1.14.0...master +### Added +- Add `Aws.Builder.housekeeping` + ### Fixed - Tag security groups atomically when created. - Respect AWS request size limits in `TerminationBatchingEc2` and `TerminationPollingEc2`. diff --git a/src/main/kotlin/com/atlassian/performance/tools/aws/api/Aws.kt b/src/main/kotlin/com/atlassian/performance/tools/aws/api/Aws.kt index 6f72bf6..101ad39 100644 --- a/src/main/kotlin/com/atlassian/performance/tools/aws/api/Aws.kt +++ b/src/main/kotlin/com/atlassian/performance/tools/aws/api/Aws.kt @@ -402,13 +402,15 @@ class Aws private constructor( */ fun amiProvider(amiProvider: AmiProvider): Builder = apply { this.amiProvider = amiProvider } + fun housekeeping(housekeeping: Housekeeping): Builder = apply { this.housekeeping = housekeeping } + /** * @param [managedPolicyArns] A way to attach additional managed policies to [shortTermStorage]. */ - fun managedPolicyArns(managedPolicyArns: List): Builder = apply { this.managedPolicyArns = managedPolicyArns } + fun build(): Aws = Aws( region = region, credentialsProvider = credentialsProvider,