Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run cfn init to set up LookoutVision Project resource providers #6

Merged
merged 2 commits into from
Jan 12, 2021
Merged

Conversation

jmuham
Copy link
Contributor

@jmuham jmuham commented Jan 11, 2021

Description

This contains the boilerplate code generated by running "cfn init" for "AWS::LookoutVision::Project". The directory name is "aws-lookoutvision-project".

Testing

  • mvn compile
  • mvn package
  • Verified CodeBuild builds successfully

@jmuham jmuham marked this pull request as ready for review January 12, 2021 19:31

// Placeholder for the functionality that could be shared across Create/Read/Update/Delete/List Handlers

public abstract class BaseHandlerStd extends BaseHandler<CallbackContext> {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just as a best practice, let's not use inheritance as a way to do code re-use once we actually start implementing this stuff. Instead, let's break out common functionality into separate classes and use injection (e.g. Dagger) to provide implementations inside the handlers.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted

import software.amazon.cloudformation.proxy.LoggerProxy;
import software.amazon.cloudformation.proxy.ProxyClient;

public class AbstractTestBase {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same as above, let's not use inheritance as a way to do code sharing.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Noted

@jmuham jmuham requested a review from brouwersn January 12, 2021 22:14
@jmuham jmuham merged commit 216a0ec into aws-cloudformation:main Jan 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants