@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SlackConfiguration extends Object implements Serializable, Cloneable, StructuredPojo
Provides the configuration information to connect to Slack as your data source.
Amazon Kendra now supports an upgraded Slack connector.
You must now use the TemplateConfiguration
object instead of the SlackConfiguration
object to configure your connector.
Connectors configured using the older console and API architecture will continue to function as configured. However, you won’t be able to edit or update them. If you want to edit or update your connector configuration, you must create a new connector.
We recommended migrating your connector workflow to the upgraded version. Support for connectors configured using the older architecture is scheduled to end by June 2024.
Constructor and Description |
---|
SlackConfiguration() |
Modifier and Type | Method and Description |
---|---|
SlackConfiguration |
clone() |
boolean |
equals(Object obj) |
Boolean |
getCrawlBotMessage()
TRUE to index bot messages from your Slack workspace team. |
Boolean |
getExcludeArchived()
TRUE to exclude archived messages to index from your Slack workspace team. |
List<String> |
getExclusionPatterns()
A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
|
List<DataSourceToIndexFieldMapping> |
getFieldMappings()
A list of
DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names
to Amazon Kendra index field names. |
List<String> |
getInclusionPatterns()
A list of regular expression patterns to include certain attached files in your Slack workspace team.
|
Integer |
getLookBackPeriod()
The number of hours for change log to look back from when you last synchronized your data.
|
List<String> |
getPrivateChannelFilter()
The list of private channel names from your Slack workspace team.
|
List<String> |
getPublicChannelFilter()
The list of public channel names to index from your Slack workspace team.
|
String |
getSecretArn()
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect
to your Slack workspace team.
|
String |
getSinceCrawlDate()
The date to start crawling your data from your Slack workspace team.
|
List<String> |
getSlackEntityList()
Specify whether to index public channels, private channels, group messages, and direct messages.
|
String |
getTeamId()
The identifier of the team in the Slack workspace.
|
Boolean |
getUseChangeLog()
TRUE to use the Slack change log to determine which documents require updating in the index. |
DataSourceVpcConfiguration |
getVpcConfiguration()
Configuration information for an Amazon Virtual Private Cloud to connect to your Slack.
|
int |
hashCode() |
Boolean |
isCrawlBotMessage()
TRUE to index bot messages from your Slack workspace team. |
Boolean |
isExcludeArchived()
TRUE to exclude archived messages to index from your Slack workspace team. |
Boolean |
isUseChangeLog()
TRUE to use the Slack change log to determine which documents require updating in the index. |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setCrawlBotMessage(Boolean crawlBotMessage)
TRUE to index bot messages from your Slack workspace team. |
void |
setExcludeArchived(Boolean excludeArchived)
TRUE to exclude archived messages to index from your Slack workspace team. |
void |
setExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
|
void |
setFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
A list of
DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names
to Amazon Kendra index field names. |
void |
setInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns to include certain attached files in your Slack workspace team.
|
void |
setLookBackPeriod(Integer lookBackPeriod)
The number of hours for change log to look back from when you last synchronized your data.
|
void |
setPrivateChannelFilter(Collection<String> privateChannelFilter)
The list of private channel names from your Slack workspace team.
|
void |
setPublicChannelFilter(Collection<String> publicChannelFilter)
The list of public channel names to index from your Slack workspace team.
|
void |
setSecretArn(String secretArn)
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect
to your Slack workspace team.
|
void |
setSinceCrawlDate(String sinceCrawlDate)
The date to start crawling your data from your Slack workspace team.
|
void |
setSlackEntityList(Collection<String> slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages.
|
void |
setTeamId(String teamId)
The identifier of the team in the Slack workspace.
|
void |
setUseChangeLog(Boolean useChangeLog)
TRUE to use the Slack change log to determine which documents require updating in the index. |
void |
setVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your Slack.
|
String |
toString()
Returns a string representation of this object.
|
SlackConfiguration |
withCrawlBotMessage(Boolean crawlBotMessage)
TRUE to index bot messages from your Slack workspace team. |
SlackConfiguration |
withExcludeArchived(Boolean excludeArchived)
TRUE to exclude archived messages to index from your Slack workspace team. |
SlackConfiguration |
withExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
|
SlackConfiguration |
withExclusionPatterns(String... exclusionPatterns)
A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
|
SlackConfiguration |
withFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
A list of
DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names
to Amazon Kendra index field names. |
SlackConfiguration |
withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
A list of
DataSourceToIndexFieldMapping objects that map Slack data source attributes or field names
to Amazon Kendra index field names. |
SlackConfiguration |
withInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns to include certain attached files in your Slack workspace team.
|
SlackConfiguration |
withInclusionPatterns(String... inclusionPatterns)
A list of regular expression patterns to include certain attached files in your Slack workspace team.
|
SlackConfiguration |
withLookBackPeriod(Integer lookBackPeriod)
The number of hours for change log to look back from when you last synchronized your data.
|
SlackConfiguration |
withPrivateChannelFilter(Collection<String> privateChannelFilter)
The list of private channel names from your Slack workspace team.
|
SlackConfiguration |
withPrivateChannelFilter(String... privateChannelFilter)
The list of private channel names from your Slack workspace team.
|
SlackConfiguration |
withPublicChannelFilter(Collection<String> publicChannelFilter)
The list of public channel names to index from your Slack workspace team.
|
SlackConfiguration |
withPublicChannelFilter(String... publicChannelFilter)
The list of public channel names to index from your Slack workspace team.
|
SlackConfiguration |
withSecretArn(String secretArn)
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect
to your Slack workspace team.
|
SlackConfiguration |
withSinceCrawlDate(String sinceCrawlDate)
The date to start crawling your data from your Slack workspace team.
|
SlackConfiguration |
withSlackEntityList(Collection<String> slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages.
|
SlackConfiguration |
withSlackEntityList(SlackEntity... slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages.
|
SlackConfiguration |
withSlackEntityList(String... slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages.
|
SlackConfiguration |
withTeamId(String teamId)
The identifier of the team in the Slack workspace.
|
SlackConfiguration |
withUseChangeLog(Boolean useChangeLog)
TRUE to use the Slack change log to determine which documents require updating in the index. |
SlackConfiguration |
withVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your Slack.
|
public void setTeamId(String teamId)
The identifier of the team in the Slack workspace. For example, T0123456789.
You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....
teamId
- The identifier of the team in the Slack workspace. For example, T0123456789.
You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....
public String getTeamId()
The identifier of the team in the Slack workspace. For example, T0123456789.
You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....
You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....
public SlackConfiguration withTeamId(String teamId)
The identifier of the team in the Slack workspace. For example, T0123456789.
You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....
teamId
- The identifier of the team in the Slack workspace. For example, T0123456789.
You can find your team ID in the URL of the main page of your Slack workspace. When you log in to Slack via a browser, you are directed to the URL of the main page. For example, https://app.slack.com/client/T0123456789/....
public void setSecretArn(String secretArn)
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Slack workspace team. The secret must contain a JSON structure with the following keys:
slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication for a Slack data source.
secretArn
- The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to
connect to your Slack workspace team. The secret must contain a JSON structure with the following
keys:
slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication for a Slack data source.
public String getSecretArn()
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Slack workspace team. The secret must contain a JSON structure with the following keys:
slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication for a Slack data source.
slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication for a Slack data source.
public SlackConfiguration withSecretArn(String secretArn)
The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to connect to your Slack workspace team. The secret must contain a JSON structure with the following keys:
slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication for a Slack data source.
secretArn
- The Amazon Resource Name (ARN) of an Secrets Manager secret that contains the key-value pairs required to
connect to your Slack workspace team. The secret must contain a JSON structure with the following
keys:
slackToken—The user or bot token created in Slack. For more information on creating a token in Slack, see Authentication for a Slack data source.
public void setVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.
vpcConfiguration
- Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more
information, see Configuring
a VPC.public DataSourceVpcConfiguration getVpcConfiguration()
Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.
public SlackConfiguration withVpcConfiguration(DataSourceVpcConfiguration vpcConfiguration)
Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more information, see Configuring a VPC.
vpcConfiguration
- Configuration information for an Amazon Virtual Private Cloud to connect to your Slack. For more
information, see Configuring
a VPC.public List<String> getSlackEntityList()
Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.
SlackEntity
public void setSlackEntityList(Collection<String> slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.
slackEntityList
- Specify whether to index public channels, private channels, group messages, and direct messages. You can
specify one or more of these options.SlackEntity
public SlackConfiguration withSlackEntityList(String... slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.
NOTE: This method appends the values to the existing list (if any). Use
setSlackEntityList(java.util.Collection)
or withSlackEntityList(java.util.Collection)
if you
want to override the existing values.
slackEntityList
- Specify whether to index public channels, private channels, group messages, and direct messages. You can
specify one or more of these options.SlackEntity
public SlackConfiguration withSlackEntityList(Collection<String> slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.
slackEntityList
- Specify whether to index public channels, private channels, group messages, and direct messages. You can
specify one or more of these options.SlackEntity
public SlackConfiguration withSlackEntityList(SlackEntity... slackEntityList)
Specify whether to index public channels, private channels, group messages, and direct messages. You can specify one or more of these options.
slackEntityList
- Specify whether to index public channels, private channels, group messages, and direct messages. You can
specify one or more of these options.SlackEntity
public void setUseChangeLog(Boolean useChangeLog)
TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
all of your documents in Slack.
useChangeLog
- TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
to scan all of your documents in Slack.public Boolean getUseChangeLog()
TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
all of your documents in Slack.
TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
to scan all of your documents in Slack.public SlackConfiguration withUseChangeLog(Boolean useChangeLog)
TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
all of your documents in Slack.
useChangeLog
- TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
to scan all of your documents in Slack.public Boolean isUseChangeLog()
TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than to scan
all of your documents in Slack.
TRUE
to use the Slack change log to determine which documents require updating in the index.
Depending on the Slack change log's size, it may take longer for Amazon Kendra to use the change log than
to scan all of your documents in Slack.public void setCrawlBotMessage(Boolean crawlBotMessage)
TRUE
to index bot messages from your Slack workspace team.
crawlBotMessage
- TRUE
to index bot messages from your Slack workspace team.public Boolean getCrawlBotMessage()
TRUE
to index bot messages from your Slack workspace team.
TRUE
to index bot messages from your Slack workspace team.public SlackConfiguration withCrawlBotMessage(Boolean crawlBotMessage)
TRUE
to index bot messages from your Slack workspace team.
crawlBotMessage
- TRUE
to index bot messages from your Slack workspace team.public Boolean isCrawlBotMessage()
TRUE
to index bot messages from your Slack workspace team.
TRUE
to index bot messages from your Slack workspace team.public void setExcludeArchived(Boolean excludeArchived)
TRUE
to exclude archived messages to index from your Slack workspace team.
excludeArchived
- TRUE
to exclude archived messages to index from your Slack workspace team.public Boolean getExcludeArchived()
TRUE
to exclude archived messages to index from your Slack workspace team.
TRUE
to exclude archived messages to index from your Slack workspace team.public SlackConfiguration withExcludeArchived(Boolean excludeArchived)
TRUE
to exclude archived messages to index from your Slack workspace team.
excludeArchived
- TRUE
to exclude archived messages to index from your Slack workspace team.public Boolean isExcludeArchived()
TRUE
to exclude archived messages to index from your Slack workspace team.
TRUE
to exclude archived messages to index from your Slack workspace team.public void setSinceCrawlDate(String sinceCrawlDate)
The date to start crawling your data from your Slack workspace team. The date must follow this format:
yyyy-mm-dd
.
sinceCrawlDate
- The date to start crawling your data from your Slack workspace team. The date must follow this format:
yyyy-mm-dd
.public String getSinceCrawlDate()
The date to start crawling your data from your Slack workspace team. The date must follow this format:
yyyy-mm-dd
.
yyyy-mm-dd
.public SlackConfiguration withSinceCrawlDate(String sinceCrawlDate)
The date to start crawling your data from your Slack workspace team. The date must follow this format:
yyyy-mm-dd
.
sinceCrawlDate
- The date to start crawling your data from your Slack workspace team. The date must follow this format:
yyyy-mm-dd
.public void setLookBackPeriod(Integer lookBackPeriod)
The number of hours for change log to look back from when you last synchronized your data. You can look back up to 7 days or 168 hours.
Change log updates your index only if new content was added since you last synced your data. Updated or deleted
content from before you last synced does not get updated in your index. To capture updated or deleted content
before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
back.
lookBackPeriod
- The number of hours for change log to look back from when you last synchronized your data. You can look
back up to 7 days or 168 hours.
Change log updates your index only if new content was added since you last synced your data. Updated or
deleted content from before you last synced does not get updated in your index. To capture updated or
deleted content before you last synced, set the LookBackPeriod
to the number of hours you
want change log to look back.
public Integer getLookBackPeriod()
The number of hours for change log to look back from when you last synchronized your data. You can look back up to 7 days or 168 hours.
Change log updates your index only if new content was added since you last synced your data. Updated or deleted
content from before you last synced does not get updated in your index. To capture updated or deleted content
before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
back.
Change log updates your index only if new content was added since you last synced your data. Updated or
deleted content from before you last synced does not get updated in your index. To capture updated or
deleted content before you last synced, set the LookBackPeriod
to the number of hours you
want change log to look back.
public SlackConfiguration withLookBackPeriod(Integer lookBackPeriod)
The number of hours for change log to look back from when you last synchronized your data. You can look back up to 7 days or 168 hours.
Change log updates your index only if new content was added since you last synced your data. Updated or deleted
content from before you last synced does not get updated in your index. To capture updated or deleted content
before you last synced, set the LookBackPeriod
to the number of hours you want change log to look
back.
lookBackPeriod
- The number of hours for change log to look back from when you last synchronized your data. You can look
back up to 7 days or 168 hours.
Change log updates your index only if new content was added since you last synced your data. Updated or
deleted content from before you last synced does not get updated in your index. To capture updated or
deleted content before you last synced, set the LookBackPeriod
to the number of hours you
want change log to look back.
public List<String> getPrivateChannelFilter()
The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.
public void setPrivateChannelFilter(Collection<String> privateChannelFilter)
The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.
privateChannelFilter
- The list of private channel names from your Slack workspace team. You use this if you want to index
specific private channels, not all private channels. You can also use regular expression patterns to
filter private channels.public SlackConfiguration withPrivateChannelFilter(String... privateChannelFilter)
The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.
NOTE: This method appends the values to the existing list (if any). Use
setPrivateChannelFilter(java.util.Collection)
or withPrivateChannelFilter(java.util.Collection)
if you want to override the existing values.
privateChannelFilter
- The list of private channel names from your Slack workspace team. You use this if you want to index
specific private channels, not all private channels. You can also use regular expression patterns to
filter private channels.public SlackConfiguration withPrivateChannelFilter(Collection<String> privateChannelFilter)
The list of private channel names from your Slack workspace team. You use this if you want to index specific private channels, not all private channels. You can also use regular expression patterns to filter private channels.
privateChannelFilter
- The list of private channel names from your Slack workspace team. You use this if you want to index
specific private channels, not all private channels. You can also use regular expression patterns to
filter private channels.public List<String> getPublicChannelFilter()
The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.
public void setPublicChannelFilter(Collection<String> publicChannelFilter)
The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.
publicChannelFilter
- The list of public channel names to index from your Slack workspace team. You use this if you want to
index specific public channels, not all public channels. You can also use regular expression patterns to
filter public channels.public SlackConfiguration withPublicChannelFilter(String... publicChannelFilter)
The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.
NOTE: This method appends the values to the existing list (if any). Use
setPublicChannelFilter(java.util.Collection)
or withPublicChannelFilter(java.util.Collection)
if you want to override the existing values.
publicChannelFilter
- The list of public channel names to index from your Slack workspace team. You use this if you want to
index specific public channels, not all public channels. You can also use regular expression patterns to
filter public channels.public SlackConfiguration withPublicChannelFilter(Collection<String> publicChannelFilter)
The list of public channel names to index from your Slack workspace team. You use this if you want to index specific public channels, not all public channels. You can also use regular expression patterns to filter public channels.
publicChannelFilter
- The list of public channel names to index from your Slack workspace team. You use this if you want to
index specific public channels, not all public channels. You can also use regular expression patterns to
filter public channels.public List<String> getInclusionPatterns()
A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
public void setInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
inclusionPatterns
- A list of regular expression patterns to include certain attached files in your Slack workspace team.
Files that match the patterns are included in the index. Files that don't match the patterns are excluded
from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes
precedence and the file isn't included in the index.public SlackConfiguration withInclusionPatterns(String... inclusionPatterns)
A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
NOTE: This method appends the values to the existing list (if any). Use
setInclusionPatterns(java.util.Collection)
or withInclusionPatterns(java.util.Collection)
if
you want to override the existing values.
inclusionPatterns
- A list of regular expression patterns to include certain attached files in your Slack workspace team.
Files that match the patterns are included in the index. Files that don't match the patterns are excluded
from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes
precedence and the file isn't included in the index.public SlackConfiguration withInclusionPatterns(Collection<String> inclusionPatterns)
A list of regular expression patterns to include certain attached files in your Slack workspace team. Files that match the patterns are included in the index. Files that don't match the patterns are excluded from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
inclusionPatterns
- A list of regular expression patterns to include certain attached files in your Slack workspace team.
Files that match the patterns are included in the index. Files that don't match the patterns are excluded
from the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes
precedence and the file isn't included in the index.public List<String> getExclusionPatterns()
A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
public void setExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
exclusionPatterns
- A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
Files that match the patterns are excluded from the index. Files that don’t match the patterns are
included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern
takes precedence and the file isn't included in the index.public SlackConfiguration withExclusionPatterns(String... exclusionPatterns)
A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
NOTE: This method appends the values to the existing list (if any). Use
setExclusionPatterns(java.util.Collection)
or withExclusionPatterns(java.util.Collection)
if
you want to override the existing values.
exclusionPatterns
- A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
Files that match the patterns are excluded from the index. Files that don’t match the patterns are
included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern
takes precedence and the file isn't included in the index.public SlackConfiguration withExclusionPatterns(Collection<String> exclusionPatterns)
A list of regular expression patterns to exclude certain attached files in your Slack workspace team. Files that match the patterns are excluded from the index. Files that don’t match the patterns are included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern takes precedence and the file isn't included in the index.
exclusionPatterns
- A list of regular expression patterns to exclude certain attached files in your Slack workspace team.
Files that match the patterns are excluded from the index. Files that don’t match the patterns are
included in the index. If a file matches both an inclusion and exclusion pattern, the exclusion pattern
takes precedence and the file isn't included in the index.public List<DataSourceToIndexFieldMapping> getFieldMappings()
A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
to Slack fields. For more information, see Mapping data source fields. The Slack
data source field names must exist in your Slack custom metadata.
DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Slack fields. For more information, see Mapping data source fields.
The Slack data source field names must exist in your Slack custom metadata.public void setFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
to Slack fields. For more information, see Mapping data source fields. The Slack
data source field names must exist in your Slack custom metadata.
fieldMappings
- A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Slack fields. For more information, see Mapping data source fields. The
Slack data source field names must exist in your Slack custom metadata.public SlackConfiguration withFieldMappings(DataSourceToIndexFieldMapping... fieldMappings)
A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
to Slack fields. For more information, see Mapping data source fields. The Slack
data source field names must exist in your Slack custom metadata.
NOTE: This method appends the values to the existing list (if any). Use
setFieldMappings(java.util.Collection)
or withFieldMappings(java.util.Collection)
if you want
to override the existing values.
fieldMappings
- A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Slack fields. For more information, see Mapping data source fields. The
Slack data source field names must exist in your Slack custom metadata.public SlackConfiguration withFieldMappings(Collection<DataSourceToIndexFieldMapping> fieldMappings)
A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or field names
to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map
to Slack fields. For more information, see Mapping data source fields. The Slack
data source field names must exist in your Slack custom metadata.
fieldMappings
- A list of DataSourceToIndexFieldMapping
objects that map Slack data source attributes or
field names to Amazon Kendra index field names. To create custom fields, use the UpdateIndex
API before you map to Slack fields. For more information, see Mapping data source fields. The
Slack data source field names must exist in your Slack custom metadata.public String toString()
toString
in class Object
Object.toString()
public SlackConfiguration clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.