Class S3ArnConverter
java.lang.Object
software.amazon.awssdk.services.s3.internal.resource.S3ArnConverter
- All Implemented Interfaces:
ArnConverter<S3Resource>
@SdkInternalApi
public final class S3ArnConverter
extends Object
implements 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 aS3Resourceobject.static S3ArnConvertercreate()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 aS3Resourceobject.- Specified by:
convertArnin interfaceArnConverter<S3Resource>- Parameters:
arn- The ARN to convert.- Returns:
- An
S3Resourceobject as specified by the ARN. - Throws:
IllegalArgumentException- if the ARN is not a valid representation of an S3 resource supported by this SDK.
-