Package ucar.unidata.io.s3
Class CdmS3Client
- java.lang.Object
-
- ucar.unidata.io.s3.CdmS3Client
-
public class CdmS3Client extends Object
A client for accessing Object Store resources. This class manages Region settings (for AWS S3 resources), authentication, and http client connection properties.
-
-
Constructor Summary
Constructors Constructor Description CdmS3Client()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static software.amazon.awssdk.services.s3.S3Client
acquire(String uri)
Acquire an S3Client configured to connect to the object store associated with the supplied CdmS3Uri.static software.amazon.awssdk.services.s3.S3Client
acquire(CdmS3Uri uri)
Acquire an S3Client configured to connect to the object store associated with the supplied CdmS3Uri.
-
-
-
Method Detail
-
acquire
public static software.amazon.awssdk.services.s3.S3Client acquire(String uri) throws IOException
Acquire an S3Client configured to connect to the object store associated with the supplied CdmS3Uri. Clients are cached based on the authority and path (bucket) of the supplied CdmS3Uri.- Parameters:
uri
- string representing aCdmS3Uri
- Returns:
- S3Client
- Throws:
IOException
- Indicates an error creating the client, or an error creating the CdmS3Uri object.
-
acquire
public static software.amazon.awssdk.services.s3.S3Client acquire(CdmS3Uri uri) throws IOException
Acquire an S3Client configured to connect to the object store associated with the supplied CdmS3Uri. Clients are cached based on the authority and path (bucket) of the supplied CdmS3Uri.- Parameters:
uri
-CdmS3Uri
- Returns:
- S3Client
- Throws:
IOException
- Indicates an error creating the client, or an error creating the CdmS3Uri object.
-
-