File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
kotlin/services/cloudwatch/src/main/kotlin/com/kotlin/cloudwatch Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 33
44package com.kotlin.cloudwatch
55
6- import aws.sdk.kotlin.runtime.auth.credentials.EnvironmentCredentialsProvider
76import aws.sdk.kotlin.services.cloudwatch.CloudWatchClient
87import aws.sdk.kotlin.services.cloudwatch.model.AlarmType
98import 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 ) {
You can’t perform that action at this time.
0 commit comments