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

com.pulumi.aws.bedrock.AgentKnowledgeBaseArgs Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

There is a newer version: 6.72.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.bedrock;

import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseKnowledgeBaseConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseStorageConfigurationArgs;
import com.pulumi.aws.bedrock.inputs.AgentKnowledgeBaseTimeoutsArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class AgentKnowledgeBaseArgs extends com.pulumi.resources.ResourceArgs {

    public static final AgentKnowledgeBaseArgs Empty = new AgentKnowledgeBaseArgs();

    /**
     * Description of the knowledge base.
     * 
     */
    @Import(name="description")
    private @Nullable Output description;

    /**
     * @return Description of the knowledge base.
     * 
     */
    public Optional> description() {
        return Optional.ofNullable(this.description);
    }

    /**
     * Details about the embeddings configuration of the knowledge base. See `knowledge_base_configuration` block for details.
     * 
     */
    @Import(name="knowledgeBaseConfiguration")
    private @Nullable Output knowledgeBaseConfiguration;

    /**
     * @return Details about the embeddings configuration of the knowledge base. See `knowledge_base_configuration` block for details.
     * 
     */
    public Optional> knowledgeBaseConfiguration() {
        return Optional.ofNullable(this.knowledgeBaseConfiguration);
    }

    /**
     * Name of the knowledge base.
     * 
     */
    @Import(name="name")
    private @Nullable Output name;

    /**
     * @return Name of the knowledge base.
     * 
     */
    public Optional> name() {
        return Optional.ofNullable(this.name);
    }

    /**
     * ARN of the IAM role with permissions to invoke API operations on the knowledge base.
     * 
     */
    @Import(name="roleArn", required=true)
    private Output roleArn;

    /**
     * @return ARN of the IAM role with permissions to invoke API operations on the knowledge base.
     * 
     */
    public Output roleArn() {
        return this.roleArn;
    }

    /**
     * Details about the storage configuration of the knowledge base. See `storage_configuration` block for details.
     * 
     * The following arguments are optional:
     * 
     */
    @Import(name="storageConfiguration")
    private @Nullable Output storageConfiguration;

    /**
     * @return Details about the storage configuration of the knowledge base. See `storage_configuration` block for details.
     * 
     * The following arguments are optional:
     * 
     */
    public Optional> storageConfiguration() {
        return Optional.ofNullable(this.storageConfiguration);
    }

    /**
     * Map of tags assigned to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Map of tags assigned to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    @Import(name="timeouts")
    private @Nullable Output timeouts;

    public Optional> timeouts() {
        return Optional.ofNullable(this.timeouts);
    }

    private AgentKnowledgeBaseArgs() {}

    private AgentKnowledgeBaseArgs(AgentKnowledgeBaseArgs $) {
        this.description = $.description;
        this.knowledgeBaseConfiguration = $.knowledgeBaseConfiguration;
        this.name = $.name;
        this.roleArn = $.roleArn;
        this.storageConfiguration = $.storageConfiguration;
        this.tags = $.tags;
        this.timeouts = $.timeouts;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(AgentKnowledgeBaseArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private AgentKnowledgeBaseArgs $;

        public Builder() {
            $ = new AgentKnowledgeBaseArgs();
        }

        public Builder(AgentKnowledgeBaseArgs defaults) {
            $ = new AgentKnowledgeBaseArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param description Description of the knowledge base.
         * 
         * @return builder
         * 
         */
        public Builder description(@Nullable Output description) {
            $.description = description;
            return this;
        }

        /**
         * @param description Description of the knowledge base.
         * 
         * @return builder
         * 
         */
        public Builder description(String description) {
            return description(Output.of(description));
        }

        /**
         * @param knowledgeBaseConfiguration Details about the embeddings configuration of the knowledge base. See `knowledge_base_configuration` block for details.
         * 
         * @return builder
         * 
         */
        public Builder knowledgeBaseConfiguration(@Nullable Output knowledgeBaseConfiguration) {
            $.knowledgeBaseConfiguration = knowledgeBaseConfiguration;
            return this;
        }

        /**
         * @param knowledgeBaseConfiguration Details about the embeddings configuration of the knowledge base. See `knowledge_base_configuration` block for details.
         * 
         * @return builder
         * 
         */
        public Builder knowledgeBaseConfiguration(AgentKnowledgeBaseKnowledgeBaseConfigurationArgs knowledgeBaseConfiguration) {
            return knowledgeBaseConfiguration(Output.of(knowledgeBaseConfiguration));
        }

        /**
         * @param name Name of the knowledge base.
         * 
         * @return builder
         * 
         */
        public Builder name(@Nullable Output name) {
            $.name = name;
            return this;
        }

        /**
         * @param name Name of the knowledge base.
         * 
         * @return builder
         * 
         */
        public Builder name(String name) {
            return name(Output.of(name));
        }

        /**
         * @param roleArn ARN of the IAM role with permissions to invoke API operations on the knowledge base.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(Output roleArn) {
            $.roleArn = roleArn;
            return this;
        }

        /**
         * @param roleArn ARN of the IAM role with permissions to invoke API operations on the knowledge base.
         * 
         * @return builder
         * 
         */
        public Builder roleArn(String roleArn) {
            return roleArn(Output.of(roleArn));
        }

        /**
         * @param storageConfiguration Details about the storage configuration of the knowledge base. See `storage_configuration` block for details.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder storageConfiguration(@Nullable Output storageConfiguration) {
            $.storageConfiguration = storageConfiguration;
            return this;
        }

        /**
         * @param storageConfiguration Details about the storage configuration of the knowledge base. See `storage_configuration` block for details.
         * 
         * The following arguments are optional:
         * 
         * @return builder
         * 
         */
        public Builder storageConfiguration(AgentKnowledgeBaseStorageConfigurationArgs storageConfiguration) {
            return storageConfiguration(Output.of(storageConfiguration));
        }

        /**
         * @param tags Map of tags assigned to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Map of tags assigned to the resource. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public Builder timeouts(@Nullable Output timeouts) {
            $.timeouts = timeouts;
            return this;
        }

        public Builder timeouts(AgentKnowledgeBaseTimeoutsArgs timeouts) {
            return timeouts(Output.of(timeouts));
        }

        public AgentKnowledgeBaseArgs build() {
            if ($.roleArn == null) {
                throw new MissingRequiredPropertyException("AgentKnowledgeBaseArgs", "roleArn");
            }
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy