Skip to content

Commit 5557e4d

Browse files
committed
updated the Kotlin SDK build
1 parent 52df0f0 commit 5557e4d

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

kotlin/services/cloudwatch/src/main/kotlin/com/kotlin/cloudwatch/CloudWatchScenario.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33

44
package com.kotlin.cloudwatch
55

6-
import aws.sdk.kotlin.runtime.auth.credentials.EnvironmentCredentialsProvider
76
import aws.sdk.kotlin.services.cloudwatch.CloudWatchClient
87
import aws.sdk.kotlin.services.cloudwatch.model.AlarmType
98
import aws.sdk.kotlin.services.cloudwatch.model.ComparisonOperator
@@ -434,8 +433,7 @@ suspend fun getAlarmHistory(
434433
historyItemType = HistoryItemType.Action
435434
}
436435

437-
CloudWatchClient.fromEnvironment {region = "us-east-1"
438-
}.use { cwClient ->
436+
CloudWatchClient.fromEnvironment { region = "us-east-1" }.use { cwClient ->
439437
val response = cwClient.describeAlarmHistory(historyRequest)
440438
val historyItems = response.alarmHistoryItems
441439
if (historyItems != null) {

0 commit comments

Comments
 (0)