Skip to content

Update Java Custom Resource example to use Java for Custom Resource Handler #1000

@NotLucxs

Description

@NotLucxs

Describe the feature

Currently, the Java CDK example for a Custom Resource uses Python. Very little material exists on Java based Lambda backed Custom Resources and implementing one is causing a bit of pain. Of the examples that exist, some send a response to a presigned S3 URL, some just return a Response object containing "SUCCESS" or "FAILED".
The example can be found at:
https://github.com/aws-samples/aws-cdk-examples/blob/master/java/custom-resource/lambda/custom-resource-handler.py

Use Case

The Java CDK example code should be written in Java, not Python. I should be able to follow a Java example in the same language throughout

Proposed Solution

Provide a Custom Resource handler example in Java

Other Information

The solution could also make use of your own Powertools util:
https://docs.powertools.aws.dev/lambda/java/utilities/custom_resources/

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

Language

Java

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/smallSmall work item – less than a day of effortfeature-requestA feature should be added or improved.in-progressIssue is being actively worked on.language/javaRelated to Java examplesp2

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions