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, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AccountQuota {
#[serde(rename = "AccountQuotaName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_quota_name: Option<String>,
#[serde(rename = "Max")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max: Option<i64>,
#[serde(rename = "Used")]
#[serde(skip_serializing_if = "Option::is_none")]
pub used: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AddTagsToResourceMessage {
#[serde(rename = "ResourceArn")]
pub resource_arn: String,
#[serde(rename = "Tags")]
pub tags: Vec<Tag>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AddTagsToResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ApplyPendingMaintenanceActionMessage {
#[serde(rename = "ApplyAction")]
pub apply_action: String,
#[serde(rename = "OptInType")]
pub opt_in_type: String,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ApplyPendingMaintenanceActionResponse {
#[serde(rename = "ResourcePendingMaintenanceActions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_pending_maintenance_actions: Option<ResourcePendingMaintenanceActions>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AvailabilityZone {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Certificate {
#[serde(rename = "CertificateArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_arn: Option<String>,
#[serde(rename = "CertificateCreationDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_creation_date: Option<f64>,
#[serde(rename = "CertificateIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_identifier: Option<String>,
#[serde(rename = "CertificateOwner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_owner: Option<String>,
#[serde(rename = "CertificatePem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_pem: Option<String>,
#[serde(rename = "CertificateWallet")]
#[serde(
deserialize_with = "::rusoto_core::serialization::SerdeBlob::deserialize_blob",
serialize_with = "::rusoto_core::serialization::SerdeBlob::serialize_blob",
default
)]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_wallet: Option<bytes::Bytes>,
#[serde(rename = "KeyLength")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_length: Option<i64>,
#[serde(rename = "SigningAlgorithm")]
#[serde(skip_serializing_if = "Option::is_none")]
pub signing_algorithm: Option<String>,
#[serde(rename = "ValidFromDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub valid_from_date: Option<f64>,
#[serde(rename = "ValidToDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub valid_to_date: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Connection {
#[serde(rename = "EndpointArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_arn: Option<String>,
#[serde(rename = "EndpointIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_identifier: Option<String>,
#[serde(rename = "LastFailureMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_failure_message: Option<String>,
#[serde(rename = "ReplicationInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_arn: Option<String>,
#[serde(rename = "ReplicationInstanceIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_identifier: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateEndpointMessage {
#[serde(rename = "CertificateArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_arn: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "DmsTransferSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dms_transfer_settings: Option<DmsTransferSettings>,
#[serde(rename = "DynamoDbSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dynamo_db_settings: Option<DynamoDbSettings>,
#[serde(rename = "ElasticsearchSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub elasticsearch_settings: Option<ElasticsearchSettings>,
#[serde(rename = "EndpointIdentifier")]
pub endpoint_identifier: String,
#[serde(rename = "EndpointType")]
pub endpoint_type: String,
#[serde(rename = "EngineName")]
pub engine_name: String,
#[serde(rename = "ExternalTableDefinition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub external_table_definition: Option<String>,
#[serde(rename = "ExtraConnectionAttributes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_connection_attributes: Option<String>,
#[serde(rename = "KinesisSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kinesis_settings: Option<KinesisSettings>,
#[serde(rename = "KmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_id: Option<String>,
#[serde(rename = "MongoDbSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mongo_db_settings: Option<MongoDbSettings>,
#[serde(rename = "Password")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
#[serde(rename = "Port")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port: Option<i64>,
#[serde(rename = "RedshiftSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub redshift_settings: Option<RedshiftSettings>,
#[serde(rename = "S3Settings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_settings: Option<S3Settings>,
#[serde(rename = "ServerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_name: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
#[serde(rename = "SslMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_mode: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "Username")]
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateEndpointResponse {
#[serde(rename = "Endpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint: Option<Endpoint>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateEventSubscriptionMessage {
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EventCategories")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_categories: Option<Vec<String>>,
#[serde(rename = "SnsTopicArn")]
pub sns_topic_arn: String,
#[serde(rename = "SourceIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_ids: Option<Vec<String>>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
#[serde(rename = "SubscriptionName")]
pub subscription_name: String,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateEventSubscriptionResponse {
#[serde(rename = "EventSubscription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_subscription: Option<EventSubscription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateReplicationInstanceMessage {
#[serde(rename = "AllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allocated_storage: Option<i64>,
#[serde(rename = "AutoMinorVersionUpgrade")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_minor_version_upgrade: Option<bool>,
#[serde(rename = "AvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "DnsNameServers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dns_name_servers: Option<String>,
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "KmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_id: Option<String>,
#[serde(rename = "MultiAZ")]
#[serde(skip_serializing_if = "Option::is_none")]
pub multi_az: Option<bool>,
#[serde(rename = "PreferredMaintenanceWindow")]
#[serde(skip_serializing_if = "Option::is_none")]
pub preferred_maintenance_window: Option<String>,
#[serde(rename = "PubliclyAccessible")]
#[serde(skip_serializing_if = "Option::is_none")]
pub publicly_accessible: Option<bool>,
#[serde(rename = "ReplicationInstanceClass")]
pub replication_instance_class: String,
#[serde(rename = "ReplicationInstanceIdentifier")]
pub replication_instance_identifier: String,
#[serde(rename = "ReplicationSubnetGroupIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group_identifier: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "VpcSecurityGroupIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_security_group_ids: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateReplicationInstanceResponse {
#[serde(rename = "ReplicationInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance: Option<ReplicationInstance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateReplicationSubnetGroupMessage {
#[serde(rename = "ReplicationSubnetGroupDescription")]
pub replication_subnet_group_description: String,
#[serde(rename = "ReplicationSubnetGroupIdentifier")]
pub replication_subnet_group_identifier: String,
#[serde(rename = "SubnetIds")]
pub subnet_ids: Vec<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateReplicationSubnetGroupResponse {
#[serde(rename = "ReplicationSubnetGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group: Option<ReplicationSubnetGroup>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateReplicationTaskMessage {
#[serde(rename = "CdcStartPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_position: Option<String>,
#[serde(rename = "CdcStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_time: Option<f64>,
#[serde(rename = "CdcStopPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_stop_position: Option<String>,
#[serde(rename = "MigrationType")]
pub migration_type: String,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
#[serde(rename = "ReplicationTaskIdentifier")]
pub replication_task_identifier: String,
#[serde(rename = "ReplicationTaskSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_settings: Option<String>,
#[serde(rename = "SourceEndpointArn")]
pub source_endpoint_arn: String,
#[serde(rename = "TableMappings")]
pub table_mappings: String,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "TargetEndpointArn")]
pub target_endpoint_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateReplicationTaskResponse {
#[serde(rename = "ReplicationTask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task: Option<ReplicationTask>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteCertificateMessage {
#[serde(rename = "CertificateArn")]
pub certificate_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteCertificateResponse {
#[serde(rename = "Certificate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate: Option<Certificate>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteEndpointMessage {
#[serde(rename = "EndpointArn")]
pub endpoint_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteEndpointResponse {
#[serde(rename = "Endpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint: Option<Endpoint>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteEventSubscriptionMessage {
#[serde(rename = "SubscriptionName")]
pub subscription_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteEventSubscriptionResponse {
#[serde(rename = "EventSubscription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_subscription: Option<EventSubscription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteReplicationInstanceMessage {
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteReplicationInstanceResponse {
#[serde(rename = "ReplicationInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance: Option<ReplicationInstance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteReplicationSubnetGroupMessage {
#[serde(rename = "ReplicationSubnetGroupIdentifier")]
pub replication_subnet_group_identifier: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteReplicationSubnetGroupResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteReplicationTaskMessage {
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteReplicationTaskResponse {
#[serde(rename = "ReplicationTask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task: Option<ReplicationTask>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAccountAttributesMessage {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeAccountAttributesResponse {
#[serde(rename = "AccountQuotas")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_quotas: Option<Vec<AccountQuota>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeCertificatesMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeCertificatesResponse {
#[serde(rename = "Certificates")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificates: Option<Vec<Certificate>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeConnectionsMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeConnectionsResponse {
#[serde(rename = "Connections")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connections: Option<Vec<Connection>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEndpointTypesMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEndpointTypesResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "SupportedEndpointTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub supported_endpoint_types: Option<Vec<SupportedEndpointType>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEndpointsMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEndpointsResponse {
#[serde(rename = "Endpoints")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoints: Option<Vec<Endpoint>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEventCategoriesMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEventCategoriesResponse {
#[serde(rename = "EventCategoryGroupList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_category_group_list: Option<Vec<EventCategoryGroup>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEventSubscriptionsMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "SubscriptionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subscription_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEventSubscriptionsResponse {
#[serde(rename = "EventSubscriptionsList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_subscriptions_list: Option<Vec<EventSubscription>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEventsMessage {
#[serde(rename = "Duration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration: Option<i64>,
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "EventCategories")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_categories: Option<Vec<String>>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "SourceIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_identifier: Option<String>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEventsResponse {
#[serde(rename = "Events")]
#[serde(skip_serializing_if = "Option::is_none")]
pub events: Option<Vec<Event>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeOrderableReplicationInstancesMessage {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeOrderableReplicationInstancesResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "OrderableReplicationInstances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub orderable_replication_instances: Option<Vec<OrderableReplicationInstance>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePendingMaintenanceActionsMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "ReplicationInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePendingMaintenanceActionsResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "PendingMaintenanceActions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pending_maintenance_actions: Option<Vec<ResourcePendingMaintenanceActions>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeRefreshSchemasStatusMessage {
#[serde(rename = "EndpointArn")]
pub endpoint_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeRefreshSchemasStatusResponse {
#[serde(rename = "RefreshSchemasStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub refresh_schemas_status: Option<RefreshSchemasStatus>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeReplicationInstanceTaskLogsMessage {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeReplicationInstanceTaskLogsResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "ReplicationInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_arn: Option<String>,
#[serde(rename = "ReplicationInstanceTaskLogs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_task_logs: Option<Vec<ReplicationInstanceTaskLog>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeReplicationInstancesMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeReplicationInstancesResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "ReplicationInstances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instances: Option<Vec<ReplicationInstance>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeReplicationSubnetGroupsMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeReplicationSubnetGroupsResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "ReplicationSubnetGroups")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_groups: Option<Vec<ReplicationSubnetGroup>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeReplicationTaskAssessmentResultsMessage {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "ReplicationTaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeReplicationTaskAssessmentResultsResponse {
#[serde(rename = "BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_name: Option<String>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "ReplicationTaskAssessmentResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_assessment_results: Option<Vec<ReplicationTaskAssessmentResult>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeReplicationTasksMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "WithoutSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub without_settings: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeReplicationTasksResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "ReplicationTasks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_tasks: Option<Vec<ReplicationTask>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeSchemasMessage {
#[serde(rename = "EndpointArn")]
pub endpoint_arn: String,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeSchemasResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "Schemas")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schemas: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeTableStatisticsMessage {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<Filter>>,
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "MaxRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_records: Option<i64>,
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeTableStatisticsResponse {
#[serde(rename = "Marker")]
#[serde(skip_serializing_if = "Option::is_none")]
pub marker: Option<String>,
#[serde(rename = "ReplicationTaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_arn: Option<String>,
#[serde(rename = "TableStatistics")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_statistics: Option<Vec<TableStatistics>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DmsTransferSettings {
#[serde(rename = "BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_name: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DynamoDbSettings {
#[serde(rename = "ServiceAccessRoleArn")]
pub service_access_role_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ElasticsearchSettings {
#[serde(rename = "EndpointUri")]
pub endpoint_uri: String,
#[serde(rename = "ErrorRetryDuration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_retry_duration: Option<i64>,
#[serde(rename = "FullLoadErrorPercentage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub full_load_error_percentage: Option<i64>,
#[serde(rename = "ServiceAccessRoleArn")]
pub service_access_role_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Endpoint {
#[serde(rename = "CertificateArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_arn: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "DmsTransferSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dms_transfer_settings: Option<DmsTransferSettings>,
#[serde(rename = "DynamoDbSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dynamo_db_settings: Option<DynamoDbSettings>,
#[serde(rename = "ElasticsearchSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub elasticsearch_settings: Option<ElasticsearchSettings>,
#[serde(rename = "EndpointArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_arn: Option<String>,
#[serde(rename = "EndpointIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_identifier: Option<String>,
#[serde(rename = "EndpointType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_type: Option<String>,
#[serde(rename = "EngineDisplayName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_display_name: Option<String>,
#[serde(rename = "EngineName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_name: Option<String>,
#[serde(rename = "ExternalId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub external_id: Option<String>,
#[serde(rename = "ExternalTableDefinition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub external_table_definition: Option<String>,
#[serde(rename = "ExtraConnectionAttributes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_connection_attributes: Option<String>,
#[serde(rename = "KinesisSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kinesis_settings: Option<KinesisSettings>,
#[serde(rename = "KmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_id: Option<String>,
#[serde(rename = "MongoDbSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mongo_db_settings: Option<MongoDbSettings>,
#[serde(rename = "Port")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port: Option<i64>,
#[serde(rename = "RedshiftSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub redshift_settings: Option<RedshiftSettings>,
#[serde(rename = "S3Settings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_settings: Option<S3Settings>,
#[serde(rename = "ServerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_name: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
#[serde(rename = "SslMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_mode: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Username")]
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Event {
#[serde(rename = "Date")]
#[serde(skip_serializing_if = "Option::is_none")]
pub date: Option<f64>,
#[serde(rename = "EventCategories")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_categories: Option<Vec<String>>,
#[serde(rename = "Message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
#[serde(rename = "SourceIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_identifier: Option<String>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct EventCategoryGroup {
#[serde(rename = "EventCategories")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_categories: Option<Vec<String>>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct EventSubscription {
#[serde(rename = "CustSubscriptionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cust_subscription_id: Option<String>,
#[serde(rename = "CustomerAwsId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub customer_aws_id: Option<String>,
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EventCategoriesList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_categories_list: Option<Vec<String>>,
#[serde(rename = "SnsTopicArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sns_topic_arn: Option<String>,
#[serde(rename = "SourceIdsList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_ids_list: Option<Vec<String>>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "SubscriptionCreationTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subscription_creation_time: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct Filter {
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ImportCertificateMessage {
#[serde(rename = "CertificateIdentifier")]
pub certificate_identifier: String,
#[serde(rename = "CertificatePem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_pem: Option<String>,
#[serde(rename = "CertificateWallet")]
#[serde(
deserialize_with = "::rusoto_core::serialization::SerdeBlob::deserialize_blob",
serialize_with = "::rusoto_core::serialization::SerdeBlob::serialize_blob",
default
)]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_wallet: Option<bytes::Bytes>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ImportCertificateResponse {
#[serde(rename = "Certificate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate: Option<Certificate>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct KinesisSettings {
#[serde(rename = "MessageFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message_format: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
#[serde(rename = "StreamArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stream_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTagsForResourceMessage {
#[serde(rename = "ResourceArn")]
pub resource_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListTagsForResourceResponse {
#[serde(rename = "TagList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_list: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ModifyEndpointMessage {
#[serde(rename = "CertificateArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_arn: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "DmsTransferSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dms_transfer_settings: Option<DmsTransferSettings>,
#[serde(rename = "DynamoDbSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dynamo_db_settings: Option<DynamoDbSettings>,
#[serde(rename = "ElasticsearchSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub elasticsearch_settings: Option<ElasticsearchSettings>,
#[serde(rename = "EndpointArn")]
pub endpoint_arn: String,
#[serde(rename = "EndpointIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_identifier: Option<String>,
#[serde(rename = "EndpointType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_type: Option<String>,
#[serde(rename = "EngineName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_name: Option<String>,
#[serde(rename = "ExternalTableDefinition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub external_table_definition: Option<String>,
#[serde(rename = "ExtraConnectionAttributes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extra_connection_attributes: Option<String>,
#[serde(rename = "KinesisSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kinesis_settings: Option<KinesisSettings>,
#[serde(rename = "MongoDbSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mongo_db_settings: Option<MongoDbSettings>,
#[serde(rename = "Password")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
#[serde(rename = "Port")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port: Option<i64>,
#[serde(rename = "RedshiftSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub redshift_settings: Option<RedshiftSettings>,
#[serde(rename = "S3Settings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_settings: Option<S3Settings>,
#[serde(rename = "ServerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_name: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
#[serde(rename = "SslMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ssl_mode: Option<String>,
#[serde(rename = "Username")]
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ModifyEndpointResponse {
#[serde(rename = "Endpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint: Option<Endpoint>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ModifyEventSubscriptionMessage {
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EventCategories")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_categories: Option<Vec<String>>,
#[serde(rename = "SnsTopicArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sns_topic_arn: Option<String>,
#[serde(rename = "SourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_type: Option<String>,
#[serde(rename = "SubscriptionName")]
pub subscription_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ModifyEventSubscriptionResponse {
#[serde(rename = "EventSubscription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub event_subscription: Option<EventSubscription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ModifyReplicationInstanceMessage {
#[serde(rename = "AllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allocated_storage: Option<i64>,
#[serde(rename = "AllowMajorVersionUpgrade")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_major_version_upgrade: Option<bool>,
#[serde(rename = "ApplyImmediately")]
#[serde(skip_serializing_if = "Option::is_none")]
pub apply_immediately: Option<bool>,
#[serde(rename = "AutoMinorVersionUpgrade")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_minor_version_upgrade: Option<bool>,
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "MultiAZ")]
#[serde(skip_serializing_if = "Option::is_none")]
pub multi_az: Option<bool>,
#[serde(rename = "PreferredMaintenanceWindow")]
#[serde(skip_serializing_if = "Option::is_none")]
pub preferred_maintenance_window: Option<String>,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
#[serde(rename = "ReplicationInstanceClass")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_class: Option<String>,
#[serde(rename = "ReplicationInstanceIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_identifier: Option<String>,
#[serde(rename = "VpcSecurityGroupIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_security_group_ids: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ModifyReplicationInstanceResponse {
#[serde(rename = "ReplicationInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance: Option<ReplicationInstance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ModifyReplicationSubnetGroupMessage {
#[serde(rename = "ReplicationSubnetGroupDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group_description: Option<String>,
#[serde(rename = "ReplicationSubnetGroupIdentifier")]
pub replication_subnet_group_identifier: String,
#[serde(rename = "SubnetIds")]
pub subnet_ids: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ModifyReplicationSubnetGroupResponse {
#[serde(rename = "ReplicationSubnetGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group: Option<ReplicationSubnetGroup>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ModifyReplicationTaskMessage {
#[serde(rename = "CdcStartPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_position: Option<String>,
#[serde(rename = "CdcStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_time: Option<f64>,
#[serde(rename = "CdcStopPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_stop_position: Option<String>,
#[serde(rename = "MigrationType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub migration_type: Option<String>,
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
#[serde(rename = "ReplicationTaskIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_identifier: Option<String>,
#[serde(rename = "ReplicationTaskSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_settings: Option<String>,
#[serde(rename = "TableMappings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_mappings: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ModifyReplicationTaskResponse {
#[serde(rename = "ReplicationTask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task: Option<ReplicationTask>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MongoDbSettings {
#[serde(rename = "AuthMechanism")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auth_mechanism: Option<String>,
#[serde(rename = "AuthSource")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auth_source: Option<String>,
#[serde(rename = "AuthType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auth_type: Option<String>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "DocsToInvestigate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub docs_to_investigate: Option<String>,
#[serde(rename = "ExtractDocId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub extract_doc_id: Option<String>,
#[serde(rename = "KmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_id: Option<String>,
#[serde(rename = "NestingLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub nesting_level: Option<String>,
#[serde(rename = "Password")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
#[serde(rename = "Port")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port: Option<i64>,
#[serde(rename = "ServerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_name: Option<String>,
#[serde(rename = "Username")]
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OrderableReplicationInstance {
#[serde(rename = "AvailabilityZones")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zones: Option<Vec<String>>,
#[serde(rename = "DefaultAllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_allocated_storage: Option<i64>,
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "IncludedAllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub included_allocated_storage: Option<i64>,
#[serde(rename = "MaxAllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_allocated_storage: Option<i64>,
#[serde(rename = "MinAllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub min_allocated_storage: Option<i64>,
#[serde(rename = "ReplicationInstanceClass")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_class: Option<String>,
#[serde(rename = "StorageType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub storage_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PendingMaintenanceAction {
#[serde(rename = "Action")]
#[serde(skip_serializing_if = "Option::is_none")]
pub action: Option<String>,
#[serde(rename = "AutoAppliedAfterDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_applied_after_date: Option<f64>,
#[serde(rename = "CurrentApplyDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub current_apply_date: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "ForcedApplyDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub forced_apply_date: Option<f64>,
#[serde(rename = "OptInStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub opt_in_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RebootReplicationInstanceMessage {
#[serde(rename = "ForceFailover")]
#[serde(skip_serializing_if = "Option::is_none")]
pub force_failover: Option<bool>,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RebootReplicationInstanceResponse {
#[serde(rename = "ReplicationInstance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance: Option<ReplicationInstance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct RedshiftSettings {
#[serde(rename = "AcceptAnyDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accept_any_date: Option<bool>,
#[serde(rename = "AfterConnectScript")]
#[serde(skip_serializing_if = "Option::is_none")]
pub after_connect_script: Option<String>,
#[serde(rename = "BucketFolder")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_folder: Option<String>,
#[serde(rename = "BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_name: Option<String>,
#[serde(rename = "ConnectionTimeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection_timeout: Option<i64>,
#[serde(rename = "DatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub database_name: Option<String>,
#[serde(rename = "DateFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub date_format: Option<String>,
#[serde(rename = "EmptyAsNull")]
#[serde(skip_serializing_if = "Option::is_none")]
pub empty_as_null: Option<bool>,
#[serde(rename = "EncryptionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encryption_mode: Option<String>,
#[serde(rename = "FileTransferUploadStreams")]
#[serde(skip_serializing_if = "Option::is_none")]
pub file_transfer_upload_streams: Option<i64>,
#[serde(rename = "LoadTimeout")]
#[serde(skip_serializing_if = "Option::is_none")]
pub load_timeout: Option<i64>,
#[serde(rename = "MaxFileSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_file_size: Option<i64>,
#[serde(rename = "Password")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
#[serde(rename = "Port")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port: Option<i64>,
#[serde(rename = "RemoveQuotes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remove_quotes: Option<bool>,
#[serde(rename = "ReplaceChars")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replace_chars: Option<String>,
#[serde(rename = "ReplaceInvalidChars")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replace_invalid_chars: Option<String>,
#[serde(rename = "ServerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_name: Option<String>,
#[serde(rename = "ServerSideEncryptionKmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_side_encryption_kms_key_id: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
#[serde(rename = "TimeFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub time_format: Option<String>,
#[serde(rename = "TrimBlanks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trim_blanks: Option<bool>,
#[serde(rename = "TruncateColumns")]
#[serde(skip_serializing_if = "Option::is_none")]
pub truncate_columns: Option<bool>,
#[serde(rename = "Username")]
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
#[serde(rename = "WriteBufferSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub write_buffer_size: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RefreshSchemasMessage {
#[serde(rename = "EndpointArn")]
pub endpoint_arn: String,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RefreshSchemasResponse {
#[serde(rename = "RefreshSchemasStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub refresh_schemas_status: Option<RefreshSchemasStatus>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RefreshSchemasStatus {
#[serde(rename = "EndpointArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_arn: Option<String>,
#[serde(rename = "LastFailureMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_failure_message: Option<String>,
#[serde(rename = "LastRefreshDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_refresh_date: Option<f64>,
#[serde(rename = "ReplicationInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_arn: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ReloadTablesMessage {
#[serde(rename = "ReloadOption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub reload_option: Option<String>,
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
#[serde(rename = "TablesToReload")]
pub tables_to_reload: Vec<TableToReload>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReloadTablesResponse {
#[serde(rename = "ReplicationTaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RemoveTagsFromResourceMessage {
#[serde(rename = "ResourceArn")]
pub resource_arn: String,
#[serde(rename = "TagKeys")]
pub tag_keys: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RemoveTagsFromResourceResponse {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationInstance {
#[serde(rename = "AllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allocated_storage: Option<i64>,
#[serde(rename = "AutoMinorVersionUpgrade")]
#[serde(skip_serializing_if = "Option::is_none")]
pub auto_minor_version_upgrade: Option<bool>,
#[serde(rename = "AvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "DnsNameServers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dns_name_servers: Option<String>,
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "FreeUntil")]
#[serde(skip_serializing_if = "Option::is_none")]
pub free_until: Option<f64>,
#[serde(rename = "InstanceCreateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_create_time: Option<f64>,
#[serde(rename = "KmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kms_key_id: Option<String>,
#[serde(rename = "MultiAZ")]
#[serde(skip_serializing_if = "Option::is_none")]
pub multi_az: Option<bool>,
#[serde(rename = "PendingModifiedValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pending_modified_values: Option<ReplicationPendingModifiedValues>,
#[serde(rename = "PreferredMaintenanceWindow")]
#[serde(skip_serializing_if = "Option::is_none")]
pub preferred_maintenance_window: Option<String>,
#[serde(rename = "PubliclyAccessible")]
#[serde(skip_serializing_if = "Option::is_none")]
pub publicly_accessible: Option<bool>,
#[serde(rename = "ReplicationInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_arn: Option<String>,
#[serde(rename = "ReplicationInstanceClass")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_class: Option<String>,
#[serde(rename = "ReplicationInstanceIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_identifier: Option<String>,
#[serde(rename = "ReplicationInstancePrivateIpAddresses")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_private_ip_addresses: Option<Vec<String>>,
#[serde(rename = "ReplicationInstancePublicIpAddresses")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_public_ip_addresses: Option<Vec<String>>,
#[serde(rename = "ReplicationInstanceStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_status: Option<String>,
#[serde(rename = "ReplicationSubnetGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group: Option<ReplicationSubnetGroup>,
#[serde(rename = "SecondaryAvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub secondary_availability_zone: Option<String>,
#[serde(rename = "VpcSecurityGroups")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_security_groups: Option<Vec<VpcSecurityGroupMembership>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationInstanceTaskLog {
#[serde(rename = "ReplicationInstanceTaskLogSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_task_log_size: Option<i64>,
#[serde(rename = "ReplicationTaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_arn: Option<String>,
#[serde(rename = "ReplicationTaskName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationPendingModifiedValues {
#[serde(rename = "AllocatedStorage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allocated_storage: Option<i64>,
#[serde(rename = "EngineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "MultiAZ")]
#[serde(skip_serializing_if = "Option::is_none")]
pub multi_az: Option<bool>,
#[serde(rename = "ReplicationInstanceClass")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_class: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationSubnetGroup {
#[serde(rename = "ReplicationSubnetGroupDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group_description: Option<String>,
#[serde(rename = "ReplicationSubnetGroupIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_subnet_group_identifier: Option<String>,
#[serde(rename = "SubnetGroupStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_group_status: Option<String>,
#[serde(rename = "Subnets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnets: Option<Vec<Subnet>>,
#[serde(rename = "VpcId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationTask {
#[serde(rename = "CdcStartPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_position: Option<String>,
#[serde(rename = "CdcStopPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_stop_position: Option<String>,
#[serde(rename = "LastFailureMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_failure_message: Option<String>,
#[serde(rename = "MigrationType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub migration_type: Option<String>,
#[serde(rename = "RecoveryCheckpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub recovery_checkpoint: Option<String>,
#[serde(rename = "ReplicationInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_instance_arn: Option<String>,
#[serde(rename = "ReplicationTaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_arn: Option<String>,
#[serde(rename = "ReplicationTaskCreationDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_creation_date: Option<f64>,
#[serde(rename = "ReplicationTaskIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_identifier: Option<String>,
#[serde(rename = "ReplicationTaskSettings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_settings: Option<String>,
#[serde(rename = "ReplicationTaskStartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_start_date: Option<f64>,
#[serde(rename = "ReplicationTaskStats")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_stats: Option<ReplicationTaskStats>,
#[serde(rename = "SourceEndpointArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_endpoint_arn: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StopReason")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stop_reason: Option<String>,
#[serde(rename = "TableMappings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_mappings: Option<String>,
#[serde(rename = "TargetEndpointArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_endpoint_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationTaskAssessmentResult {
#[serde(rename = "AssessmentResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub assessment_results: Option<String>,
#[serde(rename = "AssessmentResultsFile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub assessment_results_file: Option<String>,
#[serde(rename = "AssessmentStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub assessment_status: Option<String>,
#[serde(rename = "ReplicationTaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_arn: Option<String>,
#[serde(rename = "ReplicationTaskIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_identifier: Option<String>,
#[serde(rename = "ReplicationTaskLastAssessmentDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task_last_assessment_date: Option<f64>,
#[serde(rename = "S3ObjectUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_object_url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReplicationTaskStats {
#[serde(rename = "ElapsedTimeMillis")]
#[serde(skip_serializing_if = "Option::is_none")]
pub elapsed_time_millis: Option<i64>,
#[serde(rename = "FullLoadProgressPercent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub full_load_progress_percent: Option<i64>,
#[serde(rename = "TablesErrored")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_errored: Option<i64>,
#[serde(rename = "TablesLoaded")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_loaded: Option<i64>,
#[serde(rename = "TablesLoading")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_loading: Option<i64>,
#[serde(rename = "TablesQueued")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tables_queued: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourcePendingMaintenanceActions {
#[serde(rename = "PendingMaintenanceActionDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pending_maintenance_action_details: Option<Vec<PendingMaintenanceAction>>,
#[serde(rename = "ResourceIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_identifier: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct S3Settings {
#[serde(rename = "BucketFolder")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_folder: Option<String>,
#[serde(rename = "BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bucket_name: Option<String>,
#[serde(rename = "CdcInsertsOnly")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_inserts_only: Option<bool>,
#[serde(rename = "CompressionType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compression_type: Option<String>,
#[serde(rename = "CsvDelimiter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub csv_delimiter: Option<String>,
#[serde(rename = "CsvRowDelimiter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub csv_row_delimiter: Option<String>,
#[serde(rename = "DataFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data_format: Option<String>,
#[serde(rename = "DataPageSize")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data_page_size: Option<i64>,
#[serde(rename = "DictPageSizeLimit")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dict_page_size_limit: Option<i64>,
#[serde(rename = "EnableStatistics")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enable_statistics: Option<bool>,
#[serde(rename = "EncodingType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encoding_type: Option<String>,
#[serde(rename = "EncryptionMode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub encryption_mode: Option<String>,
#[serde(rename = "ExternalTableDefinition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub external_table_definition: Option<String>,
#[serde(rename = "ParquetVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parquet_version: Option<String>,
#[serde(rename = "RowGroupLength")]
#[serde(skip_serializing_if = "Option::is_none")]
pub row_group_length: Option<i64>,
#[serde(rename = "ServerSideEncryptionKmsKeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub server_side_encryption_kms_key_id: Option<String>,
#[serde(rename = "ServiceAccessRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_access_role_arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartReplicationTaskAssessmentMessage {
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartReplicationTaskAssessmentResponse {
#[serde(rename = "ReplicationTask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task: Option<ReplicationTask>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartReplicationTaskMessage {
#[serde(rename = "CdcStartPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_position: Option<String>,
#[serde(rename = "CdcStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_start_time: Option<f64>,
#[serde(rename = "CdcStopPosition")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cdc_stop_position: Option<String>,
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
#[serde(rename = "StartReplicationTaskType")]
pub start_replication_task_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartReplicationTaskResponse {
#[serde(rename = "ReplicationTask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task: Option<ReplicationTask>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopReplicationTaskMessage {
#[serde(rename = "ReplicationTaskArn")]
pub replication_task_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopReplicationTaskResponse {
#[serde(rename = "ReplicationTask")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replication_task: Option<ReplicationTask>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Subnet {
#[serde(rename = "SubnetAvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_availability_zone: Option<AvailabilityZone>,
#[serde(rename = "SubnetIdentifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_identifier: Option<String>,
#[serde(rename = "SubnetStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subnet_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SupportedEndpointType {
#[serde(rename = "EndpointType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub endpoint_type: Option<String>,
#[serde(rename = "EngineDisplayName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_display_name: Option<String>,
#[serde(rename = "EngineName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_name: Option<String>,
#[serde(rename = "SupportsCDC")]
#[serde(skip_serializing_if = "Option::is_none")]
pub supports_cdc: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TableStatistics {
#[serde(rename = "Ddls")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ddls: Option<i64>,
#[serde(rename = "Deletes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletes: Option<i64>,
#[serde(rename = "FullLoadCondtnlChkFailedRows")]
#[serde(skip_serializing_if = "Option::is_none")]
pub full_load_condtnl_chk_failed_rows: Option<i64>,
#[serde(rename = "FullLoadErrorRows")]
#[serde(skip_serializing_if = "Option::is_none")]
pub full_load_error_rows: Option<i64>,
#[serde(rename = "FullLoadRows")]
#[serde(skip_serializing_if = "Option::is_none")]
pub full_load_rows: Option<i64>,
#[serde(rename = "Inserts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub inserts: Option<i64>,
#[serde(rename = "LastUpdateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_update_time: Option<f64>,
#[serde(rename = "SchemaName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_name: Option<String>,
#[serde(rename = "TableName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_name: Option<String>,
#[serde(rename = "TableState")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_state: Option<String>,
#[serde(rename = "Updates")]
#[serde(skip_serializing_if = "Option::is_none")]
pub updates: Option<i64>,
#[serde(rename = "ValidationFailedRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_failed_records: Option<i64>,
#[serde(rename = "ValidationPendingRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_pending_records: Option<i64>,
#[serde(rename = "ValidationState")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_state: Option<String>,
#[serde(rename = "ValidationStateDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_state_details: Option<String>,
#[serde(rename = "ValidationSuspendedRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_suspended_records: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TableToReload {
#[serde(rename = "SchemaName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_name: Option<String>,
#[serde(rename = "TableName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub table_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Tag {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TestConnectionMessage {
#[serde(rename = "EndpointArn")]
pub endpoint_arn: String,
#[serde(rename = "ReplicationInstanceArn")]
pub replication_instance_arn: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TestConnectionResponse {
#[serde(rename = "Connection")]
#[serde(skip_serializing_if = "Option::is_none")]
pub connection: Option<Connection>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct VpcSecurityGroupMembership {
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "VpcSecurityGroupId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vpc_security_group_id: Option<String>,
}
#[derive(Debug, PartialEq)]
pub enum AddTagsToResourceError {
ResourceNotFoundFault(String),
}
impl AddTagsToResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AddTagsToResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(AddTagsToResourceError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AddTagsToResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AddTagsToResourceError {
fn description(&self) -> &str {
match *self {
AddTagsToResourceError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ApplyPendingMaintenanceActionError {
ResourceNotFoundFault(String),
}
impl ApplyPendingMaintenanceActionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ApplyPendingMaintenanceActionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
ApplyPendingMaintenanceActionError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ApplyPendingMaintenanceActionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ApplyPendingMaintenanceActionError {
fn description(&self) -> &str {
match *self {
ApplyPendingMaintenanceActionError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateEndpointError {
AccessDeniedFault(String),
InvalidResourceStateFault(String),
KMSKeyNotAccessibleFault(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
}
impl CreateEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(CreateEndpointError::AccessDeniedFault(err.msg))
}
"InvalidResourceStateFault" => {
return RusotoError::Service(CreateEndpointError::InvalidResourceStateFault(
err.msg,
))
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(CreateEndpointError::KMSKeyNotAccessibleFault(
err.msg,
))
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(CreateEndpointError::ResourceAlreadyExistsFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(CreateEndpointError::ResourceNotFoundFault(
err.msg,
))
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(CreateEndpointError::ResourceQuotaExceededFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateEndpointError {
fn description(&self) -> &str {
match *self {
CreateEndpointError::AccessDeniedFault(ref cause) => cause,
CreateEndpointError::InvalidResourceStateFault(ref cause) => cause,
CreateEndpointError::KMSKeyNotAccessibleFault(ref cause) => cause,
CreateEndpointError::ResourceAlreadyExistsFault(ref cause) => cause,
CreateEndpointError::ResourceNotFoundFault(ref cause) => cause,
CreateEndpointError::ResourceQuotaExceededFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateEventSubscriptionError {
KMSAccessDeniedFault(String),
KMSDisabledFault(String),
KMSInvalidStateFault(String),
KMSNotFoundFault(String),
KMSThrottlingFault(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
SNSInvalidTopicFault(String),
SNSNoAuthorizationFault(String),
}
impl CreateEventSubscriptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateEventSubscriptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"KMSAccessDeniedFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::KMSAccessDeniedFault(err.msg),
)
}
"KMSDisabledFault" => {
return RusotoError::Service(CreateEventSubscriptionError::KMSDisabledFault(
err.msg,
))
}
"KMSInvalidStateFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::KMSInvalidStateFault(err.msg),
)
}
"KMSNotFoundFault" => {
return RusotoError::Service(CreateEventSubscriptionError::KMSNotFoundFault(
err.msg,
))
}
"KMSThrottlingFault" => {
return RusotoError::Service(CreateEventSubscriptionError::KMSThrottlingFault(
err.msg,
))
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::ResourceNotFoundFault(err.msg),
)
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::ResourceQuotaExceededFault(err.msg),
)
}
"SNSInvalidTopicFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::SNSInvalidTopicFault(err.msg),
)
}
"SNSNoAuthorizationFault" => {
return RusotoError::Service(
CreateEventSubscriptionError::SNSNoAuthorizationFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateEventSubscriptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateEventSubscriptionError {
fn description(&self) -> &str {
match *self {
CreateEventSubscriptionError::KMSAccessDeniedFault(ref cause) => cause,
CreateEventSubscriptionError::KMSDisabledFault(ref cause) => cause,
CreateEventSubscriptionError::KMSInvalidStateFault(ref cause) => cause,
CreateEventSubscriptionError::KMSNotFoundFault(ref cause) => cause,
CreateEventSubscriptionError::KMSThrottlingFault(ref cause) => cause,
CreateEventSubscriptionError::ResourceAlreadyExistsFault(ref cause) => cause,
CreateEventSubscriptionError::ResourceNotFoundFault(ref cause) => cause,
CreateEventSubscriptionError::ResourceQuotaExceededFault(ref cause) => cause,
CreateEventSubscriptionError::SNSInvalidTopicFault(ref cause) => cause,
CreateEventSubscriptionError::SNSNoAuthorizationFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateReplicationInstanceError {
AccessDeniedFault(String),
InsufficientResourceCapacityFault(String),
InvalidResourceStateFault(String),
InvalidSubnet(String),
KMSKeyNotAccessibleFault(String),
ReplicationSubnetGroupDoesNotCoverEnoughAZs(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
StorageQuotaExceededFault(String),
}
impl CreateReplicationInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateReplicationInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(CreateReplicationInstanceError::AccessDeniedFault(
err.msg,
))
}
"InsufficientResourceCapacityFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::InsufficientResourceCapacityFault(err.msg),
)
}
"InvalidResourceStateFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::InvalidResourceStateFault(err.msg),
)
}
"InvalidSubnet" => {
return RusotoError::Service(CreateReplicationInstanceError::InvalidSubnet(
err.msg,
))
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::KMSKeyNotAccessibleFault(err.msg),
)
}
"ReplicationSubnetGroupDoesNotCoverEnoughAZs" => {
return RusotoError::Service(
CreateReplicationInstanceError::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
err.msg,
),
)
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::ResourceNotFoundFault(err.msg),
)
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::ResourceQuotaExceededFault(err.msg),
)
}
"StorageQuotaExceededFault" => {
return RusotoError::Service(
CreateReplicationInstanceError::StorageQuotaExceededFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateReplicationInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateReplicationInstanceError {
fn description(&self) -> &str {
match *self {
CreateReplicationInstanceError::AccessDeniedFault(ref cause) => cause,
CreateReplicationInstanceError::InsufficientResourceCapacityFault(ref cause) => cause,
CreateReplicationInstanceError::InvalidResourceStateFault(ref cause) => cause,
CreateReplicationInstanceError::InvalidSubnet(ref cause) => cause,
CreateReplicationInstanceError::KMSKeyNotAccessibleFault(ref cause) => cause,
CreateReplicationInstanceError::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
ref cause,
) => cause,
CreateReplicationInstanceError::ResourceAlreadyExistsFault(ref cause) => cause,
CreateReplicationInstanceError::ResourceNotFoundFault(ref cause) => cause,
CreateReplicationInstanceError::ResourceQuotaExceededFault(ref cause) => cause,
CreateReplicationInstanceError::StorageQuotaExceededFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateReplicationSubnetGroupError {
AccessDeniedFault(String),
InvalidSubnet(String),
ReplicationSubnetGroupDoesNotCoverEnoughAZs(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
}
impl CreateReplicationSubnetGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateReplicationSubnetGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(
CreateReplicationSubnetGroupError::AccessDeniedFault(err.msg),
)
}
"InvalidSubnet" => {
return RusotoError::Service(CreateReplicationSubnetGroupError::InvalidSubnet(
err.msg,
))
}
"ReplicationSubnetGroupDoesNotCoverEnoughAZs" => return RusotoError::Service(
CreateReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
err.msg,
),
),
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
CreateReplicationSubnetGroupError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
CreateReplicationSubnetGroupError::ResourceNotFoundFault(err.msg),
)
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
CreateReplicationSubnetGroupError::ResourceQuotaExceededFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateReplicationSubnetGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateReplicationSubnetGroupError {
fn description(&self) -> &str {
match *self {
CreateReplicationSubnetGroupError::AccessDeniedFault(ref cause) => cause,
CreateReplicationSubnetGroupError::InvalidSubnet(ref cause) => cause,
CreateReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
ref cause,
) => cause,
CreateReplicationSubnetGroupError::ResourceAlreadyExistsFault(ref cause) => cause,
CreateReplicationSubnetGroupError::ResourceNotFoundFault(ref cause) => cause,
CreateReplicationSubnetGroupError::ResourceQuotaExceededFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateReplicationTaskError {
AccessDeniedFault(String),
InvalidResourceStateFault(String),
KMSKeyNotAccessibleFault(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
}
impl CreateReplicationTaskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateReplicationTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(CreateReplicationTaskError::AccessDeniedFault(
err.msg,
))
}
"InvalidResourceStateFault" => {
return RusotoError::Service(
CreateReplicationTaskError::InvalidResourceStateFault(err.msg),
)
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(
CreateReplicationTaskError::KMSKeyNotAccessibleFault(err.msg),
)
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
CreateReplicationTaskError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(CreateReplicationTaskError::ResourceNotFoundFault(
err.msg,
))
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
CreateReplicationTaskError::ResourceQuotaExceededFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateReplicationTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateReplicationTaskError {
fn description(&self) -> &str {
match *self {
CreateReplicationTaskError::AccessDeniedFault(ref cause) => cause,
CreateReplicationTaskError::InvalidResourceStateFault(ref cause) => cause,
CreateReplicationTaskError::KMSKeyNotAccessibleFault(ref cause) => cause,
CreateReplicationTaskError::ResourceAlreadyExistsFault(ref cause) => cause,
CreateReplicationTaskError::ResourceNotFoundFault(ref cause) => cause,
CreateReplicationTaskError::ResourceQuotaExceededFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteCertificateError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DeleteCertificateError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteCertificateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(DeleteCertificateError::InvalidResourceStateFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(DeleteCertificateError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteCertificateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteCertificateError {
fn description(&self) -> &str {
match *self {
DeleteCertificateError::InvalidResourceStateFault(ref cause) => cause,
DeleteCertificateError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteEndpointError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DeleteEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(DeleteEndpointError::InvalidResourceStateFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(DeleteEndpointError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteEndpointError {
fn description(&self) -> &str {
match *self {
DeleteEndpointError::InvalidResourceStateFault(ref cause) => cause,
DeleteEndpointError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteEventSubscriptionError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DeleteEventSubscriptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteEventSubscriptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DeleteEventSubscriptionError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
DeleteEventSubscriptionError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteEventSubscriptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteEventSubscriptionError {
fn description(&self) -> &str {
match *self {
DeleteEventSubscriptionError::InvalidResourceStateFault(ref cause) => cause,
DeleteEventSubscriptionError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteReplicationInstanceError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DeleteReplicationInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteReplicationInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DeleteReplicationInstanceError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
DeleteReplicationInstanceError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteReplicationInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteReplicationInstanceError {
fn description(&self) -> &str {
match *self {
DeleteReplicationInstanceError::InvalidResourceStateFault(ref cause) => cause,
DeleteReplicationInstanceError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteReplicationSubnetGroupError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DeleteReplicationSubnetGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeleteReplicationSubnetGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DeleteReplicationSubnetGroupError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
DeleteReplicationSubnetGroupError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteReplicationSubnetGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteReplicationSubnetGroupError {
fn description(&self) -> &str {
match *self {
DeleteReplicationSubnetGroupError::InvalidResourceStateFault(ref cause) => cause,
DeleteReplicationSubnetGroupError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteReplicationTaskError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DeleteReplicationTaskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteReplicationTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DeleteReplicationTaskError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(DeleteReplicationTaskError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteReplicationTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteReplicationTaskError {
fn description(&self) -> &str {
match *self {
DeleteReplicationTaskError::InvalidResourceStateFault(ref cause) => cause,
DeleteReplicationTaskError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAccountAttributesError {}
impl DescribeAccountAttributesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeAccountAttributesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAccountAttributesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAccountAttributesError {
fn description(&self) -> &str {
match *self {}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeCertificatesError {
ResourceNotFoundFault(String),
}
impl DescribeCertificatesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeCertificatesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(DescribeCertificatesError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeCertificatesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeCertificatesError {
fn description(&self) -> &str {
match *self {
DescribeCertificatesError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeConnectionsError {
ResourceNotFoundFault(String),
}
impl DescribeConnectionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeConnectionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(DescribeConnectionsError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeConnectionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeConnectionsError {
fn description(&self) -> &str {
match *self {
DescribeConnectionsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEndpointTypesError {}
impl DescribeEndpointTypesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEndpointTypesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEndpointTypesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEndpointTypesError {
fn description(&self) -> &str {
match *self {}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEndpointsError {
ResourceNotFoundFault(String),
}
impl DescribeEndpointsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEndpointsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(DescribeEndpointsError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEndpointsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEndpointsError {
fn description(&self) -> &str {
match *self {
DescribeEndpointsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEventCategoriesError {}
impl DescribeEventCategoriesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEventCategoriesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEventCategoriesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEventCategoriesError {
fn description(&self) -> &str {
match *self {}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEventSubscriptionsError {
ResourceNotFoundFault(String),
}
impl DescribeEventSubscriptionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeEventSubscriptionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeEventSubscriptionsError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEventSubscriptionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEventSubscriptionsError {
fn description(&self) -> &str {
match *self {
DescribeEventSubscriptionsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEventsError {}
impl DescribeEventsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeEventsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEventsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEventsError {
fn description(&self) -> &str {
match *self {}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeOrderableReplicationInstancesError {}
impl DescribeOrderableReplicationInstancesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeOrderableReplicationInstancesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeOrderableReplicationInstancesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeOrderableReplicationInstancesError {
fn description(&self) -> &str {
match *self {}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePendingMaintenanceActionsError {
ResourceNotFoundFault(String),
}
impl DescribePendingMaintenanceActionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribePendingMaintenanceActionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribePendingMaintenanceActionsError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePendingMaintenanceActionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePendingMaintenanceActionsError {
fn description(&self) -> &str {
match *self {
DescribePendingMaintenanceActionsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeRefreshSchemasStatusError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DescribeRefreshSchemasStatusError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeRefreshSchemasStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DescribeRefreshSchemasStatusError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeRefreshSchemasStatusError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeRefreshSchemasStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeRefreshSchemasStatusError {
fn description(&self) -> &str {
match *self {
DescribeRefreshSchemasStatusError::InvalidResourceStateFault(ref cause) => cause,
DescribeRefreshSchemasStatusError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeReplicationInstanceTaskLogsError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DescribeReplicationInstanceTaskLogsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeReplicationInstanceTaskLogsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DescribeReplicationInstanceTaskLogsError::InvalidResourceStateFault(
err.msg,
),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeReplicationInstanceTaskLogsError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeReplicationInstanceTaskLogsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeReplicationInstanceTaskLogsError {
fn description(&self) -> &str {
match *self {
DescribeReplicationInstanceTaskLogsError::InvalidResourceStateFault(ref cause) => cause,
DescribeReplicationInstanceTaskLogsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeReplicationInstancesError {
ResourceNotFoundFault(String),
}
impl DescribeReplicationInstancesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeReplicationInstancesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeReplicationInstancesError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeReplicationInstancesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeReplicationInstancesError {
fn description(&self) -> &str {
match *self {
DescribeReplicationInstancesError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeReplicationSubnetGroupsError {
ResourceNotFoundFault(String),
}
impl DescribeReplicationSubnetGroupsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeReplicationSubnetGroupsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeReplicationSubnetGroupsError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeReplicationSubnetGroupsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeReplicationSubnetGroupsError {
fn description(&self) -> &str {
match *self {
DescribeReplicationSubnetGroupsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeReplicationTaskAssessmentResultsError {
ResourceNotFoundFault(String),
}
impl DescribeReplicationTaskAssessmentResultsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeReplicationTaskAssessmentResultsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeReplicationTaskAssessmentResultsError::ResourceNotFoundFault(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeReplicationTaskAssessmentResultsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeReplicationTaskAssessmentResultsError {
fn description(&self) -> &str {
match *self {
DescribeReplicationTaskAssessmentResultsError::ResourceNotFoundFault(ref cause) => {
cause
}
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeReplicationTasksError {
ResourceNotFoundFault(String),
}
impl DescribeReplicationTasksError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeReplicationTasksError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeReplicationTasksError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeReplicationTasksError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeReplicationTasksError {
fn description(&self) -> &str {
match *self {
DescribeReplicationTasksError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeSchemasError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DescribeSchemasError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeSchemasError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(DescribeSchemasError::InvalidResourceStateFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(DescribeSchemasError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeSchemasError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeSchemasError {
fn description(&self) -> &str {
match *self {
DescribeSchemasError::InvalidResourceStateFault(ref cause) => cause,
DescribeSchemasError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeTableStatisticsError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl DescribeTableStatisticsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeTableStatisticsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
DescribeTableStatisticsError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
DescribeTableStatisticsError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeTableStatisticsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeTableStatisticsError {
fn description(&self) -> &str {
match *self {
DescribeTableStatisticsError::InvalidResourceStateFault(ref cause) => cause,
DescribeTableStatisticsError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ImportCertificateError {
InvalidCertificateFault(String),
ResourceAlreadyExistsFault(String),
ResourceQuotaExceededFault(String),
}
impl ImportCertificateError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ImportCertificateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidCertificateFault" => {
return RusotoError::Service(ImportCertificateError::InvalidCertificateFault(
err.msg,
))
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
ImportCertificateError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
ImportCertificateError::ResourceQuotaExceededFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ImportCertificateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ImportCertificateError {
fn description(&self) -> &str {
match *self {
ImportCertificateError::InvalidCertificateFault(ref cause) => cause,
ImportCertificateError::ResourceAlreadyExistsFault(ref cause) => cause,
ImportCertificateError::ResourceQuotaExceededFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListTagsForResourceError {
ResourceNotFoundFault(String),
}
impl ListTagsForResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(ListTagsForResourceError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListTagsForResourceError {
fn description(&self) -> &str {
match *self {
ListTagsForResourceError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ModifyEndpointError {
AccessDeniedFault(String),
InvalidResourceStateFault(String),
KMSKeyNotAccessibleFault(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
}
impl ModifyEndpointError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyEndpointError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(ModifyEndpointError::AccessDeniedFault(err.msg))
}
"InvalidResourceStateFault" => {
return RusotoError::Service(ModifyEndpointError::InvalidResourceStateFault(
err.msg,
))
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(ModifyEndpointError::KMSKeyNotAccessibleFault(
err.msg,
))
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(ModifyEndpointError::ResourceAlreadyExistsFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(ModifyEndpointError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ModifyEndpointError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ModifyEndpointError {
fn description(&self) -> &str {
match *self {
ModifyEndpointError::AccessDeniedFault(ref cause) => cause,
ModifyEndpointError::InvalidResourceStateFault(ref cause) => cause,
ModifyEndpointError::KMSKeyNotAccessibleFault(ref cause) => cause,
ModifyEndpointError::ResourceAlreadyExistsFault(ref cause) => cause,
ModifyEndpointError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ModifyEventSubscriptionError {
KMSAccessDeniedFault(String),
KMSDisabledFault(String),
KMSInvalidStateFault(String),
KMSNotFoundFault(String),
KMSThrottlingFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
SNSInvalidTopicFault(String),
SNSNoAuthorizationFault(String),
}
impl ModifyEventSubscriptionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyEventSubscriptionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"KMSAccessDeniedFault" => {
return RusotoError::Service(
ModifyEventSubscriptionError::KMSAccessDeniedFault(err.msg),
)
}
"KMSDisabledFault" => {
return RusotoError::Service(ModifyEventSubscriptionError::KMSDisabledFault(
err.msg,
))
}
"KMSInvalidStateFault" => {
return RusotoError::Service(
ModifyEventSubscriptionError::KMSInvalidStateFault(err.msg),
)
}
"KMSNotFoundFault" => {
return RusotoError::Service(ModifyEventSubscriptionError::KMSNotFoundFault(
err.msg,
))
}
"KMSThrottlingFault" => {
return RusotoError::Service(ModifyEventSubscriptionError::KMSThrottlingFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
ModifyEventSubscriptionError::ResourceNotFoundFault(err.msg),
)
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
ModifyEventSubscriptionError::ResourceQuotaExceededFault(err.msg),
)
}
"SNSInvalidTopicFault" => {
return RusotoError::Service(
ModifyEventSubscriptionError::SNSInvalidTopicFault(err.msg),
)
}
"SNSNoAuthorizationFault" => {
return RusotoError::Service(
ModifyEventSubscriptionError::SNSNoAuthorizationFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ModifyEventSubscriptionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ModifyEventSubscriptionError {
fn description(&self) -> &str {
match *self {
ModifyEventSubscriptionError::KMSAccessDeniedFault(ref cause) => cause,
ModifyEventSubscriptionError::KMSDisabledFault(ref cause) => cause,
ModifyEventSubscriptionError::KMSInvalidStateFault(ref cause) => cause,
ModifyEventSubscriptionError::KMSNotFoundFault(ref cause) => cause,
ModifyEventSubscriptionError::KMSThrottlingFault(ref cause) => cause,
ModifyEventSubscriptionError::ResourceNotFoundFault(ref cause) => cause,
ModifyEventSubscriptionError::ResourceQuotaExceededFault(ref cause) => cause,
ModifyEventSubscriptionError::SNSInvalidTopicFault(ref cause) => cause,
ModifyEventSubscriptionError::SNSNoAuthorizationFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ModifyReplicationInstanceError {
AccessDeniedFault(String),
InsufficientResourceCapacityFault(String),
InvalidResourceStateFault(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
StorageQuotaExceededFault(String),
UpgradeDependencyFailureFault(String),
}
impl ModifyReplicationInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyReplicationInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(ModifyReplicationInstanceError::AccessDeniedFault(
err.msg,
))
}
"InsufficientResourceCapacityFault" => {
return RusotoError::Service(
ModifyReplicationInstanceError::InsufficientResourceCapacityFault(err.msg),
)
}
"InvalidResourceStateFault" => {
return RusotoError::Service(
ModifyReplicationInstanceError::InvalidResourceStateFault(err.msg),
)
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
ModifyReplicationInstanceError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
ModifyReplicationInstanceError::ResourceNotFoundFault(err.msg),
)
}
"StorageQuotaExceededFault" => {
return RusotoError::Service(
ModifyReplicationInstanceError::StorageQuotaExceededFault(err.msg),
)
}
"UpgradeDependencyFailureFault" => {
return RusotoError::Service(
ModifyReplicationInstanceError::UpgradeDependencyFailureFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ModifyReplicationInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ModifyReplicationInstanceError {
fn description(&self) -> &str {
match *self {
ModifyReplicationInstanceError::AccessDeniedFault(ref cause) => cause,
ModifyReplicationInstanceError::InsufficientResourceCapacityFault(ref cause) => cause,
ModifyReplicationInstanceError::InvalidResourceStateFault(ref cause) => cause,
ModifyReplicationInstanceError::ResourceAlreadyExistsFault(ref cause) => cause,
ModifyReplicationInstanceError::ResourceNotFoundFault(ref cause) => cause,
ModifyReplicationInstanceError::StorageQuotaExceededFault(ref cause) => cause,
ModifyReplicationInstanceError::UpgradeDependencyFailureFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ModifyReplicationSubnetGroupError {
AccessDeniedFault(String),
InvalidSubnet(String),
ReplicationSubnetGroupDoesNotCoverEnoughAZs(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
SubnetAlreadyInUse(String),
}
impl ModifyReplicationSubnetGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ModifyReplicationSubnetGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(
ModifyReplicationSubnetGroupError::AccessDeniedFault(err.msg),
)
}
"InvalidSubnet" => {
return RusotoError::Service(ModifyReplicationSubnetGroupError::InvalidSubnet(
err.msg,
))
}
"ReplicationSubnetGroupDoesNotCoverEnoughAZs" => return RusotoError::Service(
ModifyReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
err.msg,
),
),
"ResourceNotFoundFault" => {
return RusotoError::Service(
ModifyReplicationSubnetGroupError::ResourceNotFoundFault(err.msg),
)
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(
ModifyReplicationSubnetGroupError::ResourceQuotaExceededFault(err.msg),
)
}
"SubnetAlreadyInUse" => {
return RusotoError::Service(
ModifyReplicationSubnetGroupError::SubnetAlreadyInUse(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ModifyReplicationSubnetGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ModifyReplicationSubnetGroupError {
fn description(&self) -> &str {
match *self {
ModifyReplicationSubnetGroupError::AccessDeniedFault(ref cause) => cause,
ModifyReplicationSubnetGroupError::InvalidSubnet(ref cause) => cause,
ModifyReplicationSubnetGroupError::ReplicationSubnetGroupDoesNotCoverEnoughAZs(
ref cause,
) => cause,
ModifyReplicationSubnetGroupError::ResourceNotFoundFault(ref cause) => cause,
ModifyReplicationSubnetGroupError::ResourceQuotaExceededFault(ref cause) => cause,
ModifyReplicationSubnetGroupError::SubnetAlreadyInUse(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ModifyReplicationTaskError {
InvalidResourceStateFault(String),
KMSKeyNotAccessibleFault(String),
ResourceAlreadyExistsFault(String),
ResourceNotFoundFault(String),
}
impl ModifyReplicationTaskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyReplicationTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
ModifyReplicationTaskError::InvalidResourceStateFault(err.msg),
)
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(
ModifyReplicationTaskError::KMSKeyNotAccessibleFault(err.msg),
)
}
"ResourceAlreadyExistsFault" => {
return RusotoError::Service(
ModifyReplicationTaskError::ResourceAlreadyExistsFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(ModifyReplicationTaskError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ModifyReplicationTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ModifyReplicationTaskError {
fn description(&self) -> &str {
match *self {
ModifyReplicationTaskError::InvalidResourceStateFault(ref cause) => cause,
ModifyReplicationTaskError::KMSKeyNotAccessibleFault(ref cause) => cause,
ModifyReplicationTaskError::ResourceAlreadyExistsFault(ref cause) => cause,
ModifyReplicationTaskError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RebootReplicationInstanceError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl RebootReplicationInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RebootReplicationInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
RebootReplicationInstanceError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
RebootReplicationInstanceError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RebootReplicationInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RebootReplicationInstanceError {
fn description(&self) -> &str {
match *self {
RebootReplicationInstanceError::InvalidResourceStateFault(ref cause) => cause,
RebootReplicationInstanceError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RefreshSchemasError {
InvalidResourceStateFault(String),
KMSKeyNotAccessibleFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
}
impl RefreshSchemasError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RefreshSchemasError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(RefreshSchemasError::InvalidResourceStateFault(
err.msg,
))
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(RefreshSchemasError::KMSKeyNotAccessibleFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(RefreshSchemasError::ResourceNotFoundFault(
err.msg,
))
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(RefreshSchemasError::ResourceQuotaExceededFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RefreshSchemasError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RefreshSchemasError {
fn description(&self) -> &str {
match *self {
RefreshSchemasError::InvalidResourceStateFault(ref cause) => cause,
RefreshSchemasError::KMSKeyNotAccessibleFault(ref cause) => cause,
RefreshSchemasError::ResourceNotFoundFault(ref cause) => cause,
RefreshSchemasError::ResourceQuotaExceededFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ReloadTablesError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl ReloadTablesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ReloadTablesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(ReloadTablesError::InvalidResourceStateFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(ReloadTablesError::ResourceNotFoundFault(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ReloadTablesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ReloadTablesError {
fn description(&self) -> &str {
match *self {
ReloadTablesError::InvalidResourceStateFault(ref cause) => cause,
ReloadTablesError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RemoveTagsFromResourceError {
ResourceNotFoundFault(String),
}
impl RemoveTagsFromResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RemoveTagsFromResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ResourceNotFoundFault" => {
return RusotoError::Service(
RemoveTagsFromResourceError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RemoveTagsFromResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RemoveTagsFromResourceError {
fn description(&self) -> &str {
match *self {
RemoveTagsFromResourceError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartReplicationTaskError {
AccessDeniedFault(String),
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl StartReplicationTaskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartReplicationTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedFault" => {
return RusotoError::Service(StartReplicationTaskError::AccessDeniedFault(
err.msg,
))
}
"InvalidResourceStateFault" => {
return RusotoError::Service(
StartReplicationTaskError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(StartReplicationTaskError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartReplicationTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartReplicationTaskError {
fn description(&self) -> &str {
match *self {
StartReplicationTaskError::AccessDeniedFault(ref cause) => cause,
StartReplicationTaskError::InvalidResourceStateFault(ref cause) => cause,
StartReplicationTaskError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartReplicationTaskAssessmentError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl StartReplicationTaskAssessmentError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<StartReplicationTaskAssessmentError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
StartReplicationTaskAssessmentError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(
StartReplicationTaskAssessmentError::ResourceNotFoundFault(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartReplicationTaskAssessmentError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartReplicationTaskAssessmentError {
fn description(&self) -> &str {
match *self {
StartReplicationTaskAssessmentError::InvalidResourceStateFault(ref cause) => cause,
StartReplicationTaskAssessmentError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopReplicationTaskError {
InvalidResourceStateFault(String),
ResourceNotFoundFault(String),
}
impl StopReplicationTaskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopReplicationTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(
StopReplicationTaskError::InvalidResourceStateFault(err.msg),
)
}
"ResourceNotFoundFault" => {
return RusotoError::Service(StopReplicationTaskError::ResourceNotFoundFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopReplicationTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopReplicationTaskError {
fn description(&self) -> &str {
match *self {
StopReplicationTaskError::InvalidResourceStateFault(ref cause) => cause,
StopReplicationTaskError::ResourceNotFoundFault(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum TestConnectionError {
InvalidResourceStateFault(String),
KMSKeyNotAccessibleFault(String),
ResourceNotFoundFault(String),
ResourceQuotaExceededFault(String),
}
impl TestConnectionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TestConnectionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InvalidResourceStateFault" => {
return RusotoError::Service(TestConnectionError::InvalidResourceStateFault(
err.msg,
))
}
"KMSKeyNotAccessibleFault" => {
return RusotoError::Service(TestConnectionError::KMSKeyNotAccessibleFault(
err.msg,
))
}
"ResourceNotFoundFault" => {
return RusotoError::Service(TestConnectionError::ResourceNotFoundFault(
err.msg,
))
}
"ResourceQuotaExceededFault" => {
return RusotoError::Service(TestConnectionError::ResourceQuotaExceededFault(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for TestConnectionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for TestConnectionError {
fn description(&self) -> &str {
match *self {
TestConnectionError::InvalidResourceStateFault(ref cause) => cause,
TestConnectionError::KMSKeyNotAccessibleFault(ref cause) => cause,
TestConnectionError::ResourceNotFoundFault(ref cause) => cause,
TestConnectionError::ResourceQuotaExceededFault(ref cause) => cause,
}
}
}
pub trait DatabaseMigrationService {
fn add_tags_to_resource(
&self,
input: AddTagsToResourceMessage,
) -> RusotoFuture<AddTagsToResourceResponse, AddTagsToResourceError>;
fn apply_pending_maintenance_action(
&self,
input: ApplyPendingMaintenanceActionMessage,
) -> RusotoFuture<ApplyPendingMaintenanceActionResponse, ApplyPendingMaintenanceActionError>;
fn create_endpoint(
&self,
input: CreateEndpointMessage,
) -> RusotoFuture<CreateEndpointResponse, CreateEndpointError>;
fn create_event_subscription(
&self,
input: CreateEventSubscriptionMessage,
) -> RusotoFuture<CreateEventSubscriptionResponse, CreateEventSubscriptionError>;
fn create_replication_instance(
&self,
input: CreateReplicationInstanceMessage,
) -> RusotoFuture<CreateReplicationInstanceResponse, CreateReplicationInstanceError>;
fn create_replication_subnet_group(
&self,
input: CreateReplicationSubnetGroupMessage,
) -> RusotoFuture<CreateReplicationSubnetGroupResponse, CreateReplicationSubnetGroupError>;
fn create_replication_task(
&self,
input: CreateReplicationTaskMessage,
) -> RusotoFuture<CreateReplicationTaskResponse, CreateReplicationTaskError>;
fn delete_certificate(
&self,
input: DeleteCertificateMessage,
) -> RusotoFuture<DeleteCertificateResponse, DeleteCertificateError>;
fn delete_endpoint(
&self,
input: DeleteEndpointMessage,
) -> RusotoFuture<DeleteEndpointResponse, DeleteEndpointError>;
fn delete_event_subscription(
&self,
input: DeleteEventSubscriptionMessage,
) -> RusotoFuture<DeleteEventSubscriptionResponse, DeleteEventSubscriptionError>;
fn delete_replication_instance(
&self,
input: DeleteReplicationInstanceMessage,
) -> RusotoFuture<DeleteReplicationInstanceResponse, DeleteReplicationInstanceError>;
fn delete_replication_subnet_group(
&self,
input: DeleteReplicationSubnetGroupMessage,
) -> RusotoFuture<DeleteReplicationSubnetGroupResponse, DeleteReplicationSubnetGroupError>;
fn delete_replication_task(
&self,
input: DeleteReplicationTaskMessage,
) -> RusotoFuture<DeleteReplicationTaskResponse, DeleteReplicationTaskError>;
fn describe_account_attributes(
&self,
) -> RusotoFuture<DescribeAccountAttributesResponse, DescribeAccountAttributesError>;
fn describe_certificates(
&self,
input: DescribeCertificatesMessage,
) -> RusotoFuture<DescribeCertificatesResponse, DescribeCertificatesError>;
fn describe_connections(
&self,
input: DescribeConnectionsMessage,
) -> RusotoFuture<DescribeConnectionsResponse, DescribeConnectionsError>;
fn describe_endpoint_types(
&self,
input: DescribeEndpointTypesMessage,
) -> RusotoFuture<DescribeEndpointTypesResponse, DescribeEndpointTypesError>;
fn describe_endpoints(
&self,
input: DescribeEndpointsMessage,
) -> RusotoFuture<DescribeEndpointsResponse, DescribeEndpointsError>;
fn describe_event_categories(
&self,
input: DescribeEventCategoriesMessage,
) -> RusotoFuture<DescribeEventCategoriesResponse, DescribeEventCategoriesError>;
fn describe_event_subscriptions(
&self,
input: DescribeEventSubscriptionsMessage,
) -> RusotoFuture<DescribeEventSubscriptionsResponse, DescribeEventSubscriptionsError>;
fn describe_events(
&self,
input: DescribeEventsMessage,
) -> RusotoFuture<DescribeEventsResponse, DescribeEventsError>;
fn describe_orderable_replication_instances(
&self,
input: DescribeOrderableReplicationInstancesMessage,
) -> RusotoFuture<
DescribeOrderableReplicationInstancesResponse,
DescribeOrderableReplicationInstancesError,
>;
fn describe_pending_maintenance_actions(
&self,
input: DescribePendingMaintenanceActionsMessage,
) -> RusotoFuture<
DescribePendingMaintenanceActionsResponse,
DescribePendingMaintenanceActionsError,
>;
fn describe_refresh_schemas_status(
&self,
input: DescribeRefreshSchemasStatusMessage,
) -> RusotoFuture<DescribeRefreshSchemasStatusResponse, DescribeRefreshSchemasStatusError>;
fn describe_replication_instance_task_logs(
&self,
input: DescribeReplicationInstanceTaskLogsMessage,
) -> RusotoFuture<
DescribeReplicationInstanceTaskLogsResponse,
DescribeReplicationInstanceTaskLogsError,
>;
fn describe_replication_instances(
&self,
input: DescribeReplicationInstancesMessage,
) -> RusotoFuture<DescribeReplicationInstancesResponse, DescribeReplicationInstancesError>;
fn describe_replication_subnet_groups(
&self,
input: DescribeReplicationSubnetGroupsMessage,
) -> RusotoFuture<DescribeReplicationSubnetGroupsResponse, DescribeReplicationSubnetGroupsError>;
fn describe_replication_task_assessment_results(
&self,
input: DescribeReplicationTaskAssessmentResultsMessage,
) -> RusotoFuture<
DescribeReplicationTaskAssessmentResultsResponse,
DescribeReplicationTaskAssessmentResultsError,
>;
fn describe_replication_tasks(
&self,
input: DescribeReplicationTasksMessage,
) -> RusotoFuture<DescribeReplicationTasksResponse, DescribeReplicationTasksError>;
fn describe_schemas(
&self,
input: DescribeSchemasMessage,
) -> RusotoFuture<DescribeSchemasResponse, DescribeSchemasError>;
fn describe_table_statistics(
&self,
input: DescribeTableStatisticsMessage,
) -> RusotoFuture<DescribeTableStatisticsResponse, DescribeTableStatisticsError>;
fn import_certificate(
&self,
input: ImportCertificateMessage,
) -> RusotoFuture<ImportCertificateResponse, ImportCertificateError>;
fn list_tags_for_resource(
&self,
input: ListTagsForResourceMessage,
) -> RusotoFuture<ListTagsForResourceResponse, ListTagsForResourceError>;
fn modify_endpoint(
&self,
input: ModifyEndpointMessage,
) -> RusotoFuture<ModifyEndpointResponse, ModifyEndpointError>;
fn modify_event_subscription(
&self,
input: ModifyEventSubscriptionMessage,
) -> RusotoFuture<ModifyEventSubscriptionResponse, ModifyEventSubscriptionError>;
fn modify_replication_instance(
&self,
input: ModifyReplicationInstanceMessage,
) -> RusotoFuture<ModifyReplicationInstanceResponse, ModifyReplicationInstanceError>;
fn modify_replication_subnet_group(
&self,
input: ModifyReplicationSubnetGroupMessage,
) -> RusotoFuture<ModifyReplicationSubnetGroupResponse, ModifyReplicationSubnetGroupError>;
fn modify_replication_task(
&self,
input: ModifyReplicationTaskMessage,
) -> RusotoFuture<ModifyReplicationTaskResponse, ModifyReplicationTaskError>;
fn reboot_replication_instance(
&self,
input: RebootReplicationInstanceMessage,
) -> RusotoFuture<RebootReplicationInstanceResponse, RebootReplicationInstanceError>;
fn refresh_schemas(
&self,
input: RefreshSchemasMessage,
) -> RusotoFuture<RefreshSchemasResponse, RefreshSchemasError>;
fn reload_tables(
&self,
input: ReloadTablesMessage,
) -> RusotoFuture<ReloadTablesResponse, ReloadTablesError>;
fn remove_tags_from_resource(
&self,
input: RemoveTagsFromResourceMessage,
) -> RusotoFuture<RemoveTagsFromResourceResponse, RemoveTagsFromResourceError>;
fn start_replication_task(
&self,
input: StartReplicationTaskMessage,
) -> RusotoFuture<StartReplicationTaskResponse, StartReplicationTaskError>;
fn start_replication_task_assessment(
&self,
input: StartReplicationTaskAssessmentMessage,
) -> RusotoFuture<StartReplicationTaskAssessmentResponse, StartReplicationTaskAssessmentError>;
fn stop_replication_task(
&self,
input: StopReplicationTaskMessage,
) -> RusotoFuture<StopReplicationTaskResponse, StopReplicationTaskError>;
fn test_connection(
&self,
input: TestConnectionMessage,
) -> RusotoFuture<TestConnectionResponse, TestConnectionError>;
}
#[derive(Clone)]
pub struct DatabaseMigrationServiceClient {
client: Client,
region: region::Region,
}
impl DatabaseMigrationServiceClient {
pub fn new(region: region::Region) -> DatabaseMigrationServiceClient {
DatabaseMigrationServiceClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> DatabaseMigrationServiceClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
{
DatabaseMigrationServiceClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
}
impl DatabaseMigrationService for DatabaseMigrationServiceClient {
fn add_tags_to_resource(
&self,
input: AddTagsToResourceMessage,
) -> RusotoFuture<AddTagsToResourceResponse, AddTagsToResourceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.AddTagsToResource");
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::<AddTagsToResourceResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(AddTagsToResourceError::from_response(response))),
)
}
})
}
fn apply_pending_maintenance_action(
&self,
input: ApplyPendingMaintenanceActionMessage,
) -> RusotoFuture<ApplyPendingMaintenanceActionResponse, ApplyPendingMaintenanceActionError>
{
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.ApplyPendingMaintenanceAction",
);
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::<ApplyPendingMaintenanceActionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ApplyPendingMaintenanceActionError::from_response(response))
}))
}
})
}
fn create_endpoint(
&self,
input: CreateEndpointMessage,
) -> RusotoFuture<CreateEndpointResponse, CreateEndpointError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.CreateEndpoint");
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::<CreateEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateEndpointError::from_response(response))),
)
}
})
}
fn create_event_subscription(
&self,
input: CreateEventSubscriptionMessage,
) -> RusotoFuture<CreateEventSubscriptionResponse, CreateEventSubscriptionError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.CreateEventSubscription");
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::<CreateEventSubscriptionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateEventSubscriptionError::from_response(response))
}))
}
})
}
fn create_replication_instance(
&self,
input: CreateReplicationInstanceMessage,
) -> RusotoFuture<CreateReplicationInstanceResponse, CreateReplicationInstanceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.CreateReplicationInstance",
);
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::<CreateReplicationInstanceResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateReplicationInstanceError::from_response(response))
}))
}
})
}
fn create_replication_subnet_group(
&self,
input: CreateReplicationSubnetGroupMessage,
) -> RusotoFuture<CreateReplicationSubnetGroupResponse, CreateReplicationSubnetGroupError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.CreateReplicationSubnetGroup",
);
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::<CreateReplicationSubnetGroupResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateReplicationSubnetGroupError::from_response(response))
}))
}
})
}
fn create_replication_task(
&self,
input: CreateReplicationTaskMessage,
) -> RusotoFuture<CreateReplicationTaskResponse, CreateReplicationTaskError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.CreateReplicationTask");
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::<CreateReplicationTaskResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateReplicationTaskError::from_response(response))
}),
)
}
})
}
fn delete_certificate(
&self,
input: DeleteCertificateMessage,
) -> RusotoFuture<DeleteCertificateResponse, DeleteCertificateError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteCertificate");
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::<DeleteCertificateResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteCertificateError::from_response(response))),
)
}
})
}
fn delete_endpoint(
&self,
input: DeleteEndpointMessage,
) -> RusotoFuture<DeleteEndpointResponse, DeleteEndpointError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteEndpoint");
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::<DeleteEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteEndpointError::from_response(response))),
)
}
})
}
fn delete_event_subscription(
&self,
input: DeleteEventSubscriptionMessage,
) -> RusotoFuture<DeleteEventSubscriptionResponse, DeleteEventSubscriptionError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteEventSubscription");
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::<DeleteEventSubscriptionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteEventSubscriptionError::from_response(response))
}))
}
})
}
fn delete_replication_instance(
&self,
input: DeleteReplicationInstanceMessage,
) -> RusotoFuture<DeleteReplicationInstanceResponse, DeleteReplicationInstanceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DeleteReplicationInstance",
);
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::<DeleteReplicationInstanceResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteReplicationInstanceError::from_response(response))
}))
}
})
}
fn delete_replication_subnet_group(
&self,
input: DeleteReplicationSubnetGroupMessage,
) -> RusotoFuture<DeleteReplicationSubnetGroupResponse, DeleteReplicationSubnetGroupError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DeleteReplicationSubnetGroup",
);
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::<DeleteReplicationSubnetGroupResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteReplicationSubnetGroupError::from_response(response))
}))
}
})
}
fn delete_replication_task(
&self,
input: DeleteReplicationTaskMessage,
) -> RusotoFuture<DeleteReplicationTaskResponse, DeleteReplicationTaskError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DeleteReplicationTask");
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::<DeleteReplicationTaskResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteReplicationTaskError::from_response(response))
}),
)
}
})
}
fn describe_account_attributes(
&self,
) -> RusotoFuture<DescribeAccountAttributesResponse, DescribeAccountAttributesError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeAccountAttributes",
);
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::<DescribeAccountAttributesResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeAccountAttributesError::from_response(response))
}))
}
})
}
fn describe_certificates(
&self,
input: DescribeCertificatesMessage,
) -> RusotoFuture<DescribeCertificatesResponse, DescribeCertificatesError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeCertificates");
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::<DescribeCertificatesResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeCertificatesError::from_response(response))
}),
)
}
})
}
fn describe_connections(
&self,
input: DescribeConnectionsMessage,
) -> RusotoFuture<DescribeConnectionsResponse, DescribeConnectionsError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeConnections");
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::<DescribeConnectionsResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeConnectionsError::from_response(response))
}),
)
}
})
}
fn describe_endpoint_types(
&self,
input: DescribeEndpointTypesMessage,
) -> RusotoFuture<DescribeEndpointTypesResponse, DescribeEndpointTypesError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEndpointTypes");
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::<DescribeEndpointTypesResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeEndpointTypesError::from_response(response))
}),
)
}
})
}
fn describe_endpoints(
&self,
input: DescribeEndpointsMessage,
) -> RusotoFuture<DescribeEndpointsResponse, DescribeEndpointsError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEndpoints");
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::<DescribeEndpointsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeEndpointsError::from_response(response))),
)
}
})
}
fn describe_event_categories(
&self,
input: DescribeEventCategoriesMessage,
) -> RusotoFuture<DescribeEventCategoriesResponse, DescribeEventCategoriesError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEventCategories");
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::<DescribeEventCategoriesResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeEventCategoriesError::from_response(response))
}))
}
})
}
fn describe_event_subscriptions(
&self,
input: DescribeEventSubscriptionsMessage,
) -> RusotoFuture<DescribeEventSubscriptionsResponse, DescribeEventSubscriptionsError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeEventSubscriptions",
);
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::<DescribeEventSubscriptionsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeEventSubscriptionsError::from_response(response))
}))
}
})
}
fn describe_events(
&self,
input: DescribeEventsMessage,
) -> RusotoFuture<DescribeEventsResponse, DescribeEventsError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeEvents");
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::<DescribeEventsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeEventsError::from_response(response))),
)
}
})
}
fn describe_orderable_replication_instances(
&self,
input: DescribeOrderableReplicationInstancesMessage,
) -> RusotoFuture<
DescribeOrderableReplicationInstancesResponse,
DescribeOrderableReplicationInstancesError,
> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeOrderableReplicationInstances",
);
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::<DescribeOrderableReplicationInstancesResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeOrderableReplicationInstancesError::from_response(
response,
))
}))
}
})
}
fn describe_pending_maintenance_actions(
&self,
input: DescribePendingMaintenanceActionsMessage,
) -> RusotoFuture<
DescribePendingMaintenanceActionsResponse,
DescribePendingMaintenanceActionsError,
> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribePendingMaintenanceActions",
);
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::<DescribePendingMaintenanceActionsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribePendingMaintenanceActionsError::from_response(
response,
))
}))
}
})
}
fn describe_refresh_schemas_status(
&self,
input: DescribeRefreshSchemasStatusMessage,
) -> RusotoFuture<DescribeRefreshSchemasStatusResponse, DescribeRefreshSchemasStatusError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeRefreshSchemasStatus",
);
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::<DescribeRefreshSchemasStatusResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeRefreshSchemasStatusError::from_response(response))
}))
}
})
}
fn describe_replication_instance_task_logs(
&self,
input: DescribeReplicationInstanceTaskLogsMessage,
) -> RusotoFuture<
DescribeReplicationInstanceTaskLogsResponse,
DescribeReplicationInstanceTaskLogsError,
> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeReplicationInstanceTaskLogs",
);
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::<DescribeReplicationInstanceTaskLogsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeReplicationInstanceTaskLogsError::from_response(
response,
))
}))
}
})
}
fn describe_replication_instances(
&self,
input: DescribeReplicationInstancesMessage,
) -> RusotoFuture<DescribeReplicationInstancesResponse, DescribeReplicationInstancesError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeReplicationInstances",
);
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::<DescribeReplicationInstancesResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeReplicationInstancesError::from_response(response))
}))
}
})
}
fn describe_replication_subnet_groups(
&self,
input: DescribeReplicationSubnetGroupsMessage,
) -> RusotoFuture<DescribeReplicationSubnetGroupsResponse, DescribeReplicationSubnetGroupsError>
{
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeReplicationSubnetGroups",
);
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::<DescribeReplicationSubnetGroupsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeReplicationSubnetGroupsError::from_response(
response,
))
}))
}
})
}
fn describe_replication_task_assessment_results(
&self,
input: DescribeReplicationTaskAssessmentResultsMessage,
) -> RusotoFuture<
DescribeReplicationTaskAssessmentResultsResponse,
DescribeReplicationTaskAssessmentResultsError,
> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeReplicationTaskAssessmentResults",
);
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::<DescribeReplicationTaskAssessmentResultsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeReplicationTaskAssessmentResultsError::from_response(response))
}))
}
})
}
fn describe_replication_tasks(
&self,
input: DescribeReplicationTasksMessage,
) -> RusotoFuture<DescribeReplicationTasksResponse, DescribeReplicationTasksError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.DescribeReplicationTasks",
);
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::<DescribeReplicationTasksResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeReplicationTasksError::from_response(response))
}))
}
})
}
fn describe_schemas(
&self,
input: DescribeSchemasMessage,
) -> RusotoFuture<DescribeSchemasResponse, DescribeSchemasError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeSchemas");
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::<DescribeSchemasResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeSchemasError::from_response(response))),
)
}
})
}
fn describe_table_statistics(
&self,
input: DescribeTableStatisticsMessage,
) -> RusotoFuture<DescribeTableStatisticsResponse, DescribeTableStatisticsError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.DescribeTableStatistics");
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::<DescribeTableStatisticsResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeTableStatisticsError::from_response(response))
}))
}
})
}
fn import_certificate(
&self,
input: ImportCertificateMessage,
) -> RusotoFuture<ImportCertificateResponse, ImportCertificateError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.ImportCertificate");
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::<ImportCertificateResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ImportCertificateError::from_response(response))),
)
}
})
}
fn list_tags_for_resource(
&self,
input: ListTagsForResourceMessage,
) -> RusotoFuture<ListTagsForResourceResponse, ListTagsForResourceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.ListTagsForResource");
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::<ListTagsForResourceResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListTagsForResourceError::from_response(response))
}),
)
}
})
}
fn modify_endpoint(
&self,
input: ModifyEndpointMessage,
) -> RusotoFuture<ModifyEndpointResponse, ModifyEndpointError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.ModifyEndpoint");
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::<ModifyEndpointResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ModifyEndpointError::from_response(response))),
)
}
})
}
fn modify_event_subscription(
&self,
input: ModifyEventSubscriptionMessage,
) -> RusotoFuture<ModifyEventSubscriptionResponse, ModifyEventSubscriptionError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.ModifyEventSubscription");
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::<ModifyEventSubscriptionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ModifyEventSubscriptionError::from_response(response))
}))
}
})
}
fn modify_replication_instance(
&self,
input: ModifyReplicationInstanceMessage,
) -> RusotoFuture<ModifyReplicationInstanceResponse, ModifyReplicationInstanceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.ModifyReplicationInstance",
);
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::<ModifyReplicationInstanceResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ModifyReplicationInstanceError::from_response(response))
}))
}
})
}
fn modify_replication_subnet_group(
&self,
input: ModifyReplicationSubnetGroupMessage,
) -> RusotoFuture<ModifyReplicationSubnetGroupResponse, ModifyReplicationSubnetGroupError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.ModifyReplicationSubnetGroup",
);
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::<ModifyReplicationSubnetGroupResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ModifyReplicationSubnetGroupError::from_response(response))
}))
}
})
}
fn modify_replication_task(
&self,
input: ModifyReplicationTaskMessage,
) -> RusotoFuture<ModifyReplicationTaskResponse, ModifyReplicationTaskError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.ModifyReplicationTask");
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::<ModifyReplicationTaskResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ModifyReplicationTaskError::from_response(response))
}),
)
}
})
}
fn reboot_replication_instance(
&self,
input: RebootReplicationInstanceMessage,
) -> RusotoFuture<RebootReplicationInstanceResponse, RebootReplicationInstanceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.RebootReplicationInstance",
);
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::<RebootReplicationInstanceResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(RebootReplicationInstanceError::from_response(response))
}))
}
})
}
fn refresh_schemas(
&self,
input: RefreshSchemasMessage,
) -> RusotoFuture<RefreshSchemasResponse, RefreshSchemasError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.RefreshSchemas");
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::<RefreshSchemasResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(RefreshSchemasError::from_response(response))),
)
}
})
}
fn reload_tables(
&self,
input: ReloadTablesMessage,
) -> RusotoFuture<ReloadTablesResponse, ReloadTablesError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.ReloadTables");
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::<ReloadTablesResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ReloadTablesError::from_response(response))),
)
}
})
}
fn remove_tags_from_resource(
&self,
input: RemoveTagsFromResourceMessage,
) -> RusotoFuture<RemoveTagsFromResourceResponse, RemoveTagsFromResourceError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.RemoveTagsFromResource");
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::<RemoveTagsFromResourceResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(RemoveTagsFromResourceError::from_response(response))
}),
)
}
})
}
fn start_replication_task(
&self,
input: StartReplicationTaskMessage,
) -> RusotoFuture<StartReplicationTaskResponse, StartReplicationTaskError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.StartReplicationTask");
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::<StartReplicationTaskResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(StartReplicationTaskError::from_response(response))
}),
)
}
})
}
fn start_replication_task_assessment(
&self,
input: StartReplicationTaskAssessmentMessage,
) -> RusotoFuture<StartReplicationTaskAssessmentResponse, StartReplicationTaskAssessmentError>
{
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonDMSv20160101.StartReplicationTaskAssessment",
);
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::<StartReplicationTaskAssessmentResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(StartReplicationTaskAssessmentError::from_response(response))
}))
}
})
}
fn stop_replication_task(
&self,
input: StopReplicationTaskMessage,
) -> RusotoFuture<StopReplicationTaskResponse, StopReplicationTaskError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.StopReplicationTask");
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::<StopReplicationTaskResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(StopReplicationTaskError::from_response(response))
}),
)
}
})
}
fn test_connection(
&self,
input: TestConnectionMessage,
) -> RusotoFuture<TestConnectionResponse, TestConnectionError> {
let mut request = SignedRequest::new("POST", "dms", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonDMSv20160101.TestConnection");
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::<TestConnectionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(TestConnectionError::from_response(response))),
)
}
})
}
}