use std::error::Error;
use std::fmt;
#[allow(warnings)]
use futures::future;
use futures::Future;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError, RusotoFuture};
use rusoto_core::proto;
use rusoto_core::signature::SignedRequest;
use serde_json;
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Action {
#[serde(rename = "Arguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "NotificationProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_property: Option<NotificationProperty>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "Timeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchCreatePartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionInputList")]
pub partition_input_list: Vec<PartitionInput>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchCreatePartitionResponse {
#[serde(rename = "Errors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errors: Option<Vec<PartitionError>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchDeleteConnectionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "ConnectionNameList")]
pub connection_name_list: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchDeleteConnectionResponse {
#[serde(rename = "Errors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errors: Option<::std::collections::HashMap<String, ErrorDetail>>,
#[serde(rename = "Succeeded")]
#[serde(skip_serializing_if = "Option::is_none")]
pub succeeded: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchDeletePartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionsToDelete")]
pub partitions_to_delete: Vec<PartitionValueList>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchDeletePartitionResponse {
#[serde(rename = "Errors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errors: Option<Vec<PartitionError>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchDeleteTableRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "TablesToDelete")]
pub tables_to_delete: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchDeleteTableResponse {
#[serde(rename = "Errors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errors: Option<Vec<TableError>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchDeleteTableVersionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "TableName")]
pub table_name: String,
#[serde(rename = "VersionIds")]
pub version_ids: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchDeleteTableVersionResponse {
#[serde(rename = "Errors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errors: Option<Vec<TableVersionError>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchGetCrawlersRequest {
#[serde(rename = "CrawlerNames")]
pub crawler_names: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchGetCrawlersResponse {
#[serde(rename = "Crawlers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawlers: Option<Vec<Crawler>>,
#[serde(rename = "CrawlersNotFound")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawlers_not_found: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchGetDevEndpointsRequest {
#[serde(rename = "DevEndpointNames")]
pub dev_endpoint_names: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchGetDevEndpointsResponse {
#[serde(rename = "DevEndpoints")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dev_endpoints: Option<Vec<DevEndpoint>>,
#[serde(rename = "DevEndpointsNotFound")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dev_endpoints_not_found: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchGetJobsRequest {
#[serde(rename = "JobNames")]
pub job_names: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchGetJobsResponse {
#[serde(rename = "Jobs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub jobs: Option<Vec<Job>>,
#[serde(rename = "JobsNotFound")]
#[serde(skip_serializing_if = "Option::is_none")]
pub jobs_not_found: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchGetPartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionsToGet")]
pub partitions_to_get: Vec<PartitionValueList>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchGetPartitionResponse {
#[serde(rename = "Partitions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub partitions: Option<Vec<Partition>>,
#[serde(rename = "UnprocessedKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unprocessed_keys: Option<Vec<PartitionValueList>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchGetTriggersRequest {
#[serde(rename = "TriggerNames")]
pub trigger_names: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchGetTriggersResponse {
#[serde(rename = "Triggers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub triggers: Option<Vec<Trigger>>,
#[serde(rename = "TriggersNotFound")]
#[serde(skip_serializing_if = "Option::is_none")]
pub triggers_not_found: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchStopJobRunError {
#[serde(rename = "ErrorDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_detail: Option<ErrorDetail>,
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "JobRunId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_run_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct BatchStopJobRunRequest {
#[serde(rename = "JobName")]
pub job_name: String,
#[serde(rename = "JobRunIds")]
pub job_run_ids: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchStopJobRunResponse {
#[serde(rename = "Errors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub errors: Option<Vec<BatchStopJobRunError>>,
#[serde(rename = "SuccessfulSubmissions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub successful_submissions: Option<Vec<BatchStopJobRunSuccessfulSubmission>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct BatchStopJobRunSuccessfulSubmission {
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "JobRunId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_run_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CatalogEntry {
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CatalogImportStatus {
#[serde(rename = "ImportCompleted")]
#[serde(skip_serializing_if = "Option::is_none")]
pub import_completed: Option<bool>,
#[serde(rename = "ImportTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub import_time: Option<f64>,
#[serde(rename = "ImportedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub imported_by: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CatalogTarget {
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "Tables")]
pub tables: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Classifier {
#[serde(rename = "CsvClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub csv_classifier: Option<CsvClassifier>,
#[serde(rename = "GrokClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub grok_classifier: Option<GrokClassifier>,
#[serde(rename = "JsonClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub json_classifier: Option<JsonClassifier>,
#[serde(rename = "XMLClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub xml_classifier: Option<XMLClassifier>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CloudWatchEncryption {
#[serde(rename = "CloudWatchEncryptionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_encryption_mode: Option<String>,
#[serde(rename = "KmsKeyArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CodeGenEdge {
#[serde(rename = "Source")]
pub source: String,
#[serde(rename = "Target")]
pub target: String,
#[serde(rename = "TargetParameter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_parameter: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CodeGenNode {
#[serde(rename = "Args")]
pub args: Vec<CodeGenNodeArg>,
#[serde(rename = "Id")]
pub id: String,
#[serde(rename = "LineNumber")]
#[serde(skip_serializing_if = "Option::is_none")]
pub line_number: Option<i64>,
#[serde(rename = "NodeType")]
pub node_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CodeGenNodeArg {
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Param")]
#[serde(skip_serializing_if = "Option::is_none")]
pub param: Option<bool>,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Column {
#[serde(rename = "Comment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Condition {
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "LogicalOperator")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logical_operator: Option<String>,
#[serde(rename = "State")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Connection {
#[serde(rename = "ConnectionProperties")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_properties: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "ConnectionType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_type: Option<String>,
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LastUpdatedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated_by: Option<String>,
#[serde(rename = "LastUpdatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated_time: Option<f64>,
#[serde(rename = "MatchCriteria")]
#[serde(skip_serializing_if = "Option::is_none")]
pub match_criteria: Option<Vec<String>>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "PhysicalConnectionRequirements")]
#[serde(skip_serializing_if = "Option::is_none")]
pub physical_connection_requirements: Option<PhysicalConnectionRequirements>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ConnectionInput {
#[serde(rename = "ConnectionProperties")]
pub connection_properties: ::std::collections::HashMap<String, String>,
#[serde(rename = "ConnectionType")]
pub connection_type: String,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "MatchCriteria")]
#[serde(skip_serializing_if = "Option::is_none")]
pub match_criteria: Option<Vec<String>>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "PhysicalConnectionRequirements")]
#[serde(skip_serializing_if = "Option::is_none")]
pub physical_connection_requirements: Option<PhysicalConnectionRequirements>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ConnectionPasswordEncryption {
#[serde(rename = "AwsKmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aws_kms_key_id: Option<String>,
#[serde(rename = "ReturnConnectionPasswordEncrypted")]
pub return_connection_password_encrypted: bool,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ConnectionsList {
#[serde(rename = "Connections")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connections: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Crawler {
#[serde(rename = "Classifiers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classifiers: Option<Vec<String>>,
#[serde(rename = "Configuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration: Option<String>,
#[serde(rename = "CrawlElapsedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawl_elapsed_time: Option<i64>,
#[serde(rename = "CrawlerSecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_security_configuration: Option<String>,
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LastCrawl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_crawl: Option<LastCrawlInfo>,
#[serde(rename = "LastUpdated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Role")]
#[serde(skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<Schedule>,
#[serde(rename = "SchemaChangePolicy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_change_policy: Option<SchemaChangePolicy>,
#[serde(rename = "State")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "TablePrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_prefix: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<CrawlerTargets>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CrawlerMetrics {
#[serde(rename = "CrawlerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_name: Option<String>,
#[serde(rename = "LastRuntimeSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_runtime_seconds: Option<f64>,
#[serde(rename = "MedianRuntimeSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub median_runtime_seconds: Option<f64>,
#[serde(rename = "StillEstimating")]
#[serde(skip_serializing_if = "Option::is_none")]
pub still_estimating: Option<bool>,
#[serde(rename = "TablesCreated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_created: Option<i64>,
#[serde(rename = "TablesDeleted")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_deleted: Option<i64>,
#[serde(rename = "TablesUpdated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_updated: Option<i64>,
#[serde(rename = "TimeLeftSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub time_left_seconds: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CrawlerTargets {
#[serde(rename = "CatalogTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_targets: Option<Vec<CatalogTarget>>,
#[serde(rename = "DynamoDBTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dynamo_db_targets: Option<Vec<DynamoDBTarget>>,
#[serde(rename = "JdbcTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub jdbc_targets: Option<Vec<JdbcTarget>>,
#[serde(rename = "S3Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_targets: Option<Vec<S3Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateClassifierRequest {
#[serde(rename = "CsvClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub csv_classifier: Option<CreateCsvClassifierRequest>,
#[serde(rename = "GrokClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub grok_classifier: Option<CreateGrokClassifierRequest>,
#[serde(rename = "JsonClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub json_classifier: Option<CreateJsonClassifierRequest>,
#[serde(rename = "XMLClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub xml_classifier: Option<CreateXMLClassifierRequest>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateClassifierResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateConnectionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "ConnectionInput")]
pub connection_input: ConnectionInput,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateConnectionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateCrawlerRequest {
#[serde(rename = "Classifiers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classifiers: Option<Vec<String>>,
#[serde(rename = "Configuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration: Option<String>,
#[serde(rename = "CrawlerSecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_security_configuration: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Role")]
pub role: String,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "SchemaChangePolicy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_change_policy: Option<SchemaChangePolicy>,
#[serde(rename = "TablePrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_prefix: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Targets")]
pub targets: CrawlerTargets,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateCrawlerResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateCsvClassifierRequest {
#[serde(rename = "AllowSingleColumn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_single_column: Option<bool>,
#[serde(rename = "ContainsHeader")]
#[serde(skip_serializing_if = "Option::is_none")]
pub contains_header: Option<String>,
#[serde(rename = "Delimiter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delimiter: Option<String>,
#[serde(rename = "DisableValueTrimming")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disable_value_trimming: Option<bool>,
#[serde(rename = "Header")]
#[serde(skip_serializing_if = "Option::is_none")]
pub header: Option<Vec<String>>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "QuoteSymbol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub quote_symbol: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDatabaseRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseInput")]
pub database_input: DatabaseInput,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateDatabaseResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDevEndpointRequest {
#[serde(rename = "Arguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "EndpointName")]
pub endpoint_name: String,
#[serde(rename = "ExtraJarsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_jars_s3_path: Option<String>,
#[serde(rename = "ExtraPythonLibsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_python_libs_s3_path: Option<String>,
#[serde(rename = "NumberOfNodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_nodes: Option<i64>,
#[serde(rename = "PublicKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_key: Option<String>,
#[serde(rename = "PublicKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_keys: Option<Vec<String>>,
#[serde(rename = "RoleArn")]
pub role_arn: String,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "SecurityGroupIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_group_ids: Option<Vec<String>>,
#[serde(rename = "SubnetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_id: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateDevEndpointResponse {
#[serde(rename = "Arguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "AvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "CreatedTimestamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_timestamp: Option<f64>,
#[serde(rename = "EndpointName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_name: Option<String>,
#[serde(rename = "ExtraJarsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_jars_s3_path: Option<String>,
#[serde(rename = "ExtraPythonLibsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_python_libs_s3_path: Option<String>,
#[serde(rename = "FailureReason")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_reason: Option<String>,
#[serde(rename = "NumberOfNodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_nodes: Option<i64>,
#[serde(rename = "RoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub role_arn: Option<String>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "SecurityGroupIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_group_ids: Option<Vec<String>>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "SubnetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_id: Option<String>,
#[serde(rename = "VpcId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_id: Option<String>,
#[serde(rename = "YarnEndpointAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub yarn_endpoint_address: Option<String>,
#[serde(rename = "ZeppelinRemoteSparkInterpreterPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zeppelin_remote_spark_interpreter_port: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateGrokClassifierRequest {
#[serde(rename = "Classification")]
pub classification: String,
#[serde(rename = "CustomPatterns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub custom_patterns: Option<String>,
#[serde(rename = "GrokPattern")]
pub grok_pattern: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateJobRequest {
#[serde(rename = "Command")]
pub command: JobCommand,
#[serde(rename = "Connections")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connections: Option<ConnectionsList>,
#[serde(rename = "DefaultArguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "ExecutionProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_property: Option<ExecutionProperty>,
#[serde(rename = "LogUri")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_uri: Option<String>,
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
#[serde(rename = "MaxRetries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_retries: Option<i64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "NotificationProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_property: Option<NotificationProperty>,
#[serde(rename = "NumberOfWorkers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_workers: Option<i64>,
#[serde(rename = "Role")]
pub role: String,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Timeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
#[serde(rename = "WorkerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub worker_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateJobResponse {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateJsonClassifierRequest {
#[serde(rename = "JsonPath")]
pub json_path: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreatePartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionInput")]
pub partition_input: PartitionInput,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreatePartitionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateScriptRequest {
#[serde(rename = "DagEdges")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dag_edges: Option<Vec<CodeGenEdge>>,
#[serde(rename = "DagNodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dag_nodes: Option<Vec<CodeGenNode>>,
#[serde(rename = "Language")]
#[serde(skip_serializing_if = "Option::is_none")]
pub language: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateScriptResponse {
#[serde(rename = "PythonScript")]
#[serde(skip_serializing_if = "Option::is_none")]
pub python_script: Option<String>,
#[serde(rename = "ScalaCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub scala_code: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateSecurityConfigurationRequest {
#[serde(rename = "EncryptionConfiguration")]
pub encryption_configuration: EncryptionConfiguration,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateSecurityConfigurationResponse {
#[serde(rename = "CreatedTimestamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_timestamp: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateTableRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "TableInput")]
pub table_input: TableInput,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateTableResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateTriggerRequest {
#[serde(rename = "Actions")]
pub actions: Vec<Action>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Predicate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub predicate: Option<Predicate>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "StartOnCreation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_on_creation: Option<bool>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Type")]
pub type_: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateTriggerResponse {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateUserDefinedFunctionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "FunctionInput")]
pub function_input: UserDefinedFunctionInput,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateUserDefinedFunctionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateXMLClassifierRequest {
#[serde(rename = "Classification")]
pub classification: String,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "RowTag")]
#[serde(skip_serializing_if = "Option::is_none")]
pub row_tag: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CsvClassifier {
#[serde(rename = "AllowSingleColumn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_single_column: Option<bool>,
#[serde(rename = "ContainsHeader")]
#[serde(skip_serializing_if = "Option::is_none")]
pub contains_header: Option<String>,
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "Delimiter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delimiter: Option<String>,
#[serde(rename = "DisableValueTrimming")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disable_value_trimming: Option<bool>,
#[serde(rename = "Header")]
#[serde(skip_serializing_if = "Option::is_none")]
pub header: Option<Vec<String>>,
#[serde(rename = "LastUpdated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated: Option<f64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "QuoteSymbol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub quote_symbol: Option<String>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DataCatalogEncryptionSettings {
#[serde(rename = "ConnectionPasswordEncryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_password_encryption: Option<ConnectionPasswordEncryption>,
#[serde(rename = "EncryptionAtRest")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encryption_at_rest: Option<EncryptionAtRest>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Database {
#[serde(rename = "CreateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub create_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LocationUri")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location_uri: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DatabaseInput {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LocationUri")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location_uri: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteClassifierRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteClassifierResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteConnectionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "ConnectionName")]
pub connection_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteConnectionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteCrawlerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteCrawlerResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDatabaseRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDatabaseResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDevEndpointRequest {
#[serde(rename = "EndpointName")]
pub endpoint_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDevEndpointResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteJobRequest {
#[serde(rename = "JobName")]
pub job_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteJobResponse {
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeletePartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionValues")]
pub partition_values: Vec<String>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeletePartitionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteResourcePolicyRequest {
#[serde(rename = "PolicyHashCondition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_hash_condition: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteResourcePolicyResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteSecurityConfigurationRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteSecurityConfigurationResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteTableRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteTableResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteTableVersionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "TableName")]
pub table_name: String,
#[serde(rename = "VersionId")]
pub version_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteTableVersionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteTriggerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteTriggerResponse {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteUserDefinedFunctionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "FunctionName")]
pub function_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteUserDefinedFunctionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DevEndpoint {
#[serde(rename = "Arguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "AvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "CreatedTimestamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_timestamp: Option<f64>,
#[serde(rename = "EndpointName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_name: Option<String>,
#[serde(rename = "ExtraJarsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_jars_s3_path: Option<String>,
#[serde(rename = "ExtraPythonLibsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_python_libs_s3_path: Option<String>,
#[serde(rename = "FailureReason")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_reason: Option<String>,
#[serde(rename = "LastModifiedTimestamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_timestamp: Option<f64>,
#[serde(rename = "LastUpdateStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_update_status: Option<String>,
#[serde(rename = "NumberOfNodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_nodes: Option<i64>,
#[serde(rename = "PrivateAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub private_address: Option<String>,
#[serde(rename = "PublicAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_address: Option<String>,
#[serde(rename = "PublicKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_key: Option<String>,
#[serde(rename = "PublicKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_keys: Option<Vec<String>>,
#[serde(rename = "RoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub role_arn: Option<String>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "SecurityGroupIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_group_ids: Option<Vec<String>>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "SubnetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_id: Option<String>,
#[serde(rename = "VpcId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_id: Option<String>,
#[serde(rename = "YarnEndpointAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub yarn_endpoint_address: Option<String>,
#[serde(rename = "ZeppelinRemoteSparkInterpreterPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zeppelin_remote_spark_interpreter_port: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DevEndpointCustomLibraries {
#[serde(rename = "ExtraJarsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_jars_s3_path: Option<String>,
#[serde(rename = "ExtraPythonLibsS3Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_python_libs_s3_path: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DynamoDBTarget {
#[serde(rename = "Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct EncryptionAtRest {
#[serde(rename = "CatalogEncryptionMode")]
pub catalog_encryption_mode: String,
#[serde(rename = "SseAwsKmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sse_aws_kms_key_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct EncryptionConfiguration {
#[serde(rename = "CloudWatchEncryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_encryption: Option<CloudWatchEncryption>,
#[serde(rename = "JobBookmarksEncryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_bookmarks_encryption: Option<JobBookmarksEncryption>,
#[serde(rename = "S3Encryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_encryption: Option<Vec<S3Encryption>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ErrorDetail {
#[serde(rename = "ErrorCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_code: Option<String>,
#[serde(rename = "ErrorMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_message: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ExecutionProperty {
#[serde(rename = "MaxConcurrentRuns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrent_runs: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetCatalogImportStatusRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetCatalogImportStatusResponse {
#[serde(rename = "ImportStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub import_status: Option<CatalogImportStatus>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetClassifierRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetClassifierResponse {
#[serde(rename = "Classifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classifier: Option<Classifier>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetClassifiersRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetClassifiersResponse {
#[serde(rename = "Classifiers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classifiers: Option<Vec<Classifier>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetConnectionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "HidePassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hide_password: Option<bool>,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetConnectionResponse {
#[serde(rename = "Connection")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection: Option<Connection>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetConnectionsFilter {
#[serde(rename = "ConnectionType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_type: Option<String>,
#[serde(rename = "MatchCriteria")]
#[serde(skip_serializing_if = "Option::is_none")]
pub match_criteria: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetConnectionsRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "Filter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filter: Option<GetConnectionsFilter>,
#[serde(rename = "HidePassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hide_password: Option<bool>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetConnectionsResponse {
#[serde(rename = "ConnectionList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_list: Option<Vec<Connection>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetCrawlerMetricsRequest {
#[serde(rename = "CrawlerNameList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_name_list: Option<Vec<String>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetCrawlerMetricsResponse {
#[serde(rename = "CrawlerMetricsList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_metrics_list: Option<Vec<CrawlerMetrics>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetCrawlerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetCrawlerResponse {
#[serde(rename = "Crawler")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler: Option<Crawler>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetCrawlersRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetCrawlersResponse {
#[serde(rename = "Crawlers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawlers: Option<Vec<Crawler>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDataCatalogEncryptionSettingsRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDataCatalogEncryptionSettingsResponse {
#[serde(rename = "DataCatalogEncryptionSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data_catalog_encryption_settings: Option<DataCatalogEncryptionSettings>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDatabaseRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDatabaseResponse {
#[serde(rename = "Database")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database: Option<Database>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDatabasesRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDatabasesResponse {
#[serde(rename = "DatabaseList")]
pub database_list: Vec<Database>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDataflowGraphRequest {
#[serde(rename = "PythonScript")]
#[serde(skip_serializing_if = "Option::is_none")]
pub python_script: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDataflowGraphResponse {
#[serde(rename = "DagEdges")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dag_edges: Option<Vec<CodeGenEdge>>,
#[serde(rename = "DagNodes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dag_nodes: Option<Vec<CodeGenNode>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDevEndpointRequest {
#[serde(rename = "EndpointName")]
pub endpoint_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDevEndpointResponse {
#[serde(rename = "DevEndpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dev_endpoint: Option<DevEndpoint>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDevEndpointsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDevEndpointsResponse {
#[serde(rename = "DevEndpoints")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dev_endpoints: Option<Vec<DevEndpoint>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetJobRequest {
#[serde(rename = "JobName")]
pub job_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetJobResponse {
#[serde(rename = "Job")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job: Option<Job>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetJobRunRequest {
#[serde(rename = "JobName")]
pub job_name: String,
#[serde(rename = "PredecessorsIncluded")]
#[serde(skip_serializing_if = "Option::is_none")]
pub predecessors_included: Option<bool>,
#[serde(rename = "RunId")]
pub run_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetJobRunResponse {
#[serde(rename = "JobRun")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_run: Option<JobRun>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetJobRunsRequest {
#[serde(rename = "JobName")]
pub job_name: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetJobRunsResponse {
#[serde(rename = "JobRuns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_runs: Option<Vec<JobRun>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetJobsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetJobsResponse {
#[serde(rename = "Jobs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub jobs: Option<Vec<Job>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetMappingRequest {
#[serde(rename = "Location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<Location>,
#[serde(rename = "Sinks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sinks: Option<Vec<CatalogEntry>>,
#[serde(rename = "Source")]
pub source: CatalogEntry,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetMappingResponse {
#[serde(rename = "Mapping")]
pub mapping: Vec<MappingEntry>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetPartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionValues")]
pub partition_values: Vec<String>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetPartitionResponse {
#[serde(rename = "Partition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub partition: Option<Partition>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetPartitionsRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "Expression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expression: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Segment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub segment: Option<Segment>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetPartitionsResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Partitions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub partitions: Option<Vec<Partition>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetPlanRequest {
#[serde(rename = "Language")]
#[serde(skip_serializing_if = "Option::is_none")]
pub language: Option<String>,
#[serde(rename = "Location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<Location>,
#[serde(rename = "Mapping")]
pub mapping: Vec<MappingEntry>,
#[serde(rename = "Sinks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sinks: Option<Vec<CatalogEntry>>,
#[serde(rename = "Source")]
pub source: CatalogEntry,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetPlanResponse {
#[serde(rename = "PythonScript")]
#[serde(skip_serializing_if = "Option::is_none")]
pub python_script: Option<String>,
#[serde(rename = "ScalaCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub scala_code: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetResourcePolicyRequest {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetResourcePolicyResponse {
#[serde(rename = "CreateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub create_time: Option<f64>,
#[serde(rename = "PolicyHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_hash: Option<String>,
#[serde(rename = "PolicyInJson")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_in_json: Option<String>,
#[serde(rename = "UpdateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub update_time: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetSecurityConfigurationRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetSecurityConfigurationResponse {
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<SecurityConfiguration>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetSecurityConfigurationsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetSecurityConfigurationsResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "SecurityConfigurations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configurations: Option<Vec<SecurityConfiguration>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTableRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTableResponse {
#[serde(rename = "Table")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table: Option<Table>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTableVersionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "TableName")]
pub table_name: String,
#[serde(rename = "VersionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTableVersionResponse {
#[serde(rename = "TableVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_version: Option<TableVersion>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTableVersionsRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTableVersionsResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "TableVersions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_versions: Option<Vec<TableVersion>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTablesRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "Expression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expression: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTablesResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "TableList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_list: Option<Vec<Table>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTagsRequest {
#[serde(rename = "ResourceArn")]
pub resource_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTagsResponse {
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTriggerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTriggerResponse {
#[serde(rename = "Trigger")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trigger: Option<Trigger>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetTriggersRequest {
#[serde(rename = "DependentJobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dependent_job_name: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetTriggersResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Triggers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub triggers: Option<Vec<Trigger>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetUserDefinedFunctionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "FunctionName")]
pub function_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetUserDefinedFunctionResponse {
#[serde(rename = "UserDefinedFunction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_defined_function: Option<UserDefinedFunction>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetUserDefinedFunctionsRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Pattern")]
pub pattern: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetUserDefinedFunctionsResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "UserDefinedFunctions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_defined_functions: Option<Vec<UserDefinedFunction>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GrokClassifier {
#[serde(rename = "Classification")]
pub classification: String,
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "CustomPatterns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub custom_patterns: Option<String>,
#[serde(rename = "GrokPattern")]
pub grok_pattern: String,
#[serde(rename = "LastUpdated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated: Option<f64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ImportCatalogToGlueRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ImportCatalogToGlueResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct JdbcTarget {
#[serde(rename = "ConnectionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_name: Option<String>,
#[serde(rename = "Exclusions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub exclusions: Option<Vec<String>>,
#[serde(rename = "Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Job {
#[serde(rename = "Command")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command: Option<JobCommand>,
#[serde(rename = "Connections")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connections: Option<ConnectionsList>,
#[serde(rename = "CreatedOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_on: Option<f64>,
#[serde(rename = "DefaultArguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "ExecutionProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_property: Option<ExecutionProperty>,
#[serde(rename = "LastModifiedOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_on: Option<f64>,
#[serde(rename = "LogUri")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_uri: Option<String>,
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
#[serde(rename = "MaxRetries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_retries: Option<i64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "NotificationProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_property: Option<NotificationProperty>,
#[serde(rename = "NumberOfWorkers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_workers: Option<i64>,
#[serde(rename = "Role")]
#[serde(skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "Timeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
#[serde(rename = "WorkerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub worker_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct JobBookmarkEntry {
#[serde(rename = "Attempt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attempt: Option<i64>,
#[serde(rename = "JobBookmark")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_bookmark: Option<String>,
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "Run")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run: Option<i64>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct JobBookmarksEncryption {
#[serde(rename = "JobBookmarksEncryptionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_bookmarks_encryption_mode: Option<String>,
#[serde(rename = "KmsKeyArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct JobCommand {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "PythonVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub python_version: Option<String>,
#[serde(rename = "ScriptLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub script_location: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct JobRun {
#[serde(rename = "Arguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Attempt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attempt: Option<i64>,
#[serde(rename = "CompletedOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub completed_on: Option<f64>,
#[serde(rename = "ErrorMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_message: Option<String>,
#[serde(rename = "ExecutionTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_time: Option<i64>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "JobRunState")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_run_state: Option<String>,
#[serde(rename = "LastModifiedOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_on: Option<f64>,
#[serde(rename = "LogGroupName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_group_name: Option<String>,
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
#[serde(rename = "NotificationProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_property: Option<NotificationProperty>,
#[serde(rename = "NumberOfWorkers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_workers: Option<i64>,
#[serde(rename = "PredecessorRuns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub predecessor_runs: Option<Vec<Predecessor>>,
#[serde(rename = "PreviousRunId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub previous_run_id: Option<String>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "StartedOn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub started_on: Option<f64>,
#[serde(rename = "Timeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
#[serde(rename = "TriggerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trigger_name: Option<String>,
#[serde(rename = "WorkerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub worker_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct JobUpdate {
#[serde(rename = "Command")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command: Option<JobCommand>,
#[serde(rename = "Connections")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connections: Option<ConnectionsList>,
#[serde(rename = "DefaultArguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "ExecutionProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_property: Option<ExecutionProperty>,
#[serde(rename = "LogUri")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_uri: Option<String>,
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
#[serde(rename = "MaxRetries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_retries: Option<i64>,
#[serde(rename = "NotificationProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_property: Option<NotificationProperty>,
#[serde(rename = "NumberOfWorkers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_workers: Option<i64>,
#[serde(rename = "Role")]
#[serde(skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "Timeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
#[serde(rename = "WorkerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub worker_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct JsonClassifier {
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "JsonPath")]
pub json_path: String,
#[serde(rename = "LastUpdated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated: Option<f64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LastCrawlInfo {
#[serde(rename = "ErrorMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_message: Option<String>,
#[serde(rename = "LogGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_group: Option<String>,
#[serde(rename = "LogStream")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_stream: Option<String>,
#[serde(rename = "MessagePrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message_prefix: Option<String>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListCrawlersRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListCrawlersResponse {
#[serde(rename = "CrawlerNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_names: Option<Vec<String>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListDevEndpointsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListDevEndpointsResponse {
#[serde(rename = "DevEndpointNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dev_endpoint_names: Option<Vec<String>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListJobsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListJobsResponse {
#[serde(rename = "JobNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_names: Option<Vec<String>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTriggersRequest {
#[serde(rename = "DependentJobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dependent_job_name: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListTriggersResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "TriggerNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trigger_names: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct Location {
#[serde(rename = "DynamoDB")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dynamo_db: Option<Vec<CodeGenNodeArg>>,
#[serde(rename = "Jdbc")]
#[serde(skip_serializing_if = "Option::is_none")]
pub jdbc: Option<Vec<CodeGenNodeArg>>,
#[serde(rename = "S3")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3: Option<Vec<CodeGenNodeArg>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MappingEntry {
#[serde(rename = "SourcePath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_path: Option<String>,
#[serde(rename = "SourceTable")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_table: Option<String>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
#[serde(rename = "TargetPath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_path: Option<String>,
#[serde(rename = "TargetTable")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_table: Option<String>,
#[serde(rename = "TargetType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct NotificationProperty {
#[serde(rename = "NotifyDelayAfter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notify_delay_after: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Order {
#[serde(rename = "Column")]
pub column: String,
#[serde(rename = "SortOrder")]
pub sort_order: i64,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Partition {
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "LastAccessTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_access_time: Option<f64>,
#[serde(rename = "LastAnalyzedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_analyzed_time: Option<f64>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "StorageDescriptor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_descriptor: Option<StorageDescriptor>,
#[serde(rename = "TableName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_name: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PartitionError {
#[serde(rename = "ErrorDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_detail: Option<ErrorDetail>,
#[serde(rename = "PartitionValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub partition_values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PartitionInput {
#[serde(rename = "LastAccessTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_access_time: Option<f64>,
#[serde(rename = "LastAnalyzedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_analyzed_time: Option<f64>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "StorageDescriptor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_descriptor: Option<StorageDescriptor>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PartitionValueList {
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PhysicalConnectionRequirements {
#[serde(rename = "AvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "SecurityGroupIdList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_group_id_list: Option<Vec<String>>,
#[serde(rename = "SubnetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Predecessor {
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
#[serde(rename = "RunId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Predicate {
#[serde(rename = "Conditions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub conditions: Option<Vec<Condition>>,
#[serde(rename = "Logical")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logical: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PutDataCatalogEncryptionSettingsRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DataCatalogEncryptionSettings")]
pub data_catalog_encryption_settings: DataCatalogEncryptionSettings,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PutDataCatalogEncryptionSettingsResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PutResourcePolicyRequest {
#[serde(rename = "PolicyExistsCondition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_exists_condition: Option<String>,
#[serde(rename = "PolicyHashCondition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_hash_condition: Option<String>,
#[serde(rename = "PolicyInJson")]
pub policy_in_json: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PutResourcePolicyResponse {
#[serde(rename = "PolicyHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_hash: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ResetJobBookmarkRequest {
#[serde(rename = "JobName")]
pub job_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResetJobBookmarkResponse {
#[serde(rename = "JobBookmarkEntry")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_bookmark_entry: Option<JobBookmarkEntry>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ResourceUri {
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "Uri")]
#[serde(skip_serializing_if = "Option::is_none")]
pub uri: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct S3Encryption {
#[serde(rename = "KmsKeyArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_arn: Option<String>,
#[serde(rename = "S3EncryptionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_encryption_mode: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct S3Target {
#[serde(rename = "Exclusions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub exclusions: Option<Vec<String>>,
#[serde(rename = "Path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Schedule {
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "State")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SchemaChangePolicy {
#[serde(rename = "DeleteBehavior")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delete_behavior: Option<String>,
#[serde(rename = "UpdateBehavior")]
#[serde(skip_serializing_if = "Option::is_none")]
pub update_behavior: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SecurityConfiguration {
#[serde(rename = "CreatedTimeStamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time_stamp: Option<f64>,
#[serde(rename = "EncryptionConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encryption_configuration: Option<EncryptionConfiguration>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct Segment {
#[serde(rename = "SegmentNumber")]
pub segment_number: i64,
#[serde(rename = "TotalSegments")]
pub total_segments: i64,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SerDeInfo {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "SerializationLibrary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub serialization_library: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct SkewedInfo {
#[serde(rename = "SkewedColumnNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skewed_column_names: Option<Vec<String>>,
#[serde(rename = "SkewedColumnValueLocationMaps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skewed_column_value_location_maps: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "SkewedColumnValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skewed_column_values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartCrawlerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartCrawlerResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartCrawlerScheduleRequest {
#[serde(rename = "CrawlerName")]
pub crawler_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartCrawlerScheduleResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartJobRunRequest {
#[serde(rename = "Arguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "JobName")]
pub job_name: String,
#[serde(rename = "JobRunId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_run_id: Option<String>,
#[serde(rename = "MaxCapacity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_capacity: Option<f64>,
#[serde(rename = "NotificationProperty")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_property: Option<NotificationProperty>,
#[serde(rename = "NumberOfWorkers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_workers: Option<i64>,
#[serde(rename = "SecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub security_configuration: Option<String>,
#[serde(rename = "Timeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout: Option<i64>,
#[serde(rename = "WorkerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub worker_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartJobRunResponse {
#[serde(rename = "JobRunId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_run_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartTriggerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartTriggerResponse {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopCrawlerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopCrawlerResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopCrawlerScheduleRequest {
#[serde(rename = "CrawlerName")]
pub crawler_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopCrawlerScheduleResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopTriggerRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopTriggerResponse {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct StorageDescriptor {
#[serde(rename = "BucketColumns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_columns: Option<Vec<String>>,
#[serde(rename = "Columns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub columns: Option<Vec<Column>>,
#[serde(rename = "Compressed")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compressed: Option<bool>,
#[serde(rename = "InputFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub input_format: Option<String>,
#[serde(rename = "Location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<String>,
#[serde(rename = "NumberOfBuckets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub number_of_buckets: Option<i64>,
#[serde(rename = "OutputFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_format: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "SerdeInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub serde_info: Option<SerDeInfo>,
#[serde(rename = "SkewedInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skewed_info: Option<SkewedInfo>,
#[serde(rename = "SortColumns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sort_columns: Option<Vec<Order>>,
#[serde(rename = "StoredAsSubDirectories")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stored_as_sub_directories: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Table {
#[serde(rename = "CreateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub create_time: Option<f64>,
#[serde(rename = "CreatedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_by: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LastAccessTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_access_time: Option<f64>,
#[serde(rename = "LastAnalyzedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_analyzed_time: Option<f64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "PartitionKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub partition_keys: Option<Vec<Column>>,
#[serde(rename = "Retention")]
#[serde(skip_serializing_if = "Option::is_none")]
pub retention: Option<i64>,
#[serde(rename = "StorageDescriptor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_descriptor: Option<StorageDescriptor>,
#[serde(rename = "TableType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_type: Option<String>,
#[serde(rename = "UpdateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub update_time: Option<f64>,
#[serde(rename = "ViewExpandedText")]
#[serde(skip_serializing_if = "Option::is_none")]
pub view_expanded_text: Option<String>,
#[serde(rename = "ViewOriginalText")]
#[serde(skip_serializing_if = "Option::is_none")]
pub view_original_text: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TableError {
#[serde(rename = "ErrorDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_detail: Option<ErrorDetail>,
#[serde(rename = "TableName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TableInput {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LastAccessTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_access_time: Option<f64>,
#[serde(rename = "LastAnalyzedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_analyzed_time: Option<f64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "PartitionKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub partition_keys: Option<Vec<Column>>,
#[serde(rename = "Retention")]
#[serde(skip_serializing_if = "Option::is_none")]
pub retention: Option<i64>,
#[serde(rename = "StorageDescriptor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_descriptor: Option<StorageDescriptor>,
#[serde(rename = "TableType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_type: Option<String>,
#[serde(rename = "ViewExpandedText")]
#[serde(skip_serializing_if = "Option::is_none")]
pub view_expanded_text: Option<String>,
#[serde(rename = "ViewOriginalText")]
#[serde(skip_serializing_if = "Option::is_none")]
pub view_original_text: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TableVersion {
#[serde(rename = "Table")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table: Option<Table>,
#[serde(rename = "VersionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TableVersionError {
#[serde(rename = "ErrorDetail")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_detail: Option<ErrorDetail>,
#[serde(rename = "TableName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_name: Option<String>,
#[serde(rename = "VersionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TagResourceRequest {
#[serde(rename = "ResourceArn")]
pub resource_arn: String,
#[serde(rename = "TagsToAdd")]
pub tags_to_add: ::std::collections::HashMap<String, String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TagResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Trigger {
#[serde(rename = "Actions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub actions: Option<Vec<Action>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Predicate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub predicate: Option<Predicate>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "State")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TriggerUpdate {
#[serde(rename = "Actions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub actions: Option<Vec<Action>>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Predicate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub predicate: Option<Predicate>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UntagResourceRequest {
#[serde(rename = "ResourceArn")]
pub resource_arn: String,
#[serde(rename = "TagsToRemove")]
pub tags_to_remove: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UntagResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateClassifierRequest {
#[serde(rename = "CsvClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub csv_classifier: Option<UpdateCsvClassifierRequest>,
#[serde(rename = "GrokClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub grok_classifier: Option<UpdateGrokClassifierRequest>,
#[serde(rename = "JsonClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub json_classifier: Option<UpdateJsonClassifierRequest>,
#[serde(rename = "XMLClassifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub xml_classifier: Option<UpdateXMLClassifierRequest>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateClassifierResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateConnectionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "ConnectionInput")]
pub connection_input: ConnectionInput,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateConnectionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateCrawlerRequest {
#[serde(rename = "Classifiers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classifiers: Option<Vec<String>>,
#[serde(rename = "Configuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration: Option<String>,
#[serde(rename = "CrawlerSecurityConfiguration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub crawler_security_configuration: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Role")]
#[serde(skip_serializing_if = "Option::is_none")]
pub role: Option<String>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "SchemaChangePolicy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_change_policy: Option<SchemaChangePolicy>,
#[serde(rename = "TablePrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_prefix: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<CrawlerTargets>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateCrawlerResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateCrawlerScheduleRequest {
#[serde(rename = "CrawlerName")]
pub crawler_name: String,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateCrawlerScheduleResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateCsvClassifierRequest {
#[serde(rename = "AllowSingleColumn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_single_column: Option<bool>,
#[serde(rename = "ContainsHeader")]
#[serde(skip_serializing_if = "Option::is_none")]
pub contains_header: Option<String>,
#[serde(rename = "Delimiter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delimiter: Option<String>,
#[serde(rename = "DisableValueTrimming")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disable_value_trimming: Option<bool>,
#[serde(rename = "Header")]
#[serde(skip_serializing_if = "Option::is_none")]
pub header: Option<Vec<String>>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "QuoteSymbol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub quote_symbol: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDatabaseRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseInput")]
pub database_input: DatabaseInput,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDatabaseResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDevEndpointRequest {
#[serde(rename = "AddArguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub add_arguments: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "AddPublicKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub add_public_keys: Option<Vec<String>>,
#[serde(rename = "CustomLibraries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub custom_libraries: Option<DevEndpointCustomLibraries>,
#[serde(rename = "DeleteArguments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delete_arguments: Option<Vec<String>>,
#[serde(rename = "DeletePublicKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delete_public_keys: Option<Vec<String>>,
#[serde(rename = "EndpointName")]
pub endpoint_name: String,
#[serde(rename = "PublicKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_key: Option<String>,
#[serde(rename = "UpdateEtlLibraries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub update_etl_libraries: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDevEndpointResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateGrokClassifierRequest {
#[serde(rename = "Classification")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classification: Option<String>,
#[serde(rename = "CustomPatterns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub custom_patterns: Option<String>,
#[serde(rename = "GrokPattern")]
#[serde(skip_serializing_if = "Option::is_none")]
pub grok_pattern: Option<String>,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateJobRequest {
#[serde(rename = "JobName")]
pub job_name: String,
#[serde(rename = "JobUpdate")]
pub job_update: JobUpdate,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateJobResponse {
#[serde(rename = "JobName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub job_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateJsonClassifierRequest {
#[serde(rename = "JsonPath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub json_path: Option<String>,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdatePartitionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "PartitionInput")]
pub partition_input: PartitionInput,
#[serde(rename = "PartitionValueList")]
pub partition_value_list: Vec<String>,
#[serde(rename = "TableName")]
pub table_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdatePartitionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateTableRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "SkipArchive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_archive: Option<bool>,
#[serde(rename = "TableInput")]
pub table_input: TableInput,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateTableResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateTriggerRequest {
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "TriggerUpdate")]
pub trigger_update: TriggerUpdate,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateTriggerResponse {
#[serde(rename = "Trigger")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trigger: Option<Trigger>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateUserDefinedFunctionRequest {
#[serde(rename = "CatalogId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub catalog_id: Option<String>,
#[serde(rename = "DatabaseName")]
pub database_name: String,
#[serde(rename = "FunctionInput")]
pub function_input: UserDefinedFunctionInput,
#[serde(rename = "FunctionName")]
pub function_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateUserDefinedFunctionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateXMLClassifierRequest {
#[serde(rename = "Classification")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classification: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "RowTag")]
#[serde(skip_serializing_if = "Option::is_none")]
pub row_tag: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UserDefinedFunction {
#[serde(rename = "ClassName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub class_name: Option<String>,
#[serde(rename = "CreateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub create_time: Option<f64>,
#[serde(rename = "FunctionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub function_name: Option<String>,
#[serde(rename = "OwnerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_name: Option<String>,
#[serde(rename = "OwnerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_type: Option<String>,
#[serde(rename = "ResourceUris")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_uris: Option<Vec<ResourceUri>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UserDefinedFunctionInput {
#[serde(rename = "ClassName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub class_name: Option<String>,
#[serde(rename = "FunctionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub function_name: Option<String>,
#[serde(rename = "OwnerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_name: Option<String>,
#[serde(rename = "OwnerType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_type: Option<String>,
#[serde(rename = "ResourceUris")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_uris: Option<Vec<ResourceUri>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct XMLClassifier {
#[serde(rename = "Classification")]
pub classification: String,
#[serde(rename = "CreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub creation_time: Option<f64>,
#[serde(rename = "LastUpdated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_updated: Option<f64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "RowTag")]
#[serde(skip_serializing_if = "Option::is_none")]
pub row_tag: Option<String>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Debug, PartialEq)]
pub enum BatchCreatePartitionError {
AlreadyExists(String),
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl BatchCreatePartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchCreatePartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(BatchCreatePartitionError::AlreadyExists(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(BatchCreatePartitionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(BatchCreatePartitionError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(BatchCreatePartitionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(BatchCreatePartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchCreatePartitionError::OperationTimeout(
err.msg,
))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(
BatchCreatePartitionError::ResourceNumberLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchCreatePartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchCreatePartitionError {
fn description(&self) -> &str {
match *self {
BatchCreatePartitionError::AlreadyExists(ref cause) => cause,
BatchCreatePartitionError::EntityNotFound(ref cause) => cause,
BatchCreatePartitionError::GlueEncryption(ref cause) => cause,
BatchCreatePartitionError::InternalService(ref cause) => cause,
BatchCreatePartitionError::InvalidInput(ref cause) => cause,
BatchCreatePartitionError::OperationTimeout(ref cause) => cause,
BatchCreatePartitionError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchDeleteConnectionError {
InternalService(String),
OperationTimeout(String),
}
impl BatchDeleteConnectionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchDeleteConnectionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(BatchDeleteConnectionError::InternalService(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchDeleteConnectionError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchDeleteConnectionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchDeleteConnectionError {
fn description(&self) -> &str {
match *self {
BatchDeleteConnectionError::InternalService(ref cause) => cause,
BatchDeleteConnectionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchDeletePartitionError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchDeletePartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchDeletePartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(BatchDeletePartitionError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(BatchDeletePartitionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(BatchDeletePartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchDeletePartitionError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchDeletePartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchDeletePartitionError {
fn description(&self) -> &str {
match *self {
BatchDeletePartitionError::EntityNotFound(ref cause) => cause,
BatchDeletePartitionError::InternalService(ref cause) => cause,
BatchDeletePartitionError::InvalidInput(ref cause) => cause,
BatchDeletePartitionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchDeleteTableError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchDeleteTableError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchDeleteTableError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(BatchDeleteTableError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(BatchDeleteTableError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(BatchDeleteTableError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchDeleteTableError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchDeleteTableError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchDeleteTableError {
fn description(&self) -> &str {
match *self {
BatchDeleteTableError::EntityNotFound(ref cause) => cause,
BatchDeleteTableError::InternalService(ref cause) => cause,
BatchDeleteTableError::InvalidInput(ref cause) => cause,
BatchDeleteTableError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchDeleteTableVersionError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchDeleteTableVersionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchDeleteTableVersionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(BatchDeleteTableVersionError::EntityNotFound(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(BatchDeleteTableVersionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(BatchDeleteTableVersionError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchDeleteTableVersionError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchDeleteTableVersionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchDeleteTableVersionError {
fn description(&self) -> &str {
match *self {
BatchDeleteTableVersionError::EntityNotFound(ref cause) => cause,
BatchDeleteTableVersionError::InternalService(ref cause) => cause,
BatchDeleteTableVersionError::InvalidInput(ref cause) => cause,
BatchDeleteTableVersionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchGetCrawlersError {
InvalidInput(String),
OperationTimeout(String),
}
impl BatchGetCrawlersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetCrawlersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidInputException" => {
return RusotoError::Service(BatchGetCrawlersError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchGetCrawlersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchGetCrawlersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchGetCrawlersError {
fn description(&self) -> &str {
match *self {
BatchGetCrawlersError::InvalidInput(ref cause) => cause,
BatchGetCrawlersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchGetDevEndpointsError {
AccessDenied(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchGetDevEndpointsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetDevEndpointsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(BatchGetDevEndpointsError::AccessDenied(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(BatchGetDevEndpointsError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(BatchGetDevEndpointsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchGetDevEndpointsError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchGetDevEndpointsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchGetDevEndpointsError {
fn description(&self) -> &str {
match *self {
BatchGetDevEndpointsError::AccessDenied(ref cause) => cause,
BatchGetDevEndpointsError::InternalService(ref cause) => cause,
BatchGetDevEndpointsError::InvalidInput(ref cause) => cause,
BatchGetDevEndpointsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchGetJobsError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchGetJobsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetJobsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(BatchGetJobsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(BatchGetJobsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchGetJobsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchGetJobsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchGetJobsError {
fn description(&self) -> &str {
match *self {
BatchGetJobsError::InternalService(ref cause) => cause,
BatchGetJobsError::InvalidInput(ref cause) => cause,
BatchGetJobsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchGetPartitionError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchGetPartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetPartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(BatchGetPartitionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(BatchGetPartitionError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(BatchGetPartitionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(BatchGetPartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchGetPartitionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchGetPartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchGetPartitionError {
fn description(&self) -> &str {
match *self {
BatchGetPartitionError::EntityNotFound(ref cause) => cause,
BatchGetPartitionError::GlueEncryption(ref cause) => cause,
BatchGetPartitionError::InternalService(ref cause) => cause,
BatchGetPartitionError::InvalidInput(ref cause) => cause,
BatchGetPartitionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum BatchGetTriggersError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl BatchGetTriggersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<BatchGetTriggersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(BatchGetTriggersError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(BatchGetTriggersError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(BatchGetTriggersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for BatchGetTriggersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for BatchGetTriggersError {
fn description(&self) -> &str {
match *self {
BatchGetTriggersError::InternalService(ref cause) => cause,
BatchGetTriggersError::InvalidInput(ref cause) => cause,
BatchGetTriggersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GlueBatchStopJobRunError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GlueBatchStopJobRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GlueBatchStopJobRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(GlueBatchStopJobRunError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GlueBatchStopJobRunError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GlueBatchStopJobRunError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GlueBatchStopJobRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GlueBatchStopJobRunError {
fn description(&self) -> &str {
match *self {
GlueBatchStopJobRunError::InternalService(ref cause) => cause,
GlueBatchStopJobRunError::InvalidInput(ref cause) => cause,
GlueBatchStopJobRunError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateClassifierError {
AlreadyExists(String),
InvalidInput(String),
OperationTimeout(String),
}
impl CreateClassifierError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateClassifierError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateClassifierError::AlreadyExists(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateClassifierError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateClassifierError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateClassifierError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateClassifierError {
fn description(&self) -> &str {
match *self {
CreateClassifierError::AlreadyExists(ref cause) => cause,
CreateClassifierError::InvalidInput(ref cause) => cause,
CreateClassifierError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateConnectionError {
AlreadyExists(String),
GlueEncryption(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateConnectionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateConnectionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateConnectionError::AlreadyExists(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(CreateConnectionError::GlueEncryption(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateConnectionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateConnectionError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(
CreateConnectionError::ResourceNumberLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateConnectionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateConnectionError {
fn description(&self) -> &str {
match *self {
CreateConnectionError::AlreadyExists(ref cause) => cause,
CreateConnectionError::GlueEncryption(ref cause) => cause,
CreateConnectionError::InvalidInput(ref cause) => cause,
CreateConnectionError::OperationTimeout(ref cause) => cause,
CreateConnectionError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateCrawlerError {
AlreadyExists(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateCrawlerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateCrawlerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateCrawlerError::AlreadyExists(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateCrawlerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateCrawlerError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(CreateCrawlerError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateCrawlerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateCrawlerError {
fn description(&self) -> &str {
match *self {
CreateCrawlerError::AlreadyExists(ref cause) => cause,
CreateCrawlerError::InvalidInput(ref cause) => cause,
CreateCrawlerError::OperationTimeout(ref cause) => cause,
CreateCrawlerError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDatabaseError {
AlreadyExists(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateDatabaseError::AlreadyExists(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(CreateDatabaseError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(CreateDatabaseError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateDatabaseError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateDatabaseError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(CreateDatabaseError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDatabaseError {
fn description(&self) -> &str {
match *self {
CreateDatabaseError::AlreadyExists(ref cause) => cause,
CreateDatabaseError::GlueEncryption(ref cause) => cause,
CreateDatabaseError::InternalService(ref cause) => cause,
CreateDatabaseError::InvalidInput(ref cause) => cause,
CreateDatabaseError::OperationTimeout(ref cause) => cause,
CreateDatabaseError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDevEndpointError {
AccessDenied(String),
AlreadyExists(String),
IdempotentParameterMismatch(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateDevEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDevEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateDevEndpointError::AccessDenied(err.msg))
}
"AlreadyExistsException" => {
return RusotoError::Service(CreateDevEndpointError::AlreadyExists(err.msg))
}
"IdempotentParameterMismatchException" => {
return RusotoError::Service(
CreateDevEndpointError::IdempotentParameterMismatch(err.msg),
)
}
"InternalServiceException" => {
return RusotoError::Service(CreateDevEndpointError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateDevEndpointError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateDevEndpointError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(
CreateDevEndpointError::ResourceNumberLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDevEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDevEndpointError {
fn description(&self) -> &str {
match *self {
CreateDevEndpointError::AccessDenied(ref cause) => cause,
CreateDevEndpointError::AlreadyExists(ref cause) => cause,
CreateDevEndpointError::IdempotentParameterMismatch(ref cause) => cause,
CreateDevEndpointError::InternalService(ref cause) => cause,
CreateDevEndpointError::InvalidInput(ref cause) => cause,
CreateDevEndpointError::OperationTimeout(ref cause) => cause,
CreateDevEndpointError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateJobError {
AlreadyExists(String),
ConcurrentModification(String),
IdempotentParameterMismatch(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateJobError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateJobError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateJobError::AlreadyExists(err.msg))
}
"ConcurrentModificationException" => {
return RusotoError::Service(CreateJobError::ConcurrentModification(err.msg))
}
"IdempotentParameterMismatchException" => {
return RusotoError::Service(CreateJobError::IdempotentParameterMismatch(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(CreateJobError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateJobError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateJobError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(CreateJobError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateJobError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateJobError {
fn description(&self) -> &str {
match *self {
CreateJobError::AlreadyExists(ref cause) => cause,
CreateJobError::ConcurrentModification(ref cause) => cause,
CreateJobError::IdempotentParameterMismatch(ref cause) => cause,
CreateJobError::InternalService(ref cause) => cause,
CreateJobError::InvalidInput(ref cause) => cause,
CreateJobError::OperationTimeout(ref cause) => cause,
CreateJobError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreatePartitionError {
AlreadyExists(String),
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreatePartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreatePartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreatePartitionError::AlreadyExists(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(CreatePartitionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(CreatePartitionError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(CreatePartitionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreatePartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreatePartitionError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(CreatePartitionError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreatePartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreatePartitionError {
fn description(&self) -> &str {
match *self {
CreatePartitionError::AlreadyExists(ref cause) => cause,
CreatePartitionError::EntityNotFound(ref cause) => cause,
CreatePartitionError::GlueEncryption(ref cause) => cause,
CreatePartitionError::InternalService(ref cause) => cause,
CreatePartitionError::InvalidInput(ref cause) => cause,
CreatePartitionError::OperationTimeout(ref cause) => cause,
CreatePartitionError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateScriptError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl CreateScriptError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateScriptError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(CreateScriptError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateScriptError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateScriptError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateScriptError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateScriptError {
fn description(&self) -> &str {
match *self {
CreateScriptError::InternalService(ref cause) => cause,
CreateScriptError::InvalidInput(ref cause) => cause,
CreateScriptError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateSecurityConfigurationError {
AlreadyExists(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateSecurityConfigurationError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateSecurityConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateSecurityConfigurationError::AlreadyExists(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(CreateSecurityConfigurationError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateSecurityConfigurationError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(
CreateSecurityConfigurationError::OperationTimeout(err.msg),
)
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(
CreateSecurityConfigurationError::ResourceNumberLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateSecurityConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateSecurityConfigurationError {
fn description(&self) -> &str {
match *self {
CreateSecurityConfigurationError::AlreadyExists(ref cause) => cause,
CreateSecurityConfigurationError::InternalService(ref cause) => cause,
CreateSecurityConfigurationError::InvalidInput(ref cause) => cause,
CreateSecurityConfigurationError::OperationTimeout(ref cause) => cause,
CreateSecurityConfigurationError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateTableError {
AlreadyExists(String),
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateTableError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateTableError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateTableError::AlreadyExists(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(CreateTableError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(CreateTableError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(CreateTableError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateTableError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateTableError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(CreateTableError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateTableError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateTableError {
fn description(&self) -> &str {
match *self {
CreateTableError::AlreadyExists(ref cause) => cause,
CreateTableError::EntityNotFound(ref cause) => cause,
CreateTableError::GlueEncryption(ref cause) => cause,
CreateTableError::InternalService(ref cause) => cause,
CreateTableError::InvalidInput(ref cause) => cause,
CreateTableError::OperationTimeout(ref cause) => cause,
CreateTableError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateTriggerError {
AlreadyExists(String),
ConcurrentModification(String),
IdempotentParameterMismatch(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateTriggerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateTriggerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateTriggerError::AlreadyExists(err.msg))
}
"ConcurrentModificationException" => {
return RusotoError::Service(CreateTriggerError::ConcurrentModification(
err.msg,
))
}
"IdempotentParameterMismatchException" => {
return RusotoError::Service(CreateTriggerError::IdempotentParameterMismatch(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(CreateTriggerError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateTriggerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateTriggerError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(CreateTriggerError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateTriggerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateTriggerError {
fn description(&self) -> &str {
match *self {
CreateTriggerError::AlreadyExists(ref cause) => cause,
CreateTriggerError::ConcurrentModification(ref cause) => cause,
CreateTriggerError::IdempotentParameterMismatch(ref cause) => cause,
CreateTriggerError::InternalService(ref cause) => cause,
CreateTriggerError::InvalidInput(ref cause) => cause,
CreateTriggerError::OperationTimeout(ref cause) => cause,
CreateTriggerError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateUserDefinedFunctionError {
AlreadyExists(String),
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl CreateUserDefinedFunctionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateUserDefinedFunctionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(CreateUserDefinedFunctionError::AlreadyExists(
err.msg,
))
}
"EntityNotFoundException" => {
return RusotoError::Service(CreateUserDefinedFunctionError::EntityNotFound(
err.msg,
))
}
"GlueEncryptionException" => {
return RusotoError::Service(CreateUserDefinedFunctionError::GlueEncryption(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(CreateUserDefinedFunctionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateUserDefinedFunctionError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(CreateUserDefinedFunctionError::OperationTimeout(
err.msg,
))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(
CreateUserDefinedFunctionError::ResourceNumberLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateUserDefinedFunctionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateUserDefinedFunctionError {
fn description(&self) -> &str {
match *self {
CreateUserDefinedFunctionError::AlreadyExists(ref cause) => cause,
CreateUserDefinedFunctionError::EntityNotFound(ref cause) => cause,
CreateUserDefinedFunctionError::GlueEncryption(ref cause) => cause,
CreateUserDefinedFunctionError::InternalService(ref cause) => cause,
CreateUserDefinedFunctionError::InvalidInput(ref cause) => cause,
CreateUserDefinedFunctionError::OperationTimeout(ref cause) => cause,
CreateUserDefinedFunctionError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteClassifierError {
EntityNotFound(String),
OperationTimeout(String),
}
impl DeleteClassifierError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteClassifierError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteClassifierError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteClassifierError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteClassifierError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteClassifierError {
fn description(&self) -> &str {
match *self {
DeleteClassifierError::EntityNotFound(ref cause) => cause,
DeleteClassifierError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteConnectionError {
EntityNotFound(String),
OperationTimeout(String),
}
impl DeleteConnectionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteConnectionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteConnectionError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteConnectionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteConnectionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteConnectionError {
fn description(&self) -> &str {
match *self {
DeleteConnectionError::EntityNotFound(ref cause) => cause,
DeleteConnectionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteCrawlerError {
CrawlerRunning(String),
EntityNotFound(String),
OperationTimeout(String),
SchedulerTransitioning(String),
}
impl DeleteCrawlerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteCrawlerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"CrawlerRunningException" => {
return RusotoError::Service(DeleteCrawlerError::CrawlerRunning(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(DeleteCrawlerError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteCrawlerError::OperationTimeout(err.msg))
}
"SchedulerTransitioningException" => {
return RusotoError::Service(DeleteCrawlerError::SchedulerTransitioning(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteCrawlerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteCrawlerError {
fn description(&self) -> &str {
match *self {
DeleteCrawlerError::CrawlerRunning(ref cause) => cause,
DeleteCrawlerError::EntityNotFound(ref cause) => cause,
DeleteCrawlerError::OperationTimeout(ref cause) => cause,
DeleteCrawlerError::SchedulerTransitioning(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDatabaseError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteDatabaseError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteDatabaseError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteDatabaseError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteDatabaseError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDatabaseError {
fn description(&self) -> &str {
match *self {
DeleteDatabaseError::EntityNotFound(ref cause) => cause,
DeleteDatabaseError::InternalService(ref cause) => cause,
DeleteDatabaseError::InvalidInput(ref cause) => cause,
DeleteDatabaseError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDevEndpointError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteDevEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDevEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteDevEndpointError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteDevEndpointError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteDevEndpointError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteDevEndpointError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDevEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDevEndpointError {
fn description(&self) -> &str {
match *self {
DeleteDevEndpointError::EntityNotFound(ref cause) => cause,
DeleteDevEndpointError::InternalService(ref cause) => cause,
DeleteDevEndpointError::InvalidInput(ref cause) => cause,
DeleteDevEndpointError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteJobError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteJobError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteJobError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(DeleteJobError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteJobError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteJobError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteJobError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteJobError {
fn description(&self) -> &str {
match *self {
DeleteJobError::InternalService(ref cause) => cause,
DeleteJobError::InvalidInput(ref cause) => cause,
DeleteJobError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeletePartitionError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeletePartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeletePartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeletePartitionError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(DeletePartitionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeletePartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeletePartitionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeletePartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeletePartitionError {
fn description(&self) -> &str {
match *self {
DeletePartitionError::EntityNotFound(ref cause) => cause,
DeletePartitionError::InternalService(ref cause) => cause,
DeletePartitionError::InvalidInput(ref cause) => cause,
DeletePartitionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteResourcePolicyError {
ConditionCheckFailure(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteResourcePolicyError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteResourcePolicyError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConditionCheckFailureException" => {
return RusotoError::Service(DeleteResourcePolicyError::ConditionCheckFailure(
err.msg,
))
}
"EntityNotFoundException" => {
return RusotoError::Service(DeleteResourcePolicyError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteResourcePolicyError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteResourcePolicyError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteResourcePolicyError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteResourcePolicyError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteResourcePolicyError {
fn description(&self) -> &str {
match *self {
DeleteResourcePolicyError::ConditionCheckFailure(ref cause) => cause,
DeleteResourcePolicyError::EntityNotFound(ref cause) => cause,
DeleteResourcePolicyError::InternalService(ref cause) => cause,
DeleteResourcePolicyError::InvalidInput(ref cause) => cause,
DeleteResourcePolicyError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteSecurityConfigurationError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteSecurityConfigurationError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeleteSecurityConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteSecurityConfigurationError::EntityNotFound(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteSecurityConfigurationError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteSecurityConfigurationError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(
DeleteSecurityConfigurationError::OperationTimeout(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteSecurityConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteSecurityConfigurationError {
fn description(&self) -> &str {
match *self {
DeleteSecurityConfigurationError::EntityNotFound(ref cause) => cause,
DeleteSecurityConfigurationError::InternalService(ref cause) => cause,
DeleteSecurityConfigurationError::InvalidInput(ref cause) => cause,
DeleteSecurityConfigurationError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteTableError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteTableError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteTableError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteTableError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteTableError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteTableError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteTableError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteTableError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteTableError {
fn description(&self) -> &str {
match *self {
DeleteTableError::EntityNotFound(ref cause) => cause,
DeleteTableError::InternalService(ref cause) => cause,
DeleteTableError::InvalidInput(ref cause) => cause,
DeleteTableError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteTableVersionError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteTableVersionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteTableVersionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteTableVersionError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteTableVersionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteTableVersionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteTableVersionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteTableVersionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteTableVersionError {
fn description(&self) -> &str {
match *self {
DeleteTableVersionError::EntityNotFound(ref cause) => cause,
DeleteTableVersionError::InternalService(ref cause) => cause,
DeleteTableVersionError::InvalidInput(ref cause) => cause,
DeleteTableVersionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteTriggerError {
ConcurrentModification(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteTriggerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteTriggerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentModificationException" => {
return RusotoError::Service(DeleteTriggerError::ConcurrentModification(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteTriggerError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteTriggerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteTriggerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteTriggerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteTriggerError {
fn description(&self) -> &str {
match *self {
DeleteTriggerError::ConcurrentModification(ref cause) => cause,
DeleteTriggerError::InternalService(ref cause) => cause,
DeleteTriggerError::InvalidInput(ref cause) => cause,
DeleteTriggerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteUserDefinedFunctionError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl DeleteUserDefinedFunctionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteUserDefinedFunctionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(DeleteUserDefinedFunctionError::EntityNotFound(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(DeleteUserDefinedFunctionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteUserDefinedFunctionError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(DeleteUserDefinedFunctionError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteUserDefinedFunctionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteUserDefinedFunctionError {
fn description(&self) -> &str {
match *self {
DeleteUserDefinedFunctionError::EntityNotFound(ref cause) => cause,
DeleteUserDefinedFunctionError::InternalService(ref cause) => cause,
DeleteUserDefinedFunctionError::InvalidInput(ref cause) => cause,
DeleteUserDefinedFunctionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetCatalogImportStatusError {
InternalService(String),
OperationTimeout(String),
}
impl GetCatalogImportStatusError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetCatalogImportStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(GetCatalogImportStatusError::InternalService(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetCatalogImportStatusError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetCatalogImportStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetCatalogImportStatusError {
fn description(&self) -> &str {
match *self {
GetCatalogImportStatusError::InternalService(ref cause) => cause,
GetCatalogImportStatusError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetClassifierError {
EntityNotFound(String),
OperationTimeout(String),
}
impl GetClassifierError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetClassifierError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetClassifierError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetClassifierError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetClassifierError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetClassifierError {
fn description(&self) -> &str {
match *self {
GetClassifierError::EntityNotFound(ref cause) => cause,
GetClassifierError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetClassifiersError {
OperationTimeout(String),
}
impl GetClassifiersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetClassifiersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"OperationTimeoutException" => {
return RusotoError::Service(GetClassifiersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetClassifiersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetClassifiersError {
fn description(&self) -> &str {
match *self {
GetClassifiersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetConnectionError {
EntityNotFound(String),
GlueEncryption(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetConnectionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetConnectionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetConnectionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetConnectionError::GlueEncryption(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetConnectionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetConnectionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetConnectionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetConnectionError {
fn description(&self) -> &str {
match *self {
GetConnectionError::EntityNotFound(ref cause) => cause,
GetConnectionError::GlueEncryption(ref cause) => cause,
GetConnectionError::InvalidInput(ref cause) => cause,
GetConnectionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetConnectionsError {
EntityNotFound(String),
GlueEncryption(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetConnectionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetConnectionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetConnectionsError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetConnectionsError::GlueEncryption(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetConnectionsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetConnectionsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetConnectionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetConnectionsError {
fn description(&self) -> &str {
match *self {
GetConnectionsError::EntityNotFound(ref cause) => cause,
GetConnectionsError::GlueEncryption(ref cause) => cause,
GetConnectionsError::InvalidInput(ref cause) => cause,
GetConnectionsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetCrawlerError {
EntityNotFound(String),
OperationTimeout(String),
}
impl GetCrawlerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetCrawlerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetCrawlerError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetCrawlerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetCrawlerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetCrawlerError {
fn description(&self) -> &str {
match *self {
GetCrawlerError::EntityNotFound(ref cause) => cause,
GetCrawlerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetCrawlerMetricsError {
OperationTimeout(String),
}
impl GetCrawlerMetricsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetCrawlerMetricsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"OperationTimeoutException" => {
return RusotoError::Service(GetCrawlerMetricsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetCrawlerMetricsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetCrawlerMetricsError {
fn description(&self) -> &str {
match *self {
GetCrawlerMetricsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetCrawlersError {
OperationTimeout(String),
}
impl GetCrawlersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetCrawlersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"OperationTimeoutException" => {
return RusotoError::Service(GetCrawlersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetCrawlersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetCrawlersError {
fn description(&self) -> &str {
match *self {
GetCrawlersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDataCatalogEncryptionSettingsError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetDataCatalogEncryptionSettingsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetDataCatalogEncryptionSettingsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(
GetDataCatalogEncryptionSettingsError::InternalService(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
GetDataCatalogEncryptionSettingsError::InvalidInput(err.msg),
)
}
"OperationTimeoutException" => {
return RusotoError::Service(
GetDataCatalogEncryptionSettingsError::OperationTimeout(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDataCatalogEncryptionSettingsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDataCatalogEncryptionSettingsError {
fn description(&self) -> &str {
match *self {
GetDataCatalogEncryptionSettingsError::InternalService(ref cause) => cause,
GetDataCatalogEncryptionSettingsError::InvalidInput(ref cause) => cause,
GetDataCatalogEncryptionSettingsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDatabaseError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetDatabaseError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetDatabaseError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetDatabaseError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDatabaseError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetDatabaseError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDatabaseError {
fn description(&self) -> &str {
match *self {
GetDatabaseError::EntityNotFound(ref cause) => cause,
GetDatabaseError::GlueEncryption(ref cause) => cause,
GetDatabaseError::InternalService(ref cause) => cause,
GetDatabaseError::InvalidInput(ref cause) => cause,
GetDatabaseError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDatabasesError {
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetDatabasesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDatabasesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"GlueEncryptionException" => {
return RusotoError::Service(GetDatabasesError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetDatabasesError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDatabasesError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetDatabasesError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDatabasesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDatabasesError {
fn description(&self) -> &str {
match *self {
GetDatabasesError::GlueEncryption(ref cause) => cause,
GetDatabasesError::InternalService(ref cause) => cause,
GetDatabasesError::InvalidInput(ref cause) => cause,
GetDatabasesError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDataflowGraphError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetDataflowGraphError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDataflowGraphError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(GetDataflowGraphError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDataflowGraphError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetDataflowGraphError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDataflowGraphError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDataflowGraphError {
fn description(&self) -> &str {
match *self {
GetDataflowGraphError::InternalService(ref cause) => cause,
GetDataflowGraphError::InvalidInput(ref cause) => cause,
GetDataflowGraphError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDevEndpointError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetDevEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDevEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetDevEndpointError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetDevEndpointError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDevEndpointError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetDevEndpointError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDevEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDevEndpointError {
fn description(&self) -> &str {
match *self {
GetDevEndpointError::EntityNotFound(ref cause) => cause,
GetDevEndpointError::InternalService(ref cause) => cause,
GetDevEndpointError::InvalidInput(ref cause) => cause,
GetDevEndpointError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDevEndpointsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetDevEndpointsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDevEndpointsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetDevEndpointsError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetDevEndpointsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDevEndpointsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetDevEndpointsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDevEndpointsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDevEndpointsError {
fn description(&self) -> &str {
match *self {
GetDevEndpointsError::EntityNotFound(ref cause) => cause,
GetDevEndpointsError::InternalService(ref cause) => cause,
GetDevEndpointsError::InvalidInput(ref cause) => cause,
GetDevEndpointsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetJobError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetJobError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetJobError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetJobError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetJobError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetJobError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetJobError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetJobError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetJobError {
fn description(&self) -> &str {
match *self {
GetJobError::EntityNotFound(ref cause) => cause,
GetJobError::InternalService(ref cause) => cause,
GetJobError::InvalidInput(ref cause) => cause,
GetJobError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetJobRunError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetJobRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetJobRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetJobRunError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetJobRunError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetJobRunError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetJobRunError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetJobRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetJobRunError {
fn description(&self) -> &str {
match *self {
GetJobRunError::EntityNotFound(ref cause) => cause,
GetJobRunError::InternalService(ref cause) => cause,
GetJobRunError::InvalidInput(ref cause) => cause,
GetJobRunError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetJobRunsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetJobRunsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetJobRunsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetJobRunsError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetJobRunsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetJobRunsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetJobRunsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetJobRunsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetJobRunsError {
fn description(&self) -> &str {
match *self {
GetJobRunsError::EntityNotFound(ref cause) => cause,
GetJobRunsError::InternalService(ref cause) => cause,
GetJobRunsError::InvalidInput(ref cause) => cause,
GetJobRunsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetJobsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetJobsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetJobsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetJobsError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetJobsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetJobsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetJobsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetJobsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetJobsError {
fn description(&self) -> &str {
match *self {
GetJobsError::EntityNotFound(ref cause) => cause,
GetJobsError::InternalService(ref cause) => cause,
GetJobsError::InvalidInput(ref cause) => cause,
GetJobsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetMappingError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetMappingError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetMappingError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetMappingError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetMappingError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetMappingError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetMappingError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetMappingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetMappingError {
fn description(&self) -> &str {
match *self {
GetMappingError::EntityNotFound(ref cause) => cause,
GetMappingError::InternalService(ref cause) => cause,
GetMappingError::InvalidInput(ref cause) => cause,
GetMappingError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetPartitionError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetPartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetPartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetPartitionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetPartitionError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetPartitionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetPartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetPartitionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetPartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetPartitionError {
fn description(&self) -> &str {
match *self {
GetPartitionError::EntityNotFound(ref cause) => cause,
GetPartitionError::GlueEncryption(ref cause) => cause,
GetPartitionError::InternalService(ref cause) => cause,
GetPartitionError::InvalidInput(ref cause) => cause,
GetPartitionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetPartitionsError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetPartitionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetPartitionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetPartitionsError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetPartitionsError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetPartitionsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetPartitionsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetPartitionsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetPartitionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetPartitionsError {
fn description(&self) -> &str {
match *self {
GetPartitionsError::EntityNotFound(ref cause) => cause,
GetPartitionsError::GlueEncryption(ref cause) => cause,
GetPartitionsError::InternalService(ref cause) => cause,
GetPartitionsError::InvalidInput(ref cause) => cause,
GetPartitionsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetPlanError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetPlanError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetPlanError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(GetPlanError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetPlanError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetPlanError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetPlanError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetPlanError {
fn description(&self) -> &str {
match *self {
GetPlanError::InternalService(ref cause) => cause,
GetPlanError::InvalidInput(ref cause) => cause,
GetPlanError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetResourcePolicyError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetResourcePolicyError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetResourcePolicyError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetResourcePolicyError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetResourcePolicyError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetResourcePolicyError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetResourcePolicyError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetResourcePolicyError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetResourcePolicyError {
fn description(&self) -> &str {
match *self {
GetResourcePolicyError::EntityNotFound(ref cause) => cause,
GetResourcePolicyError::InternalService(ref cause) => cause,
GetResourcePolicyError::InvalidInput(ref cause) => cause,
GetResourcePolicyError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetSecurityConfigurationError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetSecurityConfigurationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetSecurityConfigurationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetSecurityConfigurationError::EntityNotFound(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(GetSecurityConfigurationError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetSecurityConfigurationError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetSecurityConfigurationError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetSecurityConfigurationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetSecurityConfigurationError {
fn description(&self) -> &str {
match *self {
GetSecurityConfigurationError::EntityNotFound(ref cause) => cause,
GetSecurityConfigurationError::InternalService(ref cause) => cause,
GetSecurityConfigurationError::InvalidInput(ref cause) => cause,
GetSecurityConfigurationError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetSecurityConfigurationsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetSecurityConfigurationsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetSecurityConfigurationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetSecurityConfigurationsError::EntityNotFound(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(GetSecurityConfigurationsError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetSecurityConfigurationsError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetSecurityConfigurationsError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetSecurityConfigurationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetSecurityConfigurationsError {
fn description(&self) -> &str {
match *self {
GetSecurityConfigurationsError::EntityNotFound(ref cause) => cause,
GetSecurityConfigurationsError::InternalService(ref cause) => cause,
GetSecurityConfigurationsError::InvalidInput(ref cause) => cause,
GetSecurityConfigurationsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTableError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTableError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTableError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTableError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetTableError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTableError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTableError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTableError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTableError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTableError {
fn description(&self) -> &str {
match *self {
GetTableError::EntityNotFound(ref cause) => cause,
GetTableError::GlueEncryption(ref cause) => cause,
GetTableError::InternalService(ref cause) => cause,
GetTableError::InvalidInput(ref cause) => cause,
GetTableError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTableVersionError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTableVersionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTableVersionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTableVersionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetTableVersionError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTableVersionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTableVersionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTableVersionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTableVersionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTableVersionError {
fn description(&self) -> &str {
match *self {
GetTableVersionError::EntityNotFound(ref cause) => cause,
GetTableVersionError::GlueEncryption(ref cause) => cause,
GetTableVersionError::InternalService(ref cause) => cause,
GetTableVersionError::InvalidInput(ref cause) => cause,
GetTableVersionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTableVersionsError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTableVersionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTableVersionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTableVersionsError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetTableVersionsError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTableVersionsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTableVersionsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTableVersionsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTableVersionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTableVersionsError {
fn description(&self) -> &str {
match *self {
GetTableVersionsError::EntityNotFound(ref cause) => cause,
GetTableVersionsError::GlueEncryption(ref cause) => cause,
GetTableVersionsError::InternalService(ref cause) => cause,
GetTableVersionsError::InvalidInput(ref cause) => cause,
GetTableVersionsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTablesError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTablesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTablesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTablesError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetTablesError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTablesError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTablesError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTablesError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTablesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTablesError {
fn description(&self) -> &str {
match *self {
GetTablesError::EntityNotFound(ref cause) => cause,
GetTablesError::GlueEncryption(ref cause) => cause,
GetTablesError::InternalService(ref cause) => cause,
GetTablesError::InvalidInput(ref cause) => cause,
GetTablesError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTagsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTagsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTagsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTagsError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTagsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTagsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTagsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTagsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTagsError {
fn description(&self) -> &str {
match *self {
GetTagsError::EntityNotFound(ref cause) => cause,
GetTagsError::InternalService(ref cause) => cause,
GetTagsError::InvalidInput(ref cause) => cause,
GetTagsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTriggerError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTriggerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTriggerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTriggerError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTriggerError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTriggerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTriggerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTriggerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTriggerError {
fn description(&self) -> &str {
match *self {
GetTriggerError::EntityNotFound(ref cause) => cause,
GetTriggerError::InternalService(ref cause) => cause,
GetTriggerError::InvalidInput(ref cause) => cause,
GetTriggerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetTriggersError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetTriggersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetTriggersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetTriggersError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(GetTriggersError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetTriggersError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetTriggersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetTriggersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetTriggersError {
fn description(&self) -> &str {
match *self {
GetTriggersError::EntityNotFound(ref cause) => cause,
GetTriggersError::InternalService(ref cause) => cause,
GetTriggersError::InvalidInput(ref cause) => cause,
GetTriggersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetUserDefinedFunctionError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetUserDefinedFunctionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetUserDefinedFunctionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetUserDefinedFunctionError::EntityNotFound(
err.msg,
))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetUserDefinedFunctionError::GlueEncryption(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(GetUserDefinedFunctionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetUserDefinedFunctionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetUserDefinedFunctionError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetUserDefinedFunctionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetUserDefinedFunctionError {
fn description(&self) -> &str {
match *self {
GetUserDefinedFunctionError::EntityNotFound(ref cause) => cause,
GetUserDefinedFunctionError::GlueEncryption(ref cause) => cause,
GetUserDefinedFunctionError::InternalService(ref cause) => cause,
GetUserDefinedFunctionError::InvalidInput(ref cause) => cause,
GetUserDefinedFunctionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetUserDefinedFunctionsError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl GetUserDefinedFunctionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetUserDefinedFunctionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(GetUserDefinedFunctionsError::EntityNotFound(
err.msg,
))
}
"GlueEncryptionException" => {
return RusotoError::Service(GetUserDefinedFunctionsError::GlueEncryption(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(GetUserDefinedFunctionsError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetUserDefinedFunctionsError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(GetUserDefinedFunctionsError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetUserDefinedFunctionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetUserDefinedFunctionsError {
fn description(&self) -> &str {
match *self {
GetUserDefinedFunctionsError::EntityNotFound(ref cause) => cause,
GetUserDefinedFunctionsError::GlueEncryption(ref cause) => cause,
GetUserDefinedFunctionsError::InternalService(ref cause) => cause,
GetUserDefinedFunctionsError::InvalidInput(ref cause) => cause,
GetUserDefinedFunctionsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ImportCatalogToGlueError {
InternalService(String),
OperationTimeout(String),
}
impl ImportCatalogToGlueError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ImportCatalogToGlueError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(ImportCatalogToGlueError::InternalService(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(ImportCatalogToGlueError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ImportCatalogToGlueError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ImportCatalogToGlueError {
fn description(&self) -> &str {
match *self {
ImportCatalogToGlueError::InternalService(ref cause) => cause,
ImportCatalogToGlueError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListCrawlersError {
OperationTimeout(String),
}
impl ListCrawlersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListCrawlersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"OperationTimeoutException" => {
return RusotoError::Service(ListCrawlersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListCrawlersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListCrawlersError {
fn description(&self) -> &str {
match *self {
ListCrawlersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListDevEndpointsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl ListDevEndpointsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDevEndpointsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(ListDevEndpointsError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(ListDevEndpointsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(ListDevEndpointsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(ListDevEndpointsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListDevEndpointsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListDevEndpointsError {
fn description(&self) -> &str {
match *self {
ListDevEndpointsError::EntityNotFound(ref cause) => cause,
ListDevEndpointsError::InternalService(ref cause) => cause,
ListDevEndpointsError::InvalidInput(ref cause) => cause,
ListDevEndpointsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListJobsError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl ListJobsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListJobsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(ListJobsError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(ListJobsError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(ListJobsError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(ListJobsError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListJobsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListJobsError {
fn description(&self) -> &str {
match *self {
ListJobsError::EntityNotFound(ref cause) => cause,
ListJobsError::InternalService(ref cause) => cause,
ListJobsError::InvalidInput(ref cause) => cause,
ListJobsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListTriggersError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl ListTriggersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTriggersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(ListTriggersError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(ListTriggersError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(ListTriggersError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(ListTriggersError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListTriggersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListTriggersError {
fn description(&self) -> &str {
match *self {
ListTriggersError::EntityNotFound(ref cause) => cause,
ListTriggersError::InternalService(ref cause) => cause,
ListTriggersError::InvalidInput(ref cause) => cause,
ListTriggersError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PutDataCatalogEncryptionSettingsError {
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl PutDataCatalogEncryptionSettingsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<PutDataCatalogEncryptionSettingsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServiceException" => {
return RusotoError::Service(
PutDataCatalogEncryptionSettingsError::InternalService(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
PutDataCatalogEncryptionSettingsError::InvalidInput(err.msg),
)
}
"OperationTimeoutException" => {
return RusotoError::Service(
PutDataCatalogEncryptionSettingsError::OperationTimeout(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PutDataCatalogEncryptionSettingsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PutDataCatalogEncryptionSettingsError {
fn description(&self) -> &str {
match *self {
PutDataCatalogEncryptionSettingsError::InternalService(ref cause) => cause,
PutDataCatalogEncryptionSettingsError::InvalidInput(ref cause) => cause,
PutDataCatalogEncryptionSettingsError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PutResourcePolicyError {
ConditionCheckFailure(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl PutResourcePolicyError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PutResourcePolicyError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConditionCheckFailureException" => {
return RusotoError::Service(PutResourcePolicyError::ConditionCheckFailure(
err.msg,
))
}
"EntityNotFoundException" => {
return RusotoError::Service(PutResourcePolicyError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(PutResourcePolicyError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(PutResourcePolicyError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(PutResourcePolicyError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PutResourcePolicyError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PutResourcePolicyError {
fn description(&self) -> &str {
match *self {
PutResourcePolicyError::ConditionCheckFailure(ref cause) => cause,
PutResourcePolicyError::EntityNotFound(ref cause) => cause,
PutResourcePolicyError::InternalService(ref cause) => cause,
PutResourcePolicyError::InvalidInput(ref cause) => cause,
PutResourcePolicyError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ResetJobBookmarkError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl ResetJobBookmarkError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ResetJobBookmarkError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(ResetJobBookmarkError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(ResetJobBookmarkError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(ResetJobBookmarkError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(ResetJobBookmarkError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ResetJobBookmarkError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ResetJobBookmarkError {
fn description(&self) -> &str {
match *self {
ResetJobBookmarkError::EntityNotFound(ref cause) => cause,
ResetJobBookmarkError::InternalService(ref cause) => cause,
ResetJobBookmarkError::InvalidInput(ref cause) => cause,
ResetJobBookmarkError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartCrawlerError {
CrawlerRunning(String),
EntityNotFound(String),
OperationTimeout(String),
}
impl StartCrawlerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartCrawlerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"CrawlerRunningException" => {
return RusotoError::Service(StartCrawlerError::CrawlerRunning(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(StartCrawlerError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StartCrawlerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartCrawlerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartCrawlerError {
fn description(&self) -> &str {
match *self {
StartCrawlerError::CrawlerRunning(ref cause) => cause,
StartCrawlerError::EntityNotFound(ref cause) => cause,
StartCrawlerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartCrawlerScheduleError {
EntityNotFound(String),
NoSchedule(String),
OperationTimeout(String),
SchedulerRunning(String),
SchedulerTransitioning(String),
}
impl StartCrawlerScheduleError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartCrawlerScheduleError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(StartCrawlerScheduleError::EntityNotFound(err.msg))
}
"NoScheduleException" => {
return RusotoError::Service(StartCrawlerScheduleError::NoSchedule(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StartCrawlerScheduleError::OperationTimeout(
err.msg,
))
}
"SchedulerRunningException" => {
return RusotoError::Service(StartCrawlerScheduleError::SchedulerRunning(
err.msg,
))
}
"SchedulerTransitioningException" => {
return RusotoError::Service(StartCrawlerScheduleError::SchedulerTransitioning(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartCrawlerScheduleError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartCrawlerScheduleError {
fn description(&self) -> &str {
match *self {
StartCrawlerScheduleError::EntityNotFound(ref cause) => cause,
StartCrawlerScheduleError::NoSchedule(ref cause) => cause,
StartCrawlerScheduleError::OperationTimeout(ref cause) => cause,
StartCrawlerScheduleError::SchedulerRunning(ref cause) => cause,
StartCrawlerScheduleError::SchedulerTransitioning(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartJobRunError {
ConcurrentRunsExceeded(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl StartJobRunError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartJobRunError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentRunsExceededException" => {
return RusotoError::Service(StartJobRunError::ConcurrentRunsExceeded(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(StartJobRunError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(StartJobRunError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(StartJobRunError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StartJobRunError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(StartJobRunError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartJobRunError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartJobRunError {
fn description(&self) -> &str {
match *self {
StartJobRunError::ConcurrentRunsExceeded(ref cause) => cause,
StartJobRunError::EntityNotFound(ref cause) => cause,
StartJobRunError::InternalService(ref cause) => cause,
StartJobRunError::InvalidInput(ref cause) => cause,
StartJobRunError::OperationTimeout(ref cause) => cause,
StartJobRunError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartTriggerError {
ConcurrentRunsExceeded(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl StartTriggerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartTriggerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentRunsExceededException" => {
return RusotoError::Service(StartTriggerError::ConcurrentRunsExceeded(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(StartTriggerError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(StartTriggerError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(StartTriggerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StartTriggerError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(StartTriggerError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartTriggerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartTriggerError {
fn description(&self) -> &str {
match *self {
StartTriggerError::ConcurrentRunsExceeded(ref cause) => cause,
StartTriggerError::EntityNotFound(ref cause) => cause,
StartTriggerError::InternalService(ref cause) => cause,
StartTriggerError::InvalidInput(ref cause) => cause,
StartTriggerError::OperationTimeout(ref cause) => cause,
StartTriggerError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopCrawlerError {
CrawlerNotRunning(String),
CrawlerStopping(String),
EntityNotFound(String),
OperationTimeout(String),
}
impl StopCrawlerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopCrawlerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"CrawlerNotRunningException" => {
return RusotoError::Service(StopCrawlerError::CrawlerNotRunning(err.msg))
}
"CrawlerStoppingException" => {
return RusotoError::Service(StopCrawlerError::CrawlerStopping(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(StopCrawlerError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StopCrawlerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopCrawlerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopCrawlerError {
fn description(&self) -> &str {
match *self {
StopCrawlerError::CrawlerNotRunning(ref cause) => cause,
StopCrawlerError::CrawlerStopping(ref cause) => cause,
StopCrawlerError::EntityNotFound(ref cause) => cause,
StopCrawlerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopCrawlerScheduleError {
EntityNotFound(String),
OperationTimeout(String),
SchedulerNotRunning(String),
SchedulerTransitioning(String),
}
impl StopCrawlerScheduleError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopCrawlerScheduleError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(StopCrawlerScheduleError::EntityNotFound(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StopCrawlerScheduleError::OperationTimeout(
err.msg,
))
}
"SchedulerNotRunningException" => {
return RusotoError::Service(StopCrawlerScheduleError::SchedulerNotRunning(
err.msg,
))
}
"SchedulerTransitioningException" => {
return RusotoError::Service(StopCrawlerScheduleError::SchedulerTransitioning(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopCrawlerScheduleError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopCrawlerScheduleError {
fn description(&self) -> &str {
match *self {
StopCrawlerScheduleError::EntityNotFound(ref cause) => cause,
StopCrawlerScheduleError::OperationTimeout(ref cause) => cause,
StopCrawlerScheduleError::SchedulerNotRunning(ref cause) => cause,
StopCrawlerScheduleError::SchedulerTransitioning(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopTriggerError {
ConcurrentModification(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl StopTriggerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopTriggerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentModificationException" => {
return RusotoError::Service(StopTriggerError::ConcurrentModification(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(StopTriggerError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(StopTriggerError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(StopTriggerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(StopTriggerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopTriggerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopTriggerError {
fn description(&self) -> &str {
match *self {
StopTriggerError::ConcurrentModification(ref cause) => cause,
StopTriggerError::EntityNotFound(ref cause) => cause,
StopTriggerError::InternalService(ref cause) => cause,
StopTriggerError::InvalidInput(ref cause) => cause,
StopTriggerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum TagResourceError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl TagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TagResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(TagResourceError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(TagResourceError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(TagResourceError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(TagResourceError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for TagResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for TagResourceError {
fn description(&self) -> &str {
match *self {
TagResourceError::EntityNotFound(ref cause) => cause,
TagResourceError::InternalService(ref cause) => cause,
TagResourceError::InvalidInput(ref cause) => cause,
TagResourceError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UntagResourceError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UntagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UntagResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UntagResourceError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UntagResourceError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UntagResourceError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UntagResourceError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UntagResourceError {
fn description(&self) -> &str {
match *self {
UntagResourceError::EntityNotFound(ref cause) => cause,
UntagResourceError::InternalService(ref cause) => cause,
UntagResourceError::InvalidInput(ref cause) => cause,
UntagResourceError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateClassifierError {
EntityNotFound(String),
InvalidInput(String),
OperationTimeout(String),
VersionMismatch(String),
}
impl UpdateClassifierError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateClassifierError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdateClassifierError::EntityNotFound(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateClassifierError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateClassifierError::OperationTimeout(err.msg))
}
"VersionMismatchException" => {
return RusotoError::Service(UpdateClassifierError::VersionMismatch(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateClassifierError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateClassifierError {
fn description(&self) -> &str {
match *self {
UpdateClassifierError::EntityNotFound(ref cause) => cause,
UpdateClassifierError::InvalidInput(ref cause) => cause,
UpdateClassifierError::OperationTimeout(ref cause) => cause,
UpdateClassifierError::VersionMismatch(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateConnectionError {
EntityNotFound(String),
GlueEncryption(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdateConnectionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateConnectionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdateConnectionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(UpdateConnectionError::GlueEncryption(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateConnectionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateConnectionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateConnectionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateConnectionError {
fn description(&self) -> &str {
match *self {
UpdateConnectionError::EntityNotFound(ref cause) => cause,
UpdateConnectionError::GlueEncryption(ref cause) => cause,
UpdateConnectionError::InvalidInput(ref cause) => cause,
UpdateConnectionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateCrawlerError {
CrawlerRunning(String),
EntityNotFound(String),
InvalidInput(String),
OperationTimeout(String),
VersionMismatch(String),
}
impl UpdateCrawlerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateCrawlerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"CrawlerRunningException" => {
return RusotoError::Service(UpdateCrawlerError::CrawlerRunning(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(UpdateCrawlerError::EntityNotFound(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateCrawlerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateCrawlerError::OperationTimeout(err.msg))
}
"VersionMismatchException" => {
return RusotoError::Service(UpdateCrawlerError::VersionMismatch(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateCrawlerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateCrawlerError {
fn description(&self) -> &str {
match *self {
UpdateCrawlerError::CrawlerRunning(ref cause) => cause,
UpdateCrawlerError::EntityNotFound(ref cause) => cause,
UpdateCrawlerError::InvalidInput(ref cause) => cause,
UpdateCrawlerError::OperationTimeout(ref cause) => cause,
UpdateCrawlerError::VersionMismatch(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateCrawlerScheduleError {
EntityNotFound(String),
InvalidInput(String),
OperationTimeout(String),
SchedulerTransitioning(String),
VersionMismatch(String),
}
impl UpdateCrawlerScheduleError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateCrawlerScheduleError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdateCrawlerScheduleError::EntityNotFound(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateCrawlerScheduleError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateCrawlerScheduleError::OperationTimeout(
err.msg,
))
}
"SchedulerTransitioningException" => {
return RusotoError::Service(
UpdateCrawlerScheduleError::SchedulerTransitioning(err.msg),
)
}
"VersionMismatchException" => {
return RusotoError::Service(UpdateCrawlerScheduleError::VersionMismatch(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateCrawlerScheduleError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateCrawlerScheduleError {
fn description(&self) -> &str {
match *self {
UpdateCrawlerScheduleError::EntityNotFound(ref cause) => cause,
UpdateCrawlerScheduleError::InvalidInput(ref cause) => cause,
UpdateCrawlerScheduleError::OperationTimeout(ref cause) => cause,
UpdateCrawlerScheduleError::SchedulerTransitioning(ref cause) => cause,
UpdateCrawlerScheduleError::VersionMismatch(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDatabaseError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdateDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdateDatabaseError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(UpdateDatabaseError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UpdateDatabaseError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateDatabaseError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateDatabaseError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDatabaseError {
fn description(&self) -> &str {
match *self {
UpdateDatabaseError::EntityNotFound(ref cause) => cause,
UpdateDatabaseError::GlueEncryption(ref cause) => cause,
UpdateDatabaseError::InternalService(ref cause) => cause,
UpdateDatabaseError::InvalidInput(ref cause) => cause,
UpdateDatabaseError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDevEndpointError {
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdateDevEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDevEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdateDevEndpointError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UpdateDevEndpointError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateDevEndpointError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateDevEndpointError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDevEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDevEndpointError {
fn description(&self) -> &str {
match *self {
UpdateDevEndpointError::EntityNotFound(ref cause) => cause,
UpdateDevEndpointError::InternalService(ref cause) => cause,
UpdateDevEndpointError::InvalidInput(ref cause) => cause,
UpdateDevEndpointError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateJobError {
ConcurrentModification(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdateJobError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateJobError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentModificationException" => {
return RusotoError::Service(UpdateJobError::ConcurrentModification(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(UpdateJobError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UpdateJobError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateJobError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateJobError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateJobError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateJobError {
fn description(&self) -> &str {
match *self {
UpdateJobError::ConcurrentModification(ref cause) => cause,
UpdateJobError::EntityNotFound(ref cause) => cause,
UpdateJobError::InternalService(ref cause) => cause,
UpdateJobError::InvalidInput(ref cause) => cause,
UpdateJobError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdatePartitionError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdatePartitionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdatePartitionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdatePartitionError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(UpdatePartitionError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UpdatePartitionError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdatePartitionError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdatePartitionError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdatePartitionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdatePartitionError {
fn description(&self) -> &str {
match *self {
UpdatePartitionError::EntityNotFound(ref cause) => cause,
UpdatePartitionError::GlueEncryption(ref cause) => cause,
UpdatePartitionError::InternalService(ref cause) => cause,
UpdatePartitionError::InvalidInput(ref cause) => cause,
UpdatePartitionError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateTableError {
ConcurrentModification(String),
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
ResourceNumberLimitExceeded(String),
}
impl UpdateTableError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateTableError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentModificationException" => {
return RusotoError::Service(UpdateTableError::ConcurrentModification(err.msg))
}
"EntityNotFoundException" => {
return RusotoError::Service(UpdateTableError::EntityNotFound(err.msg))
}
"GlueEncryptionException" => {
return RusotoError::Service(UpdateTableError::GlueEncryption(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UpdateTableError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateTableError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateTableError::OperationTimeout(err.msg))
}
"ResourceNumberLimitExceededException" => {
return RusotoError::Service(UpdateTableError::ResourceNumberLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateTableError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateTableError {
fn description(&self) -> &str {
match *self {
UpdateTableError::ConcurrentModification(ref cause) => cause,
UpdateTableError::EntityNotFound(ref cause) => cause,
UpdateTableError::GlueEncryption(ref cause) => cause,
UpdateTableError::InternalService(ref cause) => cause,
UpdateTableError::InvalidInput(ref cause) => cause,
UpdateTableError::OperationTimeout(ref cause) => cause,
UpdateTableError::ResourceNumberLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateTriggerError {
ConcurrentModification(String),
EntityNotFound(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdateTriggerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateTriggerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ConcurrentModificationException" => {
return RusotoError::Service(UpdateTriggerError::ConcurrentModification(
err.msg,
))
}
"EntityNotFoundException" => {
return RusotoError::Service(UpdateTriggerError::EntityNotFound(err.msg))
}
"InternalServiceException" => {
return RusotoError::Service(UpdateTriggerError::InternalService(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateTriggerError::InvalidInput(err.msg))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateTriggerError::OperationTimeout(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateTriggerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateTriggerError {
fn description(&self) -> &str {
match *self {
UpdateTriggerError::ConcurrentModification(ref cause) => cause,
UpdateTriggerError::EntityNotFound(ref cause) => cause,
UpdateTriggerError::InternalService(ref cause) => cause,
UpdateTriggerError::InvalidInput(ref cause) => cause,
UpdateTriggerError::OperationTimeout(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateUserDefinedFunctionError {
EntityNotFound(String),
GlueEncryption(String),
InternalService(String),
InvalidInput(String),
OperationTimeout(String),
}
impl UpdateUserDefinedFunctionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateUserDefinedFunctionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"EntityNotFoundException" => {
return RusotoError::Service(UpdateUserDefinedFunctionError::EntityNotFound(
err.msg,
))
}
"GlueEncryptionException" => {
return RusotoError::Service(UpdateUserDefinedFunctionError::GlueEncryption(
err.msg,
))
}
"InternalServiceException" => {
return RusotoError::Service(UpdateUserDefinedFunctionError::InternalService(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateUserDefinedFunctionError::InvalidInput(
err.msg,
))
}
"OperationTimeoutException" => {
return RusotoError::Service(UpdateUserDefinedFunctionError::OperationTimeout(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateUserDefinedFunctionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateUserDefinedFunctionError {
fn description(&self) -> &str {
match *self {
UpdateUserDefinedFunctionError::EntityNotFound(ref cause) => cause,
UpdateUserDefinedFunctionError::GlueEncryption(ref cause) => cause,
UpdateUserDefinedFunctionError::InternalService(ref cause) => cause,
UpdateUserDefinedFunctionError::InvalidInput(ref cause) => cause,
UpdateUserDefinedFunctionError::OperationTimeout(ref cause) => cause,
}
}
}
pub trait Glue {
fn batch_create_partition(
&self,
input: BatchCreatePartitionRequest,
) -> RusotoFuture<BatchCreatePartitionResponse, BatchCreatePartitionError>;
fn batch_delete_connection(
&self,
input: BatchDeleteConnectionRequest,
) -> RusotoFuture<BatchDeleteConnectionResponse, BatchDeleteConnectionError>;
fn batch_delete_partition(
&self,
input: BatchDeletePartitionRequest,
) -> RusotoFuture<BatchDeletePartitionResponse, BatchDeletePartitionError>;
fn batch_delete_table(
&self,
input: BatchDeleteTableRequest,
) -> RusotoFuture<BatchDeleteTableResponse, BatchDeleteTableError>;
fn batch_delete_table_version(
&self,
input: BatchDeleteTableVersionRequest,
) -> RusotoFuture<BatchDeleteTableVersionResponse, BatchDeleteTableVersionError>;
fn batch_get_crawlers(
&self,
input: BatchGetCrawlersRequest,
) -> RusotoFuture<BatchGetCrawlersResponse, BatchGetCrawlersError>;
fn batch_get_dev_endpoints(
&self,
input: BatchGetDevEndpointsRequest,
) -> RusotoFuture<BatchGetDevEndpointsResponse, BatchGetDevEndpointsError>;
fn batch_get_jobs(
&self,
input: BatchGetJobsRequest,
) -> RusotoFuture<BatchGetJobsResponse, BatchGetJobsError>;
fn batch_get_partition(
&self,
input: BatchGetPartitionRequest,
) -> RusotoFuture<BatchGetPartitionResponse, BatchGetPartitionError>;
fn batch_get_triggers(
&self,
input: BatchGetTriggersRequest,
) -> RusotoFuture<BatchGetTriggersResponse, BatchGetTriggersError>;
fn batch_stop_job_run(
&self,
input: BatchStopJobRunRequest,
) -> RusotoFuture<BatchStopJobRunResponse, GlueBatchStopJobRunError>;
fn create_classifier(
&self,
input: CreateClassifierRequest,
) -> RusotoFuture<CreateClassifierResponse, CreateClassifierError>;
fn create_connection(
&self,
input: CreateConnectionRequest,
) -> RusotoFuture<CreateConnectionResponse, CreateConnectionError>;
fn create_crawler(
&self,
input: CreateCrawlerRequest,
) -> RusotoFuture<CreateCrawlerResponse, CreateCrawlerError>;
fn create_database(
&self,
input: CreateDatabaseRequest,
) -> RusotoFuture<CreateDatabaseResponse, CreateDatabaseError>;
fn create_dev_endpoint(
&self,
input: CreateDevEndpointRequest,
) -> RusotoFuture<CreateDevEndpointResponse, CreateDevEndpointError>;
fn create_job(
&self,
input: CreateJobRequest,
) -> RusotoFuture<CreateJobResponse, CreateJobError>;
fn create_partition(
&self,
input: CreatePartitionRequest,
) -> RusotoFuture<CreatePartitionResponse, CreatePartitionError>;
fn create_script(
&self,
input: CreateScriptRequest,
) -> RusotoFuture<CreateScriptResponse, CreateScriptError>;
fn create_security_configuration(
&self,
input: CreateSecurityConfigurationRequest,
) -> RusotoFuture<CreateSecurityConfigurationResponse, CreateSecurityConfigurationError>;
fn create_table(
&self,
input: CreateTableRequest,
) -> RusotoFuture<CreateTableResponse, CreateTableError>;
fn create_trigger(
&self,
input: CreateTriggerRequest,
) -> RusotoFuture<CreateTriggerResponse, CreateTriggerError>;
fn create_user_defined_function(
&self,
input: CreateUserDefinedFunctionRequest,
) -> RusotoFuture<CreateUserDefinedFunctionResponse, CreateUserDefinedFunctionError>;
fn delete_classifier(
&self,
input: DeleteClassifierRequest,
) -> RusotoFuture<DeleteClassifierResponse, DeleteClassifierError>;
fn delete_connection(
&self,
input: DeleteConnectionRequest,
) -> RusotoFuture<DeleteConnectionResponse, DeleteConnectionError>;
fn delete_crawler(
&self,
input: DeleteCrawlerRequest,
) -> RusotoFuture<DeleteCrawlerResponse, DeleteCrawlerError>;
fn delete_database(
&self,
input: DeleteDatabaseRequest,
) -> RusotoFuture<DeleteDatabaseResponse, DeleteDatabaseError>;
fn delete_dev_endpoint(
&self,
input: DeleteDevEndpointRequest,
) -> RusotoFuture<DeleteDevEndpointResponse, DeleteDevEndpointError>;
fn delete_job(
&self,
input: DeleteJobRequest,
) -> RusotoFuture<DeleteJobResponse, DeleteJobError>;
fn delete_partition(
&self,
input: DeletePartitionRequest,
) -> RusotoFuture<DeletePartitionResponse, DeletePartitionError>;
fn delete_resource_policy(
&self,
input: DeleteResourcePolicyRequest,
) -> RusotoFuture<DeleteResourcePolicyResponse, DeleteResourcePolicyError>;
fn delete_security_configuration(
&self,
input: DeleteSecurityConfigurationRequest,
) -> RusotoFuture<DeleteSecurityConfigurationResponse, DeleteSecurityConfigurationError>;
fn delete_table(
&self,
input: DeleteTableRequest,
) -> RusotoFuture<DeleteTableResponse, DeleteTableError>;
fn delete_table_version(
&self,
input: DeleteTableVersionRequest,
) -> RusotoFuture<DeleteTableVersionResponse, DeleteTableVersionError>;
fn delete_trigger(
&self,
input: DeleteTriggerRequest,
) -> RusotoFuture<DeleteTriggerResponse, DeleteTriggerError>;
fn delete_user_defined_function(
&self,
input: DeleteUserDefinedFunctionRequest,
) -> RusotoFuture<DeleteUserDefinedFunctionResponse, DeleteUserDefinedFunctionError>;
fn get_catalog_import_status(
&self,
input: GetCatalogImportStatusRequest,
) -> RusotoFuture<GetCatalogImportStatusResponse, GetCatalogImportStatusError>;
fn get_classifier(
&self,
input: GetClassifierRequest,
) -> RusotoFuture<GetClassifierResponse, GetClassifierError>;
fn get_classifiers(
&self,
input: GetClassifiersRequest,
) -> RusotoFuture<GetClassifiersResponse, GetClassifiersError>;
fn get_connection(
&self,
input: GetConnectionRequest,
) -> RusotoFuture<GetConnectionResponse, GetConnectionError>;
fn get_connections(
&self,
input: GetConnectionsRequest,
) -> RusotoFuture<GetConnectionsResponse, GetConnectionsError>;
fn get_crawler(
&self,
input: GetCrawlerRequest,
) -> RusotoFuture<GetCrawlerResponse, GetCrawlerError>;
fn get_crawler_metrics(
&self,
input: GetCrawlerMetricsRequest,
) -> RusotoFuture<GetCrawlerMetricsResponse, GetCrawlerMetricsError>;
fn get_crawlers(
&self,
input: GetCrawlersRequest,
) -> RusotoFuture<GetCrawlersResponse, GetCrawlersError>;
fn get_data_catalog_encryption_settings(
&self,
input: GetDataCatalogEncryptionSettingsRequest,
) -> RusotoFuture<GetDataCatalogEncryptionSettingsResponse, GetDataCatalogEncryptionSettingsError>;
fn get_database(
&self,
input: GetDatabaseRequest,
) -> RusotoFuture<GetDatabaseResponse, GetDatabaseError>;
fn get_databases(
&self,
input: GetDatabasesRequest,
) -> RusotoFuture<GetDatabasesResponse, GetDatabasesError>;
fn get_dataflow_graph(
&self,
input: GetDataflowGraphRequest,
) -> RusotoFuture<GetDataflowGraphResponse, GetDataflowGraphError>;
fn get_dev_endpoint(
&self,
input: GetDevEndpointRequest,
) -> RusotoFuture<GetDevEndpointResponse, GetDevEndpointError>;
fn get_dev_endpoints(
&self,
input: GetDevEndpointsRequest,
) -> RusotoFuture<GetDevEndpointsResponse, GetDevEndpointsError>;
fn get_job(&self, input: GetJobRequest) -> RusotoFuture<GetJobResponse, GetJobError>;
fn get_job_run(
&self,
input: GetJobRunRequest,
) -> RusotoFuture<GetJobRunResponse, GetJobRunError>;
fn get_job_runs(
&self,
input: GetJobRunsRequest,
) -> RusotoFuture<GetJobRunsResponse, GetJobRunsError>;
fn get_jobs(&self, input: GetJobsRequest) -> RusotoFuture<GetJobsResponse, GetJobsError>;
fn get_mapping(
&self,
input: GetMappingRequest,
) -> RusotoFuture<GetMappingResponse, GetMappingError>;
fn get_partition(
&self,
input: GetPartitionRequest,
) -> RusotoFuture<GetPartitionResponse, GetPartitionError>;
fn get_partitions(
&self,
input: GetPartitionsRequest,
) -> RusotoFuture<GetPartitionsResponse, GetPartitionsError>;
fn get_plan(&self, input: GetPlanRequest) -> RusotoFuture<GetPlanResponse, GetPlanError>;
fn get_resource_policy(
&self,
) -> RusotoFuture<GetResourcePolicyResponse, GetResourcePolicyError>;
fn get_security_configuration(
&self,
input: GetSecurityConfigurationRequest,
) -> RusotoFuture<GetSecurityConfigurationResponse, GetSecurityConfigurationError>;
fn get_security_configurations(
&self,
input: GetSecurityConfigurationsRequest,
) -> RusotoFuture<GetSecurityConfigurationsResponse, GetSecurityConfigurationsError>;
fn get_table(&self, input: GetTableRequest) -> RusotoFuture<GetTableResponse, GetTableError>;
fn get_table_version(
&self,
input: GetTableVersionRequest,
) -> RusotoFuture<GetTableVersionResponse, GetTableVersionError>;
fn get_table_versions(
&self,
input: GetTableVersionsRequest,
) -> RusotoFuture<GetTableVersionsResponse, GetTableVersionsError>;
fn get_tables(
&self,
input: GetTablesRequest,
) -> RusotoFuture<GetTablesResponse, GetTablesError>;
fn get_tags(&self, input: GetTagsRequest) -> RusotoFuture<GetTagsResponse, GetTagsError>;
fn get_trigger(
&self,
input: GetTriggerRequest,
) -> RusotoFuture<GetTriggerResponse, GetTriggerError>;
fn get_triggers(
&self,
input: GetTriggersRequest,
) -> RusotoFuture<GetTriggersResponse, GetTriggersError>;
fn get_user_defined_function(
&self,
input: GetUserDefinedFunctionRequest,
) -> RusotoFuture<GetUserDefinedFunctionResponse, GetUserDefinedFunctionError>;
fn get_user_defined_functions(
&self,
input: GetUserDefinedFunctionsRequest,
) -> RusotoFuture<GetUserDefinedFunctionsResponse, GetUserDefinedFunctionsError>;
fn import_catalog_to_glue(
&self,
input: ImportCatalogToGlueRequest,
) -> RusotoFuture<ImportCatalogToGlueResponse, ImportCatalogToGlueError>;
fn list_crawlers(
&self,
input: ListCrawlersRequest,
) -> RusotoFuture<ListCrawlersResponse, ListCrawlersError>;
fn list_dev_endpoints(
&self,
input: ListDevEndpointsRequest,
) -> RusotoFuture<ListDevEndpointsResponse, ListDevEndpointsError>;
fn list_jobs(&self, input: ListJobsRequest) -> RusotoFuture<ListJobsResponse, ListJobsError>;
fn list_triggers(
&self,
input: ListTriggersRequest,
) -> RusotoFuture<ListTriggersResponse, ListTriggersError>;
fn put_data_catalog_encryption_settings(
&self,
input: PutDataCatalogEncryptionSettingsRequest,
) -> RusotoFuture<PutDataCatalogEncryptionSettingsResponse, PutDataCatalogEncryptionSettingsError>;
fn put_resource_policy(
&self,
input: PutResourcePolicyRequest,
) -> RusotoFuture<PutResourcePolicyResponse, PutResourcePolicyError>;
fn reset_job_bookmark(
&self,
input: ResetJobBookmarkRequest,
) -> RusotoFuture<ResetJobBookmarkResponse, ResetJobBookmarkError>;
fn start_crawler(
&self,
input: StartCrawlerRequest,
) -> RusotoFuture<StartCrawlerResponse, StartCrawlerError>;
fn start_crawler_schedule(
&self,
input: StartCrawlerScheduleRequest,
) -> RusotoFuture<StartCrawlerScheduleResponse, StartCrawlerScheduleError>;
fn start_job_run(
&self,
input: StartJobRunRequest,
) -> RusotoFuture<StartJobRunResponse, StartJobRunError>;
fn start_trigger(
&self,
input: StartTriggerRequest,
) -> RusotoFuture<StartTriggerResponse, StartTriggerError>;
fn stop_crawler(
&self,
input: StopCrawlerRequest,
) -> RusotoFuture<StopCrawlerResponse, StopCrawlerError>;
fn stop_crawler_schedule(
&self,
input: StopCrawlerScheduleRequest,
) -> RusotoFuture<StopCrawlerScheduleResponse, StopCrawlerScheduleError>;
fn stop_trigger(
&self,
input: StopTriggerRequest,
) -> RusotoFuture<StopTriggerResponse, StopTriggerError>;
fn tag_resource(
&self,
input: TagResourceRequest,
) -> RusotoFuture<TagResourceResponse, TagResourceError>;
fn untag_resource(
&self,
input: UntagResourceRequest,
) -> RusotoFuture<UntagResourceResponse, UntagResourceError>;
fn update_classifier(
&self,
input: UpdateClassifierRequest,
) -> RusotoFuture<UpdateClassifierResponse, UpdateClassifierError>;
fn update_connection(
&self,
input: UpdateConnectionRequest,
) -> RusotoFuture<UpdateConnectionResponse, UpdateConnectionError>;
fn update_crawler(
&self,
input: UpdateCrawlerRequest,
) -> RusotoFuture<UpdateCrawlerResponse, UpdateCrawlerError>;
fn update_crawler_schedule(
&self,
input: UpdateCrawlerScheduleRequest,
) -> RusotoFuture<UpdateCrawlerScheduleResponse, UpdateCrawlerScheduleError>;
fn update_database(
&self,
input: UpdateDatabaseRequest,
) -> RusotoFuture<UpdateDatabaseResponse, UpdateDatabaseError>;
fn update_dev_endpoint(
&self,
input: UpdateDevEndpointRequest,
) -> RusotoFuture<UpdateDevEndpointResponse, UpdateDevEndpointError>;
fn update_job(
&self,
input: UpdateJobRequest,
) -> RusotoFuture<UpdateJobResponse, UpdateJobError>;
fn update_partition(
&self,
input: UpdatePartitionRequest,
) -> RusotoFuture<UpdatePartitionResponse, UpdatePartitionError>;
fn update_table(
&self,
input: UpdateTableRequest,
) -> RusotoFuture<UpdateTableResponse, UpdateTableError>;
fn update_trigger(
&self,
input: UpdateTriggerRequest,
) -> RusotoFuture<UpdateTriggerResponse, UpdateTriggerError>;
fn update_user_defined_function(
&self,
input: UpdateUserDefinedFunctionRequest,
) -> RusotoFuture<UpdateUserDefinedFunctionResponse, UpdateUserDefinedFunctionError>;
}
#[derive(Clone)]
pub struct GlueClient {
client: Client,
region: region::Region,
}
impl GlueClient {
pub fn new(region: region::Region) -> GlueClient {
GlueClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> GlueClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
{
GlueClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
}
impl Glue for GlueClient {
fn batch_create_partition(
&self,
input: BatchCreatePartitionRequest,
) -> RusotoFuture<BatchCreatePartitionResponse, BatchCreatePartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchCreatePartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchCreatePartitionResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(BatchCreatePartitionError::from_response(response))
}),
)
}
})
}
fn batch_delete_connection(
&self,
input: BatchDeleteConnectionRequest,
) -> RusotoFuture<BatchDeleteConnectionResponse, BatchDeleteConnectionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchDeleteConnection");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchDeleteConnectionResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(BatchDeleteConnectionError::from_response(response))
}),
)
}
})
}
fn batch_delete_partition(
&self,
input: BatchDeletePartitionRequest,
) -> RusotoFuture<BatchDeletePartitionResponse, BatchDeletePartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchDeletePartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchDeletePartitionResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(BatchDeletePartitionError::from_response(response))
}),
)
}
})
}
fn batch_delete_table(
&self,
input: BatchDeleteTableRequest,
) -> RusotoFuture<BatchDeleteTableResponse, BatchDeleteTableError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchDeleteTable");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchDeleteTableResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(BatchDeleteTableError::from_response(response))),
)
}
})
}
fn batch_delete_table_version(
&self,
input: BatchDeleteTableVersionRequest,
) -> RusotoFuture<BatchDeleteTableVersionResponse, BatchDeleteTableVersionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchDeleteTableVersion");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchDeleteTableVersionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(BatchDeleteTableVersionError::from_response(response))
}))
}
})
}
fn batch_get_crawlers(
&self,
input: BatchGetCrawlersRequest,
) -> RusotoFuture<BatchGetCrawlersResponse, BatchGetCrawlersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchGetCrawlers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchGetCrawlersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(BatchGetCrawlersError::from_response(response))),
)
}
})
}
fn batch_get_dev_endpoints(
&self,
input: BatchGetDevEndpointsRequest,
) -> RusotoFuture<BatchGetDevEndpointsResponse, BatchGetDevEndpointsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchGetDevEndpoints");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchGetDevEndpointsResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(BatchGetDevEndpointsError::from_response(response))
}),
)
}
})
}
fn batch_get_jobs(
&self,
input: BatchGetJobsRequest,
) -> RusotoFuture<BatchGetJobsResponse, BatchGetJobsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchGetJobs");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchGetJobsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(BatchGetJobsError::from_response(response))),
)
}
})
}
fn batch_get_partition(
&self,
input: BatchGetPartitionRequest,
) -> RusotoFuture<BatchGetPartitionResponse, BatchGetPartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchGetPartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchGetPartitionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(BatchGetPartitionError::from_response(response))),
)
}
})
}
fn batch_get_triggers(
&self,
input: BatchGetTriggersRequest,
) -> RusotoFuture<BatchGetTriggersResponse, BatchGetTriggersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchGetTriggers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchGetTriggersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(BatchGetTriggersError::from_response(response))),
)
}
})
}
fn batch_stop_job_run(
&self,
input: BatchStopJobRunRequest,
) -> RusotoFuture<BatchStopJobRunResponse, GlueBatchStopJobRunError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.BatchStopJobRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<BatchStopJobRunResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GlueBatchStopJobRunError::from_response(response))
}),
)
}
})
}
fn create_classifier(
&self,
input: CreateClassifierRequest,
) -> RusotoFuture<CreateClassifierResponse, CreateClassifierError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateClassifier");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateClassifierResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateClassifierError::from_response(response))),
)
}
})
}
fn create_connection(
&self,
input: CreateConnectionRequest,
) -> RusotoFuture<CreateConnectionResponse, CreateConnectionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateConnection");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateConnectionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateConnectionError::from_response(response))),
)
}
})
}
fn create_crawler(
&self,
input: CreateCrawlerRequest,
) -> RusotoFuture<CreateCrawlerResponse, CreateCrawlerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateCrawler");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateCrawlerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateCrawlerError::from_response(response))),
)
}
})
}
fn create_database(
&self,
input: CreateDatabaseRequest,
) -> RusotoFuture<CreateDatabaseResponse, CreateDatabaseError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateDatabase");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateDatabaseResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDatabaseError::from_response(response))),
)
}
})
}
fn create_dev_endpoint(
&self,
input: CreateDevEndpointRequest,
) -> RusotoFuture<CreateDevEndpointResponse, CreateDevEndpointError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateDevEndpoint");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateDevEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDevEndpointError::from_response(response))),
)
}
})
}
fn create_job(
&self,
input: CreateJobRequest,
) -> RusotoFuture<CreateJobResponse, CreateJobError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateJob");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateJobResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateJobError::from_response(response))),
)
}
})
}
fn create_partition(
&self,
input: CreatePartitionRequest,
) -> RusotoFuture<CreatePartitionResponse, CreatePartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreatePartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreatePartitionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreatePartitionError::from_response(response))),
)
}
})
}
fn create_script(
&self,
input: CreateScriptRequest,
) -> RusotoFuture<CreateScriptResponse, CreateScriptError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateScript");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateScriptResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateScriptError::from_response(response))),
)
}
})
}
fn create_security_configuration(
&self,
input: CreateSecurityConfigurationRequest,
) -> RusotoFuture<CreateSecurityConfigurationResponse, CreateSecurityConfigurationError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateSecurityConfiguration");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateSecurityConfigurationResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateSecurityConfigurationError::from_response(response))
}))
}
})
}
fn create_table(
&self,
input: CreateTableRequest,
) -> RusotoFuture<CreateTableResponse, CreateTableError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateTable");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateTableResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateTableError::from_response(response))),
)
}
})
}
fn create_trigger(
&self,
input: CreateTriggerRequest,
) -> RusotoFuture<CreateTriggerResponse, CreateTriggerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateTrigger");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateTriggerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateTriggerError::from_response(response))),
)
}
})
}
fn create_user_defined_function(
&self,
input: CreateUserDefinedFunctionRequest,
) -> RusotoFuture<CreateUserDefinedFunctionResponse, CreateUserDefinedFunctionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.CreateUserDefinedFunction");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<CreateUserDefinedFunctionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateUserDefinedFunctionError::from_response(response))
}))
}
})
}
fn delete_classifier(
&self,
input: DeleteClassifierRequest,
) -> RusotoFuture<DeleteClassifierResponse, DeleteClassifierError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteClassifier");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteClassifierResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteClassifierError::from_response(response))),
)
}
})
}
fn delete_connection(
&self,
input: DeleteConnectionRequest,
) -> RusotoFuture<DeleteConnectionResponse, DeleteConnectionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteConnection");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteConnectionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteConnectionError::from_response(response))),
)
}
})
}
fn delete_crawler(
&self,
input: DeleteCrawlerRequest,
) -> RusotoFuture<DeleteCrawlerResponse, DeleteCrawlerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteCrawler");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteCrawlerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteCrawlerError::from_response(response))),
)
}
})
}
fn delete_database(
&self,
input: DeleteDatabaseRequest,
) -> RusotoFuture<DeleteDatabaseResponse, DeleteDatabaseError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteDatabase");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteDatabaseResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDatabaseError::from_response(response))),
)
}
})
}
fn delete_dev_endpoint(
&self,
input: DeleteDevEndpointRequest,
) -> RusotoFuture<DeleteDevEndpointResponse, DeleteDevEndpointError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteDevEndpoint");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteDevEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDevEndpointError::from_response(response))),
)
}
})
}
fn delete_job(
&self,
input: DeleteJobRequest,
) -> RusotoFuture<DeleteJobResponse, DeleteJobError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteJob");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteJobResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteJobError::from_response(response))),
)
}
})
}
fn delete_partition(
&self,
input: DeletePartitionRequest,
) -> RusotoFuture<DeletePartitionResponse, DeletePartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeletePartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeletePartitionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeletePartitionError::from_response(response))),
)
}
})
}
fn delete_resource_policy(
&self,
input: DeleteResourcePolicyRequest,
) -> RusotoFuture<DeleteResourcePolicyResponse, DeleteResourcePolicyError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteResourcePolicy");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteResourcePolicyResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteResourcePolicyError::from_response(response))
}),
)
}
})
}
fn delete_security_configuration(
&self,
input: DeleteSecurityConfigurationRequest,
) -> RusotoFuture<DeleteSecurityConfigurationResponse, DeleteSecurityConfigurationError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteSecurityConfiguration");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteSecurityConfigurationResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteSecurityConfigurationError::from_response(response))
}))
}
})
}
fn delete_table(
&self,
input: DeleteTableRequest,
) -> RusotoFuture<DeleteTableResponse, DeleteTableError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteTable");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteTableResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteTableError::from_response(response))),
)
}
})
}
fn delete_table_version(
&self,
input: DeleteTableVersionRequest,
) -> RusotoFuture<DeleteTableVersionResponse, DeleteTableVersionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteTableVersion");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteTableVersionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteTableVersionError::from_response(response))),
)
}
})
}
fn delete_trigger(
&self,
input: DeleteTriggerRequest,
) -> RusotoFuture<DeleteTriggerResponse, DeleteTriggerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteTrigger");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteTriggerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteTriggerError::from_response(response))),
)
}
})
}
fn delete_user_defined_function(
&self,
input: DeleteUserDefinedFunctionRequest,
) -> RusotoFuture<DeleteUserDefinedFunctionResponse, DeleteUserDefinedFunctionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.DeleteUserDefinedFunction");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<DeleteUserDefinedFunctionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteUserDefinedFunctionError::from_response(response))
}))
}
})
}
fn get_catalog_import_status(
&self,
input: GetCatalogImportStatusRequest,
) -> RusotoFuture<GetCatalogImportStatusResponse, GetCatalogImportStatusError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetCatalogImportStatus");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetCatalogImportStatusResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetCatalogImportStatusError::from_response(response))
}),
)
}
})
}
fn get_classifier(
&self,
input: GetClassifierRequest,
) -> RusotoFuture<GetClassifierResponse, GetClassifierError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetClassifier");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetClassifierResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetClassifierError::from_response(response))),
)
}
})
}
fn get_classifiers(
&self,
input: GetClassifiersRequest,
) -> RusotoFuture<GetClassifiersResponse, GetClassifiersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetClassifiers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetClassifiersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetClassifiersError::from_response(response))),
)
}
})
}
fn get_connection(
&self,
input: GetConnectionRequest,
) -> RusotoFuture<GetConnectionResponse, GetConnectionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetConnection");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetConnectionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetConnectionError::from_response(response))),
)
}
})
}
fn get_connections(
&self,
input: GetConnectionsRequest,
) -> RusotoFuture<GetConnectionsResponse, GetConnectionsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetConnections");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetConnectionsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetConnectionsError::from_response(response))),
)
}
})
}
fn get_crawler(
&self,
input: GetCrawlerRequest,
) -> RusotoFuture<GetCrawlerResponse, GetCrawlerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetCrawler");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetCrawlerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetCrawlerError::from_response(response))),
)
}
})
}
fn get_crawler_metrics(
&self,
input: GetCrawlerMetricsRequest,
) -> RusotoFuture<GetCrawlerMetricsResponse, GetCrawlerMetricsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetCrawlerMetrics");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetCrawlerMetricsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetCrawlerMetricsError::from_response(response))),
)
}
})
}
fn get_crawlers(
&self,
input: GetCrawlersRequest,
) -> RusotoFuture<GetCrawlersResponse, GetCrawlersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetCrawlers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetCrawlersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetCrawlersError::from_response(response))),
)
}
})
}
fn get_data_catalog_encryption_settings(
&self,
input: GetDataCatalogEncryptionSettingsRequest,
) -> RusotoFuture<GetDataCatalogEncryptionSettingsResponse, GetDataCatalogEncryptionSettingsError>
{
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetDataCatalogEncryptionSettings");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDataCatalogEncryptionSettingsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetDataCatalogEncryptionSettingsError::from_response(
response,
))
}))
}
})
}
fn get_database(
&self,
input: GetDatabaseRequest,
) -> RusotoFuture<GetDatabaseResponse, GetDatabaseError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetDatabase");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDatabaseResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDatabaseError::from_response(response))),
)
}
})
}
fn get_databases(
&self,
input: GetDatabasesRequest,
) -> RusotoFuture<GetDatabasesResponse, GetDatabasesError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetDatabases");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDatabasesResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDatabasesError::from_response(response))),
)
}
})
}
fn get_dataflow_graph(
&self,
input: GetDataflowGraphRequest,
) -> RusotoFuture<GetDataflowGraphResponse, GetDataflowGraphError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetDataflowGraph");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDataflowGraphResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDataflowGraphError::from_response(response))),
)
}
})
}
fn get_dev_endpoint(
&self,
input: GetDevEndpointRequest,
) -> RusotoFuture<GetDevEndpointResponse, GetDevEndpointError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetDevEndpoint");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDevEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDevEndpointError::from_response(response))),
)
}
})
}
fn get_dev_endpoints(
&self,
input: GetDevEndpointsRequest,
) -> RusotoFuture<GetDevEndpointsResponse, GetDevEndpointsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetDevEndpoints");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetDevEndpointsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDevEndpointsError::from_response(response))),
)
}
})
}
fn get_job(&self, input: GetJobRequest) -> RusotoFuture<GetJobResponse, GetJobError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetJob");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetJobResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetJobError::from_response(response))),
)
}
})
}
fn get_job_run(
&self,
input: GetJobRunRequest,
) -> RusotoFuture<GetJobRunResponse, GetJobRunError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetJobRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetJobRunResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetJobRunError::from_response(response))),
)
}
})
}
fn get_job_runs(
&self,
input: GetJobRunsRequest,
) -> RusotoFuture<GetJobRunsResponse, GetJobRunsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetJobRuns");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetJobRunsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetJobRunsError::from_response(response))),
)
}
})
}
fn get_jobs(&self, input: GetJobsRequest) -> RusotoFuture<GetJobsResponse, GetJobsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetJobs");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetJobsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetJobsError::from_response(response))),
)
}
})
}
fn get_mapping(
&self,
input: GetMappingRequest,
) -> RusotoFuture<GetMappingResponse, GetMappingError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetMapping");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetMappingResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetMappingError::from_response(response))),
)
}
})
}
fn get_partition(
&self,
input: GetPartitionRequest,
) -> RusotoFuture<GetPartitionResponse, GetPartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetPartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetPartitionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetPartitionError::from_response(response))),
)
}
})
}
fn get_partitions(
&self,
input: GetPartitionsRequest,
) -> RusotoFuture<GetPartitionsResponse, GetPartitionsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetPartitions");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetPartitionsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetPartitionsError::from_response(response))),
)
}
})
}
fn get_plan(&self, input: GetPlanRequest) -> RusotoFuture<GetPlanResponse, GetPlanError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetPlan");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetPlanResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetPlanError::from_response(response))),
)
}
})
}
fn get_resource_policy(
&self,
) -> RusotoFuture<GetResourcePolicyResponse, GetResourcePolicyError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetResourcePolicy");
request.set_payload(Some(bytes::Bytes::from_static(b"{}")));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetResourcePolicyResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetResourcePolicyError::from_response(response))),
)
}
})
}
fn get_security_configuration(
&self,
input: GetSecurityConfigurationRequest,
) -> RusotoFuture<GetSecurityConfigurationResponse, GetSecurityConfigurationError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetSecurityConfiguration");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetSecurityConfigurationResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetSecurityConfigurationError::from_response(response))
}))
}
})
}
fn get_security_configurations(
&self,
input: GetSecurityConfigurationsRequest,
) -> RusotoFuture<GetSecurityConfigurationsResponse, GetSecurityConfigurationsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetSecurityConfigurations");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetSecurityConfigurationsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetSecurityConfigurationsError::from_response(response))
}))
}
})
}
fn get_table(&self, input: GetTableRequest) -> RusotoFuture<GetTableResponse, GetTableError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTable");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetTableResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTableError::from_response(response))),
)
}
})
}
fn get_table_version(
&self,
input: GetTableVersionRequest,
) -> RusotoFuture<GetTableVersionResponse, GetTableVersionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTableVersion");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetTableVersionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTableVersionError::from_response(response))),
)
}
})
}
fn get_table_versions(
&self,
input: GetTableVersionsRequest,
) -> RusotoFuture<GetTableVersionsResponse, GetTableVersionsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTableVersions");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetTableVersionsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTableVersionsError::from_response(response))),
)
}
})
}
fn get_tables(
&self,
input: GetTablesRequest,
) -> RusotoFuture<GetTablesResponse, GetTablesError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTables");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetTablesResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTablesError::from_response(response))),
)
}
})
}
fn get_tags(&self, input: GetTagsRequest) -> RusotoFuture<GetTagsResponse, GetTagsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTags");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response).deserialize::<GetTagsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTagsError::from_response(response))),
)
}
})
}
fn get_trigger(
&self,
input: GetTriggerRequest,
) -> RusotoFuture<GetTriggerResponse, GetTriggerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTrigger");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetTriggerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTriggerError::from_response(response))),
)
}
})
}
fn get_triggers(
&self,
input: GetTriggersRequest,
) -> RusotoFuture<GetTriggersResponse, GetTriggersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetTriggers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetTriggersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetTriggersError::from_response(response))),
)
}
})
}
fn get_user_defined_function(
&self,
input: GetUserDefinedFunctionRequest,
) -> RusotoFuture<GetUserDefinedFunctionResponse, GetUserDefinedFunctionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetUserDefinedFunction");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetUserDefinedFunctionResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetUserDefinedFunctionError::from_response(response))
}),
)
}
})
}
fn get_user_defined_functions(
&self,
input: GetUserDefinedFunctionsRequest,
) -> RusotoFuture<GetUserDefinedFunctionsResponse, GetUserDefinedFunctionsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.GetUserDefinedFunctions");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<GetUserDefinedFunctionsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetUserDefinedFunctionsError::from_response(response))
}))
}
})
}
fn import_catalog_to_glue(
&self,
input: ImportCatalogToGlueRequest,
) -> RusotoFuture<ImportCatalogToGlueResponse, ImportCatalogToGlueError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.ImportCatalogToGlue");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ImportCatalogToGlueResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ImportCatalogToGlueError::from_response(response))
}),
)
}
})
}
fn list_crawlers(
&self,
input: ListCrawlersRequest,
) -> RusotoFuture<ListCrawlersResponse, ListCrawlersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.ListCrawlers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListCrawlersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListCrawlersError::from_response(response))),
)
}
})
}
fn list_dev_endpoints(
&self,
input: ListDevEndpointsRequest,
) -> RusotoFuture<ListDevEndpointsResponse, ListDevEndpointsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.ListDevEndpoints");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListDevEndpointsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListDevEndpointsError::from_response(response))),
)
}
})
}
fn list_jobs(&self, input: ListJobsRequest) -> RusotoFuture<ListJobsResponse, ListJobsError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.ListJobs");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListJobsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListJobsError::from_response(response))),
)
}
})
}
fn list_triggers(
&self,
input: ListTriggersRequest,
) -> RusotoFuture<ListTriggersResponse, ListTriggersError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.ListTriggers");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListTriggersResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListTriggersError::from_response(response))),
)
}
})
}
fn put_data_catalog_encryption_settings(
&self,
input: PutDataCatalogEncryptionSettingsRequest,
) -> RusotoFuture<PutDataCatalogEncryptionSettingsResponse, PutDataCatalogEncryptionSettingsError>
{
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.PutDataCatalogEncryptionSettings");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<PutDataCatalogEncryptionSettingsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(PutDataCatalogEncryptionSettingsError::from_response(
response,
))
}))
}
})
}
fn put_resource_policy(
&self,
input: PutResourcePolicyRequest,
) -> RusotoFuture<PutResourcePolicyResponse, PutResourcePolicyError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.PutResourcePolicy");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<PutResourcePolicyResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(PutResourcePolicyError::from_response(response))),
)
}
})
}
fn reset_job_bookmark(
&self,
input: ResetJobBookmarkRequest,
) -> RusotoFuture<ResetJobBookmarkResponse, ResetJobBookmarkError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.ResetJobBookmark");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ResetJobBookmarkResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ResetJobBookmarkError::from_response(response))),
)
}
})
}
fn start_crawler(
&self,
input: StartCrawlerRequest,
) -> RusotoFuture<StartCrawlerResponse, StartCrawlerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StartCrawler");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StartCrawlerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StartCrawlerError::from_response(response))),
)
}
})
}
fn start_crawler_schedule(
&self,
input: StartCrawlerScheduleRequest,
) -> RusotoFuture<StartCrawlerScheduleResponse, StartCrawlerScheduleError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StartCrawlerSchedule");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StartCrawlerScheduleResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(StartCrawlerScheduleError::from_response(response))
}),
)
}
})
}
fn start_job_run(
&self,
input: StartJobRunRequest,
) -> RusotoFuture<StartJobRunResponse, StartJobRunError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StartJobRun");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StartJobRunResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StartJobRunError::from_response(response))),
)
}
})
}
fn start_trigger(
&self,
input: StartTriggerRequest,
) -> RusotoFuture<StartTriggerResponse, StartTriggerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StartTrigger");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StartTriggerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StartTriggerError::from_response(response))),
)
}
})
}
fn stop_crawler(
&self,
input: StopCrawlerRequest,
) -> RusotoFuture<StopCrawlerResponse, StopCrawlerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StopCrawler");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StopCrawlerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StopCrawlerError::from_response(response))),
)
}
})
}
fn stop_crawler_schedule(
&self,
input: StopCrawlerScheduleRequest,
) -> RusotoFuture<StopCrawlerScheduleResponse, StopCrawlerScheduleError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StopCrawlerSchedule");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StopCrawlerScheduleResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(StopCrawlerScheduleError::from_response(response))
}),
)
}
})
}
fn stop_trigger(
&self,
input: StopTriggerRequest,
) -> RusotoFuture<StopTriggerResponse, StopTriggerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.StopTrigger");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<StopTriggerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StopTriggerError::from_response(response))),
)
}
})
}
fn tag_resource(
&self,
input: TagResourceRequest,
) -> RusotoFuture<TagResourceResponse, TagResourceError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.TagResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<TagResourceResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(TagResourceError::from_response(response))),
)
}
})
}
fn untag_resource(
&self,
input: UntagResourceRequest,
) -> RusotoFuture<UntagResourceResponse, UntagResourceError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UntagResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UntagResourceResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UntagResourceError::from_response(response))),
)
}
})
}
fn update_classifier(
&self,
input: UpdateClassifierRequest,
) -> RusotoFuture<UpdateClassifierResponse, UpdateClassifierError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateClassifier");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateClassifierResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateClassifierError::from_response(response))),
)
}
})
}
fn update_connection(
&self,
input: UpdateConnectionRequest,
) -> RusotoFuture<UpdateConnectionResponse, UpdateConnectionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateConnection");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateConnectionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateConnectionError::from_response(response))),
)
}
})
}
fn update_crawler(
&self,
input: UpdateCrawlerRequest,
) -> RusotoFuture<UpdateCrawlerResponse, UpdateCrawlerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateCrawler");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateCrawlerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateCrawlerError::from_response(response))),
)
}
})
}
fn update_crawler_schedule(
&self,
input: UpdateCrawlerScheduleRequest,
) -> RusotoFuture<UpdateCrawlerScheduleResponse, UpdateCrawlerScheduleError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateCrawlerSchedule");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateCrawlerScheduleResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdateCrawlerScheduleError::from_response(response))
}),
)
}
})
}
fn update_database(
&self,
input: UpdateDatabaseRequest,
) -> RusotoFuture<UpdateDatabaseResponse, UpdateDatabaseError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateDatabase");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateDatabaseResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateDatabaseError::from_response(response))),
)
}
})
}
fn update_dev_endpoint(
&self,
input: UpdateDevEndpointRequest,
) -> RusotoFuture<UpdateDevEndpointResponse, UpdateDevEndpointError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateDevEndpoint");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateDevEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateDevEndpointError::from_response(response))),
)
}
})
}
fn update_job(
&self,
input: UpdateJobRequest,
) -> RusotoFuture<UpdateJobResponse, UpdateJobError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateJob");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateJobResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateJobError::from_response(response))),
)
}
})
}
fn update_partition(
&self,
input: UpdatePartitionRequest,
) -> RusotoFuture<UpdatePartitionResponse, UpdatePartitionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdatePartition");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdatePartitionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdatePartitionError::from_response(response))),
)
}
})
}
fn update_table(
&self,
input: UpdateTableRequest,
) -> RusotoFuture<UpdateTableResponse, UpdateTableError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateTable");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateTableResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateTableError::from_response(response))),
)
}
})
}
fn update_trigger(
&self,
input: UpdateTriggerRequest,
) -> RusotoFuture<UpdateTriggerResponse, UpdateTriggerError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateTrigger");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateTriggerResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateTriggerError::from_response(response))),
)
}
})
}
fn update_user_defined_function(
&self,
input: UpdateUserDefinedFunctionRequest,
) -> RusotoFuture<UpdateUserDefinedFunctionResponse, UpdateUserDefinedFunctionError> {
let mut request = SignedRequest::new("POST", "glue", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AWSGlue.UpdateUserDefinedFunction");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UpdateUserDefinedFunctionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateUserDefinedFunctionError::from_response(response))
}))
}
})
}
}