InputType - Structure of custom resource configuration.OutputType - Structure of custom resource returner properties.public class CustomResourceHandler<InputType,OutputType> extends Object
| Constructor and Description |
|---|
CustomResourceHandler(Function<InputType,CustomResourceResponse<OutputType>> createAction,
Function<InputType,CustomResourceResponse<OutputType>> updateAction,
Function<InputType,CustomResourceResponse<OutputType>> deleteAction)
Initializes handler with all known current CloudFormation actions.
|
| Modifier and Type | Method and Description |
|---|---|
void |
handle(com.sunrun.cfnresponse.CfnRequest<InputType> request,
com.amazonaws.services.lambda.runtime.Context context)
Handles invocation.
|
public CustomResourceHandler(Function<InputType,CustomResourceResponse<OutputType>> createAction, Function<InputType,CustomResourceResponse<OutputType>> updateAction, Function<InputType,CustomResourceResponse<OutputType>> deleteAction)
createAction - Callback for resource creation.updateAction - Callback for resource properties update.deleteAction - Callback for resource deletion.public void handle(com.sunrun.cfnresponse.CfnRequest<InputType> request, com.amazonaws.services.lambda.runtime.Context context)
request - CloudFormation request.context - AWS Lambda context.Copyright © 2017–2018 RafaĆ Wrzeszcz - Wrzasq.pl. All rights reserved.