io.aws.lambda.events.system.CloudFormationCustomResourceEvent Maven / Gradle / Ivy
package io.aws.lambda.events.system;
import lombok.Data;
import lombok.experimental.Accessors;
import org.jetbrains.annotations.NotNull;
import java.io.Serializable;
import java.util.Collections;
import java.util.Map;
/**
* Class to represent the custom resource request event from CloudFormation.
*
* CloudFormation invokes your Lambda function asynchronously with this event
* and includes a callback URL. The function is responsible for returning a
* response to the callback URL that indicates success or failure.
*
* @see Using
* AWS Lambda with AWS CloudFormation
*/
@Data
@Accessors(chain = true)
public class CloudFormationCustomResourceEvent implements Serializable {
private String requestType;
private String serviceToken;
private String responseUrl;
private String stackId;
private String requestId;
private String logicalResourceId;
private String physicalResourceId;
private String resourceType;
private Map resourceProperties;
private Map oldResourceProperties;
public @NotNull Map getResourceProperties() {
return resourceProperties == null ? Collections.emptyMap() : resourceProperties;
}
public @NotNull Map getOldResourceProperties() {
return oldResourceProperties == null ? Collections.emptyMap() : oldResourceProperties;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy