public class S3Connect extends Object
| Constructor and Description |
|---|
S3Connect() |
| Modifier and Type | Method and Description |
|---|---|
static com.amazonaws.services.s3.AmazonS3 |
connect(org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
String region,
EndpointProperty endpoint,
PathStyleEnabledProperty pathStyle)
Connects to the AWS API.
|
public static com.amazonaws.services.s3.AmazonS3 connect(org.apache.maven.wagon.authentication.AuthenticationInfo authenticationInfo,
String region,
EndpointProperty endpoint,
PathStyleEnabledProperty pathStyle)
throws org.apache.maven.wagon.authentication.AuthenticationException
AmazonS3 instance.authenticationInfo - When authenticationInfo is passed as null, an authentication provider
that gets the credentials from environment properties, system environment variables or
other global locations will be used. See the documentation for the
DefaultAWSCredentialsProviderChain
class for details.region - The region where the bucket was created in.endpoint - The endpoint/bucket to connect to.pathStyle - A PathStyleEnabledProperty indicating whether the endpoint/bucket configuration being
passed is in a path-style configuration. See
Accessing a Bucket in the S3 documentation.AmazonS3 that can be used to send and receive data to the intended endpoint/bucket.org.apache.maven.wagon.authentication.AuthenticationException - if the passed credentials are invalid for connecting to the intended endpoint/bucket.Copyright © 2019. All rights reserved.