Class S3ArnConverter
java.lang.Object
software.amazon.awssdk.services.s3.internal.resource.S3ArnConverter
- All Implemented Interfaces:
ArnConverter<S3Resource>
An implementation of
ArnConverter
that can be used to convert valid Arn
representations of s3
resources into S3Resource
objects. To fetch an instance of this class, use the singleton getter method
create()
.-
Method Summary
Modifier and TypeMethodDescriptionconvertArn
(Arn arn) Converts a valid ARN representation of an S3 resource into aS3Resource
object.static S3ArnConverter
create()
Gets a static singleton instance of anS3ArnConverter
.
-
Method Details
-
create
Gets a static singleton instance of anS3ArnConverter
.- Returns:
- A static instance of an
S3ArnConverter
.
-
convertArn
Converts a valid ARN representation of an S3 resource into aS3Resource
object.- Specified by:
convertArn
in interfaceArnConverter<S3Resource>
- Parameters:
arn
- The ARN to convert.- Returns:
- An
S3Resource
object as specified by the ARN. - Throws:
IllegalArgumentException
- if the ARN is not a valid representation of an S3 resource supported by this SDK.
-