Skip to content

Commit d6351ef

Browse files
committed
updated build number
1 parent 8afd9a4 commit d6351ef

25 files changed

+59
-42
lines changed

kotlin/services/route53/build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
22

33
plugins {
4-
kotlin("jvm") version "1.9.0"
4+
kotlin("jvm") version "2.1.0"
55
application
66
}
77

@@ -27,7 +27,7 @@ repositories {
2727
}
2828
apply(plugin = "org.jlleitschuh.gradle.ktlint")
2929
dependencies {
30-
implementation(platform("aws.sdk.kotlin:bom:1.3.112"))
30+
implementation(platform("aws.sdk.kotlin:bom:1.4.119"))
3131
implementation("aws.sdk.kotlin:route53")
3232
implementation("aws.sdk.kotlin:route53domains")
3333
implementation("aws.sdk.kotlin:secretsmanager")

kotlin/services/route53/src/main/kotlin/com/kotlin/route/CreateHealthCheck.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ suspend fun createCheck(domainName: String?): String? {
5757
healthCheckConfig = config
5858
}
5959

60-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
60+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
6161
val healthResponse = route53Client.createHealthCheck(healthCheckRequest)
6262
return healthResponse.healthCheck?.id
6363
}

kotlin/services/route53/src/main/kotlin/com/kotlin/route/CreateHostedZone.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ suspend fun createZone(domainName: String?): String? {
4747
name = domainName
4848
}
4949

50-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
50+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
5151
val zoneResponse = route53Client.createHostedZone(zoneRequest)
5252
return zoneResponse.hostedZone?.id
5353
}

kotlin/services/route53/src/main/kotlin/com/kotlin/route/DeleteHealthCheck.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ suspend fun delHealthCheck(id: String?) {
4141
healthCheckId = id
4242
}
4343

44-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
44+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
4545
route53Client.deleteHealthCheck(delRequest)
4646
println("The HealthCheck with id $id was deleted")
4747
}

kotlin/services/route53/src/main/kotlin/com/kotlin/route/DeleteHostedZone.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ suspend fun delHostedZone(hostedZoneId: String?) {
4242
id = hostedZoneId
4343
}
4444

45-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
45+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
4646
route53Client.deleteHostedZone(deleteHostedZoneRequestRequest)
4747
println("The hosted zone with id $hostedZoneId was deleted")
4848
}

kotlin/services/route53/src/main/kotlin/com/kotlin/route/GetHealthCheckStatus.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ suspend fun getHealthStatus(healthCheckIdVal: String?) {
4141
healthCheckId = healthCheckIdVal
4242
}
4343

44-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
44+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
4545
val response = route53Client.getHealthCheckStatus(statusRequest)
4646
response.healthCheckObservations?.forEach { observation ->
4747
println("(The health check observation status is ${observation.statusReport?.status}")

kotlin/services/route53/src/main/kotlin/com/kotlin/route/HelloRoute53.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ suspend fun listPricesPaginated(domainType: String) {
4343
tld = domainType
4444
}
4545

46-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
46+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
4747
route53DomainsClient
4848
.listPricesPaginated(pricesRequest)
4949
.transform { it.prices?.forEach { obj -> emit(obj) } }

kotlin/services/route53/src/main/kotlin/com/kotlin/route/ListHealthChecks.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ suspend fun listAllHealthChecks() {
2727
this.maxItems = 10
2828
}
2929

30-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
30+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
3131
val response = route53Client.listHealthChecks(requestOb)
3232
response.healthChecks?.forEach { check ->
3333
println("The health check id is ${check.id}")

kotlin/services/route53/src/main/kotlin/com/kotlin/route/ListHostedZones.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ suspend fun main() {
2222

2323
// snippet-start:[route.kotlin.list_zones.main]
2424
suspend fun listZones() {
25-
Route53Client { region = "AWS_GLOBAL" }.use { route53Client ->
25+
Route53Client.fromEnvironment { region = "AWS_GLOBAL" }.use { route53Client ->
2626
val response = route53Client.listHostedZones(ListHostedZonesRequest {})
2727
response.hostedZones?.forEach { check ->
2828
println("The name is ${check.name}")

kotlin/services/route53/src/main/kotlin/com/kotlin/route/Route53Scenario.kt

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ suspend fun getDomainDetails(domainSuggestion: String?) {
143143
GetDomainDetailRequest {
144144
domainName = domainSuggestion
145145
}
146-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
146+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
147147
val response = route53DomainsClient.getDomainDetail(detailRequest)
148148
println("The contact first name is ${response.registrantContact?.firstName}")
149149
println("The contact last name is ${response.registrantContact?.lastName}")
@@ -158,7 +158,7 @@ suspend fun getOperationalDetail(opId: String?) {
158158
GetOperationDetailRequest {
159159
operationId = opId
160160
}
161-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
161+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
162162
val response = route53DomainsClient.getOperationDetail(detailRequest)
163163
println("Operation detail message is ${response.message}")
164164
}
@@ -199,7 +199,7 @@ suspend fun requestDomainRegistration(
199199
durationInYears = 1
200200
}
201201

202-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
202+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
203203
val response = route53DomainsClient.registerDomain(domainRequest)
204204
println("Registration requested. Operation Id: ${response.operationId}")
205205
return response.operationId
@@ -213,7 +213,7 @@ suspend fun checkDomainTransferability(domainSuggestion: String?) {
213213
CheckDomainTransferabilityRequest {
214214
domainName = domainSuggestion
215215
}
216-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
216+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
217217
val response = route53DomainsClient.checkDomainTransferability(transferabilityRequest)
218218
println("Transferability: ${response.transferability?.transferable}")
219219
}
@@ -226,7 +226,7 @@ suspend fun checkDomainAvailability(domainSuggestion: String) {
226226
CheckDomainAvailabilityRequest {
227227
domainName = domainSuggestion
228228
}
229-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
229+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
230230
val response = route53DomainsClient.checkDomainAvailability(availabilityRequest)
231231
println("$domainSuggestion is ${response.availability}")
232232
}
@@ -241,7 +241,7 @@ suspend fun listDomainSuggestions(domainSuggestion: String?) {
241241
suggestionCount = 5
242242
onlyAvailable = true
243243
}
244-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
244+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
245245
val response = route53DomainsClient.getDomainSuggestions(suggestionsRequest)
246246
response.suggestionsList?.forEach { suggestion ->
247247
println("Suggestion Name: ${suggestion.domainName}")
@@ -259,7 +259,7 @@ suspend fun listAllPrices(domainType: String?) {
259259
tld = domainType
260260
}
261261

262-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
262+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
263263
route53DomainsClient
264264
.listPricesPaginated(pricesRequest)
265265
.transform { it.prices?.forEach { obj -> emit(obj) } }
@@ -290,7 +290,7 @@ suspend fun listBillingRecords() {
290290
end = timeEnd
291291
}
292292

293-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
293+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
294294
route53DomainsClient
295295
.viewBillingPaginated(viewBillingRequest)
296296
.transform { it.billingRecords?.forEach { obj -> emit(obj) } }
@@ -316,7 +316,7 @@ suspend fun listOperations() {
316316
submittedSince = time2
317317
}
318318

319-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
319+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
320320
route53DomainsClient
321321
.listOperationsPaginated(operationsRequest)
322322
.transform { it.operations?.forEach { obj -> emit(obj) } }
@@ -331,7 +331,7 @@ suspend fun listOperations() {
331331

332332
// snippet-start:[route.kotlin.domainlist.main]
333333
suspend fun listDomains() {
334-
Route53DomainsClient { region = "us-east-1" }.use { route53DomainsClient ->
334+
Route53DomainsClient.fromEnvironment { region = "us-east-1" }.use { route53DomainsClient ->
335335
route53DomainsClient
336336
.listDomainsPaginated(ListDomainsRequest {})
337337
.transform { it.domains?.forEach { obj -> emit(obj) } }

0 commit comments

Comments
 (0)