Class AmazonS3InstallationService
java.lang.Object
com.slack.api.bolt.service.builtin.AmazonS3InstallationService
- All Implemented Interfaces:
InstallationService,Service
-
Constructor Summary
ConstructorsConstructorDescriptionAmazonS3InstallationService(String bucketName) AmazonS3InstallationService(String bucketName, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider) AmazonS3InstallationService(String bucketName, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider, software.amazon.awssdk.regions.Region region, String endpointOverride) -
Method Summary
Modifier and TypeMethodDescriptionprotected software.amazon.awssdk.auth.credentials.AwsCredentialscreateCredentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider provider) protected software.amazon.awssdk.services.s3.S3ClientvoidDeletes all installation data for given workspace or organization.voidDeletes a bot permission data only.voiddeleteInstaller(Installer installer) Deletes a user permission data only.Returns a bot permission data if exists.findInstaller(String enterpriseId, String teamId, String userId) Returns a user permission data if exists.Returns the initializer for this service.booleanReturns true if the historical data management is enabled.voidSaves an bot installation data.voidSaves an installation.voidsetHistoricalDataEnabled(boolean isHistoricalDataEnabled) Set true if the historical data management is enabled.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.slack.api.bolt.service.InstallationService
getInstallationGuideBlocks, getInstallationGuideText
-
Constructor Details
-
AmazonS3InstallationService
-
AmazonS3InstallationService
public AmazonS3InstallationService(String bucketName, software.amazon.awssdk.auth.credentials.AwsCredentialsProvider credentialsProvider) -
AmazonS3InstallationService
-
-
Method Details
-
initializer
Description copied from interface:ServiceReturns the initializer for this service. If the service has time-consuming initialization steps, putting those into this function would be a good way to avoid timeout errors for the first incoming request (in other words, to avoid cold-start problems).- Specified by:
initializerin interfaceService
-
isHistoricalDataEnabled
public boolean isHistoricalDataEnabled()Description copied from interface:InstallationServiceReturns true if the historical data management is enabled.- Specified by:
isHistoricalDataEnabledin interfaceInstallationService
-
setHistoricalDataEnabled
public void setHistoricalDataEnabled(boolean isHistoricalDataEnabled) Description copied from interface:InstallationServiceSet true if the historical data management is enabled.- Specified by:
setHistoricalDataEnabledin interfaceInstallationService
-
saveInstallerAndBot
Description copied from interface:InstallationServiceSaves an installation.- Specified by:
saveInstallerAndBotin interfaceInstallationService- Throws:
Exception
-
saveBot
Description copied from interface:InstallationServiceSaves an bot installation data.- Specified by:
saveBotin interfaceInstallationService- Throws:
Exception
-
deleteBot
Description copied from interface:InstallationServiceDeletes a bot permission data only.- Specified by:
deleteBotin interfaceInstallationService- Throws:
Exception
-
deleteInstaller
Description copied from interface:InstallationServiceDeletes a user permission data only.- Specified by:
deleteInstallerin interfaceInstallationService- Throws:
Exception
-
findBot
Description copied from interface:InstallationServiceReturns a bot permission data if exists.- Specified by:
findBotin interfaceInstallationService
-
findInstaller
Description copied from interface:InstallationServiceReturns a user permission data if exists.- Specified by:
findInstallerin interfaceInstallationService
-
deleteAll
Description copied from interface:InstallationServiceDeletes all installation data for given workspace or organization.- Specified by:
deleteAllin interfaceInstallationService
-
createCredentials
protected software.amazon.awssdk.auth.credentials.AwsCredentials createCredentials(software.amazon.awssdk.auth.credentials.AwsCredentialsProvider provider) -
createS3Client
protected software.amazon.awssdk.services.s3.S3Client createS3Client()
-