Skip to content

Commit 56f021d

Browse files
msailesraupachz
authored andcommitted
Initial CloudFormation event (aws#138)
1 parent 6d489a8 commit 56f021d

File tree

1 file changed

+50
-0
lines changed

1 file changed

+50
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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+
package com.amazonaws.services.lambda.runtime.events;
14+
15+
import lombok.AllArgsConstructor;
16+
import lombok.Builder;
17+
import lombok.Data;
18+
import lombok.NoArgsConstructor;
19+
20+
import java.io.Serializable;
21+
import java.util.Map;
22+
23+
/**
24+
* Class to represent the custom resource request event from CloudFormation.
25+
*
26+
* CloudFormation invokes your Lambda function asynchronously with this event and includes a callback URL. The function
27+
* is responsible for returning a response to the callback URL that indicates success or failure.
28+
*
29+
* @see <a href="https://docs.aws.amazon.com/lambda/latest/dg/services-cloudformation.html">Using AWS Lambda with AWS CloudFormation</a>
30+
*
31+
* @author msailes <[email protected]>
32+
*/
33+
34+
@Data
35+
@Builder(setterPrefix = "with")
36+
@NoArgsConstructor
37+
@AllArgsConstructor
38+
public class CloudFormationCustomResourceEvent implements Serializable, Cloneable {
39+
40+
private String requestType;
41+
private String serviceToken;
42+
private String responseUrl;
43+
private String stackId;
44+
private String requestId;
45+
private String logicalResourceId;
46+
private String physicalResourceId;
47+
private String resourceType;
48+
private Map<String, Object> resourceProperties;
49+
private Map<String, Object> oldResourceProperties;
50+
}

0 commit comments

Comments
 (0)