public class S3ArnConverter extends Object implements ArnConverter<S3Resource>
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
getInstance()
.Modifier and Type | Method and Description |
---|---|
S3Resource |
convertArn(Arn arn)
Converts a valid ARN representation of an S3 resource into a
S3Resource object. |
static S3ArnConverter |
getInstance()
Gets a static singleton instance of an
S3ArnConverter . |
public static S3ArnConverter getInstance()
S3ArnConverter
.S3ArnConverter
.public S3Resource convertArn(Arn arn)
S3Resource
object.convertArn
in interface ArnConverter<S3Resource>
arn
- The ARN to convert.S3Resource
object as specified by the ARN.IllegalArgumentException
- if the ARN is not a valid representation of an S3 resource supported by this
SDK.