Package org.cdlib.mrt.s3v2.action
Class V2Client
java.lang.Object
org.cdlib.mrt.s3v2.action.V2Client
Before running this Java V2 code example, set up your development
environment, including your credentials.
For more information, see the following documentation topic:
https://docs.aws.amazon.com/sdk-for-java/latest/developer-guide/get-started.html
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final org.apache.logging.log4j.Loggerprotected software.amazon.awssdk.regions.Regionprotected software.amazon.awssdk.services.s3.S3AsyncClientprotected software.amazon.awssdk.services.s3.S3Clientprotected software.amazon.awssdk.services.s3.presigner.S3Presignerprotected V2Client.S3Type -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedV2Client(V2Client.S3Type s3Type, software.amazon.awssdk.regions.Region region) protectedV2Client(V2Client.S3Type s3Type, software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) -
Method Summary
Modifier and TypeMethodDescriptionstatic software.amazon.awssdk.services.s3.S3AsyncClientasycClient(V2Client.S3Type s3Type, software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) static software.amazon.awssdk.services.s3.S3AsyncClientasyncClientDefaultCRT(software.amazon.awssdk.regions.Region region) static software.amazon.awssdk.services.s3.S3AsyncClientasyncClientDefaultNew(software.amazon.awssdk.regions.Region region) static software.amazon.awssdk.services.s3.S3AsyncClientasyncClientDefaultOld(software.amazon.awssdk.regions.Region region) static V2ClientgetAWS()static V2Clientsoftware.amazon.awssdk.regions.Regionstatic V2Clientstatic V2Clientstatic software.amazon.awssdk.services.s3.presigner.S3Presignerpresigner(software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) static software.amazon.awssdk.services.s3.presigner.S3PresignerpresignerDefault(software.amazon.awssdk.regions.Region region) software.amazon.awssdk.services.s3.S3AsyncClientsoftware.amazon.awssdk.services.s3.S3Clients3Client()software.amazon.awssdk.services.s3.presigner.S3Presignerstatic software.amazon.awssdk.services.s3.S3ClientsyncClient(software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) static software.amazon.awssdk.services.s3.S3ClientsyncClientDefault(software.amazon.awssdk.regions.Region region)
-
Field Details
-
logger
protected static final org.apache.logging.log4j.Logger logger -
s3Type
-
s3AsyncClient
protected software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClient -
s3Client
protected software.amazon.awssdk.services.s3.S3Client s3Client -
s3Presigner
protected software.amazon.awssdk.services.s3.presigner.S3Presigner s3Presigner -
region
protected software.amazon.awssdk.regions.Region region
-
-
Constructor Details
-
V2Client
protected V2Client(V2Client.S3Type s3Type, software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
V2Client
protected V2Client(V2Client.S3Type s3Type, software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
-
Method Details
-
getMinio
public static V2Client getMinio(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getSDSC
public static V2Client getSDSC(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getWasabi
public static V2Client getWasabi(String accessKey, String secretKey, String endpoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
getAWS
- Throws:
org.cdlib.mrt.utility.TException
-
asycClient
public static software.amazon.awssdk.services.s3.S3AsyncClient asycClient(V2Client.S3Type s3Type, software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
syncClient
public static software.amazon.awssdk.services.s3.S3Client syncClient(software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
presigner
public static software.amazon.awssdk.services.s3.presigner.S3Presigner presigner(software.amazon.awssdk.regions.Region region, String accessKey, String secretKey, String endPoint) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
presignerDefault
public static software.amazon.awssdk.services.s3.presigner.S3Presigner presignerDefault(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
asyncClientDefaultOld
public static software.amazon.awssdk.services.s3.S3AsyncClient asyncClientDefaultOld(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
asyncClientDefaultNew
public static software.amazon.awssdk.services.s3.S3AsyncClient asyncClientDefaultNew(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
asyncClientDefaultCRT
public static software.amazon.awssdk.services.s3.S3AsyncClient asyncClientDefaultCRT(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
syncClientDefault
public static software.amazon.awssdk.services.s3.S3Client syncClientDefault(software.amazon.awssdk.regions.Region region) throws org.cdlib.mrt.utility.TException - Throws:
org.cdlib.mrt.utility.TException
-
s3Client
public software.amazon.awssdk.services.s3.S3Client s3Client() -
s3AsyncClient
public software.amazon.awssdk.services.s3.S3AsyncClient s3AsyncClient() -
s3Presigner
public software.amazon.awssdk.services.s3.presigner.S3Presigner s3Presigner() -
getRegion
public software.amazon.awssdk.regions.Region getRegion() -
getS3Type
-