aws-cloudformation / aws-cloudformation-resource-providers-logs

The CloudFormation Resource Provider Package For Amazon CloudWatch Logs
https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/WhatIsCloudWatchLogs.html
Apache License 2.0
33 stars 35 forks source link

Throw exceptions in handlers rather than returning failed statuses #15

Closed adam-daily closed 5 years ago

adam-daily commented 5 years ago

Issue #, if available:

Description of changes:

The RPDK Java plugin now catches CloudFormation exception types and maps them to return FAILED ProgressEvents with appropriate error codes for the test entry point invoked for contract tests. This change removes code associated with building and returning ProgressEvents in those situations and instead throws the relevant exception.

Each resource passes contract tests.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.