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

com.pulumi.aws.glue.inputs.CrawlerS3TargetArgs Maven / Gradle / Ivy

// *** 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.glue.inputs;

import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


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

    public static final CrawlerS3TargetArgs Empty = new CrawlerS3TargetArgs();

    /**
     * The name of a connection which allows crawler to access data in S3 within a VPC.
     * 
     */
    @Import(name="connectionName")
    private @Nullable Output connectionName;

    /**
     * @return The name of a connection which allows crawler to access data in S3 within a VPC.
     * 
     */
    public Optional> connectionName() {
        return Optional.ofNullable(this.connectionName);
    }

    /**
     * The ARN of the dead-letter SQS queue.
     * 
     */
    @Import(name="dlqEventQueueArn")
    private @Nullable Output dlqEventQueueArn;

    /**
     * @return The ARN of the dead-letter SQS queue.
     * 
     */
    public Optional> dlqEventQueueArn() {
        return Optional.ofNullable(this.dlqEventQueueArn);
    }

    /**
     * The ARN of the SQS queue to receive S3 notifications from.
     * 
     */
    @Import(name="eventQueueArn")
    private @Nullable Output eventQueueArn;

    /**
     * @return The ARN of the SQS queue to receive S3 notifications from.
     * 
     */
    public Optional> eventQueueArn() {
        return Optional.ofNullable(this.eventQueueArn);
    }

    /**
     * A list of glob patterns used to exclude from the crawl.
     * 
     */
    @Import(name="exclusions")
    private @Nullable Output> exclusions;

    /**
     * @return A list of glob patterns used to exclude from the crawl.
     * 
     */
    public Optional>> exclusions() {
        return Optional.ofNullable(this.exclusions);
    }

    /**
     * The path to the Amazon S3 target.
     * 
     */
    @Import(name="path", required=true)
    private Output path;

    /**
     * @return The path to the Amazon S3 target.
     * 
     */
    public Output path() {
        return this.path;
    }

    /**
     * Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
     * 
     */
    @Import(name="sampleSize")
    private @Nullable Output sampleSize;

    /**
     * @return Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
     * 
     */
    public Optional> sampleSize() {
        return Optional.ofNullable(this.sampleSize);
    }

    private CrawlerS3TargetArgs() {}

    private CrawlerS3TargetArgs(CrawlerS3TargetArgs $) {
        this.connectionName = $.connectionName;
        this.dlqEventQueueArn = $.dlqEventQueueArn;
        this.eventQueueArn = $.eventQueueArn;
        this.exclusions = $.exclusions;
        this.path = $.path;
        this.sampleSize = $.sampleSize;
    }

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

    public static final class Builder {
        private CrawlerS3TargetArgs $;

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

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

        /**
         * @param connectionName The name of a connection which allows crawler to access data in S3 within a VPC.
         * 
         * @return builder
         * 
         */
        public Builder connectionName(@Nullable Output connectionName) {
            $.connectionName = connectionName;
            return this;
        }

        /**
         * @param connectionName The name of a connection which allows crawler to access data in S3 within a VPC.
         * 
         * @return builder
         * 
         */
        public Builder connectionName(String connectionName) {
            return connectionName(Output.of(connectionName));
        }

        /**
         * @param dlqEventQueueArn The ARN of the dead-letter SQS queue.
         * 
         * @return builder
         * 
         */
        public Builder dlqEventQueueArn(@Nullable Output dlqEventQueueArn) {
            $.dlqEventQueueArn = dlqEventQueueArn;
            return this;
        }

        /**
         * @param dlqEventQueueArn The ARN of the dead-letter SQS queue.
         * 
         * @return builder
         * 
         */
        public Builder dlqEventQueueArn(String dlqEventQueueArn) {
            return dlqEventQueueArn(Output.of(dlqEventQueueArn));
        }

        /**
         * @param eventQueueArn The ARN of the SQS queue to receive S3 notifications from.
         * 
         * @return builder
         * 
         */
        public Builder eventQueueArn(@Nullable Output eventQueueArn) {
            $.eventQueueArn = eventQueueArn;
            return this;
        }

        /**
         * @param eventQueueArn The ARN of the SQS queue to receive S3 notifications from.
         * 
         * @return builder
         * 
         */
        public Builder eventQueueArn(String eventQueueArn) {
            return eventQueueArn(Output.of(eventQueueArn));
        }

        /**
         * @param exclusions A list of glob patterns used to exclude from the crawl.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(@Nullable Output> exclusions) {
            $.exclusions = exclusions;
            return this;
        }

        /**
         * @param exclusions A list of glob patterns used to exclude from the crawl.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(List exclusions) {
            return exclusions(Output.of(exclusions));
        }

        /**
         * @param exclusions A list of glob patterns used to exclude from the crawl.
         * 
         * @return builder
         * 
         */
        public Builder exclusions(String... exclusions) {
            return exclusions(List.of(exclusions));
        }

        /**
         * @param path The path to the Amazon S3 target.
         * 
         * @return builder
         * 
         */
        public Builder path(Output path) {
            $.path = path;
            return this;
        }

        /**
         * @param path The path to the Amazon S3 target.
         * 
         * @return builder
         * 
         */
        public Builder path(String path) {
            return path(Output.of(path));
        }

        /**
         * @param sampleSize Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
         * 
         * @return builder
         * 
         */
        public Builder sampleSize(@Nullable Output sampleSize) {
            $.sampleSize = sampleSize;
            return this;
        }

        /**
         * @param sampleSize Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
         * 
         * @return builder
         * 
         */
        public Builder sampleSize(Integer sampleSize) {
            return sampleSize(Output.of(sampleSize));
        }

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

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy