All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSource Maven / Gradle / Ivy

Go to download

AWS Generative AI CDK Constructs is a library for well-architected generative AI patterns.

The newest version!
package io.github.cdklabs.generative_ai_cdk_constructs.bedrock;

/**
 * (experimental) Sets up an data source to be added to a knowledge base.
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.1 (build bef2dea)", date = "2024-10-01T15:41:28.768Z")
@software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
@software.amazon.jsii.Jsii(module = io.github.cdklabs.generative_ai_cdk_constructs.$Module.class, fqn = "@cdklabs/generative-ai-cdk-constructs.bedrock.SharePointDataSource")
public class SharePointDataSource extends io.github.cdklabs.generative_ai_cdk_constructs.bedrock.DataSourceNew {

    protected SharePointDataSource(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected SharePointDataSource(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param scope This parameter is required.
     * @param id This parameter is required.
     * @param props This parameter is required.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public SharePointDataSource(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSourceProps props) {
        super(software.amazon.jsii.JsiiObject.InitializationMode.JSII);
        software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") });
    }

    /**
     * (experimental) The AWS Secrets Manager secret that stores your authentication credentials.
     */
    @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental)
    public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.secretsmanager.ISecret getAuthSecret() {
        return software.amazon.jsii.Kernel.get(this, "authSecret", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.secretsmanager.ISecret.class));
    }

    /**
     * (experimental) The unique identifier of the data source.
     * 

* Example: *

*

     * 'JHUEVXUZMU'
     * 
*/ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDataSourceId() { return software.amazon.jsii.Kernel.get(this, "dataSourceId", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * (experimental) The name of the data source. */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDataSourceName() { return software.amazon.jsii.Kernel.get(this, "dataSourceName", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * (experimental) The type of data source. */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.bedrock.DataSourceType getDataSourceType() { return software.amazon.jsii.Kernel.get(this, "dataSourceType", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.generative_ai_cdk_constructs.bedrock.DataSourceType.class)); } /** * (experimental) The domain name of your SharePoint instance. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.lang.String getDomain() { return software.amazon.jsii.Kernel.get(this, "domain", software.amazon.jsii.NativeType.forClass(java.lang.String.class)); } /** * (experimental) The knowledge base associated with the data source. */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull io.github.cdklabs.generative_ai_cdk_constructs.bedrock.IKnowledgeBase getKnowledgeBase() { return software.amazon.jsii.Kernel.get(this, "knowledgeBase", software.amazon.jsii.NativeType.forClass(io.github.cdklabs.generative_ai_cdk_constructs.bedrock.IKnowledgeBase.class)); } /** * (experimental) The SharePoint site URL/URLs. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.NotNull java.util.List getSiteUrls() { return java.util.Collections.unmodifiableList(software.amazon.jsii.Kernel.get(this, "siteUrls", software.amazon.jsii.NativeType.listOf(software.amazon.jsii.NativeType.forClass(java.lang.String.class)))); } /** * (experimental) The KMS key to use to encrypt the data source. */ @Override @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public @org.jetbrains.annotations.Nullable software.amazon.awscdk.services.kms.IKey getKmsKey() { return software.amazon.jsii.Kernel.get(this, "kmsKey", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.kms.IKey.class)); } /** * (experimental) A fluent builder for {@link io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSource}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope This parameter is required. * @param id This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSourceProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSourceProps.Builder(); } /** * (experimental) The chunking stategy to use for splitting your documents or content. *

* The chunks are then converted to embeddings and written to the vector * index allowing for similarity search and retrieval of the content. *

* Default: ChunkingStrategy.DEFAULT *

* @return {@code this} * @param chunkingStrategy The chunking stategy to use for splitting your documents or content. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder chunkingStrategy(final io.github.cdklabs.generative_ai_cdk_constructs.bedrock.ChunkingStrategy chunkingStrategy) { this.props.chunkingStrategy(chunkingStrategy); return this; } /** * (experimental) The custom transformation strategy to use. *

* Default: - No custom transformation is used. *

* @return {@code this} * @param customTransformation The custom transformation strategy to use. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder customTransformation(final io.github.cdklabs.generative_ai_cdk_constructs.bedrock.CustomTransformation customTransformation) { this.props.customTransformation(customTransformation); return this; } /** * (experimental) The data deletion policy to apply to the data source. *

* Default: - Sets the data deletion policy to the default of the data source type. *

* @return {@code this} * @param dataDeletionPolicy The data deletion policy to apply to the data source. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder dataDeletionPolicy(final io.github.cdklabs.generative_ai_cdk_constructs.bedrock.DataDeletionPolicy dataDeletionPolicy) { this.props.dataDeletionPolicy(dataDeletionPolicy); return this; } /** * (experimental) The name of the data source. *

* Default: - A new name will be generated. *

* @return {@code this} * @param dataSourceName The name of the data source. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder dataSourceName(final java.lang.String dataSourceName) { this.props.dataSourceName(dataSourceName); return this; } /** * (experimental) A description of the data source. *

* Default: - No description is provided. *

* @return {@code this} * @param description A description of the data source. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder description(final java.lang.String description) { this.props.description(description); return this; } /** * (experimental) The KMS key to use to encrypt the data source. *

* Default: - Service owned and managed key. *

* @return {@code this} * @param kmsKey The KMS key to use to encrypt the data source. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder kmsKey(final software.amazon.awscdk.services.kms.IKey kmsKey) { this.props.kmsKey(kmsKey); return this; } /** * (experimental) The parsing strategy to use. *

* Default: - No Parsing Stategy is used. *

* @return {@code this} * @param parsingStrategy The parsing strategy to use. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder parsingStrategy(final io.github.cdklabs.generative_ai_cdk_constructs.bedrock.ParsingStategy parsingStrategy) { this.props.parsingStrategy(parsingStrategy); return this; } /** * (experimental) The AWS Secrets Manager secret that stores your authentication credentials for your Sharepoint instance URL. *

* Secret must start with "AmazonBedrock-". *

* @return {@code this} * @param authSecret The AWS Secrets Manager secret that stores your authentication credentials for your Sharepoint instance URL. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder authSecret(final software.amazon.awscdk.services.secretsmanager.ISecret authSecret) { this.props.authSecret(authSecret); return this; } /** * (experimental) The domain of your SharePoint instance or site URL/URLs. *

* Example: *

*

         * "yourdomain"
         * 
*

* @return {@code this} * @param domain The domain of your SharePoint instance or site URL/URLs. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder domain(final java.lang.String domain) { this.props.domain(domain); return this; } /** * (experimental) The SharePoint site URL/URLs. *

* Must start with “https”. All URLs must start with same protocol. *

* Example: *

*

         * ["https://yourdomain.sharepoint.com/sites/mysite"]
         * 
*

* @return {@code this} * @param siteUrls The SharePoint site URL/URLs. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder siteUrls(final java.util.List siteUrls) { this.props.siteUrls(siteUrls); return this; } /** * (experimental) The identifier of your Microsoft 365 tenant. *

* Example: *

*

         * "d1c035a6-1dcf-457d-97e3"
         * 
*

* @return {@code this} * @param tenantId The identifier of your Microsoft 365 tenant. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder tenantId(final java.lang.String tenantId) { this.props.tenantId(tenantId); return this; } /** * (experimental) The filters (regular expression patterns) for the crawling. *

* If there's a conflict, the exclude pattern takes precedence. *

* Default: None - all your content is crawled. *

* @return {@code this} * @param filters The filters (regular expression patterns) for the crawling. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder filters(final java.util.List filters) { this.props.filters(filters); return this; } /** * (experimental) The knowledge base to associate with the data source. *

* @return {@code this} * @param knowledgeBase The knowledge base to associate with the data source. This parameter is required. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) public Builder knowledgeBase(final io.github.cdklabs.generative_ai_cdk_constructs.bedrock.IKnowledgeBase knowledgeBase) { this.props.knowledgeBase(knowledgeBase); return this; } /** * @return a newly built instance of {@link io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSource}. */ @software.amazon.jsii.Stability(software.amazon.jsii.Stability.Level.Experimental) @Override public io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSource build() { return new io.github.cdklabs.generative_ai_cdk_constructs.bedrock.SharePointDataSource( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy