File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,9 @@ object AwsClient {
144
144
final lazy val apigatewayv2 : ApiGatewayV2Client = createApiGatewayV2Client(region, httpClientBuilder)
145
145
}
146
146
147
+ inline def initialize (): AwsClient =
148
+ initializeWithProperties(Map .empty, includeEnvironmentVariables = true )
149
+
147
150
inline def initializeWithProperties (
148
151
map : Map [String , String ],
149
152
includeEnvironmentVariables : Boolean = true
Original file line number Diff line number Diff line change @@ -113,6 +113,23 @@ object AwsLambdaApi {
113
113
.toSeq
114
114
}
115
115
116
+ /** Add tags to lambda. */
117
+ inline def tagLambda (
118
+ lambdaArn : String ,
119
+ tags : Map [String , String ]
120
+ )(using aws : AwsClient ): Unit = {
121
+ AwsClient .invoke(s " tagLambda " ) {
122
+ aws.lambda
123
+ .tagResource(
124
+ TagResourceRequest
125
+ .builder()
126
+ .resource(lambdaArn)
127
+ .tags(tags.asJava)
128
+ .build()
129
+ )
130
+ }
131
+ }
132
+
116
133
/** Updates a Lambda function's code. If code signing is enabled for the function, the code package must be signed by
117
134
* a trusted publisher.
118
135
*/
You can’t perform that action at this time.
0 commit comments