Skip to content

Malaysia Region is Not in Region Class #3176

Closed
@panz3l

Description

@panz3l

Upcoming End-of-Support

  • I acknowledge the upcoming end-of-support for AWS SDK for Java v1 was announced, and migration to AWS SDK for Java v2 is recommended.

Describe the bug

Malaysia Region (ap-southeast-5) is not in the Region Enum, so Lambda function that need to connect to S3 on Malaysia region will hit exception: java.lang.IllegalArgumentException: Cannot create enum from ap-southeast-5 value!

Regression Issue

  • Select this option if this issue appears to be a regression.

Expected Behavior

able to connect to Malaysia region S3 bucket with Lambda function.

Current Behavior

hit exception with:
java.lang.IllegalArgumentException: Cannot create enum from ap-southeast-5 value!

Reproduction Steps

when instantiate a S3 client object with below code:

AmazonS3 s3client = AmazonS3ClientBuilder
.standard()
.withRegion(Regions.fromName(region))
.withCredentials(new AWSStaticCredentialsProvider(basicAWSCredentials))
.build();

and passing in region = ap-southeast-5

exception will be thrown.

Possible Solution

add ap-southeast-5 to Region enum

Additional Information/Context

No response

AWS Java SDK version used

1.11.196

JDK version used

1.8.0_345

Operating System and version

windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions