Package com.pulumi.aws.kendra.inputs
Class DataSourceState.Builder
- java.lang.Object
-
- com.pulumi.aws.kendra.inputs.DataSourceState.Builder
-
- Enclosing class:
- DataSourceState
public static final class DataSourceState.Builder extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Builder()Builder(DataSourceState defaults)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DataSourceState.Builderarn(com.pulumi.core.Output<java.lang.String> arn)DataSourceState.Builderarn(java.lang.String arn)DataSourceStatebuild()DataSourceState.Builderconfiguration(DataSourceConfigurationArgs configuration)DataSourceState.Builderconfiguration(com.pulumi.core.Output<DataSourceConfigurationArgs> configuration)DataSourceState.BuildercreatedAt(com.pulumi.core.Output<java.lang.String> createdAt)DataSourceState.BuildercreatedAt(java.lang.String createdAt)DataSourceState.BuildercustomDocumentEnrichmentConfiguration(DataSourceCustomDocumentEnrichmentConfigurationArgs customDocumentEnrichmentConfiguration)DataSourceState.BuildercustomDocumentEnrichmentConfiguration(com.pulumi.core.Output<DataSourceCustomDocumentEnrichmentConfigurationArgs> customDocumentEnrichmentConfiguration)DataSourceState.BuilderdataSourceId(com.pulumi.core.Output<java.lang.String> dataSourceId)DataSourceState.BuilderdataSourceId(java.lang.String dataSourceId)DataSourceState.Builderdescription(com.pulumi.core.Output<java.lang.String> description)DataSourceState.Builderdescription(java.lang.String description)DataSourceState.BuildererrorMessage(com.pulumi.core.Output<java.lang.String> errorMessage)DataSourceState.BuildererrorMessage(java.lang.String errorMessage)DataSourceState.BuilderindexId(com.pulumi.core.Output<java.lang.String> indexId)DataSourceState.BuilderindexId(java.lang.String indexId)DataSourceState.BuilderlanguageCode(com.pulumi.core.Output<java.lang.String> languageCode)DataSourceState.BuilderlanguageCode(java.lang.String languageCode)DataSourceState.Buildername(com.pulumi.core.Output<java.lang.String> name)DataSourceState.Buildername(java.lang.String name)DataSourceState.Builderregion(com.pulumi.core.Output<java.lang.String> region)DataSourceState.Builderregion(java.lang.String region)DataSourceState.BuilderroleArn(com.pulumi.core.Output<java.lang.String> roleArn)DataSourceState.BuilderroleArn(java.lang.String roleArn)DataSourceState.Builderschedule(com.pulumi.core.Output<java.lang.String> schedule)DataSourceState.Builderschedule(java.lang.String schedule)DataSourceState.Builderstatus(com.pulumi.core.Output<java.lang.String> status)DataSourceState.Builderstatus(java.lang.String status)DataSourceState.Buildertags(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)DataSourceState.Buildertags(java.util.Map<java.lang.String,java.lang.String> tags)DataSourceState.BuildertagsAll(com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)DataSourceState.BuildertagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)DataSourceState.Buildertype(com.pulumi.core.Output<java.lang.String> type)DataSourceState.Buildertype(java.lang.String type)DataSourceState.BuilderupdatedAt(com.pulumi.core.Output<java.lang.String> updatedAt)DataSourceState.BuilderupdatedAt(java.lang.String updatedAt)
-
-
-
Constructor Detail
-
Builder
public Builder()
-
Builder
public Builder(DataSourceState defaults)
-
-
Method Detail
-
arn
public DataSourceState.Builder arn(@Nullable com.pulumi.core.Output<java.lang.String> arn)
- Parameters:
arn- ARN of the Data Source.- Returns:
- builder
-
arn
public DataSourceState.Builder arn(java.lang.String arn)
- Parameters:
arn- ARN of the Data Source.- Returns:
- builder
-
configuration
public DataSourceState.Builder configuration(@Nullable com.pulumi.core.Output<DataSourceConfigurationArgs> configuration)
- Parameters:
configuration- Configuration information to connect to your Data Source repository. You can't specify the `configuration` block when the `type` parameter is set to `CUSTOM`. Detailed below.- Returns:
- builder
-
configuration
public DataSourceState.Builder configuration(DataSourceConfigurationArgs configuration)
- Parameters:
configuration- Configuration information to connect to your Data Source repository. You can't specify the `configuration` block when the `type` parameter is set to `CUSTOM`. Detailed below.- Returns:
- builder
-
createdAt
public DataSourceState.Builder createdAt(@Nullable com.pulumi.core.Output<java.lang.String> createdAt)
- Parameters:
createdAt- Unix time stamp of when the Data Source was created.- Returns:
- builder
-
createdAt
public DataSourceState.Builder createdAt(java.lang.String createdAt)
- Parameters:
createdAt- Unix time stamp of when the Data Source was created.- Returns:
- builder
-
customDocumentEnrichmentConfiguration
public DataSourceState.Builder customDocumentEnrichmentConfiguration(@Nullable com.pulumi.core.Output<DataSourceCustomDocumentEnrichmentConfigurationArgs> customDocumentEnrichmentConfiguration)
- Parameters:
customDocumentEnrichmentConfiguration- Configuration information for altering document metadata and content during the document ingestion process. For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see [Customizing document metadata during the ingestion process](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). Detailed below.- Returns:
- builder
-
customDocumentEnrichmentConfiguration
public DataSourceState.Builder customDocumentEnrichmentConfiguration(DataSourceCustomDocumentEnrichmentConfigurationArgs customDocumentEnrichmentConfiguration)
- Parameters:
customDocumentEnrichmentConfiguration- Configuration information for altering document metadata and content during the document ingestion process. For more information on how to create, modify and delete document metadata, or make other content alterations when you ingest documents into Amazon Kendra, see [Customizing document metadata during the ingestion process](https://docs.aws.amazon.com/kendra/latest/dg/custom-document-enrichment.html). Detailed below.- Returns:
- builder
-
dataSourceId
public DataSourceState.Builder dataSourceId(@Nullable com.pulumi.core.Output<java.lang.String> dataSourceId)
- Parameters:
dataSourceId- Unique identifiers of the Data Source.- Returns:
- builder
-
dataSourceId
public DataSourceState.Builder dataSourceId(java.lang.String dataSourceId)
- Parameters:
dataSourceId- Unique identifiers of the Data Source.- Returns:
- builder
-
description
public DataSourceState.Builder description(@Nullable com.pulumi.core.Output<java.lang.String> description)
- Parameters:
description- Description for the Data Source connector.- Returns:
- builder
-
description
public DataSourceState.Builder description(java.lang.String description)
- Parameters:
description- Description for the Data Source connector.- Returns:
- builder
-
errorMessage
public DataSourceState.Builder errorMessage(@Nullable com.pulumi.core.Output<java.lang.String> errorMessage)
- Parameters:
errorMessage- When the Status field value is `FAILED`, contains a description of the error that caused the Data Source to fail.- Returns:
- builder
-
errorMessage
public DataSourceState.Builder errorMessage(java.lang.String errorMessage)
- Parameters:
errorMessage- When the Status field value is `FAILED`, contains a description of the error that caused the Data Source to fail.- Returns:
- builder
-
indexId
public DataSourceState.Builder indexId(@Nullable com.pulumi.core.Output<java.lang.String> indexId)
- Parameters:
indexId- Identifier of the index for your Amazon Kendra data source.- Returns:
- builder
-
indexId
public DataSourceState.Builder indexId(java.lang.String indexId)
- Parameters:
indexId- Identifier of the index for your Amazon Kendra data source.- Returns:
- builder
-
languageCode
public DataSourceState.Builder languageCode(@Nullable com.pulumi.core.Output<java.lang.String> languageCode)
- Parameters:
languageCode- Code for a language. This allows you to support a language for all documents when creating the Data Source connector. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html).- Returns:
- builder
-
languageCode
public DataSourceState.Builder languageCode(java.lang.String languageCode)
- Parameters:
languageCode- Code for a language. This allows you to support a language for all documents when creating the Data Source connector. English is supported by default. For more information on supported languages, including their codes, see [Adding documents in languages other than English](https://docs.aws.amazon.com/kendra/latest/dg/in-adding-languages.html).- Returns:
- builder
-
name
public DataSourceState.Builder name(@Nullable com.pulumi.core.Output<java.lang.String> name)
- Parameters:
name- Name for your data source connector.- Returns:
- builder
-
name
public DataSourceState.Builder name(java.lang.String name)
- Parameters:
name- Name for your data source connector.- Returns:
- builder
-
region
public DataSourceState.Builder region(@Nullable com.pulumi.core.Output<java.lang.String> region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
region
public DataSourceState.Builder region(java.lang.String region)
- Parameters:
region- Region where this resource will be [managed](https://docs.aws.amazon.com/general/latest/gr/rande.html#regional-endpoints). Defaults to the Region set in the provider configuration.- Returns:
- builder
-
roleArn
public DataSourceState.Builder roleArn(@Nullable com.pulumi.core.Output<java.lang.String> roleArn)
- Parameters:
roleArn- ARN of a role with permission to access the data source connector. For more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). You can't specify the `roleArn` parameter when the `type` parameter is set to `CUSTOM`. The `roleArn` parameter is required for all other data sources.- Returns:
- builder
-
roleArn
public DataSourceState.Builder roleArn(java.lang.String roleArn)
- Parameters:
roleArn- ARN of a role with permission to access the data source connector. For more information, see [IAM roles for Amazon Kendra](https://docs.aws.amazon.com/kendra/latest/dg/iam-roles.html). You can't specify the `roleArn` parameter when the `type` parameter is set to `CUSTOM`. The `roleArn` parameter is required for all other data sources.- Returns:
- builder
-
schedule
public DataSourceState.Builder schedule(@Nullable com.pulumi.core.Output<java.lang.String> schedule)
- Parameters:
schedule- Sets the frequency for Amazon Kendra to check the documents in your Data Source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the `StartDataSourceSyncJob` API to update the index.- Returns:
- builder
-
schedule
public DataSourceState.Builder schedule(java.lang.String schedule)
- Parameters:
schedule- Sets the frequency for Amazon Kendra to check the documents in your Data Source repository and update the index. If you don't set a schedule Amazon Kendra will not periodically update the index. You can call the `StartDataSourceSyncJob` API to update the index.- Returns:
- builder
-
status
public DataSourceState.Builder status(@Nullable com.pulumi.core.Output<java.lang.String> status)
- Parameters:
status- Current status of the Data Source. When the status is `ACTIVE` the Data Source is ready to use. When the status is `FAILED`, the `errorMessage` field contains the reason that the Data Source failed.- Returns:
- builder
-
status
public DataSourceState.Builder status(java.lang.String status)
- Parameters:
status- Current status of the Data Source. When the status is `ACTIVE` the Data Source is ready to use. When the status is `FAILED`, the `errorMessage` field contains the reason that the Data Source failed.- Returns:
- builder
-
tags
public DataSourceState.Builder tags(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tags
public DataSourceState.Builder tags(java.util.Map<java.lang.String,java.lang.String> tags)
- Parameters:
tags- Key-value map of resource tags. If configured with a provider `defaultTags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.- Returns:
- builder
-
tagsAll
public DataSourceState.Builder tagsAll(@Nullable com.pulumi.core.Output<java.util.Map<java.lang.String,java.lang.String>> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
tagsAll
public DataSourceState.Builder tagsAll(java.util.Map<java.lang.String,java.lang.String> tagsAll)
- Parameters:
tagsAll- Map of tags assigned to the resource, including those inherited from the provider `defaultTags` configuration block.- Returns:
- builder
-
type
public DataSourceState.Builder type(@Nullable com.pulumi.core.Output<java.lang.String> type)
- Parameters:
type- Type of data source repository. For an updated list of values, refer to [Valid Values for Type](https://docs.aws.amazon.com/kendra/latest/dg/API_CreateDataSource.html#Kendra-CreateDataSource-request-Type). The following arguments are optional:- Returns:
- builder
-
type
public DataSourceState.Builder type(java.lang.String type)
- Parameters:
type- Type of data source repository. For an updated list of values, refer to [Valid Values for Type](https://docs.aws.amazon.com/kendra/latest/dg/API_CreateDataSource.html#Kendra-CreateDataSource-request-Type). The following arguments are optional:- Returns:
- builder
-
updatedAt
public DataSourceState.Builder updatedAt(@Nullable com.pulumi.core.Output<java.lang.String> updatedAt)
- Parameters:
updatedAt- Unix time stamp of when the Data Source was last updated.- Returns:
- builder
-
updatedAt
public DataSourceState.Builder updatedAt(java.lang.String updatedAt)
- Parameters:
updatedAt- Unix time stamp of when the Data Source was last updated.- Returns:
- builder
-
build
public DataSourceState build()
-
-