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

Throw runtime error when unsupported features are invoked #4067

Merged
merged 2 commits into from
Apr 26, 2022

Conversation

AllanZhengYP
Copy link
Contributor

Both S3 mult-regional access point and the EventBridge global endpoint are not supported in V2 SDK but only implemented in V3. This change detect these invocations and throws runtime errors.

Checklist
  • npm run test passes
  • changelog is added, npm run add-change

@AllanZhengYP AllanZhengYP requested a review from a team as a code owner April 8, 2022 00:42
@@ -144,9 +144,14 @@ var s3util = {
var allowFipsEndpoint = options.allowFipsEndpoint || false;

if (!regionFromArn) {
var message = 'ARN region is empty';
if (req._parsedArn.service === 's3') {
message = message + '\nYou may want to use multi-regional ARN. The feature is not support in current SDK. ' +
Copy link
Contributor

Choose a reason for hiding this comment

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

should say not supported like in the other message.

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

2 participants