Skip to content

Commit 7538224

Browse files
msailescarlzogh
authored andcommitted
Added support for Secret Manager rotation event (aws#130)
1 parent e94abfd commit 7538224

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

aws-lambda-java-events/README.md

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
* `LexEvent`
2828
* `S3Event`
2929
* `ScheduledEvent`
30+
* `SecretsManagerRotationEvent`
3031
* `SNSEvent`
3132
* `SQSEvent`
3233

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5+
* the License. A copy of the License is located at
6+
*
7+
* http://aws.amazon.com/apache2.0
8+
*
9+
* or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10+
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11+
* and limitations under the License.
12+
*/
13+
14+
package com.amazonaws.services.lambda.runtime.events;
15+
16+
import lombok.AllArgsConstructor;
17+
import lombok.Builder;
18+
import lombok.Data;
19+
import lombok.NoArgsConstructor;
20+
21+
/**
22+
* Class to represent the events which are sent during a Secrets Manager rotation process.
23+
*
24+
* @see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/rotating-secrets-lambda-function-overview.html">Rotating secrets lambda function overview</a>
25+
*
26+
* @author msailes <[email protected]>
27+
*/
28+
29+
@Data
30+
@Builder(setterPrefix = "with")
31+
@NoArgsConstructor
32+
@AllArgsConstructor
33+
public class SecretsManagerRotationEvent {
34+
35+
private String step;
36+
private String secretId;
37+
private String clientRequestToken;
38+
39+
}

0 commit comments

Comments
 (0)