Class S3ExternalAnalyticsLink
Important: When creating a link to the Amazon S3 service, be sure to follow best practices for security. AWS root account credentials should never be used. The policy for the created IAM User roles should be as strict as possible and only allow access to the required data and required resources. You only need to know the Access Key Id and the Secret Access Key for the created IAM User role to access the S3 service. The link will be able to access whatever is permitted to the IAM User, since it will be using the IAM User credentials to interact with the AWS S3 service.
-
Constructor Summary
ConstructorDescriptionS3ExternalAnalyticsLink
(String name, String dataverse) Creates a new Analytics Link to S3. -
Method Summary
Modifier and TypeMethodDescriptionReturns the S3 access key ID.accessKeyId
(String accessKeyId) Sets the S3 access key ID (required).region()
Returns the S3 region.Sets the S3 region (required).Returns the S3 secret access key.secretAccessKey
(String secretAccessKey) Sets the S3 secret access key (required).Returns the S3 service endpoint.serviceEndpoint
(String serviceEndpoint) Sets the S3 service endpoint.Returns the S3 session token.sessionToken
(String sessionToken) Sets the S3 session token.toString()
type()
Returns the type of the link.Methods inherited from class com.couchbase.client.java.manager.analytics.link.AnalyticsLink
couchbaseRemote, dataverse, name, s3, toMap
-
Constructor Details
-
S3ExternalAnalyticsLink
Creates a new Analytics Link to S3.As an alternative to this constructor,
AnalyticsLink.s3(String, String)
can be used as well.Please note that additional parameters are required and must be set on
S3ExternalAnalyticsLink
in order for a S3 link to work properly.
-
-
Method Details
-
type
Description copied from class:AnalyticsLink
Returns the type of the link.- Specified by:
type
in classAnalyticsLink
- Returns:
- the type of the link.
-
accessKeyId
Returns the S3 access key ID.- Returns:
- the S3 access key ID.
-
accessKeyId
Sets the S3 access key ID (required).- Parameters:
accessKeyId
- the S3 access key ID.- Returns:
- this
S3ExternalAnalyticsLink
instance for chaining.
-
secretAccessKey
Returns the S3 secret access key.- Returns:
- the S3 access key.
-
secretAccessKey
Sets the S3 secret access key (required).- Parameters:
secretAccessKey
- the S3 secret access key.- Returns:
- this
S3ExternalAnalyticsLink
instance for chaining.
-
region
Returns the S3 region.- Returns:
- the S3 region.
-
region
Sets the S3 region (required).- Parameters:
region
- the S3 region.- Returns:
- this
S3ExternalAnalyticsLink
instance for chaining.
-
serviceEndpoint
Returns the S3 service endpoint.- Returns:
- the S3 service endpoint.
-
serviceEndpoint
Sets the S3 service endpoint.- Parameters:
serviceEndpoint
- the service endpoint.- Returns:
- this
S3ExternalAnalyticsLink
instance for chaining.
-
sessionToken
Returns the S3 session token.- Returns:
- the S3 session token.
-
sessionToken
Sets the S3 session token.- Parameters:
sessionToken
- the S3 session token.- Returns:
- this
S3ExternalAnalyticsLink
instance for chaining.
-
toString
-