pub struct CreateCrawlerFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateCrawler
.
Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl target must be specified, in the s3Targets
field, the jdbcTargets
field, or the DynamoDBTargets
field.
Implementations§
source§impl CreateCrawlerFluentBuilder
impl CreateCrawlerFluentBuilder
sourcepub fn as_input(&self) -> &CreateCrawlerInputBuilder
pub fn as_input(&self) -> &CreateCrawlerInputBuilder
Access the CreateCrawler as a reference.
sourcepub async fn send(
self,
) -> Result<CreateCrawlerOutput, SdkError<CreateCrawlerError, HttpResponse>>
pub async fn send( self, ) -> Result<CreateCrawlerOutput, SdkError<CreateCrawlerError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub fn customize(
self,
) -> CustomizableOperation<CreateCrawlerOutput, CreateCrawlerError, Self>
pub fn customize( self, ) -> CustomizableOperation<CreateCrawlerOutput, CreateCrawlerError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn role(self, input: impl Into<String>) -> Self
pub fn role(self, input: impl Into<String>) -> Self
The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new crawler to access customer resources.
sourcepub fn set_role(self, input: Option<String>) -> Self
pub fn set_role(self, input: Option<String>) -> Self
The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new crawler to access customer resources.
sourcepub fn get_role(&self) -> &Option<String>
pub fn get_role(&self) -> &Option<String>
The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new crawler to access customer resources.
sourcepub fn database_name(self, input: impl Into<String>) -> Self
pub fn database_name(self, input: impl Into<String>) -> Self
The Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/*
.
sourcepub fn set_database_name(self, input: Option<String>) -> Self
pub fn set_database_name(self, input: Option<String>) -> Self
The Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/*
.
sourcepub fn get_database_name(&self) -> &Option<String>
pub fn get_database_name(&self) -> &Option<String>
The Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/*
.
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description of the new crawler.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description of the new crawler.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description of the new crawler.
sourcepub fn targets(self, input: CrawlerTargets) -> Self
pub fn targets(self, input: CrawlerTargets) -> Self
A list of collection of targets to crawl.
sourcepub fn set_targets(self, input: Option<CrawlerTargets>) -> Self
pub fn set_targets(self, input: Option<CrawlerTargets>) -> Self
A list of collection of targets to crawl.
sourcepub fn get_targets(&self) -> &Option<CrawlerTargets>
pub fn get_targets(&self) -> &Option<CrawlerTargets>
A list of collection of targets to crawl.
sourcepub fn schedule(self, input: impl Into<String>) -> Self
pub fn schedule(self, input: impl Into<String>) -> Self
A cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *)
.
sourcepub fn set_schedule(self, input: Option<String>) -> Self
pub fn set_schedule(self, input: Option<String>) -> Self
A cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *)
.
sourcepub fn get_schedule(&self) -> &Option<String>
pub fn get_schedule(&self) -> &Option<String>
A cron
expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *)
.
sourcepub fn classifiers(self, input: impl Into<String>) -> Self
pub fn classifiers(self, input: impl Into<String>) -> Self
Appends an item to Classifiers
.
To override the contents of this collection use set_classifiers
.
A list of custom classifiers that the user has registered. By default, all built-in classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.
sourcepub fn set_classifiers(self, input: Option<Vec<String>>) -> Self
pub fn set_classifiers(self, input: Option<Vec<String>>) -> Self
A list of custom classifiers that the user has registered. By default, all built-in classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.
sourcepub fn get_classifiers(&self) -> &Option<Vec<String>>
pub fn get_classifiers(&self) -> &Option<Vec<String>>
A list of custom classifiers that the user has registered. By default, all built-in classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.
sourcepub fn table_prefix(self, input: impl Into<String>) -> Self
pub fn table_prefix(self, input: impl Into<String>) -> Self
The table prefix used for catalog tables that are created.
sourcepub fn set_table_prefix(self, input: Option<String>) -> Self
pub fn set_table_prefix(self, input: Option<String>) -> Self
The table prefix used for catalog tables that are created.
sourcepub fn get_table_prefix(&self) -> &Option<String>
pub fn get_table_prefix(&self) -> &Option<String>
The table prefix used for catalog tables that are created.
sourcepub fn schema_change_policy(self, input: SchemaChangePolicy) -> Self
pub fn schema_change_policy(self, input: SchemaChangePolicy) -> Self
The policy for the crawler's update and deletion behavior.
sourcepub fn set_schema_change_policy(self, input: Option<SchemaChangePolicy>) -> Self
pub fn set_schema_change_policy(self, input: Option<SchemaChangePolicy>) -> Self
The policy for the crawler's update and deletion behavior.
sourcepub fn get_schema_change_policy(&self) -> &Option<SchemaChangePolicy>
pub fn get_schema_change_policy(&self) -> &Option<SchemaChangePolicy>
The policy for the crawler's update and deletion behavior.
sourcepub fn recrawl_policy(self, input: RecrawlPolicy) -> Self
pub fn recrawl_policy(self, input: RecrawlPolicy) -> Self
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
sourcepub fn set_recrawl_policy(self, input: Option<RecrawlPolicy>) -> Self
pub fn set_recrawl_policy(self, input: Option<RecrawlPolicy>) -> Self
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
sourcepub fn get_recrawl_policy(&self) -> &Option<RecrawlPolicy>
pub fn get_recrawl_policy(&self) -> &Option<RecrawlPolicy>
A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.
sourcepub fn lineage_configuration(self, input: LineageConfiguration) -> Self
pub fn lineage_configuration(self, input: LineageConfiguration) -> Self
Specifies data lineage configuration settings for the crawler.
sourcepub fn set_lineage_configuration(
self,
input: Option<LineageConfiguration>,
) -> Self
pub fn set_lineage_configuration( self, input: Option<LineageConfiguration>, ) -> Self
Specifies data lineage configuration settings for the crawler.
sourcepub fn get_lineage_configuration(&self) -> &Option<LineageConfiguration>
pub fn get_lineage_configuration(&self) -> &Option<LineageConfiguration>
Specifies data lineage configuration settings for the crawler.
sourcepub fn lake_formation_configuration(
self,
input: LakeFormationConfiguration,
) -> Self
pub fn lake_formation_configuration( self, input: LakeFormationConfiguration, ) -> Self
Specifies Lake Formation configuration settings for the crawler.
sourcepub fn set_lake_formation_configuration(
self,
input: Option<LakeFormationConfiguration>,
) -> Self
pub fn set_lake_formation_configuration( self, input: Option<LakeFormationConfiguration>, ) -> Self
Specifies Lake Formation configuration settings for the crawler.
sourcepub fn get_lake_formation_configuration(
&self,
) -> &Option<LakeFormationConfiguration>
pub fn get_lake_formation_configuration( &self, ) -> &Option<LakeFormationConfiguration>
Specifies Lake Formation configuration settings for the crawler.
sourcepub fn configuration(self, input: impl Into<String>) -> Self
pub fn configuration(self, input: impl Into<String>) -> Self
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
sourcepub fn set_configuration(self, input: Option<String>) -> Self
pub fn set_configuration(self, input: Option<String>) -> Self
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
sourcepub fn get_configuration(&self) -> &Option<String>
pub fn get_configuration(&self) -> &Option<String>
Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.
sourcepub fn crawler_security_configuration(self, input: impl Into<String>) -> Self
pub fn crawler_security_configuration(self, input: impl Into<String>) -> Self
The name of the SecurityConfiguration
structure to be used by this crawler.
sourcepub fn set_crawler_security_configuration(self, input: Option<String>) -> Self
pub fn set_crawler_security_configuration(self, input: Option<String>) -> Self
The name of the SecurityConfiguration
structure to be used by this crawler.
sourcepub fn get_crawler_security_configuration(&self) -> &Option<String>
pub fn get_crawler_security_configuration(&self) -> &Option<String>
The name of the SecurityConfiguration
structure to be used by this crawler.
Adds a key-value pair to Tags
.
To override the contents of this collection use set_tags
.
The tags to use with this crawler request. You may use tags to limit access to the crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
The tags to use with this crawler request. You may use tags to limit access to the crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
The tags to use with this crawler request. You may use tags to limit access to the crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.
Trait Implementations§
source§impl Clone for CreateCrawlerFluentBuilder
impl Clone for CreateCrawlerFluentBuilder
source§fn clone(&self) -> CreateCrawlerFluentBuilder
fn clone(&self) -> CreateCrawlerFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for CreateCrawlerFluentBuilder
impl !RefUnwindSafe for CreateCrawlerFluentBuilder
impl Send for CreateCrawlerFluentBuilder
impl Sync for CreateCrawlerFluentBuilder
impl Unpin for CreateCrawlerFluentBuilder
impl !UnwindSafe for CreateCrawlerFluentBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more