use std::error::Error;
use std::fmt;
#[allow(warnings)]
use futures::future;
use futures::Future;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError, RusotoFuture};
use rusoto_core::proto;
use rusoto_core::signature::SignedRequest;
use serde_json;
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AllocateStaticIpRequest {
#[serde(rename = "staticIpName")]
pub static_ip_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AllocateStaticIpResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AttachDiskRequest {
#[serde(rename = "diskName")]
pub disk_name: String,
#[serde(rename = "diskPath")]
pub disk_path: String,
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AttachDiskResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AttachInstancesToLoadBalancerRequest {
#[serde(rename = "instanceNames")]
pub instance_names: Vec<String>,
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AttachInstancesToLoadBalancerResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AttachLoadBalancerTlsCertificateRequest {
#[serde(rename = "certificateName")]
pub certificate_name: String,
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AttachLoadBalancerTlsCertificateResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AttachStaticIpRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "staticIpName")]
pub static_ip_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AttachStaticIpResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AvailabilityZone {
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "zoneName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub zone_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Blueprint {
#[serde(rename = "blueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blueprint_id: Option<String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "group")]
#[serde(skip_serializing_if = "Option::is_none")]
pub group: Option<String>,
#[serde(rename = "isActive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_active: Option<bool>,
#[serde(rename = "licenseUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub license_url: Option<String>,
#[serde(rename = "minPower")]
#[serde(skip_serializing_if = "Option::is_none")]
pub min_power: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "platform")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform: Option<String>,
#[serde(rename = "productUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_url: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
#[serde(rename = "versionCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_code: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Bundle {
#[serde(rename = "bundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bundle_id: Option<String>,
#[serde(rename = "cpuCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_count: Option<i64>,
#[serde(rename = "diskSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_size_in_gb: Option<i64>,
#[serde(rename = "instanceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_type: Option<String>,
#[serde(rename = "isActive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_active: Option<bool>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "power")]
#[serde(skip_serializing_if = "Option::is_none")]
pub power: Option<i64>,
#[serde(rename = "price")]
#[serde(skip_serializing_if = "Option::is_none")]
pub price: Option<f32>,
#[serde(rename = "ramSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ram_size_in_gb: Option<f32>,
#[serde(rename = "supportedPlatforms")]
#[serde(skip_serializing_if = "Option::is_none")]
pub supported_platforms: Option<Vec<String>>,
#[serde(rename = "transferPerMonthInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub transfer_per_month_in_gb: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CloseInstancePublicPortsRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "portInfo")]
pub port_info: PortInfo,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CloseInstancePublicPortsResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CloudFormationStackRecord {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "destinationInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub destination_info: Option<DestinationInfo>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sourceInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_info: Option<Vec<CloudFormationStackRecordSourceInfo>>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CloudFormationStackRecordSourceInfo {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CopySnapshotRequest {
#[serde(rename = "sourceRegion")]
pub source_region: String,
#[serde(rename = "sourceSnapshotName")]
pub source_snapshot_name: String,
#[serde(rename = "targetSnapshotName")]
pub target_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CopySnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateCloudFormationStackRequest {
#[serde(rename = "instances")]
pub instances: Vec<InstanceEntry>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateCloudFormationStackResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDiskFromSnapshotRequest {
#[serde(rename = "availabilityZone")]
pub availability_zone: String,
#[serde(rename = "diskName")]
pub disk_name: String,
#[serde(rename = "diskSnapshotName")]
pub disk_snapshot_name: String,
#[serde(rename = "sizeInGb")]
pub size_in_gb: i64,
#[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 CreateDiskFromSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDiskRequest {
#[serde(rename = "availabilityZone")]
pub availability_zone: String,
#[serde(rename = "diskName")]
pub disk_name: String,
#[serde(rename = "sizeInGb")]
pub size_in_gb: i64,
#[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 CreateDiskResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDiskSnapshotRequest {
#[serde(rename = "diskName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_name: Option<String>,
#[serde(rename = "diskSnapshotName")]
pub disk_snapshot_name: String,
#[serde(rename = "instanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_name: Option<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 CreateDiskSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDomainEntryRequest {
#[serde(rename = "domainEntry")]
pub domain_entry: DomainEntry,
#[serde(rename = "domainName")]
pub domain_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateDomainEntryResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDomainRequest {
#[serde(rename = "domainName")]
pub domain_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 CreateDomainResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateInstanceSnapshotRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "instanceSnapshotName")]
pub instance_snapshot_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 CreateInstanceSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateInstancesFromSnapshotRequest {
#[serde(rename = "attachedDiskMapping")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attached_disk_mapping: Option<::std::collections::HashMap<String, Vec<DiskMap>>>,
#[serde(rename = "availabilityZone")]
pub availability_zone: String,
#[serde(rename = "bundleId")]
pub bundle_id: String,
#[serde(rename = "instanceNames")]
pub instance_names: Vec<String>,
#[serde(rename = "instanceSnapshotName")]
pub instance_snapshot_name: String,
#[serde(rename = "keyPairName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_pair_name: Option<String>,
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "userData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_data: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateInstancesFromSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateInstancesRequest {
#[serde(rename = "availabilityZone")]
pub availability_zone: String,
#[serde(rename = "blueprintId")]
pub blueprint_id: String,
#[serde(rename = "bundleId")]
pub bundle_id: String,
#[serde(rename = "instanceNames")]
pub instance_names: Vec<String>,
#[serde(rename = "keyPairName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_pair_name: Option<String>,
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "userData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_data: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateInstancesResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateKeyPairRequest {
#[serde(rename = "keyPairName")]
pub key_pair_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 CreateKeyPairResult {
#[serde(rename = "keyPair")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_pair: Option<KeyPair>,
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
#[serde(rename = "privateKeyBase64")]
#[serde(skip_serializing_if = "Option::is_none")]
pub private_key_base_64: Option<String>,
#[serde(rename = "publicKeyBase64")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_key_base_64: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateLoadBalancerRequest {
#[serde(rename = "certificateAlternativeNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_alternative_names: Option<Vec<String>>,
#[serde(rename = "certificateDomainName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_domain_name: Option<String>,
#[serde(rename = "certificateName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_name: Option<String>,
#[serde(rename = "healthCheckPath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub health_check_path: Option<String>,
#[serde(rename = "instancePort")]
pub instance_port: i64,
#[serde(rename = "loadBalancerName")]
pub load_balancer_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 CreateLoadBalancerResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateLoadBalancerTlsCertificateRequest {
#[serde(rename = "certificateAlternativeNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub certificate_alternative_names: Option<Vec<String>>,
#[serde(rename = "certificateDomainName")]
pub certificate_domain_name: String,
#[serde(rename = "certificateName")]
pub certificate_name: String,
#[serde(rename = "loadBalancerName")]
pub load_balancer_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 CreateLoadBalancerTlsCertificateResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateRelationalDatabaseFromSnapshotRequest {
#[serde(rename = "availabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "publiclyAccessible")]
#[serde(skip_serializing_if = "Option::is_none")]
pub publicly_accessible: Option<bool>,
#[serde(rename = "relationalDatabaseBundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_bundle_id: Option<String>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "relationalDatabaseSnapshotName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_snapshot_name: Option<String>,
#[serde(rename = "restoreTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub restore_time: Option<f64>,
#[serde(rename = "sourceRelationalDatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_relational_database_name: Option<String>,
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "useLatestRestorableTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub use_latest_restorable_time: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateRelationalDatabaseFromSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateRelationalDatabaseRequest {
#[serde(rename = "availabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "masterDatabaseName")]
pub master_database_name: String,
#[serde(rename = "masterUserPassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_user_password: Option<String>,
#[serde(rename = "masterUsername")]
pub master_username: String,
#[serde(rename = "preferredBackupWindow")]
#[serde(skip_serializing_if = "Option::is_none")]
pub preferred_backup_window: Option<String>,
#[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 = "relationalDatabaseBlueprintId")]
pub relational_database_blueprint_id: String,
#[serde(rename = "relationalDatabaseBundleId")]
pub relational_database_bundle_id: String,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_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 CreateRelationalDatabaseResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateRelationalDatabaseSnapshotRequest {
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "relationalDatabaseSnapshotName")]
pub relational_database_snapshot_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 CreateRelationalDatabaseSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDiskRequest {
#[serde(rename = "diskName")]
pub disk_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDiskResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDiskSnapshotRequest {
#[serde(rename = "diskSnapshotName")]
pub disk_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDiskSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDomainEntryRequest {
#[serde(rename = "domainEntry")]
pub domain_entry: DomainEntry,
#[serde(rename = "domainName")]
pub domain_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDomainEntryResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDomainRequest {
#[serde(rename = "domainName")]
pub domain_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDomainResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteInstanceRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteInstanceResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteInstanceSnapshotRequest {
#[serde(rename = "instanceSnapshotName")]
pub instance_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteInstanceSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteKeyPairRequest {
#[serde(rename = "keyPairName")]
pub key_pair_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteKeyPairResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteKnownHostKeysRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteKnownHostKeysResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteLoadBalancerRequest {
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteLoadBalancerResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteLoadBalancerTlsCertificateRequest {
#[serde(rename = "certificateName")]
pub certificate_name: String,
#[serde(rename = "force")]
#[serde(skip_serializing_if = "Option::is_none")]
pub force: Option<bool>,
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteLoadBalancerTlsCertificateResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteRelationalDatabaseRequest {
#[serde(rename = "finalRelationalDatabaseSnapshotName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub final_relational_database_snapshot_name: Option<String>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "skipFinalSnapshot")]
#[serde(skip_serializing_if = "Option::is_none")]
pub skip_final_snapshot: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteRelationalDatabaseResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteRelationalDatabaseSnapshotRequest {
#[serde(rename = "relationalDatabaseSnapshotName")]
pub relational_database_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteRelationalDatabaseSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DestinationInfo {
#[serde(rename = "id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "service")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DetachDiskRequest {
#[serde(rename = "diskName")]
pub disk_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DetachDiskResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DetachInstancesFromLoadBalancerRequest {
#[serde(rename = "instanceNames")]
pub instance_names: Vec<String>,
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DetachInstancesFromLoadBalancerResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DetachStaticIpRequest {
#[serde(rename = "staticIpName")]
pub static_ip_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DetachStaticIpResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Disk {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "attachedTo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attached_to: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "iops")]
#[serde(skip_serializing_if = "Option::is_none")]
pub iops: Option<i64>,
#[serde(rename = "isAttached")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_attached: Option<bool>,
#[serde(rename = "isSystemDisk")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_system_disk: Option<bool>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size_in_gb: Option<i64>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<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 DiskInfo {
#[serde(rename = "isSystemDisk")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_system_disk: Option<bool>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "path")]
#[serde(skip_serializing_if = "Option::is_none")]
pub path: Option<String>,
#[serde(rename = "sizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size_in_gb: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DiskMap {
#[serde(rename = "newDiskName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub new_disk_name: Option<String>,
#[serde(rename = "originalDiskPath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub original_disk_path: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DiskSnapshot {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "fromDiskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_disk_arn: Option<String>,
#[serde(rename = "fromDiskName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_disk_name: Option<String>,
#[serde(rename = "fromInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_instance_arn: Option<String>,
#[serde(rename = "fromInstanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_instance_name: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "progress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub progress: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size_in_gb: Option<i64>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<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 DiskSnapshotInfo {
#[serde(rename = "sizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size_in_gb: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Domain {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "domainEntries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_entries: Option<Vec<DomainEntry>>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<String>,
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct DomainEntry {
#[serde(rename = "id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "isAlias")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_alias: Option<bool>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "target")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DownloadDefaultKeyPairRequest {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DownloadDefaultKeyPairResult {
#[serde(rename = "privateKeyBase64")]
#[serde(skip_serializing_if = "Option::is_none")]
pub private_key_base_64: Option<String>,
#[serde(rename = "publicKeyBase64")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_key_base_64: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ExportSnapshotRecord {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "destinationInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub destination_info: Option<DestinationInfo>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sourceInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_info: Option<ExportSnapshotRecordSourceInfo>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ExportSnapshotRecordSourceInfo {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "diskSnapshotInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_snapshot_info: Option<DiskSnapshotInfo>,
#[serde(rename = "fromResourceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_resource_arn: Option<String>,
#[serde(rename = "fromResourceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_resource_name: Option<String>,
#[serde(rename = "instanceSnapshotInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_snapshot_info: Option<InstanceSnapshotInfo>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ExportSnapshotRequest {
#[serde(rename = "sourceSnapshotName")]
pub source_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ExportSnapshotResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetActiveNamesRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetActiveNamesResult {
#[serde(rename = "activeNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub active_names: Option<Vec<String>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetBlueprintsRequest {
#[serde(rename = "includeInactive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub include_inactive: Option<bool>,
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetBlueprintsResult {
#[serde(rename = "blueprints")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blueprints: Option<Vec<Blueprint>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetBundlesRequest {
#[serde(rename = "includeInactive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub include_inactive: Option<bool>,
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetBundlesResult {
#[serde(rename = "bundles")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bundles: Option<Vec<Bundle>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetCloudFormationStackRecordsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetCloudFormationStackRecordsResult {
#[serde(rename = "cloudFormationStackRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_formation_stack_records: Option<Vec<CloudFormationStackRecord>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDiskRequest {
#[serde(rename = "diskName")]
pub disk_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDiskResult {
#[serde(rename = "disk")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk: Option<Disk>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDiskSnapshotRequest {
#[serde(rename = "diskSnapshotName")]
pub disk_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDiskSnapshotResult {
#[serde(rename = "diskSnapshot")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_snapshot: Option<DiskSnapshot>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDiskSnapshotsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDiskSnapshotsResult {
#[serde(rename = "diskSnapshots")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_snapshots: Option<Vec<DiskSnapshot>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDisksRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDisksResult {
#[serde(rename = "disks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disks: Option<Vec<Disk>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDomainRequest {
#[serde(rename = "domainName")]
pub domain_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDomainResult {
#[serde(rename = "domain")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain: Option<Domain>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDomainsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDomainsResult {
#[serde(rename = "domains")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domains: Option<Vec<Domain>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetExportSnapshotRecordsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetExportSnapshotRecordsResult {
#[serde(rename = "exportSnapshotRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub export_snapshot_records: Option<Vec<ExportSnapshotRecord>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceAccessDetailsRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "protocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceAccessDetailsResult {
#[serde(rename = "accessDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_details: Option<InstanceAccessDetails>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceMetricDataRequest {
#[serde(rename = "endTime")]
pub end_time: f64,
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "metricName")]
pub metric_name: String,
#[serde(rename = "period")]
pub period: i64,
#[serde(rename = "startTime")]
pub start_time: f64,
#[serde(rename = "statistics")]
pub statistics: Vec<String>,
#[serde(rename = "unit")]
pub unit: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceMetricDataResult {
#[serde(rename = "metricData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metric_data: Option<Vec<MetricDatapoint>>,
#[serde(rename = "metricName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metric_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstancePortStatesRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstancePortStatesResult {
#[serde(rename = "portStates")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port_states: Option<Vec<InstancePortState>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceResult {
#[serde(rename = "instance")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance: Option<Instance>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceSnapshotRequest {
#[serde(rename = "instanceSnapshotName")]
pub instance_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceSnapshotResult {
#[serde(rename = "instanceSnapshot")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_snapshot: Option<InstanceSnapshot>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceSnapshotsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceSnapshotsResult {
#[serde(rename = "instanceSnapshots")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_snapshots: Option<Vec<InstanceSnapshot>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstanceStateRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstanceStateResult {
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<InstanceState>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInstancesRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInstancesResult {
#[serde(rename = "instances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances: Option<Vec<Instance>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetKeyPairRequest {
#[serde(rename = "keyPairName")]
pub key_pair_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetKeyPairResult {
#[serde(rename = "keyPair")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_pair: Option<KeyPair>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetKeyPairsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetKeyPairsResult {
#[serde(rename = "keyPairs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_pairs: Option<Vec<KeyPair>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetLoadBalancerMetricDataRequest {
#[serde(rename = "endTime")]
pub end_time: f64,
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
#[serde(rename = "metricName")]
pub metric_name: String,
#[serde(rename = "period")]
pub period: i64,
#[serde(rename = "startTime")]
pub start_time: f64,
#[serde(rename = "statistics")]
pub statistics: Vec<String>,
#[serde(rename = "unit")]
pub unit: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetLoadBalancerMetricDataResult {
#[serde(rename = "metricData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metric_data: Option<Vec<MetricDatapoint>>,
#[serde(rename = "metricName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metric_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetLoadBalancerRequest {
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetLoadBalancerResult {
#[serde(rename = "loadBalancer")]
#[serde(skip_serializing_if = "Option::is_none")]
pub load_balancer: Option<LoadBalancer>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetLoadBalancerTlsCertificatesRequest {
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetLoadBalancerTlsCertificatesResult {
#[serde(rename = "tlsCertificates")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tls_certificates: Option<Vec<LoadBalancerTlsCertificate>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetLoadBalancersRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetLoadBalancersResult {
#[serde(rename = "loadBalancers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub load_balancers: Option<Vec<LoadBalancer>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetOperationRequest {
#[serde(rename = "operationId")]
pub operation_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetOperationResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetOperationsForResourceRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "resourceName")]
pub resource_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetOperationsForResourceResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetOperationsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetOperationsResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRegionsRequest {
#[serde(rename = "includeAvailabilityZones")]
#[serde(skip_serializing_if = "Option::is_none")]
pub include_availability_zones: Option<bool>,
#[serde(rename = "includeRelationalDatabaseAvailabilityZones")]
#[serde(skip_serializing_if = "Option::is_none")]
pub include_relational_database_availability_zones: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRegionsResult {
#[serde(rename = "regions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub regions: Option<Vec<Region>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseBlueprintsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseBlueprintsResult {
#[serde(rename = "blueprints")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blueprints: Option<Vec<RelationalDatabaseBlueprint>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseBundlesRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseBundlesResult {
#[serde(rename = "bundles")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bundles: Option<Vec<RelationalDatabaseBundle>>,
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseEventsRequest {
#[serde(rename = "durationInMinutes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration_in_minutes: Option<i64>,
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseEventsResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "relationalDatabaseEvents")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_events: Option<Vec<RelationalDatabaseEvent>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseLogEventsRequest {
#[serde(rename = "endTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "logStreamName")]
pub log_stream_name: String,
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "startFromHead")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_from_head: Option<bool>,
#[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 GetRelationalDatabaseLogEventsResult {
#[serde(rename = "nextBackwardToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_backward_token: Option<String>,
#[serde(rename = "nextForwardToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_forward_token: Option<String>,
#[serde(rename = "resourceLogEvents")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_log_events: Option<Vec<LogEvent>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseLogStreamsRequest {
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseLogStreamsResult {
#[serde(rename = "logStreams")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_streams: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseMasterUserPasswordRequest {
#[serde(rename = "passwordVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password_version: Option<String>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseMasterUserPasswordResult {
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "masterUserPassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_user_password: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseMetricDataRequest {
#[serde(rename = "endTime")]
pub end_time: f64,
#[serde(rename = "metricName")]
pub metric_name: String,
#[serde(rename = "period")]
pub period: i64,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "startTime")]
pub start_time: f64,
#[serde(rename = "statistics")]
pub statistics: Vec<String>,
#[serde(rename = "unit")]
pub unit: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseMetricDataResult {
#[serde(rename = "metricData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metric_data: Option<Vec<MetricDatapoint>>,
#[serde(rename = "metricName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub metric_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseParametersRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseParametersResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<Vec<RelationalDatabaseParameter>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseRequest {
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseResult {
#[serde(rename = "relationalDatabase")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database: Option<RelationalDatabase>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseSnapshotRequest {
#[serde(rename = "relationalDatabaseSnapshotName")]
pub relational_database_snapshot_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseSnapshotResult {
#[serde(rename = "relationalDatabaseSnapshot")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_snapshot: Option<RelationalDatabaseSnapshot>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabaseSnapshotsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabaseSnapshotsResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "relationalDatabaseSnapshots")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_snapshots: Option<Vec<RelationalDatabaseSnapshot>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetRelationalDatabasesRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetRelationalDatabasesResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "relationalDatabases")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_databases: Option<Vec<RelationalDatabase>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetStaticIpRequest {
#[serde(rename = "staticIpName")]
pub static_ip_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetStaticIpResult {
#[serde(rename = "staticIp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub static_ip: Option<StaticIp>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetStaticIpsRequest {
#[serde(rename = "pageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub page_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetStaticIpsResult {
#[serde(rename = "nextPageToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_page_token: Option<String>,
#[serde(rename = "staticIps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub static_ips: Option<Vec<StaticIp>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct HostKeyAttributes {
#[serde(rename = "algorithm")]
#[serde(skip_serializing_if = "Option::is_none")]
pub algorithm: Option<String>,
#[serde(rename = "fingerprintSHA1")]
#[serde(skip_serializing_if = "Option::is_none")]
pub fingerprint_sha1: Option<String>,
#[serde(rename = "fingerprintSHA256")]
#[serde(skip_serializing_if = "Option::is_none")]
pub fingerprint_sha256: Option<String>,
#[serde(rename = "notValidAfter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub not_valid_after: Option<f64>,
#[serde(rename = "notValidBefore")]
#[serde(skip_serializing_if = "Option::is_none")]
pub not_valid_before: Option<f64>,
#[serde(rename = "publicKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_key: Option<String>,
#[serde(rename = "witnessedAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub witnessed_at: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ImportKeyPairRequest {
#[serde(rename = "keyPairName")]
pub key_pair_name: String,
#[serde(rename = "publicKeyBase64")]
pub public_key_base_64: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ImportKeyPairResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Instance {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "blueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blueprint_id: Option<String>,
#[serde(rename = "blueprintName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blueprint_name: Option<String>,
#[serde(rename = "bundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bundle_id: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "hardware")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hardware: Option<InstanceHardware>,
#[serde(rename = "ipv6Address")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ipv_6_address: Option<String>,
#[serde(rename = "isStaticIp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_static_ip: Option<bool>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "networking")]
#[serde(skip_serializing_if = "Option::is_none")]
pub networking: Option<InstanceNetworking>,
#[serde(rename = "privateIpAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub private_ip_address: Option<String>,
#[serde(rename = "publicIpAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_ip_address: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sshKeyName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ssh_key_name: Option<String>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<InstanceState>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: 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 InstanceAccessDetails {
#[serde(rename = "certKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cert_key: Option<String>,
#[serde(rename = "expiresAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expires_at: Option<f64>,
#[serde(rename = "hostKeys")]
#[serde(skip_serializing_if = "Option::is_none")]
pub host_keys: Option<Vec<HostKeyAttributes>>,
#[serde(rename = "instanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_name: Option<String>,
#[serde(rename = "ipAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ip_address: Option<String>,
#[serde(rename = "password")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password: Option<String>,
#[serde(rename = "passwordData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub password_data: Option<PasswordData>,
#[serde(rename = "privateKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub private_key: Option<String>,
#[serde(rename = "protocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
#[serde(rename = "username")]
#[serde(skip_serializing_if = "Option::is_none")]
pub username: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InstanceEntry {
#[serde(rename = "availabilityZone")]
pub availability_zone: String,
#[serde(rename = "instanceType")]
pub instance_type: String,
#[serde(rename = "portInfoSource")]
pub port_info_source: String,
#[serde(rename = "sourceName")]
pub source_name: String,
#[serde(rename = "userData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub user_data: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceHardware {
#[serde(rename = "cpuCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_count: Option<i64>,
#[serde(rename = "disks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disks: Option<Vec<Disk>>,
#[serde(rename = "ramSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ram_size_in_gb: Option<f32>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceHealthSummary {
#[serde(rename = "instanceHealth")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_health: Option<String>,
#[serde(rename = "instanceHealthReason")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_health_reason: Option<String>,
#[serde(rename = "instanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceNetworking {
#[serde(rename = "monthlyTransfer")]
#[serde(skip_serializing_if = "Option::is_none")]
pub monthly_transfer: Option<MonthlyTransfer>,
#[serde(rename = "ports")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ports: Option<Vec<InstancePortInfo>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstancePortInfo {
#[serde(rename = "accessDirection")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_direction: Option<String>,
#[serde(rename = "accessFrom")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_from: Option<String>,
#[serde(rename = "accessType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub access_type: Option<String>,
#[serde(rename = "commonName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub common_name: Option<String>,
#[serde(rename = "fromPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_port: Option<i64>,
#[serde(rename = "protocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
#[serde(rename = "toPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub to_port: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstancePortState {
#[serde(rename = "fromPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_port: Option<i64>,
#[serde(rename = "protocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "toPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub to_port: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceSnapshot {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "fromAttachedDisks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_attached_disks: Option<Vec<Disk>>,
#[serde(rename = "fromBlueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_blueprint_id: Option<String>,
#[serde(rename = "fromBundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_bundle_id: Option<String>,
#[serde(rename = "fromInstanceArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_instance_arn: Option<String>,
#[serde(rename = "fromInstanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_instance_name: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "progress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub progress: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size_in_gb: Option<i64>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<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 InstanceSnapshotInfo {
#[serde(rename = "fromBlueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_blueprint_id: Option<String>,
#[serde(rename = "fromBundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_bundle_id: Option<String>,
#[serde(rename = "fromDiskInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_disk_info: Option<Vec<DiskInfo>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceState {
#[serde(rename = "code")]
#[serde(skip_serializing_if = "Option::is_none")]
pub code: Option<i64>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct IsVpcPeeredRequest {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct IsVpcPeeredResult {
#[serde(rename = "isPeered")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_peered: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct KeyPair {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "fingerprint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub fingerprint: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<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 LoadBalancer {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "configurationOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub configuration_options: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "dnsName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dns_name: Option<String>,
#[serde(rename = "healthCheckPath")]
#[serde(skip_serializing_if = "Option::is_none")]
pub health_check_path: Option<String>,
#[serde(rename = "instanceHealthSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_health_summary: Option<Vec<InstanceHealthSummary>>,
#[serde(rename = "instancePort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_port: Option<i64>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "protocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
#[serde(rename = "publicPorts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub public_ports: Option<Vec<i64>>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<String>,
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "tlsCertificateSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tls_certificate_summaries: Option<Vec<LoadBalancerTlsCertificateSummary>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LoadBalancerTlsCertificate {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "domainName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_name: Option<String>,
#[serde(rename = "domainValidationRecords")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_validation_records: Option<Vec<LoadBalancerTlsCertificateDomainValidationRecord>>,
#[serde(rename = "failureReason")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_reason: Option<String>,
#[serde(rename = "isAttached")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_attached: Option<bool>,
#[serde(rename = "issuedAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub issued_at: Option<f64>,
#[serde(rename = "issuer")]
#[serde(skip_serializing_if = "Option::is_none")]
pub issuer: Option<String>,
#[serde(rename = "keyAlgorithm")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_algorithm: Option<String>,
#[serde(rename = "loadBalancerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub load_balancer_name: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "notAfter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub not_after: Option<f64>,
#[serde(rename = "notBefore")]
#[serde(skip_serializing_if = "Option::is_none")]
pub not_before: Option<f64>,
#[serde(rename = "renewalSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub renewal_summary: Option<LoadBalancerTlsCertificateRenewalSummary>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "revocationReason")]
#[serde(skip_serializing_if = "Option::is_none")]
pub revocation_reason: Option<String>,
#[serde(rename = "revokedAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub revoked_at: Option<f64>,
#[serde(rename = "serial")]
#[serde(skip_serializing_if = "Option::is_none")]
pub serial: Option<String>,
#[serde(rename = "signatureAlgorithm")]
#[serde(skip_serializing_if = "Option::is_none")]
pub signature_algorithm: Option<String>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "subject")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subject: Option<String>,
#[serde(rename = "subjectAlternativeNames")]
#[serde(skip_serializing_if = "Option::is_none")]
pub subject_alternative_names: Option<Vec<String>>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<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 LoadBalancerTlsCertificateDomainValidationOption {
#[serde(rename = "domainName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_name: Option<String>,
#[serde(rename = "validationStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LoadBalancerTlsCertificateDomainValidationRecord {
#[serde(rename = "domainName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_name: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "validationStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub validation_status: Option<String>,
#[serde(rename = "value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LoadBalancerTlsCertificateRenewalSummary {
#[serde(rename = "domainValidationOptions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub domain_validation_options: Option<Vec<LoadBalancerTlsCertificateDomainValidationOption>>,
#[serde(rename = "renewalStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub renewal_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LoadBalancerTlsCertificateSummary {
#[serde(rename = "isAttached")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_attached: Option<bool>,
#[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 LogEvent {
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MetricDatapoint {
#[serde(rename = "average")]
#[serde(skip_serializing_if = "Option::is_none")]
pub average: Option<f64>,
#[serde(rename = "maximum")]
#[serde(skip_serializing_if = "Option::is_none")]
pub maximum: Option<f64>,
#[serde(rename = "minimum")]
#[serde(skip_serializing_if = "Option::is_none")]
pub minimum: Option<f64>,
#[serde(rename = "sampleCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sample_count: Option<f64>,
#[serde(rename = "sum")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sum: Option<f64>,
#[serde(rename = "timestamp")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timestamp: Option<f64>,
#[serde(rename = "unit")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unit: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MonthlyTransfer {
#[serde(rename = "gbPerMonthAllocated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub gb_per_month_allocated: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct OpenInstancePublicPortsRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "portInfo")]
pub port_info: PortInfo,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OpenInstancePublicPortsResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Operation {
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "errorCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_code: Option<String>,
#[serde(rename = "errorDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_details: Option<String>,
#[serde(rename = "id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "isTerminal")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_terminal: Option<bool>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "operationDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation_details: Option<String>,
#[serde(rename = "operationType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation_type: Option<String>,
#[serde(rename = "resourceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "statusChangedAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_changed_at: Option<f64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PasswordData {
#[serde(rename = "ciphertext")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ciphertext: Option<String>,
#[serde(rename = "keyPairName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_pair_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PeerVpcRequest {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PeerVpcResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[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 = "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>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PendingModifiedRelationalDatabaseValues {
#[serde(rename = "backupRetentionEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub backup_retention_enabled: Option<bool>,
#[serde(rename = "engineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "masterUserPassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_user_password: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PortInfo {
#[serde(rename = "fromPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_port: Option<i64>,
#[serde(rename = "protocol")]
#[serde(skip_serializing_if = "Option::is_none")]
pub protocol: Option<String>,
#[serde(rename = "toPort")]
#[serde(skip_serializing_if = "Option::is_none")]
pub to_port: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PutInstancePublicPortsRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
#[serde(rename = "portInfos")]
pub port_infos: Vec<PortInfo>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PutInstancePublicPortsResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RebootInstanceRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RebootInstanceResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RebootRelationalDatabaseRequest {
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RebootRelationalDatabaseResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Region {
#[serde(rename = "availabilityZones")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zones: Option<Vec<AvailabilityZone>>,
#[serde(rename = "continentCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub continent_code: Option<String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "displayName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "relationalDatabaseAvailabilityZones")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_availability_zones: Option<Vec<AvailabilityZone>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RelationalDatabase {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "backupRetentionEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub backup_retention_enabled: Option<bool>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "engine")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine: Option<String>,
#[serde(rename = "engineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "hardware")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hardware: Option<RelationalDatabaseHardware>,
#[serde(rename = "latestRestorableTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub latest_restorable_time: Option<f64>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "masterDatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_database_name: Option<String>,
#[serde(rename = "masterEndpoint")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_endpoint: Option<RelationalDatabaseEndpoint>,
#[serde(rename = "masterUsername")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_username: Option<String>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "parameterApplyStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_apply_status: Option<String>,
#[serde(rename = "pendingMaintenanceActions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pending_maintenance_actions: Option<Vec<PendingMaintenanceAction>>,
#[serde(rename = "pendingModifiedValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub pending_modified_values: Option<PendingModifiedRelationalDatabaseValues>,
#[serde(rename = "preferredBackupWindow")]
#[serde(skip_serializing_if = "Option::is_none")]
pub preferred_backup_window: Option<String>,
#[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 = "relationalDatabaseBlueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_blueprint_id: Option<String>,
#[serde(rename = "relationalDatabaseBundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_bundle_id: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "secondaryAvailabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub secondary_availability_zone: Option<String>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<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 RelationalDatabaseBlueprint {
#[serde(rename = "blueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub blueprint_id: Option<String>,
#[serde(rename = "engine")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine: Option<String>,
#[serde(rename = "engineDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_description: Option<String>,
#[serde(rename = "engineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "engineVersionDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version_description: Option<String>,
#[serde(rename = "isEngineDefault")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_engine_default: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RelationalDatabaseBundle {
#[serde(rename = "bundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub bundle_id: Option<String>,
#[serde(rename = "cpuCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_count: Option<i64>,
#[serde(rename = "diskSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_size_in_gb: Option<i64>,
#[serde(rename = "isActive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_active: Option<bool>,
#[serde(rename = "isEncrypted")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_encrypted: Option<bool>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "price")]
#[serde(skip_serializing_if = "Option::is_none")]
pub price: Option<f32>,
#[serde(rename = "ramSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ram_size_in_gb: Option<f32>,
#[serde(rename = "transferPerMonthInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub transfer_per_month_in_gb: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RelationalDatabaseEndpoint {
#[serde(rename = "address")]
#[serde(skip_serializing_if = "Option::is_none")]
pub address: Option<String>,
#[serde(rename = "port")]
#[serde(skip_serializing_if = "Option::is_none")]
pub port: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RelationalDatabaseEvent {
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: 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 = "resource")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RelationalDatabaseHardware {
#[serde(rename = "cpuCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cpu_count: Option<i64>,
#[serde(rename = "diskSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disk_size_in_gb: Option<i64>,
#[serde(rename = "ramSizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ram_size_in_gb: Option<f32>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct RelationalDatabaseParameter {
#[serde(rename = "allowedValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allowed_values: Option<String>,
#[serde(rename = "applyMethod")]
#[serde(skip_serializing_if = "Option::is_none")]
pub apply_method: Option<String>,
#[serde(rename = "applyType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub apply_type: Option<String>,
#[serde(rename = "dataType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data_type: Option<String>,
#[serde(rename = "description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "isModifiable")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_modifiable: Option<bool>,
#[serde(rename = "parameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_name: Option<String>,
#[serde(rename = "parameterValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RelationalDatabaseSnapshot {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "engine")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine: Option<String>,
#[serde(rename = "engineVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub engine_version: Option<String>,
#[serde(rename = "fromRelationalDatabaseArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_relational_database_arn: Option<String>,
#[serde(rename = "fromRelationalDatabaseBlueprintId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_relational_database_blueprint_id: Option<String>,
#[serde(rename = "fromRelationalDatabaseBundleId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_relational_database_bundle_id: Option<String>,
#[serde(rename = "fromRelationalDatabaseName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub from_relational_database_name: Option<String>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "sizeInGb")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size_in_gb: Option<i64>,
#[serde(rename = "state")]
#[serde(skip_serializing_if = "Option::is_none")]
pub state: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<String>,
#[serde(rename = "tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ReleaseStaticIpRequest {
#[serde(rename = "staticIpName")]
pub static_ip_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ReleaseStaticIpResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceLocation {
#[serde(rename = "availabilityZone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub availability_zone: Option<String>,
#[serde(rename = "regionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub region_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartInstanceRequest {
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartInstanceResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartRelationalDatabaseRequest {
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartRelationalDatabaseResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StaticIp {
#[serde(rename = "arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "attachedTo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attached_to: Option<String>,
#[serde(rename = "createdAt")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_at: Option<f64>,
#[serde(rename = "ipAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ip_address: Option<String>,
#[serde(rename = "isAttached")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_attached: Option<bool>,
#[serde(rename = "location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub location: Option<ResourceLocation>,
#[serde(rename = "name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "resourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "supportCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub support_code: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopInstanceRequest {
#[serde(rename = "force")]
#[serde(skip_serializing_if = "Option::is_none")]
pub force: Option<bool>,
#[serde(rename = "instanceName")]
pub instance_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopInstanceResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopRelationalDatabaseRequest {
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "relationalDatabaseSnapshotName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub relational_database_snapshot_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopRelationalDatabaseResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[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 TagResourceRequest {
#[serde(rename = "resourceName")]
pub resource_name: String,
#[serde(rename = "tags")]
pub tags: Vec<Tag>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TagResourceResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UnpeerVpcRequest {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UnpeerVpcResult {
#[serde(rename = "operation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operation: Option<Operation>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UntagResourceRequest {
#[serde(rename = "resourceName")]
pub resource_name: String,
#[serde(rename = "tagKeys")]
pub tag_keys: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UntagResourceResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDomainEntryRequest {
#[serde(rename = "domainEntry")]
pub domain_entry: DomainEntry,
#[serde(rename = "domainName")]
pub domain_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDomainEntryResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateLoadBalancerAttributeRequest {
#[serde(rename = "attributeName")]
pub attribute_name: String,
#[serde(rename = "attributeValue")]
pub attribute_value: String,
#[serde(rename = "loadBalancerName")]
pub load_balancer_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateLoadBalancerAttributeResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateRelationalDatabaseParametersRequest {
#[serde(rename = "parameters")]
pub parameters: Vec<RelationalDatabaseParameter>,
#[serde(rename = "relationalDatabaseName")]
pub relational_database_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateRelationalDatabaseParametersResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateRelationalDatabaseRequest {
#[serde(rename = "applyImmediately")]
#[serde(skip_serializing_if = "Option::is_none")]
pub apply_immediately: Option<bool>,
#[serde(rename = "disableBackupRetention")]
#[serde(skip_serializing_if = "Option::is_none")]
pub disable_backup_retention: Option<bool>,
#[serde(rename = "enableBackupRetention")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enable_backup_retention: Option<bool>,
#[serde(rename = "masterUserPassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub master_user_password: Option<String>,
#[serde(rename = "preferredBackupWindow")]
#[serde(skip_serializing_if = "Option::is_none")]
pub preferred_backup_window: Option<String>,
#[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 = "relationalDatabaseName")]
pub relational_database_name: String,
#[serde(rename = "rotateMasterUserPassword")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rotate_master_user_password: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateRelationalDatabaseResult {
#[serde(rename = "operations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operations: Option<Vec<Operation>>,
}
#[derive(Debug, PartialEq)]
pub enum AllocateStaticIpError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl AllocateStaticIpError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AllocateStaticIpError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(AllocateStaticIpError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(AllocateStaticIpError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(AllocateStaticIpError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(AllocateStaticIpError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(AllocateStaticIpError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(AllocateStaticIpError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(AllocateStaticIpError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AllocateStaticIpError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AllocateStaticIpError {
fn description(&self) -> &str {
match *self {
AllocateStaticIpError::AccessDenied(ref cause) => cause,
AllocateStaticIpError::AccountSetupInProgress(ref cause) => cause,
AllocateStaticIpError::InvalidInput(ref cause) => cause,
AllocateStaticIpError::NotFound(ref cause) => cause,
AllocateStaticIpError::OperationFailure(ref cause) => cause,
AllocateStaticIpError::Service(ref cause) => cause,
AllocateStaticIpError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AttachDiskError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl AttachDiskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AttachDiskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(AttachDiskError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(AttachDiskError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(AttachDiskError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(AttachDiskError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(AttachDiskError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(AttachDiskError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(AttachDiskError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AttachDiskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AttachDiskError {
fn description(&self) -> &str {
match *self {
AttachDiskError::AccessDenied(ref cause) => cause,
AttachDiskError::AccountSetupInProgress(ref cause) => cause,
AttachDiskError::InvalidInput(ref cause) => cause,
AttachDiskError::NotFound(ref cause) => cause,
AttachDiskError::OperationFailure(ref cause) => cause,
AttachDiskError::Service(ref cause) => cause,
AttachDiskError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AttachInstancesToLoadBalancerError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl AttachInstancesToLoadBalancerError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AttachInstancesToLoadBalancerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(AttachInstancesToLoadBalancerError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
AttachInstancesToLoadBalancerError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(AttachInstancesToLoadBalancerError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(AttachInstancesToLoadBalancerError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
AttachInstancesToLoadBalancerError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(AttachInstancesToLoadBalancerError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
AttachInstancesToLoadBalancerError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AttachInstancesToLoadBalancerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AttachInstancesToLoadBalancerError {
fn description(&self) -> &str {
match *self {
AttachInstancesToLoadBalancerError::AccessDenied(ref cause) => cause,
AttachInstancesToLoadBalancerError::AccountSetupInProgress(ref cause) => cause,
AttachInstancesToLoadBalancerError::InvalidInput(ref cause) => cause,
AttachInstancesToLoadBalancerError::NotFound(ref cause) => cause,
AttachInstancesToLoadBalancerError::OperationFailure(ref cause) => cause,
AttachInstancesToLoadBalancerError::Service(ref cause) => cause,
AttachInstancesToLoadBalancerError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AttachLoadBalancerTlsCertificateError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl AttachLoadBalancerTlsCertificateError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<AttachLoadBalancerTlsCertificateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
AttachLoadBalancerTlsCertificateError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
AttachLoadBalancerTlsCertificateError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
AttachLoadBalancerTlsCertificateError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(AttachLoadBalancerTlsCertificateError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
AttachLoadBalancerTlsCertificateError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(AttachLoadBalancerTlsCertificateError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
AttachLoadBalancerTlsCertificateError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AttachLoadBalancerTlsCertificateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AttachLoadBalancerTlsCertificateError {
fn description(&self) -> &str {
match *self {
AttachLoadBalancerTlsCertificateError::AccessDenied(ref cause) => cause,
AttachLoadBalancerTlsCertificateError::AccountSetupInProgress(ref cause) => cause,
AttachLoadBalancerTlsCertificateError::InvalidInput(ref cause) => cause,
AttachLoadBalancerTlsCertificateError::NotFound(ref cause) => cause,
AttachLoadBalancerTlsCertificateError::OperationFailure(ref cause) => cause,
AttachLoadBalancerTlsCertificateError::Service(ref cause) => cause,
AttachLoadBalancerTlsCertificateError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum AttachStaticIpError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl AttachStaticIpError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AttachStaticIpError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(AttachStaticIpError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(AttachStaticIpError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(AttachStaticIpError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(AttachStaticIpError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(AttachStaticIpError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(AttachStaticIpError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(AttachStaticIpError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AttachStaticIpError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AttachStaticIpError {
fn description(&self) -> &str {
match *self {
AttachStaticIpError::AccessDenied(ref cause) => cause,
AttachStaticIpError::AccountSetupInProgress(ref cause) => cause,
AttachStaticIpError::InvalidInput(ref cause) => cause,
AttachStaticIpError::NotFound(ref cause) => cause,
AttachStaticIpError::OperationFailure(ref cause) => cause,
AttachStaticIpError::Service(ref cause) => cause,
AttachStaticIpError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CloseInstancePublicPortsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CloseInstancePublicPortsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CloseInstancePublicPortsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CloseInstancePublicPortsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CloseInstancePublicPortsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(CloseInstancePublicPortsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(CloseInstancePublicPortsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CloseInstancePublicPortsError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(CloseInstancePublicPortsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CloseInstancePublicPortsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CloseInstancePublicPortsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CloseInstancePublicPortsError {
fn description(&self) -> &str {
match *self {
CloseInstancePublicPortsError::AccessDenied(ref cause) => cause,
CloseInstancePublicPortsError::AccountSetupInProgress(ref cause) => cause,
CloseInstancePublicPortsError::InvalidInput(ref cause) => cause,
CloseInstancePublicPortsError::NotFound(ref cause) => cause,
CloseInstancePublicPortsError::OperationFailure(ref cause) => cause,
CloseInstancePublicPortsError::Service(ref cause) => cause,
CloseInstancePublicPortsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CopySnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CopySnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CopySnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CopySnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CopySnapshotError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CopySnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CopySnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CopySnapshotError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CopySnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CopySnapshotError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CopySnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CopySnapshotError {
fn description(&self) -> &str {
match *self {
CopySnapshotError::AccessDenied(ref cause) => cause,
CopySnapshotError::AccountSetupInProgress(ref cause) => cause,
CopySnapshotError::InvalidInput(ref cause) => cause,
CopySnapshotError::NotFound(ref cause) => cause,
CopySnapshotError::OperationFailure(ref cause) => cause,
CopySnapshotError::Service(ref cause) => cause,
CopySnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateCloudFormationStackError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateCloudFormationStackError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateCloudFormationStackError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateCloudFormationStackError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateCloudFormationStackError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(CreateCloudFormationStackError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(CreateCloudFormationStackError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateCloudFormationStackError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(CreateCloudFormationStackError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateCloudFormationStackError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateCloudFormationStackError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateCloudFormationStackError {
fn description(&self) -> &str {
match *self {
CreateCloudFormationStackError::AccessDenied(ref cause) => cause,
CreateCloudFormationStackError::AccountSetupInProgress(ref cause) => cause,
CreateCloudFormationStackError::InvalidInput(ref cause) => cause,
CreateCloudFormationStackError::NotFound(ref cause) => cause,
CreateCloudFormationStackError::OperationFailure(ref cause) => cause,
CreateCloudFormationStackError::Service(ref cause) => cause,
CreateCloudFormationStackError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDiskError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateDiskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDiskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateDiskError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateDiskError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateDiskError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateDiskError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateDiskError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateDiskError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateDiskError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDiskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDiskError {
fn description(&self) -> &str {
match *self {
CreateDiskError::AccessDenied(ref cause) => cause,
CreateDiskError::AccountSetupInProgress(ref cause) => cause,
CreateDiskError::InvalidInput(ref cause) => cause,
CreateDiskError::NotFound(ref cause) => cause,
CreateDiskError::OperationFailure(ref cause) => cause,
CreateDiskError::Service(ref cause) => cause,
CreateDiskError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDiskFromSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateDiskFromSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDiskFromSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateDiskFromSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateDiskFromSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(CreateDiskFromSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateDiskFromSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateDiskFromSnapshotError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(CreateDiskFromSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateDiskFromSnapshotError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDiskFromSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDiskFromSnapshotError {
fn description(&self) -> &str {
match *self {
CreateDiskFromSnapshotError::AccessDenied(ref cause) => cause,
CreateDiskFromSnapshotError::AccountSetupInProgress(ref cause) => cause,
CreateDiskFromSnapshotError::InvalidInput(ref cause) => cause,
CreateDiskFromSnapshotError::NotFound(ref cause) => cause,
CreateDiskFromSnapshotError::OperationFailure(ref cause) => cause,
CreateDiskFromSnapshotError::Service(ref cause) => cause,
CreateDiskFromSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDiskSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateDiskSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDiskSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateDiskSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateDiskSnapshotError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateDiskSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateDiskSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateDiskSnapshotError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateDiskSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateDiskSnapshotError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDiskSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDiskSnapshotError {
fn description(&self) -> &str {
match *self {
CreateDiskSnapshotError::AccessDenied(ref cause) => cause,
CreateDiskSnapshotError::AccountSetupInProgress(ref cause) => cause,
CreateDiskSnapshotError::InvalidInput(ref cause) => cause,
CreateDiskSnapshotError::NotFound(ref cause) => cause,
CreateDiskSnapshotError::OperationFailure(ref cause) => cause,
CreateDiskSnapshotError::Service(ref cause) => cause,
CreateDiskSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDomainError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateDomainError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDomainError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateDomainError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateDomainError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(CreateDomainError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateDomainError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateDomainError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateDomainError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateDomainError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDomainError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDomainError {
fn description(&self) -> &str {
match *self {
CreateDomainError::AccessDenied(ref cause) => cause,
CreateDomainError::AccountSetupInProgress(ref cause) => cause,
CreateDomainError::InvalidInput(ref cause) => cause,
CreateDomainError::NotFound(ref cause) => cause,
CreateDomainError::OperationFailure(ref cause) => cause,
CreateDomainError::Service(ref cause) => cause,
CreateDomainError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDomainEntryError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateDomainEntryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDomainEntryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateDomainEntryError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateDomainEntryError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateDomainEntryError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateDomainEntryError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateDomainEntryError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateDomainEntryError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateDomainEntryError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDomainEntryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDomainEntryError {
fn description(&self) -> &str {
match *self {
CreateDomainEntryError::AccessDenied(ref cause) => cause,
CreateDomainEntryError::AccountSetupInProgress(ref cause) => cause,
CreateDomainEntryError::InvalidInput(ref cause) => cause,
CreateDomainEntryError::NotFound(ref cause) => cause,
CreateDomainEntryError::OperationFailure(ref cause) => cause,
CreateDomainEntryError::Service(ref cause) => cause,
CreateDomainEntryError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateInstanceSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateInstanceSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateInstanceSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateInstanceSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateInstanceSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(CreateInstanceSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateInstanceSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateInstanceSnapshotError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(CreateInstanceSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateInstanceSnapshotError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateInstanceSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateInstanceSnapshotError {
fn description(&self) -> &str {
match *self {
CreateInstanceSnapshotError::AccessDenied(ref cause) => cause,
CreateInstanceSnapshotError::AccountSetupInProgress(ref cause) => cause,
CreateInstanceSnapshotError::InvalidInput(ref cause) => cause,
CreateInstanceSnapshotError::NotFound(ref cause) => cause,
CreateInstanceSnapshotError::OperationFailure(ref cause) => cause,
CreateInstanceSnapshotError::Service(ref cause) => cause,
CreateInstanceSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateInstancesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateInstancesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateInstancesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateInstancesError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateInstancesError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateInstancesError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateInstancesError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateInstancesError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateInstancesError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateInstancesError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateInstancesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateInstancesError {
fn description(&self) -> &str {
match *self {
CreateInstancesError::AccessDenied(ref cause) => cause,
CreateInstancesError::AccountSetupInProgress(ref cause) => cause,
CreateInstancesError::InvalidInput(ref cause) => cause,
CreateInstancesError::NotFound(ref cause) => cause,
CreateInstancesError::OperationFailure(ref cause) => cause,
CreateInstancesError::Service(ref cause) => cause,
CreateInstancesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateInstancesFromSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateInstancesFromSnapshotError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateInstancesFromSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateInstancesFromSnapshotError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateInstancesFromSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(CreateInstancesFromSnapshotError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(CreateInstancesFromSnapshotError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
CreateInstancesFromSnapshotError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(CreateInstancesFromSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateInstancesFromSnapshotError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateInstancesFromSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateInstancesFromSnapshotError {
fn description(&self) -> &str {
match *self {
CreateInstancesFromSnapshotError::AccessDenied(ref cause) => cause,
CreateInstancesFromSnapshotError::AccountSetupInProgress(ref cause) => cause,
CreateInstancesFromSnapshotError::InvalidInput(ref cause) => cause,
CreateInstancesFromSnapshotError::NotFound(ref cause) => cause,
CreateInstancesFromSnapshotError::OperationFailure(ref cause) => cause,
CreateInstancesFromSnapshotError::Service(ref cause) => cause,
CreateInstancesFromSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateKeyPairError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateKeyPairError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateKeyPairError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateKeyPairError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateKeyPairError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateKeyPairError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateKeyPairError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateKeyPairError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateKeyPairError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateKeyPairError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateKeyPairError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateKeyPairError {
fn description(&self) -> &str {
match *self {
CreateKeyPairError::AccessDenied(ref cause) => cause,
CreateKeyPairError::AccountSetupInProgress(ref cause) => cause,
CreateKeyPairError::InvalidInput(ref cause) => cause,
CreateKeyPairError::NotFound(ref cause) => cause,
CreateKeyPairError::OperationFailure(ref cause) => cause,
CreateKeyPairError::Service(ref cause) => cause,
CreateKeyPairError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateLoadBalancerError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateLoadBalancerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateLoadBalancerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateLoadBalancerError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(CreateLoadBalancerError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(CreateLoadBalancerError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(CreateLoadBalancerError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateLoadBalancerError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(CreateLoadBalancerError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateLoadBalancerError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateLoadBalancerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateLoadBalancerError {
fn description(&self) -> &str {
match *self {
CreateLoadBalancerError::AccessDenied(ref cause) => cause,
CreateLoadBalancerError::AccountSetupInProgress(ref cause) => cause,
CreateLoadBalancerError::InvalidInput(ref cause) => cause,
CreateLoadBalancerError::NotFound(ref cause) => cause,
CreateLoadBalancerError::OperationFailure(ref cause) => cause,
CreateLoadBalancerError::Service(ref cause) => cause,
CreateLoadBalancerError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateLoadBalancerTlsCertificateError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateLoadBalancerTlsCertificateError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateLoadBalancerTlsCertificateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
CreateLoadBalancerTlsCertificateError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateLoadBalancerTlsCertificateError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
CreateLoadBalancerTlsCertificateError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(CreateLoadBalancerTlsCertificateError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
CreateLoadBalancerTlsCertificateError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(CreateLoadBalancerTlsCertificateError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
CreateLoadBalancerTlsCertificateError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateLoadBalancerTlsCertificateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateLoadBalancerTlsCertificateError {
fn description(&self) -> &str {
match *self {
CreateLoadBalancerTlsCertificateError::AccessDenied(ref cause) => cause,
CreateLoadBalancerTlsCertificateError::AccountSetupInProgress(ref cause) => cause,
CreateLoadBalancerTlsCertificateError::InvalidInput(ref cause) => cause,
CreateLoadBalancerTlsCertificateError::NotFound(ref cause) => cause,
CreateLoadBalancerTlsCertificateError::OperationFailure(ref cause) => cause,
CreateLoadBalancerTlsCertificateError::Service(ref cause) => cause,
CreateLoadBalancerTlsCertificateError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(CreateRelationalDatabaseError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(CreateRelationalDatabaseError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(CreateRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(CreateRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(CreateRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(CreateRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
CreateRelationalDatabaseError::AccessDenied(ref cause) => cause,
CreateRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
CreateRelationalDatabaseError::InvalidInput(ref cause) => cause,
CreateRelationalDatabaseError::NotFound(ref cause) => cause,
CreateRelationalDatabaseError::OperationFailure(ref cause) => cause,
CreateRelationalDatabaseError::Service(ref cause) => cause,
CreateRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateRelationalDatabaseFromSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateRelationalDatabaseFromSnapshotError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateRelationalDatabaseFromSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::NotFound(err.msg),
)
}
"OperationFailureException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::Service(err.msg),
)
}
"UnauthenticatedException" => {
return RusotoError::Service(
CreateRelationalDatabaseFromSnapshotError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateRelationalDatabaseFromSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateRelationalDatabaseFromSnapshotError {
fn description(&self) -> &str {
match *self {
CreateRelationalDatabaseFromSnapshotError::AccessDenied(ref cause) => cause,
CreateRelationalDatabaseFromSnapshotError::AccountSetupInProgress(ref cause) => cause,
CreateRelationalDatabaseFromSnapshotError::InvalidInput(ref cause) => cause,
CreateRelationalDatabaseFromSnapshotError::NotFound(ref cause) => cause,
CreateRelationalDatabaseFromSnapshotError::OperationFailure(ref cause) => cause,
CreateRelationalDatabaseFromSnapshotError::Service(ref cause) => cause,
CreateRelationalDatabaseFromSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateRelationalDatabaseSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl CreateRelationalDatabaseSnapshotError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CreateRelationalDatabaseSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
CreateRelationalDatabaseSnapshotError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
CreateRelationalDatabaseSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
CreateRelationalDatabaseSnapshotError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(CreateRelationalDatabaseSnapshotError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
CreateRelationalDatabaseSnapshotError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(CreateRelationalDatabaseSnapshotError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
CreateRelationalDatabaseSnapshotError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateRelationalDatabaseSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateRelationalDatabaseSnapshotError {
fn description(&self) -> &str {
match *self {
CreateRelationalDatabaseSnapshotError::AccessDenied(ref cause) => cause,
CreateRelationalDatabaseSnapshotError::AccountSetupInProgress(ref cause) => cause,
CreateRelationalDatabaseSnapshotError::InvalidInput(ref cause) => cause,
CreateRelationalDatabaseSnapshotError::NotFound(ref cause) => cause,
CreateRelationalDatabaseSnapshotError::OperationFailure(ref cause) => cause,
CreateRelationalDatabaseSnapshotError::Service(ref cause) => cause,
CreateRelationalDatabaseSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDiskError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteDiskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDiskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteDiskError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteDiskError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteDiskError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteDiskError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteDiskError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteDiskError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteDiskError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDiskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDiskError {
fn description(&self) -> &str {
match *self {
DeleteDiskError::AccessDenied(ref cause) => cause,
DeleteDiskError::AccountSetupInProgress(ref cause) => cause,
DeleteDiskError::InvalidInput(ref cause) => cause,
DeleteDiskError::NotFound(ref cause) => cause,
DeleteDiskError::OperationFailure(ref cause) => cause,
DeleteDiskError::Service(ref cause) => cause,
DeleteDiskError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDiskSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteDiskSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDiskSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteDiskSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteDiskSnapshotError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteDiskSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteDiskSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteDiskSnapshotError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteDiskSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteDiskSnapshotError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDiskSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDiskSnapshotError {
fn description(&self) -> &str {
match *self {
DeleteDiskSnapshotError::AccessDenied(ref cause) => cause,
DeleteDiskSnapshotError::AccountSetupInProgress(ref cause) => cause,
DeleteDiskSnapshotError::InvalidInput(ref cause) => cause,
DeleteDiskSnapshotError::NotFound(ref cause) => cause,
DeleteDiskSnapshotError::OperationFailure(ref cause) => cause,
DeleteDiskSnapshotError::Service(ref cause) => cause,
DeleteDiskSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDomainError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteDomainError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDomainError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteDomainError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteDomainError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteDomainError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteDomainError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteDomainError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteDomainError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteDomainError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDomainError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDomainError {
fn description(&self) -> &str {
match *self {
DeleteDomainError::AccessDenied(ref cause) => cause,
DeleteDomainError::AccountSetupInProgress(ref cause) => cause,
DeleteDomainError::InvalidInput(ref cause) => cause,
DeleteDomainError::NotFound(ref cause) => cause,
DeleteDomainError::OperationFailure(ref cause) => cause,
DeleteDomainError::Service(ref cause) => cause,
DeleteDomainError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDomainEntryError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteDomainEntryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDomainEntryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteDomainEntryError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteDomainEntryError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteDomainEntryError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteDomainEntryError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteDomainEntryError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteDomainEntryError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteDomainEntryError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDomainEntryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDomainEntryError {
fn description(&self) -> &str {
match *self {
DeleteDomainEntryError::AccessDenied(ref cause) => cause,
DeleteDomainEntryError::AccountSetupInProgress(ref cause) => cause,
DeleteDomainEntryError::InvalidInput(ref cause) => cause,
DeleteDomainEntryError::NotFound(ref cause) => cause,
DeleteDomainEntryError::OperationFailure(ref cause) => cause,
DeleteDomainEntryError::Service(ref cause) => cause,
DeleteDomainEntryError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteInstanceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteInstanceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteInstanceError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteInstanceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteInstanceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteInstanceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteInstanceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteInstanceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteInstanceError {
fn description(&self) -> &str {
match *self {
DeleteInstanceError::AccessDenied(ref cause) => cause,
DeleteInstanceError::AccountSetupInProgress(ref cause) => cause,
DeleteInstanceError::InvalidInput(ref cause) => cause,
DeleteInstanceError::NotFound(ref cause) => cause,
DeleteInstanceError::OperationFailure(ref cause) => cause,
DeleteInstanceError::Service(ref cause) => cause,
DeleteInstanceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteInstanceSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteInstanceSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteInstanceSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteInstanceSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
DeleteInstanceSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(DeleteInstanceSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteInstanceSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteInstanceSnapshotError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(DeleteInstanceSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteInstanceSnapshotError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteInstanceSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteInstanceSnapshotError {
fn description(&self) -> &str {
match *self {
DeleteInstanceSnapshotError::AccessDenied(ref cause) => cause,
DeleteInstanceSnapshotError::AccountSetupInProgress(ref cause) => cause,
DeleteInstanceSnapshotError::InvalidInput(ref cause) => cause,
DeleteInstanceSnapshotError::NotFound(ref cause) => cause,
DeleteInstanceSnapshotError::OperationFailure(ref cause) => cause,
DeleteInstanceSnapshotError::Service(ref cause) => cause,
DeleteInstanceSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteKeyPairError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteKeyPairError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteKeyPairError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteKeyPairError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteKeyPairError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteKeyPairError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteKeyPairError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteKeyPairError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteKeyPairError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteKeyPairError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteKeyPairError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteKeyPairError {
fn description(&self) -> &str {
match *self {
DeleteKeyPairError::AccessDenied(ref cause) => cause,
DeleteKeyPairError::AccountSetupInProgress(ref cause) => cause,
DeleteKeyPairError::InvalidInput(ref cause) => cause,
DeleteKeyPairError::NotFound(ref cause) => cause,
DeleteKeyPairError::OperationFailure(ref cause) => cause,
DeleteKeyPairError::Service(ref cause) => cause,
DeleteKeyPairError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteKnownHostKeysError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteKnownHostKeysError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteKnownHostKeysError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteKnownHostKeysError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteKnownHostKeysError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteKnownHostKeysError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteKnownHostKeysError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteKnownHostKeysError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(DeleteKnownHostKeysError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteKnownHostKeysError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteKnownHostKeysError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteKnownHostKeysError {
fn description(&self) -> &str {
match *self {
DeleteKnownHostKeysError::AccessDenied(ref cause) => cause,
DeleteKnownHostKeysError::AccountSetupInProgress(ref cause) => cause,
DeleteKnownHostKeysError::InvalidInput(ref cause) => cause,
DeleteKnownHostKeysError::NotFound(ref cause) => cause,
DeleteKnownHostKeysError::OperationFailure(ref cause) => cause,
DeleteKnownHostKeysError::Service(ref cause) => cause,
DeleteKnownHostKeysError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteLoadBalancerError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteLoadBalancerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteLoadBalancerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteLoadBalancerError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DeleteLoadBalancerError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DeleteLoadBalancerError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DeleteLoadBalancerError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteLoadBalancerError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DeleteLoadBalancerError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteLoadBalancerError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteLoadBalancerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteLoadBalancerError {
fn description(&self) -> &str {
match *self {
DeleteLoadBalancerError::AccessDenied(ref cause) => cause,
DeleteLoadBalancerError::AccountSetupInProgress(ref cause) => cause,
DeleteLoadBalancerError::InvalidInput(ref cause) => cause,
DeleteLoadBalancerError::NotFound(ref cause) => cause,
DeleteLoadBalancerError::OperationFailure(ref cause) => cause,
DeleteLoadBalancerError::Service(ref cause) => cause,
DeleteLoadBalancerError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteLoadBalancerTlsCertificateError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteLoadBalancerTlsCertificateError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeleteLoadBalancerTlsCertificateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
DeleteLoadBalancerTlsCertificateError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
DeleteLoadBalancerTlsCertificateError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
DeleteLoadBalancerTlsCertificateError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(DeleteLoadBalancerTlsCertificateError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
DeleteLoadBalancerTlsCertificateError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(DeleteLoadBalancerTlsCertificateError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
DeleteLoadBalancerTlsCertificateError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteLoadBalancerTlsCertificateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteLoadBalancerTlsCertificateError {
fn description(&self) -> &str {
match *self {
DeleteLoadBalancerTlsCertificateError::AccessDenied(ref cause) => cause,
DeleteLoadBalancerTlsCertificateError::AccountSetupInProgress(ref cause) => cause,
DeleteLoadBalancerTlsCertificateError::InvalidInput(ref cause) => cause,
DeleteLoadBalancerTlsCertificateError::NotFound(ref cause) => cause,
DeleteLoadBalancerTlsCertificateError::OperationFailure(ref cause) => cause,
DeleteLoadBalancerTlsCertificateError::Service(ref cause) => cause,
DeleteLoadBalancerTlsCertificateError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DeleteRelationalDatabaseError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
DeleteRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(DeleteRelationalDatabaseError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(DeleteRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DeleteRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(DeleteRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DeleteRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
DeleteRelationalDatabaseError::AccessDenied(ref cause) => cause,
DeleteRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
DeleteRelationalDatabaseError::InvalidInput(ref cause) => cause,
DeleteRelationalDatabaseError::NotFound(ref cause) => cause,
DeleteRelationalDatabaseError::OperationFailure(ref cause) => cause,
DeleteRelationalDatabaseError::Service(ref cause) => cause,
DeleteRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteRelationalDatabaseSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DeleteRelationalDatabaseSnapshotError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeleteRelationalDatabaseSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
DeleteRelationalDatabaseSnapshotError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
DeleteRelationalDatabaseSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
DeleteRelationalDatabaseSnapshotError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(DeleteRelationalDatabaseSnapshotError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
DeleteRelationalDatabaseSnapshotError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(DeleteRelationalDatabaseSnapshotError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
DeleteRelationalDatabaseSnapshotError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteRelationalDatabaseSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteRelationalDatabaseSnapshotError {
fn description(&self) -> &str {
match *self {
DeleteRelationalDatabaseSnapshotError::AccessDenied(ref cause) => cause,
DeleteRelationalDatabaseSnapshotError::AccountSetupInProgress(ref cause) => cause,
DeleteRelationalDatabaseSnapshotError::InvalidInput(ref cause) => cause,
DeleteRelationalDatabaseSnapshotError::NotFound(ref cause) => cause,
DeleteRelationalDatabaseSnapshotError::OperationFailure(ref cause) => cause,
DeleteRelationalDatabaseSnapshotError::Service(ref cause) => cause,
DeleteRelationalDatabaseSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DetachDiskError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DetachDiskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DetachDiskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DetachDiskError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DetachDiskError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(DetachDiskError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DetachDiskError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DetachDiskError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DetachDiskError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DetachDiskError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DetachDiskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DetachDiskError {
fn description(&self) -> &str {
match *self {
DetachDiskError::AccessDenied(ref cause) => cause,
DetachDiskError::AccountSetupInProgress(ref cause) => cause,
DetachDiskError::InvalidInput(ref cause) => cause,
DetachDiskError::NotFound(ref cause) => cause,
DetachDiskError::OperationFailure(ref cause) => cause,
DetachDiskError::Service(ref cause) => cause,
DetachDiskError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DetachInstancesFromLoadBalancerError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DetachInstancesFromLoadBalancerError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DetachInstancesFromLoadBalancerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
DetachInstancesFromLoadBalancerError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
DetachInstancesFromLoadBalancerError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
DetachInstancesFromLoadBalancerError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(DetachInstancesFromLoadBalancerError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
DetachInstancesFromLoadBalancerError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(DetachInstancesFromLoadBalancerError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
DetachInstancesFromLoadBalancerError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DetachInstancesFromLoadBalancerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DetachInstancesFromLoadBalancerError {
fn description(&self) -> &str {
match *self {
DetachInstancesFromLoadBalancerError::AccessDenied(ref cause) => cause,
DetachInstancesFromLoadBalancerError::AccountSetupInProgress(ref cause) => cause,
DetachInstancesFromLoadBalancerError::InvalidInput(ref cause) => cause,
DetachInstancesFromLoadBalancerError::NotFound(ref cause) => cause,
DetachInstancesFromLoadBalancerError::OperationFailure(ref cause) => cause,
DetachInstancesFromLoadBalancerError::Service(ref cause) => cause,
DetachInstancesFromLoadBalancerError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DetachStaticIpError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DetachStaticIpError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DetachStaticIpError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DetachStaticIpError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(DetachStaticIpError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(DetachStaticIpError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DetachStaticIpError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DetachStaticIpError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(DetachStaticIpError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DetachStaticIpError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DetachStaticIpError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DetachStaticIpError {
fn description(&self) -> &str {
match *self {
DetachStaticIpError::AccessDenied(ref cause) => cause,
DetachStaticIpError::AccountSetupInProgress(ref cause) => cause,
DetachStaticIpError::InvalidInput(ref cause) => cause,
DetachStaticIpError::NotFound(ref cause) => cause,
DetachStaticIpError::OperationFailure(ref cause) => cause,
DetachStaticIpError::Service(ref cause) => cause,
DetachStaticIpError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DownloadDefaultKeyPairError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl DownloadDefaultKeyPairError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DownloadDefaultKeyPairError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(DownloadDefaultKeyPairError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
DownloadDefaultKeyPairError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(DownloadDefaultKeyPairError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(DownloadDefaultKeyPairError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(DownloadDefaultKeyPairError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(DownloadDefaultKeyPairError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(DownloadDefaultKeyPairError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DownloadDefaultKeyPairError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DownloadDefaultKeyPairError {
fn description(&self) -> &str {
match *self {
DownloadDefaultKeyPairError::AccessDenied(ref cause) => cause,
DownloadDefaultKeyPairError::AccountSetupInProgress(ref cause) => cause,
DownloadDefaultKeyPairError::InvalidInput(ref cause) => cause,
DownloadDefaultKeyPairError::NotFound(ref cause) => cause,
DownloadDefaultKeyPairError::OperationFailure(ref cause) => cause,
DownloadDefaultKeyPairError::Service(ref cause) => cause,
DownloadDefaultKeyPairError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ExportSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl ExportSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ExportSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(ExportSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(ExportSnapshotError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(ExportSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ExportSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(ExportSnapshotError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(ExportSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(ExportSnapshotError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ExportSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ExportSnapshotError {
fn description(&self) -> &str {
match *self {
ExportSnapshotError::AccessDenied(ref cause) => cause,
ExportSnapshotError::AccountSetupInProgress(ref cause) => cause,
ExportSnapshotError::InvalidInput(ref cause) => cause,
ExportSnapshotError::NotFound(ref cause) => cause,
ExportSnapshotError::OperationFailure(ref cause) => cause,
ExportSnapshotError::Service(ref cause) => cause,
ExportSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetActiveNamesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetActiveNamesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetActiveNamesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetActiveNamesError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetActiveNamesError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetActiveNamesError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetActiveNamesError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetActiveNamesError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetActiveNamesError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetActiveNamesError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetActiveNamesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetActiveNamesError {
fn description(&self) -> &str {
match *self {
GetActiveNamesError::AccessDenied(ref cause) => cause,
GetActiveNamesError::AccountSetupInProgress(ref cause) => cause,
GetActiveNamesError::InvalidInput(ref cause) => cause,
GetActiveNamesError::NotFound(ref cause) => cause,
GetActiveNamesError::OperationFailure(ref cause) => cause,
GetActiveNamesError::Service(ref cause) => cause,
GetActiveNamesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetBlueprintsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetBlueprintsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetBlueprintsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetBlueprintsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetBlueprintsError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetBlueprintsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetBlueprintsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetBlueprintsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetBlueprintsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetBlueprintsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetBlueprintsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetBlueprintsError {
fn description(&self) -> &str {
match *self {
GetBlueprintsError::AccessDenied(ref cause) => cause,
GetBlueprintsError::AccountSetupInProgress(ref cause) => cause,
GetBlueprintsError::InvalidInput(ref cause) => cause,
GetBlueprintsError::NotFound(ref cause) => cause,
GetBlueprintsError::OperationFailure(ref cause) => cause,
GetBlueprintsError::Service(ref cause) => cause,
GetBlueprintsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetBundlesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetBundlesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetBundlesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetBundlesError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetBundlesError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetBundlesError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetBundlesError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetBundlesError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetBundlesError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetBundlesError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetBundlesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetBundlesError {
fn description(&self) -> &str {
match *self {
GetBundlesError::AccessDenied(ref cause) => cause,
GetBundlesError::AccountSetupInProgress(ref cause) => cause,
GetBundlesError::InvalidInput(ref cause) => cause,
GetBundlesError::NotFound(ref cause) => cause,
GetBundlesError::OperationFailure(ref cause) => cause,
GetBundlesError::Service(ref cause) => cause,
GetBundlesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetCloudFormationStackRecordsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetCloudFormationStackRecordsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetCloudFormationStackRecordsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetCloudFormationStackRecordsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetCloudFormationStackRecordsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetCloudFormationStackRecordsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetCloudFormationStackRecordsError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetCloudFormationStackRecordsError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetCloudFormationStackRecordsError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetCloudFormationStackRecordsError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetCloudFormationStackRecordsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetCloudFormationStackRecordsError {
fn description(&self) -> &str {
match *self {
GetCloudFormationStackRecordsError::AccessDenied(ref cause) => cause,
GetCloudFormationStackRecordsError::AccountSetupInProgress(ref cause) => cause,
GetCloudFormationStackRecordsError::InvalidInput(ref cause) => cause,
GetCloudFormationStackRecordsError::NotFound(ref cause) => cause,
GetCloudFormationStackRecordsError::OperationFailure(ref cause) => cause,
GetCloudFormationStackRecordsError::Service(ref cause) => cause,
GetCloudFormationStackRecordsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDiskError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetDiskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDiskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetDiskError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetDiskError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDiskError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDiskError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetDiskError::OperationFailure(err.msg))
}
"ServiceException" => return RusotoError::Service(GetDiskError::Service(err.msg)),
"UnauthenticatedException" => {
return RusotoError::Service(GetDiskError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDiskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDiskError {
fn description(&self) -> &str {
match *self {
GetDiskError::AccessDenied(ref cause) => cause,
GetDiskError::AccountSetupInProgress(ref cause) => cause,
GetDiskError::InvalidInput(ref cause) => cause,
GetDiskError::NotFound(ref cause) => cause,
GetDiskError::OperationFailure(ref cause) => cause,
GetDiskError::Service(ref cause) => cause,
GetDiskError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDiskSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetDiskSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDiskSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetDiskSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetDiskSnapshotError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetDiskSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDiskSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetDiskSnapshotError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetDiskSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetDiskSnapshotError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDiskSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDiskSnapshotError {
fn description(&self) -> &str {
match *self {
GetDiskSnapshotError::AccessDenied(ref cause) => cause,
GetDiskSnapshotError::AccountSetupInProgress(ref cause) => cause,
GetDiskSnapshotError::InvalidInput(ref cause) => cause,
GetDiskSnapshotError::NotFound(ref cause) => cause,
GetDiskSnapshotError::OperationFailure(ref cause) => cause,
GetDiskSnapshotError::Service(ref cause) => cause,
GetDiskSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDiskSnapshotsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetDiskSnapshotsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDiskSnapshotsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetDiskSnapshotsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetDiskSnapshotsError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetDiskSnapshotsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDiskSnapshotsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetDiskSnapshotsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetDiskSnapshotsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetDiskSnapshotsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDiskSnapshotsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDiskSnapshotsError {
fn description(&self) -> &str {
match *self {
GetDiskSnapshotsError::AccessDenied(ref cause) => cause,
GetDiskSnapshotsError::AccountSetupInProgress(ref cause) => cause,
GetDiskSnapshotsError::InvalidInput(ref cause) => cause,
GetDiskSnapshotsError::NotFound(ref cause) => cause,
GetDiskSnapshotsError::OperationFailure(ref cause) => cause,
GetDiskSnapshotsError::Service(ref cause) => cause,
GetDiskSnapshotsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDisksError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetDisksError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDisksError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetDisksError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetDisksError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDisksError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDisksError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetDisksError::OperationFailure(err.msg))
}
"ServiceException" => return RusotoError::Service(GetDisksError::Service(err.msg)),
"UnauthenticatedException" => {
return RusotoError::Service(GetDisksError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDisksError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDisksError {
fn description(&self) -> &str {
match *self {
GetDisksError::AccessDenied(ref cause) => cause,
GetDisksError::AccountSetupInProgress(ref cause) => cause,
GetDisksError::InvalidInput(ref cause) => cause,
GetDisksError::NotFound(ref cause) => cause,
GetDisksError::OperationFailure(ref cause) => cause,
GetDisksError::Service(ref cause) => cause,
GetDisksError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDomainError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetDomainError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDomainError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetDomainError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetDomainError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDomainError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDomainError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetDomainError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetDomainError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetDomainError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDomainError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDomainError {
fn description(&self) -> &str {
match *self {
GetDomainError::AccessDenied(ref cause) => cause,
GetDomainError::AccountSetupInProgress(ref cause) => cause,
GetDomainError::InvalidInput(ref cause) => cause,
GetDomainError::NotFound(ref cause) => cause,
GetDomainError::OperationFailure(ref cause) => cause,
GetDomainError::Service(ref cause) => cause,
GetDomainError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDomainsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetDomainsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDomainsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetDomainsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetDomainsError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetDomainsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetDomainsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetDomainsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetDomainsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetDomainsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDomainsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDomainsError {
fn description(&self) -> &str {
match *self {
GetDomainsError::AccessDenied(ref cause) => cause,
GetDomainsError::AccountSetupInProgress(ref cause) => cause,
GetDomainsError::InvalidInput(ref cause) => cause,
GetDomainsError::NotFound(ref cause) => cause,
GetDomainsError::OperationFailure(ref cause) => cause,
GetDomainsError::Service(ref cause) => cause,
GetDomainsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetExportSnapshotRecordsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetExportSnapshotRecordsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetExportSnapshotRecordsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetExportSnapshotRecordsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetExportSnapshotRecordsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetExportSnapshotRecordsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetExportSnapshotRecordsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetExportSnapshotRecordsError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetExportSnapshotRecordsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetExportSnapshotRecordsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetExportSnapshotRecordsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetExportSnapshotRecordsError {
fn description(&self) -> &str {
match *self {
GetExportSnapshotRecordsError::AccessDenied(ref cause) => cause,
GetExportSnapshotRecordsError::AccountSetupInProgress(ref cause) => cause,
GetExportSnapshotRecordsError::InvalidInput(ref cause) => cause,
GetExportSnapshotRecordsError::NotFound(ref cause) => cause,
GetExportSnapshotRecordsError::OperationFailure(ref cause) => cause,
GetExportSnapshotRecordsError::Service(ref cause) => cause,
GetExportSnapshotRecordsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstanceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetInstanceError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetInstanceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstanceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetInstanceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstanceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceError {
fn description(&self) -> &str {
match *self {
GetInstanceError::AccessDenied(ref cause) => cause,
GetInstanceError::AccountSetupInProgress(ref cause) => cause,
GetInstanceError::InvalidInput(ref cause) => cause,
GetInstanceError::NotFound(ref cause) => cause,
GetInstanceError::OperationFailure(ref cause) => cause,
GetInstanceError::Service(ref cause) => cause,
GetInstanceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceAccessDetailsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstanceAccessDetailsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceAccessDetailsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstanceAccessDetailsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetInstanceAccessDetailsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetInstanceAccessDetailsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceAccessDetailsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstanceAccessDetailsError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetInstanceAccessDetailsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstanceAccessDetailsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceAccessDetailsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceAccessDetailsError {
fn description(&self) -> &str {
match *self {
GetInstanceAccessDetailsError::AccessDenied(ref cause) => cause,
GetInstanceAccessDetailsError::AccountSetupInProgress(ref cause) => cause,
GetInstanceAccessDetailsError::InvalidInput(ref cause) => cause,
GetInstanceAccessDetailsError::NotFound(ref cause) => cause,
GetInstanceAccessDetailsError::OperationFailure(ref cause) => cause,
GetInstanceAccessDetailsError::Service(ref cause) => cause,
GetInstanceAccessDetailsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceMetricDataError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstanceMetricDataError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceMetricDataError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstanceMetricDataError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetInstanceMetricDataError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetInstanceMetricDataError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceMetricDataError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstanceMetricDataError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetInstanceMetricDataError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstanceMetricDataError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceMetricDataError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceMetricDataError {
fn description(&self) -> &str {
match *self {
GetInstanceMetricDataError::AccessDenied(ref cause) => cause,
GetInstanceMetricDataError::AccountSetupInProgress(ref cause) => cause,
GetInstanceMetricDataError::InvalidInput(ref cause) => cause,
GetInstanceMetricDataError::NotFound(ref cause) => cause,
GetInstanceMetricDataError::OperationFailure(ref cause) => cause,
GetInstanceMetricDataError::Service(ref cause) => cause,
GetInstanceMetricDataError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstancePortStatesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstancePortStatesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstancePortStatesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstancePortStatesError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetInstancePortStatesError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetInstancePortStatesError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstancePortStatesError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstancePortStatesError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetInstancePortStatesError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstancePortStatesError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstancePortStatesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstancePortStatesError {
fn description(&self) -> &str {
match *self {
GetInstancePortStatesError::AccessDenied(ref cause) => cause,
GetInstancePortStatesError::AccountSetupInProgress(ref cause) => cause,
GetInstancePortStatesError::InvalidInput(ref cause) => cause,
GetInstancePortStatesError::NotFound(ref cause) => cause,
GetInstancePortStatesError::OperationFailure(ref cause) => cause,
GetInstancePortStatesError::Service(ref cause) => cause,
GetInstancePortStatesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstanceSnapshotError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstanceSnapshotError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetInstanceSnapshotError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetInstanceSnapshotError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceSnapshotError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstanceSnapshotError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetInstanceSnapshotError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstanceSnapshotError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceSnapshotError {
fn description(&self) -> &str {
match *self {
GetInstanceSnapshotError::AccessDenied(ref cause) => cause,
GetInstanceSnapshotError::AccountSetupInProgress(ref cause) => cause,
GetInstanceSnapshotError::InvalidInput(ref cause) => cause,
GetInstanceSnapshotError::NotFound(ref cause) => cause,
GetInstanceSnapshotError::OperationFailure(ref cause) => cause,
GetInstanceSnapshotError::Service(ref cause) => cause,
GetInstanceSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceSnapshotsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstanceSnapshotsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceSnapshotsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstanceSnapshotsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetInstanceSnapshotsError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetInstanceSnapshotsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceSnapshotsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstanceSnapshotsError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetInstanceSnapshotsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstanceSnapshotsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceSnapshotsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceSnapshotsError {
fn description(&self) -> &str {
match *self {
GetInstanceSnapshotsError::AccessDenied(ref cause) => cause,
GetInstanceSnapshotsError::AccountSetupInProgress(ref cause) => cause,
GetInstanceSnapshotsError::InvalidInput(ref cause) => cause,
GetInstanceSnapshotsError::NotFound(ref cause) => cause,
GetInstanceSnapshotsError::OperationFailure(ref cause) => cause,
GetInstanceSnapshotsError::Service(ref cause) => cause,
GetInstanceSnapshotsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstanceStateError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstanceStateError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstanceStateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstanceStateError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetInstanceStateError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetInstanceStateError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstanceStateError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstanceStateError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetInstanceStateError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstanceStateError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstanceStateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstanceStateError {
fn description(&self) -> &str {
match *self {
GetInstanceStateError::AccessDenied(ref cause) => cause,
GetInstanceStateError::AccountSetupInProgress(ref cause) => cause,
GetInstanceStateError::InvalidInput(ref cause) => cause,
GetInstanceStateError::NotFound(ref cause) => cause,
GetInstanceStateError::OperationFailure(ref cause) => cause,
GetInstanceStateError::Service(ref cause) => cause,
GetInstanceStateError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInstancesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetInstancesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInstancesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetInstancesError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetInstancesError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetInstancesError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetInstancesError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetInstancesError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetInstancesError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetInstancesError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInstancesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInstancesError {
fn description(&self) -> &str {
match *self {
GetInstancesError::AccessDenied(ref cause) => cause,
GetInstancesError::AccountSetupInProgress(ref cause) => cause,
GetInstancesError::InvalidInput(ref cause) => cause,
GetInstancesError::NotFound(ref cause) => cause,
GetInstancesError::OperationFailure(ref cause) => cause,
GetInstancesError::Service(ref cause) => cause,
GetInstancesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetKeyPairError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetKeyPairError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetKeyPairError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetKeyPairError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetKeyPairError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetKeyPairError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetKeyPairError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetKeyPairError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetKeyPairError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetKeyPairError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetKeyPairError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetKeyPairError {
fn description(&self) -> &str {
match *self {
GetKeyPairError::AccessDenied(ref cause) => cause,
GetKeyPairError::AccountSetupInProgress(ref cause) => cause,
GetKeyPairError::InvalidInput(ref cause) => cause,
GetKeyPairError::NotFound(ref cause) => cause,
GetKeyPairError::OperationFailure(ref cause) => cause,
GetKeyPairError::Service(ref cause) => cause,
GetKeyPairError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetKeyPairsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetKeyPairsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetKeyPairsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetKeyPairsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetKeyPairsError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetKeyPairsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetKeyPairsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetKeyPairsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetKeyPairsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetKeyPairsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetKeyPairsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetKeyPairsError {
fn description(&self) -> &str {
match *self {
GetKeyPairsError::AccessDenied(ref cause) => cause,
GetKeyPairsError::AccountSetupInProgress(ref cause) => cause,
GetKeyPairsError::InvalidInput(ref cause) => cause,
GetKeyPairsError::NotFound(ref cause) => cause,
GetKeyPairsError::OperationFailure(ref cause) => cause,
GetKeyPairsError::Service(ref cause) => cause,
GetKeyPairsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetLoadBalancerError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetLoadBalancerError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetLoadBalancerError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetLoadBalancerError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetLoadBalancerError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetLoadBalancerError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetLoadBalancerError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetLoadBalancerError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetLoadBalancerError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetLoadBalancerError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetLoadBalancerError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetLoadBalancerError {
fn description(&self) -> &str {
match *self {
GetLoadBalancerError::AccessDenied(ref cause) => cause,
GetLoadBalancerError::AccountSetupInProgress(ref cause) => cause,
GetLoadBalancerError::InvalidInput(ref cause) => cause,
GetLoadBalancerError::NotFound(ref cause) => cause,
GetLoadBalancerError::OperationFailure(ref cause) => cause,
GetLoadBalancerError::Service(ref cause) => cause,
GetLoadBalancerError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetLoadBalancerMetricDataError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetLoadBalancerMetricDataError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetLoadBalancerMetricDataError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetLoadBalancerMetricDataError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetLoadBalancerMetricDataError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetLoadBalancerMetricDataError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetLoadBalancerMetricDataError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetLoadBalancerMetricDataError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetLoadBalancerMetricDataError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetLoadBalancerMetricDataError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetLoadBalancerMetricDataError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetLoadBalancerMetricDataError {
fn description(&self) -> &str {
match *self {
GetLoadBalancerMetricDataError::AccessDenied(ref cause) => cause,
GetLoadBalancerMetricDataError::AccountSetupInProgress(ref cause) => cause,
GetLoadBalancerMetricDataError::InvalidInput(ref cause) => cause,
GetLoadBalancerMetricDataError::NotFound(ref cause) => cause,
GetLoadBalancerMetricDataError::OperationFailure(ref cause) => cause,
GetLoadBalancerMetricDataError::Service(ref cause) => cause,
GetLoadBalancerMetricDataError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetLoadBalancerTlsCertificatesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetLoadBalancerTlsCertificatesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetLoadBalancerTlsCertificatesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetLoadBalancerTlsCertificatesError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetLoadBalancerTlsCertificatesError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetLoadBalancerTlsCertificatesError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetLoadBalancerTlsCertificatesError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetLoadBalancerTlsCertificatesError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetLoadBalancerTlsCertificatesError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetLoadBalancerTlsCertificatesError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetLoadBalancerTlsCertificatesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetLoadBalancerTlsCertificatesError {
fn description(&self) -> &str {
match *self {
GetLoadBalancerTlsCertificatesError::AccessDenied(ref cause) => cause,
GetLoadBalancerTlsCertificatesError::AccountSetupInProgress(ref cause) => cause,
GetLoadBalancerTlsCertificatesError::InvalidInput(ref cause) => cause,
GetLoadBalancerTlsCertificatesError::NotFound(ref cause) => cause,
GetLoadBalancerTlsCertificatesError::OperationFailure(ref cause) => cause,
GetLoadBalancerTlsCertificatesError::Service(ref cause) => cause,
GetLoadBalancerTlsCertificatesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetLoadBalancersError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetLoadBalancersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetLoadBalancersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetLoadBalancersError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetLoadBalancersError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetLoadBalancersError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetLoadBalancersError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetLoadBalancersError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetLoadBalancersError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetLoadBalancersError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetLoadBalancersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetLoadBalancersError {
fn description(&self) -> &str {
match *self {
GetLoadBalancersError::AccessDenied(ref cause) => cause,
GetLoadBalancersError::AccountSetupInProgress(ref cause) => cause,
GetLoadBalancersError::InvalidInput(ref cause) => cause,
GetLoadBalancersError::NotFound(ref cause) => cause,
GetLoadBalancersError::OperationFailure(ref cause) => cause,
GetLoadBalancersError::Service(ref cause) => cause,
GetLoadBalancersError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetOperationError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetOperationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOperationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetOperationError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetOperationError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetOperationError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetOperationError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetOperationError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetOperationError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetOperationError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetOperationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetOperationError {
fn description(&self) -> &str {
match *self {
GetOperationError::AccessDenied(ref cause) => cause,
GetOperationError::AccountSetupInProgress(ref cause) => cause,
GetOperationError::InvalidInput(ref cause) => cause,
GetOperationError::NotFound(ref cause) => cause,
GetOperationError::OperationFailure(ref cause) => cause,
GetOperationError::Service(ref cause) => cause,
GetOperationError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetOperationsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetOperationsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOperationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetOperationsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetOperationsError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(GetOperationsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetOperationsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetOperationsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetOperationsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetOperationsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetOperationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetOperationsError {
fn description(&self) -> &str {
match *self {
GetOperationsError::AccessDenied(ref cause) => cause,
GetOperationsError::AccountSetupInProgress(ref cause) => cause,
GetOperationsError::InvalidInput(ref cause) => cause,
GetOperationsError::NotFound(ref cause) => cause,
GetOperationsError::OperationFailure(ref cause) => cause,
GetOperationsError::Service(ref cause) => cause,
GetOperationsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetOperationsForResourceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetOperationsForResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOperationsForResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetOperationsForResourceError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetOperationsForResourceError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetOperationsForResourceError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetOperationsForResourceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetOperationsForResourceError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetOperationsForResourceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetOperationsForResourceError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetOperationsForResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetOperationsForResourceError {
fn description(&self) -> &str {
match *self {
GetOperationsForResourceError::AccessDenied(ref cause) => cause,
GetOperationsForResourceError::AccountSetupInProgress(ref cause) => cause,
GetOperationsForResourceError::InvalidInput(ref cause) => cause,
GetOperationsForResourceError::NotFound(ref cause) => cause,
GetOperationsForResourceError::OperationFailure(ref cause) => cause,
GetOperationsForResourceError::Service(ref cause) => cause,
GetOperationsForResourceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRegionsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRegionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRegionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRegionsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetRegionsError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetRegionsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetRegionsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetRegionsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetRegionsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetRegionsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRegionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRegionsError {
fn description(&self) -> &str {
match *self {
GetRegionsError::AccessDenied(ref cause) => cause,
GetRegionsError::AccountSetupInProgress(ref cause) => cause,
GetRegionsError::InvalidInput(ref cause) => cause,
GetRegionsError::NotFound(ref cause) => cause,
GetRegionsError::OperationFailure(ref cause) => cause,
GetRegionsError::Service(ref cause) => cause,
GetRegionsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabaseError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabaseError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseError::NotFound(ref cause) => cause,
GetRelationalDatabaseError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseError::Service(ref cause) => cause,
GetRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseBlueprintsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseBlueprintsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseBlueprintsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
GetRelationalDatabaseBlueprintsError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseBlueprintsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
GetRelationalDatabaseBlueprintsError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseBlueprintsError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseBlueprintsError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseBlueprintsError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseBlueprintsError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseBlueprintsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseBlueprintsError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseBlueprintsError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseBlueprintsError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseBlueprintsError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseBlueprintsError::NotFound(ref cause) => cause,
GetRelationalDatabaseBlueprintsError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseBlueprintsError::Service(ref cause) => cause,
GetRelationalDatabaseBlueprintsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseBundlesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseBundlesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseBundlesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabaseBundlesError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseBundlesError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabaseBundlesError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseBundlesError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseBundlesError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseBundlesError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseBundlesError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseBundlesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseBundlesError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseBundlesError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseBundlesError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseBundlesError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseBundlesError::NotFound(ref cause) => cause,
GetRelationalDatabaseBundlesError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseBundlesError::Service(ref cause) => cause,
GetRelationalDatabaseBundlesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseEventsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseEventsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseEventsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabaseEventsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseEventsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabaseEventsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseEventsError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseEventsError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseEventsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetRelationalDatabaseEventsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseEventsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseEventsError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseEventsError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseEventsError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseEventsError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseEventsError::NotFound(ref cause) => cause,
GetRelationalDatabaseEventsError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseEventsError::Service(ref cause) => cause,
GetRelationalDatabaseEventsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseLogEventsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseLogEventsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseLogEventsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabaseLogEventsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseLogEventsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabaseLogEventsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseLogEventsError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseLogEventsError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseLogEventsError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseLogEventsError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseLogEventsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseLogEventsError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseLogEventsError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseLogEventsError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseLogEventsError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseLogEventsError::NotFound(ref cause) => cause,
GetRelationalDatabaseLogEventsError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseLogEventsError::Service(ref cause) => cause,
GetRelationalDatabaseLogEventsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseLogStreamsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseLogStreamsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseLogStreamsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
GetRelationalDatabaseLogStreamsError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseLogStreamsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
GetRelationalDatabaseLogStreamsError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseLogStreamsError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseLogStreamsError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseLogStreamsError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseLogStreamsError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseLogStreamsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseLogStreamsError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseLogStreamsError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseLogStreamsError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseLogStreamsError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseLogStreamsError::NotFound(ref cause) => cause,
GetRelationalDatabaseLogStreamsError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseLogStreamsError::Service(ref cause) => cause,
GetRelationalDatabaseLogStreamsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseMasterUserPasswordError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseMasterUserPasswordError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseMasterUserPasswordError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::AccountSetupInProgress(
err.msg,
),
)
}
"InvalidInputException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::NotFound(err.msg),
)
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::Service(err.msg),
)
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseMasterUserPasswordError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseMasterUserPasswordError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseMasterUserPasswordError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseMasterUserPasswordError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseMasterUserPasswordError::AccountSetupInProgress(ref cause) => {
cause
}
GetRelationalDatabaseMasterUserPasswordError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseMasterUserPasswordError::NotFound(ref cause) => cause,
GetRelationalDatabaseMasterUserPasswordError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseMasterUserPasswordError::Service(ref cause) => cause,
GetRelationalDatabaseMasterUserPasswordError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseMetricDataError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseMetricDataError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseMetricDataError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
GetRelationalDatabaseMetricDataError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseMetricDataError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
GetRelationalDatabaseMetricDataError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseMetricDataError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseMetricDataError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseMetricDataError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseMetricDataError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseMetricDataError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseMetricDataError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseMetricDataError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseMetricDataError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseMetricDataError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseMetricDataError::NotFound(ref cause) => cause,
GetRelationalDatabaseMetricDataError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseMetricDataError::Service(ref cause) => cause,
GetRelationalDatabaseMetricDataError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseParametersError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseParametersError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseParametersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
GetRelationalDatabaseParametersError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseParametersError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
GetRelationalDatabaseParametersError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseParametersError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseParametersError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseParametersError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseParametersError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseParametersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseParametersError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseParametersError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseParametersError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseParametersError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseParametersError::NotFound(ref cause) => cause,
GetRelationalDatabaseParametersError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseParametersError::Service(ref cause) => cause,
GetRelationalDatabaseParametersError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseSnapshotError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseSnapshotError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseSnapshotError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseSnapshotError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseSnapshotError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseSnapshotError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseSnapshotError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseSnapshotError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseSnapshotError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseSnapshotError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseSnapshotError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseSnapshotError::NotFound(ref cause) => cause,
GetRelationalDatabaseSnapshotError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseSnapshotError::Service(ref cause) => cause,
GetRelationalDatabaseSnapshotError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabaseSnapshotsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabaseSnapshotsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetRelationalDatabaseSnapshotsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabaseSnapshotsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotsError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
GetRelationalDatabaseSnapshotsError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabaseSnapshotsError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
GetRelationalDatabaseSnapshotsError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabaseSnapshotsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabaseSnapshotsError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabaseSnapshotsError::AccessDenied(ref cause) => cause,
GetRelationalDatabaseSnapshotsError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabaseSnapshotsError::InvalidInput(ref cause) => cause,
GetRelationalDatabaseSnapshotsError::NotFound(ref cause) => cause,
GetRelationalDatabaseSnapshotsError::OperationFailure(ref cause) => cause,
GetRelationalDatabaseSnapshotsError::Service(ref cause) => cause,
GetRelationalDatabaseSnapshotsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetRelationalDatabasesError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetRelationalDatabasesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetRelationalDatabasesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetRelationalDatabasesError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
GetRelationalDatabasesError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(GetRelationalDatabasesError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetRelationalDatabasesError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetRelationalDatabasesError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(GetRelationalDatabasesError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetRelationalDatabasesError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetRelationalDatabasesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetRelationalDatabasesError {
fn description(&self) -> &str {
match *self {
GetRelationalDatabasesError::AccessDenied(ref cause) => cause,
GetRelationalDatabasesError::AccountSetupInProgress(ref cause) => cause,
GetRelationalDatabasesError::InvalidInput(ref cause) => cause,
GetRelationalDatabasesError::NotFound(ref cause) => cause,
GetRelationalDatabasesError::OperationFailure(ref cause) => cause,
GetRelationalDatabasesError::Service(ref cause) => cause,
GetRelationalDatabasesError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetStaticIpError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetStaticIpError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetStaticIpError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetStaticIpError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetStaticIpError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetStaticIpError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetStaticIpError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetStaticIpError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetStaticIpError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetStaticIpError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetStaticIpError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetStaticIpError {
fn description(&self) -> &str {
match *self {
GetStaticIpError::AccessDenied(ref cause) => cause,
GetStaticIpError::AccountSetupInProgress(ref cause) => cause,
GetStaticIpError::InvalidInput(ref cause) => cause,
GetStaticIpError::NotFound(ref cause) => cause,
GetStaticIpError::OperationFailure(ref cause) => cause,
GetStaticIpError::Service(ref cause) => cause,
GetStaticIpError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetStaticIpsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl GetStaticIpsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetStaticIpsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(GetStaticIpsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(GetStaticIpsError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(GetStaticIpsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(GetStaticIpsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(GetStaticIpsError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(GetStaticIpsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(GetStaticIpsError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetStaticIpsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetStaticIpsError {
fn description(&self) -> &str {
match *self {
GetStaticIpsError::AccessDenied(ref cause) => cause,
GetStaticIpsError::AccountSetupInProgress(ref cause) => cause,
GetStaticIpsError::InvalidInput(ref cause) => cause,
GetStaticIpsError::NotFound(ref cause) => cause,
GetStaticIpsError::OperationFailure(ref cause) => cause,
GetStaticIpsError::Service(ref cause) => cause,
GetStaticIpsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ImportKeyPairError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl ImportKeyPairError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ImportKeyPairError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(ImportKeyPairError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(ImportKeyPairError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(ImportKeyPairError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ImportKeyPairError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(ImportKeyPairError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(ImportKeyPairError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(ImportKeyPairError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ImportKeyPairError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ImportKeyPairError {
fn description(&self) -> &str {
match *self {
ImportKeyPairError::AccessDenied(ref cause) => cause,
ImportKeyPairError::AccountSetupInProgress(ref cause) => cause,
ImportKeyPairError::InvalidInput(ref cause) => cause,
ImportKeyPairError::NotFound(ref cause) => cause,
ImportKeyPairError::OperationFailure(ref cause) => cause,
ImportKeyPairError::Service(ref cause) => cause,
ImportKeyPairError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum IsVpcPeeredError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl IsVpcPeeredError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<IsVpcPeeredError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(IsVpcPeeredError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(IsVpcPeeredError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(IsVpcPeeredError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(IsVpcPeeredError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(IsVpcPeeredError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(IsVpcPeeredError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(IsVpcPeeredError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for IsVpcPeeredError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for IsVpcPeeredError {
fn description(&self) -> &str {
match *self {
IsVpcPeeredError::AccessDenied(ref cause) => cause,
IsVpcPeeredError::AccountSetupInProgress(ref cause) => cause,
IsVpcPeeredError::InvalidInput(ref cause) => cause,
IsVpcPeeredError::NotFound(ref cause) => cause,
IsVpcPeeredError::OperationFailure(ref cause) => cause,
IsVpcPeeredError::Service(ref cause) => cause,
IsVpcPeeredError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum OpenInstancePublicPortsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl OpenInstancePublicPortsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<OpenInstancePublicPortsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(OpenInstancePublicPortsError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
OpenInstancePublicPortsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(OpenInstancePublicPortsError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(OpenInstancePublicPortsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(OpenInstancePublicPortsError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(OpenInstancePublicPortsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(OpenInstancePublicPortsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for OpenInstancePublicPortsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for OpenInstancePublicPortsError {
fn description(&self) -> &str {
match *self {
OpenInstancePublicPortsError::AccessDenied(ref cause) => cause,
OpenInstancePublicPortsError::AccountSetupInProgress(ref cause) => cause,
OpenInstancePublicPortsError::InvalidInput(ref cause) => cause,
OpenInstancePublicPortsError::NotFound(ref cause) => cause,
OpenInstancePublicPortsError::OperationFailure(ref cause) => cause,
OpenInstancePublicPortsError::Service(ref cause) => cause,
OpenInstancePublicPortsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PeerVpcError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl PeerVpcError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PeerVpcError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(PeerVpcError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(PeerVpcError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(PeerVpcError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(PeerVpcError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(PeerVpcError::OperationFailure(err.msg))
}
"ServiceException" => return RusotoError::Service(PeerVpcError::Service(err.msg)),
"UnauthenticatedException" => {
return RusotoError::Service(PeerVpcError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PeerVpcError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PeerVpcError {
fn description(&self) -> &str {
match *self {
PeerVpcError::AccessDenied(ref cause) => cause,
PeerVpcError::AccountSetupInProgress(ref cause) => cause,
PeerVpcError::InvalidInput(ref cause) => cause,
PeerVpcError::NotFound(ref cause) => cause,
PeerVpcError::OperationFailure(ref cause) => cause,
PeerVpcError::Service(ref cause) => cause,
PeerVpcError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PutInstancePublicPortsError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl PutInstancePublicPortsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PutInstancePublicPortsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(PutInstancePublicPortsError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
PutInstancePublicPortsError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(PutInstancePublicPortsError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(PutInstancePublicPortsError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(PutInstancePublicPortsError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(PutInstancePublicPortsError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(PutInstancePublicPortsError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PutInstancePublicPortsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PutInstancePublicPortsError {
fn description(&self) -> &str {
match *self {
PutInstancePublicPortsError::AccessDenied(ref cause) => cause,
PutInstancePublicPortsError::AccountSetupInProgress(ref cause) => cause,
PutInstancePublicPortsError::InvalidInput(ref cause) => cause,
PutInstancePublicPortsError::NotFound(ref cause) => cause,
PutInstancePublicPortsError::OperationFailure(ref cause) => cause,
PutInstancePublicPortsError::Service(ref cause) => cause,
PutInstancePublicPortsError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RebootInstanceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl RebootInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RebootInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(RebootInstanceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(RebootInstanceError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(RebootInstanceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(RebootInstanceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(RebootInstanceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(RebootInstanceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(RebootInstanceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RebootInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RebootInstanceError {
fn description(&self) -> &str {
match *self {
RebootInstanceError::AccessDenied(ref cause) => cause,
RebootInstanceError::AccountSetupInProgress(ref cause) => cause,
RebootInstanceError::InvalidInput(ref cause) => cause,
RebootInstanceError::NotFound(ref cause) => cause,
RebootInstanceError::OperationFailure(ref cause) => cause,
RebootInstanceError::Service(ref cause) => cause,
RebootInstanceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RebootRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl RebootRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RebootRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(RebootRelationalDatabaseError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
RebootRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(RebootRelationalDatabaseError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(RebootRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(RebootRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(RebootRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(RebootRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RebootRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RebootRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
RebootRelationalDatabaseError::AccessDenied(ref cause) => cause,
RebootRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
RebootRelationalDatabaseError::InvalidInput(ref cause) => cause,
RebootRelationalDatabaseError::NotFound(ref cause) => cause,
RebootRelationalDatabaseError::OperationFailure(ref cause) => cause,
RebootRelationalDatabaseError::Service(ref cause) => cause,
RebootRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ReleaseStaticIpError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl ReleaseStaticIpError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ReleaseStaticIpError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(ReleaseStaticIpError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(ReleaseStaticIpError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(ReleaseStaticIpError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(ReleaseStaticIpError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(ReleaseStaticIpError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(ReleaseStaticIpError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(ReleaseStaticIpError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ReleaseStaticIpError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ReleaseStaticIpError {
fn description(&self) -> &str {
match *self {
ReleaseStaticIpError::AccessDenied(ref cause) => cause,
ReleaseStaticIpError::AccountSetupInProgress(ref cause) => cause,
ReleaseStaticIpError::InvalidInput(ref cause) => cause,
ReleaseStaticIpError::NotFound(ref cause) => cause,
ReleaseStaticIpError::OperationFailure(ref cause) => cause,
ReleaseStaticIpError::Service(ref cause) => cause,
ReleaseStaticIpError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartInstanceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl StartInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(StartInstanceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(StartInstanceError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(StartInstanceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(StartInstanceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(StartInstanceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(StartInstanceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(StartInstanceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartInstanceError {
fn description(&self) -> &str {
match *self {
StartInstanceError::AccessDenied(ref cause) => cause,
StartInstanceError::AccountSetupInProgress(ref cause) => cause,
StartInstanceError::InvalidInput(ref cause) => cause,
StartInstanceError::NotFound(ref cause) => cause,
StartInstanceError::OperationFailure(ref cause) => cause,
StartInstanceError::Service(ref cause) => cause,
StartInstanceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl StartRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(StartRelationalDatabaseError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
StartRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(StartRelationalDatabaseError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(StartRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(StartRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(StartRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(StartRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
StartRelationalDatabaseError::AccessDenied(ref cause) => cause,
StartRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
StartRelationalDatabaseError::InvalidInput(ref cause) => cause,
StartRelationalDatabaseError::NotFound(ref cause) => cause,
StartRelationalDatabaseError::OperationFailure(ref cause) => cause,
StartRelationalDatabaseError::Service(ref cause) => cause,
StartRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopInstanceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl StopInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(StopInstanceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(StopInstanceError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(StopInstanceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(StopInstanceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(StopInstanceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(StopInstanceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(StopInstanceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopInstanceError {
fn description(&self) -> &str {
match *self {
StopInstanceError::AccessDenied(ref cause) => cause,
StopInstanceError::AccountSetupInProgress(ref cause) => cause,
StopInstanceError::InvalidInput(ref cause) => cause,
StopInstanceError::NotFound(ref cause) => cause,
StopInstanceError::OperationFailure(ref cause) => cause,
StopInstanceError::Service(ref cause) => cause,
StopInstanceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl StopRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(StopRelationalDatabaseError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
StopRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(StopRelationalDatabaseError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(StopRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(StopRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(StopRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(StopRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
StopRelationalDatabaseError::AccessDenied(ref cause) => cause,
StopRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
StopRelationalDatabaseError::InvalidInput(ref cause) => cause,
StopRelationalDatabaseError::NotFound(ref cause) => cause,
StopRelationalDatabaseError::OperationFailure(ref cause) => cause,
StopRelationalDatabaseError::Service(ref cause) => cause,
StopRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum TagResourceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl TagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TagResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(TagResourceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(TagResourceError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(TagResourceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(TagResourceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(TagResourceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(TagResourceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(TagResourceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for TagResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for TagResourceError {
fn description(&self) -> &str {
match *self {
TagResourceError::AccessDenied(ref cause) => cause,
TagResourceError::AccountSetupInProgress(ref cause) => cause,
TagResourceError::InvalidInput(ref cause) => cause,
TagResourceError::NotFound(ref cause) => cause,
TagResourceError::OperationFailure(ref cause) => cause,
TagResourceError::Service(ref cause) => cause,
TagResourceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UnpeerVpcError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl UnpeerVpcError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UnpeerVpcError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(UnpeerVpcError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(UnpeerVpcError::AccountSetupInProgress(err.msg))
}
"InvalidInputException" => {
return RusotoError::Service(UnpeerVpcError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UnpeerVpcError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(UnpeerVpcError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(UnpeerVpcError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(UnpeerVpcError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UnpeerVpcError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UnpeerVpcError {
fn description(&self) -> &str {
match *self {
UnpeerVpcError::AccessDenied(ref cause) => cause,
UnpeerVpcError::AccountSetupInProgress(ref cause) => cause,
UnpeerVpcError::InvalidInput(ref cause) => cause,
UnpeerVpcError::NotFound(ref cause) => cause,
UnpeerVpcError::OperationFailure(ref cause) => cause,
UnpeerVpcError::Service(ref cause) => cause,
UnpeerVpcError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UntagResourceError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl UntagResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UntagResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(UntagResourceError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(UntagResourceError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(UntagResourceError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UntagResourceError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(UntagResourceError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(UntagResourceError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(UntagResourceError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UntagResourceError {
fn description(&self) -> &str {
match *self {
UntagResourceError::AccessDenied(ref cause) => cause,
UntagResourceError::AccountSetupInProgress(ref cause) => cause,
UntagResourceError::InvalidInput(ref cause) => cause,
UntagResourceError::NotFound(ref cause) => cause,
UntagResourceError::OperationFailure(ref cause) => cause,
UntagResourceError::Service(ref cause) => cause,
UntagResourceError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDomainEntryError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl UpdateDomainEntryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDomainEntryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(UpdateDomainEntryError::AccessDenied(err.msg))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(UpdateDomainEntryError::AccountSetupInProgress(
err.msg,
))
}
"InvalidInputException" => {
return RusotoError::Service(UpdateDomainEntryError::InvalidInput(err.msg))
}
"NotFoundException" => {
return RusotoError::Service(UpdateDomainEntryError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(UpdateDomainEntryError::OperationFailure(err.msg))
}
"ServiceException" => {
return RusotoError::Service(UpdateDomainEntryError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(UpdateDomainEntryError::Unauthenticated(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDomainEntryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDomainEntryError {
fn description(&self) -> &str {
match *self {
UpdateDomainEntryError::AccessDenied(ref cause) => cause,
UpdateDomainEntryError::AccountSetupInProgress(ref cause) => cause,
UpdateDomainEntryError::InvalidInput(ref cause) => cause,
UpdateDomainEntryError::NotFound(ref cause) => cause,
UpdateDomainEntryError::OperationFailure(ref cause) => cause,
UpdateDomainEntryError::Service(ref cause) => cause,
UpdateDomainEntryError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateLoadBalancerAttributeError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl UpdateLoadBalancerAttributeError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateLoadBalancerAttributeError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(UpdateLoadBalancerAttributeError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
UpdateLoadBalancerAttributeError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(UpdateLoadBalancerAttributeError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(UpdateLoadBalancerAttributeError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
UpdateLoadBalancerAttributeError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(UpdateLoadBalancerAttributeError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(UpdateLoadBalancerAttributeError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateLoadBalancerAttributeError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateLoadBalancerAttributeError {
fn description(&self) -> &str {
match *self {
UpdateLoadBalancerAttributeError::AccessDenied(ref cause) => cause,
UpdateLoadBalancerAttributeError::AccountSetupInProgress(ref cause) => cause,
UpdateLoadBalancerAttributeError::InvalidInput(ref cause) => cause,
UpdateLoadBalancerAttributeError::NotFound(ref cause) => cause,
UpdateLoadBalancerAttributeError::OperationFailure(ref cause) => cause,
UpdateLoadBalancerAttributeError::Service(ref cause) => cause,
UpdateLoadBalancerAttributeError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateRelationalDatabaseError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl UpdateRelationalDatabaseError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateRelationalDatabaseError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(UpdateRelationalDatabaseError::AccessDenied(
err.msg,
))
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
UpdateRelationalDatabaseError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(UpdateRelationalDatabaseError::InvalidInput(
err.msg,
))
}
"NotFoundException" => {
return RusotoError::Service(UpdateRelationalDatabaseError::NotFound(err.msg))
}
"OperationFailureException" => {
return RusotoError::Service(UpdateRelationalDatabaseError::OperationFailure(
err.msg,
))
}
"ServiceException" => {
return RusotoError::Service(UpdateRelationalDatabaseError::Service(err.msg))
}
"UnauthenticatedException" => {
return RusotoError::Service(UpdateRelationalDatabaseError::Unauthenticated(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateRelationalDatabaseError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateRelationalDatabaseError {
fn description(&self) -> &str {
match *self {
UpdateRelationalDatabaseError::AccessDenied(ref cause) => cause,
UpdateRelationalDatabaseError::AccountSetupInProgress(ref cause) => cause,
UpdateRelationalDatabaseError::InvalidInput(ref cause) => cause,
UpdateRelationalDatabaseError::NotFound(ref cause) => cause,
UpdateRelationalDatabaseError::OperationFailure(ref cause) => cause,
UpdateRelationalDatabaseError::Service(ref cause) => cause,
UpdateRelationalDatabaseError::Unauthenticated(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateRelationalDatabaseParametersError {
AccessDenied(String),
AccountSetupInProgress(String),
InvalidInput(String),
NotFound(String),
OperationFailure(String),
Service(String),
Unauthenticated(String),
}
impl UpdateRelationalDatabaseParametersError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateRelationalDatabaseParametersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AccessDeniedException" => {
return RusotoError::Service(
UpdateRelationalDatabaseParametersError::AccessDenied(err.msg),
)
}
"AccountSetupInProgressException" => {
return RusotoError::Service(
UpdateRelationalDatabaseParametersError::AccountSetupInProgress(err.msg),
)
}
"InvalidInputException" => {
return RusotoError::Service(
UpdateRelationalDatabaseParametersError::InvalidInput(err.msg),
)
}
"NotFoundException" => {
return RusotoError::Service(UpdateRelationalDatabaseParametersError::NotFound(
err.msg,
))
}
"OperationFailureException" => {
return RusotoError::Service(
UpdateRelationalDatabaseParametersError::OperationFailure(err.msg),
)
}
"ServiceException" => {
return RusotoError::Service(UpdateRelationalDatabaseParametersError::Service(
err.msg,
))
}
"UnauthenticatedException" => {
return RusotoError::Service(
UpdateRelationalDatabaseParametersError::Unauthenticated(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateRelationalDatabaseParametersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateRelationalDatabaseParametersError {
fn description(&self) -> &str {
match *self {
UpdateRelationalDatabaseParametersError::AccessDenied(ref cause) => cause,
UpdateRelationalDatabaseParametersError::AccountSetupInProgress(ref cause) => cause,
UpdateRelationalDatabaseParametersError::InvalidInput(ref cause) => cause,
UpdateRelationalDatabaseParametersError::NotFound(ref cause) => cause,
UpdateRelationalDatabaseParametersError::OperationFailure(ref cause) => cause,
UpdateRelationalDatabaseParametersError::Service(ref cause) => cause,
UpdateRelationalDatabaseParametersError::Unauthenticated(ref cause) => cause,
}
}
}
pub trait Lightsail {
fn allocate_static_ip(
&self,
input: AllocateStaticIpRequest,
) -> RusotoFuture<AllocateStaticIpResult, AllocateStaticIpError>;
fn attach_disk(
&self,
input: AttachDiskRequest,
) -> RusotoFuture<AttachDiskResult, AttachDiskError>;
fn attach_instances_to_load_balancer(
&self,
input: AttachInstancesToLoadBalancerRequest,
) -> RusotoFuture<AttachInstancesToLoadBalancerResult, AttachInstancesToLoadBalancerError>;
fn attach_load_balancer_tls_certificate(
&self,
input: AttachLoadBalancerTlsCertificateRequest,
) -> RusotoFuture<AttachLoadBalancerTlsCertificateResult, AttachLoadBalancerTlsCertificateError>;
fn attach_static_ip(
&self,
input: AttachStaticIpRequest,
) -> RusotoFuture<AttachStaticIpResult, AttachStaticIpError>;
fn close_instance_public_ports(
&self,
input: CloseInstancePublicPortsRequest,
) -> RusotoFuture<CloseInstancePublicPortsResult, CloseInstancePublicPortsError>;
fn copy_snapshot(
&self,
input: CopySnapshotRequest,
) -> RusotoFuture<CopySnapshotResult, CopySnapshotError>;
fn create_cloud_formation_stack(
&self,
input: CreateCloudFormationStackRequest,
) -> RusotoFuture<CreateCloudFormationStackResult, CreateCloudFormationStackError>;
fn create_disk(
&self,
input: CreateDiskRequest,
) -> RusotoFuture<CreateDiskResult, CreateDiskError>;
fn create_disk_from_snapshot(
&self,
input: CreateDiskFromSnapshotRequest,
) -> RusotoFuture<CreateDiskFromSnapshotResult, CreateDiskFromSnapshotError>;
fn create_disk_snapshot(
&self,
input: CreateDiskSnapshotRequest,
) -> RusotoFuture<CreateDiskSnapshotResult, CreateDiskSnapshotError>;
fn create_domain(
&self,
input: CreateDomainRequest,
) -> RusotoFuture<CreateDomainResult, CreateDomainError>;
fn create_domain_entry(
&self,
input: CreateDomainEntryRequest,
) -> RusotoFuture<CreateDomainEntryResult, CreateDomainEntryError>;
fn create_instance_snapshot(
&self,
input: CreateInstanceSnapshotRequest,
) -> RusotoFuture<CreateInstanceSnapshotResult, CreateInstanceSnapshotError>;
fn create_instances(
&self,
input: CreateInstancesRequest,
) -> RusotoFuture<CreateInstancesResult, CreateInstancesError>;
fn create_instances_from_snapshot(
&self,
input: CreateInstancesFromSnapshotRequest,
) -> RusotoFuture<CreateInstancesFromSnapshotResult, CreateInstancesFromSnapshotError>;
fn create_key_pair(
&self,
input: CreateKeyPairRequest,
) -> RusotoFuture<CreateKeyPairResult, CreateKeyPairError>;
fn create_load_balancer(
&self,
input: CreateLoadBalancerRequest,
) -> RusotoFuture<CreateLoadBalancerResult, CreateLoadBalancerError>;
fn create_load_balancer_tls_certificate(
&self,
input: CreateLoadBalancerTlsCertificateRequest,
) -> RusotoFuture<CreateLoadBalancerTlsCertificateResult, CreateLoadBalancerTlsCertificateError>;
fn create_relational_database(
&self,
input: CreateRelationalDatabaseRequest,
) -> RusotoFuture<CreateRelationalDatabaseResult, CreateRelationalDatabaseError>;
fn create_relational_database_from_snapshot(
&self,
input: CreateRelationalDatabaseFromSnapshotRequest,
) -> RusotoFuture<
CreateRelationalDatabaseFromSnapshotResult,
CreateRelationalDatabaseFromSnapshotError,
>;
fn create_relational_database_snapshot(
&self,
input: CreateRelationalDatabaseSnapshotRequest,
) -> RusotoFuture<CreateRelationalDatabaseSnapshotResult, CreateRelationalDatabaseSnapshotError>;
fn delete_disk(
&self,
input: DeleteDiskRequest,
) -> RusotoFuture<DeleteDiskResult, DeleteDiskError>;
fn delete_disk_snapshot(
&self,
input: DeleteDiskSnapshotRequest,
) -> RusotoFuture<DeleteDiskSnapshotResult, DeleteDiskSnapshotError>;
fn delete_domain(
&self,
input: DeleteDomainRequest,
) -> RusotoFuture<DeleteDomainResult, DeleteDomainError>;
fn delete_domain_entry(
&self,
input: DeleteDomainEntryRequest,
) -> RusotoFuture<DeleteDomainEntryResult, DeleteDomainEntryError>;
fn delete_instance(
&self,
input: DeleteInstanceRequest,
) -> RusotoFuture<DeleteInstanceResult, DeleteInstanceError>;
fn delete_instance_snapshot(
&self,
input: DeleteInstanceSnapshotRequest,
) -> RusotoFuture<DeleteInstanceSnapshotResult, DeleteInstanceSnapshotError>;
fn delete_key_pair(
&self,
input: DeleteKeyPairRequest,
) -> RusotoFuture<DeleteKeyPairResult, DeleteKeyPairError>;
fn delete_known_host_keys(
&self,
input: DeleteKnownHostKeysRequest,
) -> RusotoFuture<DeleteKnownHostKeysResult, DeleteKnownHostKeysError>;
fn delete_load_balancer(
&self,
input: DeleteLoadBalancerRequest,
) -> RusotoFuture<DeleteLoadBalancerResult, DeleteLoadBalancerError>;
fn delete_load_balancer_tls_certificate(
&self,
input: DeleteLoadBalancerTlsCertificateRequest,
) -> RusotoFuture<DeleteLoadBalancerTlsCertificateResult, DeleteLoadBalancerTlsCertificateError>;
fn delete_relational_database(
&self,
input: DeleteRelationalDatabaseRequest,
) -> RusotoFuture<DeleteRelationalDatabaseResult, DeleteRelationalDatabaseError>;
fn delete_relational_database_snapshot(
&self,
input: DeleteRelationalDatabaseSnapshotRequest,
) -> RusotoFuture<DeleteRelationalDatabaseSnapshotResult, DeleteRelationalDatabaseSnapshotError>;
fn detach_disk(
&self,
input: DetachDiskRequest,
) -> RusotoFuture<DetachDiskResult, DetachDiskError>;
fn detach_instances_from_load_balancer(
&self,
input: DetachInstancesFromLoadBalancerRequest,
) -> RusotoFuture<DetachInstancesFromLoadBalancerResult, DetachInstancesFromLoadBalancerError>;
fn detach_static_ip(
&self,
input: DetachStaticIpRequest,
) -> RusotoFuture<DetachStaticIpResult, DetachStaticIpError>;
fn download_default_key_pair(
&self,
) -> RusotoFuture<DownloadDefaultKeyPairResult, DownloadDefaultKeyPairError>;
fn export_snapshot(
&self,
input: ExportSnapshotRequest,
) -> RusotoFuture<ExportSnapshotResult, ExportSnapshotError>;
fn get_active_names(
&self,
input: GetActiveNamesRequest,
) -> RusotoFuture<GetActiveNamesResult, GetActiveNamesError>;
fn get_blueprints(
&self,
input: GetBlueprintsRequest,
) -> RusotoFuture<GetBlueprintsResult, GetBlueprintsError>;
fn get_bundles(
&self,
input: GetBundlesRequest,
) -> RusotoFuture<GetBundlesResult, GetBundlesError>;
fn get_cloud_formation_stack_records(
&self,
input: GetCloudFormationStackRecordsRequest,
) -> RusotoFuture<GetCloudFormationStackRecordsResult, GetCloudFormationStackRecordsError>;
fn get_disk(&self, input: GetDiskRequest) -> RusotoFuture<GetDiskResult, GetDiskError>;
fn get_disk_snapshot(
&self,
input: GetDiskSnapshotRequest,
) -> RusotoFuture<GetDiskSnapshotResult, GetDiskSnapshotError>;
fn get_disk_snapshots(
&self,
input: GetDiskSnapshotsRequest,
) -> RusotoFuture<GetDiskSnapshotsResult, GetDiskSnapshotsError>;
fn get_disks(&self, input: GetDisksRequest) -> RusotoFuture<GetDisksResult, GetDisksError>;
fn get_domain(&self, input: GetDomainRequest) -> RusotoFuture<GetDomainResult, GetDomainError>;
fn get_domains(
&self,
input: GetDomainsRequest,
) -> RusotoFuture<GetDomainsResult, GetDomainsError>;
fn get_export_snapshot_records(
&self,
input: GetExportSnapshotRecordsRequest,
) -> RusotoFuture<GetExportSnapshotRecordsResult, GetExportSnapshotRecordsError>;
fn get_instance(
&self,
input: GetInstanceRequest,
) -> RusotoFuture<GetInstanceResult, GetInstanceError>;
fn get_instance_access_details(
&self,
input: GetInstanceAccessDetailsRequest,
) -> RusotoFuture<GetInstanceAccessDetailsResult, GetInstanceAccessDetailsError>;
fn get_instance_metric_data(
&self,
input: GetInstanceMetricDataRequest,
) -> RusotoFuture<GetInstanceMetricDataResult, GetInstanceMetricDataError>;
fn get_instance_port_states(
&self,
input: GetInstancePortStatesRequest,
) -> RusotoFuture<GetInstancePortStatesResult, GetInstancePortStatesError>;
fn get_instance_snapshot(
&self,
input: GetInstanceSnapshotRequest,
) -> RusotoFuture<GetInstanceSnapshotResult, GetInstanceSnapshotError>;
fn get_instance_snapshots(
&self,
input: GetInstanceSnapshotsRequest,
) -> RusotoFuture<GetInstanceSnapshotsResult, GetInstanceSnapshotsError>;
fn get_instance_state(
&self,
input: GetInstanceStateRequest,
) -> RusotoFuture<GetInstanceStateResult, GetInstanceStateError>;
fn get_instances(
&self,
input: GetInstancesRequest,
) -> RusotoFuture<GetInstancesResult, GetInstancesError>;
fn get_key_pair(
&self,
input: GetKeyPairRequest,
) -> RusotoFuture<GetKeyPairResult, GetKeyPairError>;
fn get_key_pairs(
&self,
input: GetKeyPairsRequest,
) -> RusotoFuture<GetKeyPairsResult, GetKeyPairsError>;
fn get_load_balancer(
&self,
input: GetLoadBalancerRequest,
) -> RusotoFuture<GetLoadBalancerResult, GetLoadBalancerError>;
fn get_load_balancer_metric_data(
&self,
input: GetLoadBalancerMetricDataRequest,
) -> RusotoFuture<GetLoadBalancerMetricDataResult, GetLoadBalancerMetricDataError>;
fn get_load_balancer_tls_certificates(
&self,
input: GetLoadBalancerTlsCertificatesRequest,
) -> RusotoFuture<GetLoadBalancerTlsCertificatesResult, GetLoadBalancerTlsCertificatesError>;
fn get_load_balancers(
&self,
input: GetLoadBalancersRequest,
) -> RusotoFuture<GetLoadBalancersResult, GetLoadBalancersError>;
fn get_operation(
&self,
input: GetOperationRequest,
) -> RusotoFuture<GetOperationResult, GetOperationError>;
fn get_operations(
&self,
input: GetOperationsRequest,
) -> RusotoFuture<GetOperationsResult, GetOperationsError>;
fn get_operations_for_resource(
&self,
input: GetOperationsForResourceRequest,
) -> RusotoFuture<GetOperationsForResourceResult, GetOperationsForResourceError>;
fn get_regions(
&self,
input: GetRegionsRequest,
) -> RusotoFuture<GetRegionsResult, GetRegionsError>;
fn get_relational_database(
&self,
input: GetRelationalDatabaseRequest,
) -> RusotoFuture<GetRelationalDatabaseResult, GetRelationalDatabaseError>;
fn get_relational_database_blueprints(
&self,
input: GetRelationalDatabaseBlueprintsRequest,
) -> RusotoFuture<GetRelationalDatabaseBlueprintsResult, GetRelationalDatabaseBlueprintsError>;
fn get_relational_database_bundles(
&self,
input: GetRelationalDatabaseBundlesRequest,
) -> RusotoFuture<GetRelationalDatabaseBundlesResult, GetRelationalDatabaseBundlesError>;
fn get_relational_database_events(
&self,
input: GetRelationalDatabaseEventsRequest,
) -> RusotoFuture<GetRelationalDatabaseEventsResult, GetRelationalDatabaseEventsError>;
fn get_relational_database_log_events(
&self,
input: GetRelationalDatabaseLogEventsRequest,
) -> RusotoFuture<GetRelationalDatabaseLogEventsResult, GetRelationalDatabaseLogEventsError>;
fn get_relational_database_log_streams(
&self,
input: GetRelationalDatabaseLogStreamsRequest,
) -> RusotoFuture<GetRelationalDatabaseLogStreamsResult, GetRelationalDatabaseLogStreamsError>;
fn get_relational_database_master_user_password(
&self,
input: GetRelationalDatabaseMasterUserPasswordRequest,
) -> RusotoFuture<
GetRelationalDatabaseMasterUserPasswordResult,
GetRelationalDatabaseMasterUserPasswordError,
>;
fn get_relational_database_metric_data(
&self,
input: GetRelationalDatabaseMetricDataRequest,
) -> RusotoFuture<GetRelationalDatabaseMetricDataResult, GetRelationalDatabaseMetricDataError>;
fn get_relational_database_parameters(
&self,
input: GetRelationalDatabaseParametersRequest,
) -> RusotoFuture<GetRelationalDatabaseParametersResult, GetRelationalDatabaseParametersError>;
fn get_relational_database_snapshot(
&self,
input: GetRelationalDatabaseSnapshotRequest,
) -> RusotoFuture<GetRelationalDatabaseSnapshotResult, GetRelationalDatabaseSnapshotError>;
fn get_relational_database_snapshots(
&self,
input: GetRelationalDatabaseSnapshotsRequest,
) -> RusotoFuture<GetRelationalDatabaseSnapshotsResult, GetRelationalDatabaseSnapshotsError>;
fn get_relational_databases(
&self,
input: GetRelationalDatabasesRequest,
) -> RusotoFuture<GetRelationalDatabasesResult, GetRelationalDatabasesError>;
fn get_static_ip(
&self,
input: GetStaticIpRequest,
) -> RusotoFuture<GetStaticIpResult, GetStaticIpError>;
fn get_static_ips(
&self,
input: GetStaticIpsRequest,
) -> RusotoFuture<GetStaticIpsResult, GetStaticIpsError>;
fn import_key_pair(
&self,
input: ImportKeyPairRequest,
) -> RusotoFuture<ImportKeyPairResult, ImportKeyPairError>;
fn is_vpc_peered(&self) -> RusotoFuture<IsVpcPeeredResult, IsVpcPeeredError>;
fn open_instance_public_ports(
&self,
input: OpenInstancePublicPortsRequest,
) -> RusotoFuture<OpenInstancePublicPortsResult, OpenInstancePublicPortsError>;
fn peer_vpc(&self) -> RusotoFuture<PeerVpcResult, PeerVpcError>;
fn put_instance_public_ports(
&self,
input: PutInstancePublicPortsRequest,
) -> RusotoFuture<PutInstancePublicPortsResult, PutInstancePublicPortsError>;
fn reboot_instance(
&self,
input: RebootInstanceRequest,
) -> RusotoFuture<RebootInstanceResult, RebootInstanceError>;
fn reboot_relational_database(
&self,
input: RebootRelationalDatabaseRequest,
) -> RusotoFuture<RebootRelationalDatabaseResult, RebootRelationalDatabaseError>;
fn release_static_ip(
&self,
input: ReleaseStaticIpRequest,
) -> RusotoFuture<ReleaseStaticIpResult, ReleaseStaticIpError>;
fn start_instance(
&self,
input: StartInstanceRequest,
) -> RusotoFuture<StartInstanceResult, StartInstanceError>;
fn start_relational_database(
&self,
input: StartRelationalDatabaseRequest,
) -> RusotoFuture<StartRelationalDatabaseResult, StartRelationalDatabaseError>;
fn stop_instance(
&self,
input: StopInstanceRequest,
) -> RusotoFuture<StopInstanceResult, StopInstanceError>;
fn stop_relational_database(
&self,
input: StopRelationalDatabaseRequest,
) -> RusotoFuture<StopRelationalDatabaseResult, StopRelationalDatabaseError>;
fn tag_resource(
&self,
input: TagResourceRequest,
) -> RusotoFuture<TagResourceResult, TagResourceError>;
fn unpeer_vpc(&self) -> RusotoFuture<UnpeerVpcResult, UnpeerVpcError>;
fn untag_resource(
&self,
input: UntagResourceRequest,
) -> RusotoFuture<UntagResourceResult, UntagResourceError>;
fn update_domain_entry(
&self,
input: UpdateDomainEntryRequest,
) -> RusotoFuture<UpdateDomainEntryResult, UpdateDomainEntryError>;
fn update_load_balancer_attribute(
&self,
input: UpdateLoadBalancerAttributeRequest,
) -> RusotoFuture<UpdateLoadBalancerAttributeResult, UpdateLoadBalancerAttributeError>;
fn update_relational_database(
&self,
input: UpdateRelationalDatabaseRequest,
) -> RusotoFuture<UpdateRelationalDatabaseResult, UpdateRelationalDatabaseError>;
fn update_relational_database_parameters(
&self,
input: UpdateRelationalDatabaseParametersRequest,
) -> RusotoFuture<
UpdateRelationalDatabaseParametersResult,
UpdateRelationalDatabaseParametersError,
>;
}
#[derive(Clone)]
pub struct LightsailClient {
client: Client,
region: region::Region,
}
impl LightsailClient {
pub fn new(region: region::Region) -> LightsailClient {
LightsailClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> LightsailClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
{
LightsailClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
}
impl Lightsail for LightsailClient {
fn allocate_static_ip(
&self,
input: AllocateStaticIpRequest,
) -> RusotoFuture<AllocateStaticIpResult, AllocateStaticIpError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.AllocateStaticIp");
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::<AllocateStaticIpResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(AllocateStaticIpError::from_response(response))),
)
}
})
}
fn attach_disk(
&self,
input: AttachDiskRequest,
) -> RusotoFuture<AttachDiskResult, AttachDiskError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.AttachDisk");
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::<AttachDiskResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(AttachDiskError::from_response(response))),
)
}
})
}
fn attach_instances_to_load_balancer(
&self,
input: AttachInstancesToLoadBalancerRequest,
) -> RusotoFuture<AttachInstancesToLoadBalancerResult, AttachInstancesToLoadBalancerError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.AttachInstancesToLoadBalancer",
);
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::<AttachInstancesToLoadBalancerResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AttachInstancesToLoadBalancerError::from_response(response))
}))
}
})
}
fn attach_load_balancer_tls_certificate(
&self,
input: AttachLoadBalancerTlsCertificateRequest,
) -> RusotoFuture<AttachLoadBalancerTlsCertificateResult, AttachLoadBalancerTlsCertificateError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.AttachLoadBalancerTlsCertificate",
);
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::<AttachLoadBalancerTlsCertificateResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(AttachLoadBalancerTlsCertificateError::from_response(
response,
))
}))
}
})
}
fn attach_static_ip(
&self,
input: AttachStaticIpRequest,
) -> RusotoFuture<AttachStaticIpResult, AttachStaticIpError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.AttachStaticIp");
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::<AttachStaticIpResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(AttachStaticIpError::from_response(response))),
)
}
})
}
fn close_instance_public_ports(
&self,
input: CloseInstancePublicPortsRequest,
) -> RusotoFuture<CloseInstancePublicPortsResult, CloseInstancePublicPortsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CloseInstancePublicPorts",
);
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::<CloseInstancePublicPortsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CloseInstancePublicPortsError::from_response(response))
}))
}
})
}
fn copy_snapshot(
&self,
input: CopySnapshotRequest,
) -> RusotoFuture<CopySnapshotResult, CopySnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CopySnapshot");
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::<CopySnapshotResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CopySnapshotError::from_response(response))),
)
}
})
}
fn create_cloud_formation_stack(
&self,
input: CreateCloudFormationStackRequest,
) -> RusotoFuture<CreateCloudFormationStackResult, CreateCloudFormationStackError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CreateCloudFormationStack",
);
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::<CreateCloudFormationStackResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateCloudFormationStackError::from_response(response))
}))
}
})
}
fn create_disk(
&self,
input: CreateDiskRequest,
) -> RusotoFuture<CreateDiskResult, CreateDiskError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateDisk");
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::<CreateDiskResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDiskError::from_response(response))),
)
}
})
}
fn create_disk_from_snapshot(
&self,
input: CreateDiskFromSnapshotRequest,
) -> RusotoFuture<CreateDiskFromSnapshotResult, CreateDiskFromSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateDiskFromSnapshot");
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::<CreateDiskFromSnapshotResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateDiskFromSnapshotError::from_response(response))
}),
)
}
})
}
fn create_disk_snapshot(
&self,
input: CreateDiskSnapshotRequest,
) -> RusotoFuture<CreateDiskSnapshotResult, CreateDiskSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateDiskSnapshot");
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::<CreateDiskSnapshotResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDiskSnapshotError::from_response(response))),
)
}
})
}
fn create_domain(
&self,
input: CreateDomainRequest,
) -> RusotoFuture<CreateDomainResult, CreateDomainError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateDomain");
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::<CreateDomainResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDomainError::from_response(response))),
)
}
})
}
fn create_domain_entry(
&self,
input: CreateDomainEntryRequest,
) -> RusotoFuture<CreateDomainEntryResult, CreateDomainEntryError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateDomainEntry");
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::<CreateDomainEntryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDomainEntryError::from_response(response))),
)
}
})
}
fn create_instance_snapshot(
&self,
input: CreateInstanceSnapshotRequest,
) -> RusotoFuture<CreateInstanceSnapshotResult, CreateInstanceSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateInstanceSnapshot");
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::<CreateInstanceSnapshotResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateInstanceSnapshotError::from_response(response))
}),
)
}
})
}
fn create_instances(
&self,
input: CreateInstancesRequest,
) -> RusotoFuture<CreateInstancesResult, CreateInstancesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateInstances");
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::<CreateInstancesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateInstancesError::from_response(response))),
)
}
})
}
fn create_instances_from_snapshot(
&self,
input: CreateInstancesFromSnapshotRequest,
) -> RusotoFuture<CreateInstancesFromSnapshotResult, CreateInstancesFromSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CreateInstancesFromSnapshot",
);
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::<CreateInstancesFromSnapshotResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateInstancesFromSnapshotError::from_response(response))
}))
}
})
}
fn create_key_pair(
&self,
input: CreateKeyPairRequest,
) -> RusotoFuture<CreateKeyPairResult, CreateKeyPairError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateKeyPair");
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::<CreateKeyPairResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateKeyPairError::from_response(response))),
)
}
})
}
fn create_load_balancer(
&self,
input: CreateLoadBalancerRequest,
) -> RusotoFuture<CreateLoadBalancerResult, CreateLoadBalancerError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.CreateLoadBalancer");
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::<CreateLoadBalancerResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateLoadBalancerError::from_response(response))),
)
}
})
}
fn create_load_balancer_tls_certificate(
&self,
input: CreateLoadBalancerTlsCertificateRequest,
) -> RusotoFuture<CreateLoadBalancerTlsCertificateResult, CreateLoadBalancerTlsCertificateError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CreateLoadBalancerTlsCertificate",
);
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::<CreateLoadBalancerTlsCertificateResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateLoadBalancerTlsCertificateError::from_response(
response,
))
}))
}
})
}
fn create_relational_database(
&self,
input: CreateRelationalDatabaseRequest,
) -> RusotoFuture<CreateRelationalDatabaseResult, CreateRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CreateRelationalDatabase",
);
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::<CreateRelationalDatabaseResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateRelationalDatabaseError::from_response(response))
}))
}
})
}
fn create_relational_database_from_snapshot(
&self,
input: CreateRelationalDatabaseFromSnapshotRequest,
) -> RusotoFuture<
CreateRelationalDatabaseFromSnapshotResult,
CreateRelationalDatabaseFromSnapshotError,
> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CreateRelationalDatabaseFromSnapshot",
);
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::<CreateRelationalDatabaseFromSnapshotResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateRelationalDatabaseFromSnapshotError::from_response(
response,
))
}))
}
})
}
fn create_relational_database_snapshot(
&self,
input: CreateRelationalDatabaseSnapshotRequest,
) -> RusotoFuture<CreateRelationalDatabaseSnapshotResult, CreateRelationalDatabaseSnapshotError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.CreateRelationalDatabaseSnapshot",
);
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::<CreateRelationalDatabaseSnapshotResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateRelationalDatabaseSnapshotError::from_response(
response,
))
}))
}
})
}
fn delete_disk(
&self,
input: DeleteDiskRequest,
) -> RusotoFuture<DeleteDiskResult, DeleteDiskError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteDisk");
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::<DeleteDiskResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDiskError::from_response(response))),
)
}
})
}
fn delete_disk_snapshot(
&self,
input: DeleteDiskSnapshotRequest,
) -> RusotoFuture<DeleteDiskSnapshotResult, DeleteDiskSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteDiskSnapshot");
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::<DeleteDiskSnapshotResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDiskSnapshotError::from_response(response))),
)
}
})
}
fn delete_domain(
&self,
input: DeleteDomainRequest,
) -> RusotoFuture<DeleteDomainResult, DeleteDomainError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteDomain");
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::<DeleteDomainResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDomainError::from_response(response))),
)
}
})
}
fn delete_domain_entry(
&self,
input: DeleteDomainEntryRequest,
) -> RusotoFuture<DeleteDomainEntryResult, DeleteDomainEntryError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteDomainEntry");
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::<DeleteDomainEntryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDomainEntryError::from_response(response))),
)
}
})
}
fn delete_instance(
&self,
input: DeleteInstanceRequest,
) -> RusotoFuture<DeleteInstanceResult, DeleteInstanceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteInstance");
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::<DeleteInstanceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteInstanceError::from_response(response))),
)
}
})
}
fn delete_instance_snapshot(
&self,
input: DeleteInstanceSnapshotRequest,
) -> RusotoFuture<DeleteInstanceSnapshotResult, DeleteInstanceSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteInstanceSnapshot");
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::<DeleteInstanceSnapshotResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteInstanceSnapshotError::from_response(response))
}),
)
}
})
}
fn delete_key_pair(
&self,
input: DeleteKeyPairRequest,
) -> RusotoFuture<DeleteKeyPairResult, DeleteKeyPairError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteKeyPair");
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::<DeleteKeyPairResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteKeyPairError::from_response(response))),
)
}
})
}
fn delete_known_host_keys(
&self,
input: DeleteKnownHostKeysRequest,
) -> RusotoFuture<DeleteKnownHostKeysResult, DeleteKnownHostKeysError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteKnownHostKeys");
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::<DeleteKnownHostKeysResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteKnownHostKeysError::from_response(response))
}),
)
}
})
}
fn delete_load_balancer(
&self,
input: DeleteLoadBalancerRequest,
) -> RusotoFuture<DeleteLoadBalancerResult, DeleteLoadBalancerError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DeleteLoadBalancer");
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::<DeleteLoadBalancerResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteLoadBalancerError::from_response(response))),
)
}
})
}
fn delete_load_balancer_tls_certificate(
&self,
input: DeleteLoadBalancerTlsCertificateRequest,
) -> RusotoFuture<DeleteLoadBalancerTlsCertificateResult, DeleteLoadBalancerTlsCertificateError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.DeleteLoadBalancerTlsCertificate",
);
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::<DeleteLoadBalancerTlsCertificateResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteLoadBalancerTlsCertificateError::from_response(
response,
))
}))
}
})
}
fn delete_relational_database(
&self,
input: DeleteRelationalDatabaseRequest,
) -> RusotoFuture<DeleteRelationalDatabaseResult, DeleteRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.DeleteRelationalDatabase",
);
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::<DeleteRelationalDatabaseResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteRelationalDatabaseError::from_response(response))
}))
}
})
}
fn delete_relational_database_snapshot(
&self,
input: DeleteRelationalDatabaseSnapshotRequest,
) -> RusotoFuture<DeleteRelationalDatabaseSnapshotResult, DeleteRelationalDatabaseSnapshotError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.DeleteRelationalDatabaseSnapshot",
);
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::<DeleteRelationalDatabaseSnapshotResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteRelationalDatabaseSnapshotError::from_response(
response,
))
}))
}
})
}
fn detach_disk(
&self,
input: DetachDiskRequest,
) -> RusotoFuture<DetachDiskResult, DetachDiskError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DetachDisk");
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::<DetachDiskResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DetachDiskError::from_response(response))),
)
}
})
}
fn detach_instances_from_load_balancer(
&self,
input: DetachInstancesFromLoadBalancerRequest,
) -> RusotoFuture<DetachInstancesFromLoadBalancerResult, DetachInstancesFromLoadBalancerError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.DetachInstancesFromLoadBalancer",
);
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::<DetachInstancesFromLoadBalancerResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DetachInstancesFromLoadBalancerError::from_response(
response,
))
}))
}
})
}
fn detach_static_ip(
&self,
input: DetachStaticIpRequest,
) -> RusotoFuture<DetachStaticIpResult, DetachStaticIpError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DetachStaticIp");
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::<DetachStaticIpResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DetachStaticIpError::from_response(response))),
)
}
})
}
fn download_default_key_pair(
&self,
) -> RusotoFuture<DownloadDefaultKeyPairResult, DownloadDefaultKeyPairError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.DownloadDefaultKeyPair");
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::<DownloadDefaultKeyPairResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DownloadDefaultKeyPairError::from_response(response))
}),
)
}
})
}
fn export_snapshot(
&self,
input: ExportSnapshotRequest,
) -> RusotoFuture<ExportSnapshotResult, ExportSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.ExportSnapshot");
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::<ExportSnapshotResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ExportSnapshotError::from_response(response))),
)
}
})
}
fn get_active_names(
&self,
input: GetActiveNamesRequest,
) -> RusotoFuture<GetActiveNamesResult, GetActiveNamesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetActiveNames");
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::<GetActiveNamesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetActiveNamesError::from_response(response))),
)
}
})
}
fn get_blueprints(
&self,
input: GetBlueprintsRequest,
) -> RusotoFuture<GetBlueprintsResult, GetBlueprintsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetBlueprints");
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::<GetBlueprintsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetBlueprintsError::from_response(response))),
)
}
})
}
fn get_bundles(
&self,
input: GetBundlesRequest,
) -> RusotoFuture<GetBundlesResult, GetBundlesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetBundles");
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::<GetBundlesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetBundlesError::from_response(response))),
)
}
})
}
fn get_cloud_formation_stack_records(
&self,
input: GetCloudFormationStackRecordsRequest,
) -> RusotoFuture<GetCloudFormationStackRecordsResult, GetCloudFormationStackRecordsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetCloudFormationStackRecords",
);
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::<GetCloudFormationStackRecordsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetCloudFormationStackRecordsError::from_response(response))
}))
}
})
}
fn get_disk(&self, input: GetDiskRequest) -> RusotoFuture<GetDiskResult, GetDiskError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetDisk");
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::<GetDiskResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDiskError::from_response(response))),
)
}
})
}
fn get_disk_snapshot(
&self,
input: GetDiskSnapshotRequest,
) -> RusotoFuture<GetDiskSnapshotResult, GetDiskSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetDiskSnapshot");
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::<GetDiskSnapshotResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDiskSnapshotError::from_response(response))),
)
}
})
}
fn get_disk_snapshots(
&self,
input: GetDiskSnapshotsRequest,
) -> RusotoFuture<GetDiskSnapshotsResult, GetDiskSnapshotsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetDiskSnapshots");
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::<GetDiskSnapshotsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDiskSnapshotsError::from_response(response))),
)
}
})
}
fn get_disks(&self, input: GetDisksRequest) -> RusotoFuture<GetDisksResult, GetDisksError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetDisks");
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::<GetDisksResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDisksError::from_response(response))),
)
}
})
}
fn get_domain(&self, input: GetDomainRequest) -> RusotoFuture<GetDomainResult, GetDomainError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetDomain");
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::<GetDomainResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDomainError::from_response(response))),
)
}
})
}
fn get_domains(
&self,
input: GetDomainsRequest,
) -> RusotoFuture<GetDomainsResult, GetDomainsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetDomains");
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::<GetDomainsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDomainsError::from_response(response))),
)
}
})
}
fn get_export_snapshot_records(
&self,
input: GetExportSnapshotRecordsRequest,
) -> RusotoFuture<GetExportSnapshotRecordsResult, GetExportSnapshotRecordsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetExportSnapshotRecords",
);
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::<GetExportSnapshotRecordsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetExportSnapshotRecordsError::from_response(response))
}))
}
})
}
fn get_instance(
&self,
input: GetInstanceRequest,
) -> RusotoFuture<GetInstanceResult, GetInstanceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstance");
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::<GetInstanceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetInstanceError::from_response(response))),
)
}
})
}
fn get_instance_access_details(
&self,
input: GetInstanceAccessDetailsRequest,
) -> RusotoFuture<GetInstanceAccessDetailsResult, GetInstanceAccessDetailsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetInstanceAccessDetails",
);
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::<GetInstanceAccessDetailsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetInstanceAccessDetailsError::from_response(response))
}))
}
})
}
fn get_instance_metric_data(
&self,
input: GetInstanceMetricDataRequest,
) -> RusotoFuture<GetInstanceMetricDataResult, GetInstanceMetricDataError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstanceMetricData");
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::<GetInstanceMetricDataResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetInstanceMetricDataError::from_response(response))
}),
)
}
})
}
fn get_instance_port_states(
&self,
input: GetInstancePortStatesRequest,
) -> RusotoFuture<GetInstancePortStatesResult, GetInstancePortStatesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstancePortStates");
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::<GetInstancePortStatesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetInstancePortStatesError::from_response(response))
}),
)
}
})
}
fn get_instance_snapshot(
&self,
input: GetInstanceSnapshotRequest,
) -> RusotoFuture<GetInstanceSnapshotResult, GetInstanceSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstanceSnapshot");
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::<GetInstanceSnapshotResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetInstanceSnapshotError::from_response(response))
}),
)
}
})
}
fn get_instance_snapshots(
&self,
input: GetInstanceSnapshotsRequest,
) -> RusotoFuture<GetInstanceSnapshotsResult, GetInstanceSnapshotsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstanceSnapshots");
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::<GetInstanceSnapshotsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetInstanceSnapshotsError::from_response(response))
}),
)
}
})
}
fn get_instance_state(
&self,
input: GetInstanceStateRequest,
) -> RusotoFuture<GetInstanceStateResult, GetInstanceStateError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstanceState");
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::<GetInstanceStateResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetInstanceStateError::from_response(response))),
)
}
})
}
fn get_instances(
&self,
input: GetInstancesRequest,
) -> RusotoFuture<GetInstancesResult, GetInstancesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetInstances");
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::<GetInstancesResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetInstancesError::from_response(response))),
)
}
})
}
fn get_key_pair(
&self,
input: GetKeyPairRequest,
) -> RusotoFuture<GetKeyPairResult, GetKeyPairError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetKeyPair");
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::<GetKeyPairResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetKeyPairError::from_response(response))),
)
}
})
}
fn get_key_pairs(
&self,
input: GetKeyPairsRequest,
) -> RusotoFuture<GetKeyPairsResult, GetKeyPairsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetKeyPairs");
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::<GetKeyPairsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetKeyPairsError::from_response(response))),
)
}
})
}
fn get_load_balancer(
&self,
input: GetLoadBalancerRequest,
) -> RusotoFuture<GetLoadBalancerResult, GetLoadBalancerError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetLoadBalancer");
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::<GetLoadBalancerResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetLoadBalancerError::from_response(response))),
)
}
})
}
fn get_load_balancer_metric_data(
&self,
input: GetLoadBalancerMetricDataRequest,
) -> RusotoFuture<GetLoadBalancerMetricDataResult, GetLoadBalancerMetricDataError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetLoadBalancerMetricData",
);
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::<GetLoadBalancerMetricDataResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetLoadBalancerMetricDataError::from_response(response))
}))
}
})
}
fn get_load_balancer_tls_certificates(
&self,
input: GetLoadBalancerTlsCertificatesRequest,
) -> RusotoFuture<GetLoadBalancerTlsCertificatesResult, GetLoadBalancerTlsCertificatesError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetLoadBalancerTlsCertificates",
);
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::<GetLoadBalancerTlsCertificatesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetLoadBalancerTlsCertificatesError::from_response(response))
}))
}
})
}
fn get_load_balancers(
&self,
input: GetLoadBalancersRequest,
) -> RusotoFuture<GetLoadBalancersResult, GetLoadBalancersError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetLoadBalancers");
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::<GetLoadBalancersResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetLoadBalancersError::from_response(response))),
)
}
})
}
fn get_operation(
&self,
input: GetOperationRequest,
) -> RusotoFuture<GetOperationResult, GetOperationError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetOperation");
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::<GetOperationResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetOperationError::from_response(response))),
)
}
})
}
fn get_operations(
&self,
input: GetOperationsRequest,
) -> RusotoFuture<GetOperationsResult, GetOperationsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetOperations");
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::<GetOperationsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetOperationsError::from_response(response))),
)
}
})
}
fn get_operations_for_resource(
&self,
input: GetOperationsForResourceRequest,
) -> RusotoFuture<GetOperationsForResourceResult, GetOperationsForResourceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetOperationsForResource",
);
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::<GetOperationsForResourceResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetOperationsForResourceError::from_response(response))
}))
}
})
}
fn get_regions(
&self,
input: GetRegionsRequest,
) -> RusotoFuture<GetRegionsResult, GetRegionsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetRegions");
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::<GetRegionsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetRegionsError::from_response(response))),
)
}
})
}
fn get_relational_database(
&self,
input: GetRelationalDatabaseRequest,
) -> RusotoFuture<GetRelationalDatabaseResult, GetRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetRelationalDatabase");
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::<GetRelationalDatabaseResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseError::from_response(response))
}),
)
}
})
}
fn get_relational_database_blueprints(
&self,
input: GetRelationalDatabaseBlueprintsRequest,
) -> RusotoFuture<GetRelationalDatabaseBlueprintsResult, GetRelationalDatabaseBlueprintsError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseBlueprints",
);
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::<GetRelationalDatabaseBlueprintsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseBlueprintsError::from_response(
response,
))
}))
}
})
}
fn get_relational_database_bundles(
&self,
input: GetRelationalDatabaseBundlesRequest,
) -> RusotoFuture<GetRelationalDatabaseBundlesResult, GetRelationalDatabaseBundlesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseBundles",
);
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::<GetRelationalDatabaseBundlesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseBundlesError::from_response(response))
}))
}
})
}
fn get_relational_database_events(
&self,
input: GetRelationalDatabaseEventsRequest,
) -> RusotoFuture<GetRelationalDatabaseEventsResult, GetRelationalDatabaseEventsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseEvents",
);
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::<GetRelationalDatabaseEventsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseEventsError::from_response(response))
}))
}
})
}
fn get_relational_database_log_events(
&self,
input: GetRelationalDatabaseLogEventsRequest,
) -> RusotoFuture<GetRelationalDatabaseLogEventsResult, GetRelationalDatabaseLogEventsError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseLogEvents",
);
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::<GetRelationalDatabaseLogEventsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseLogEventsError::from_response(response))
}))
}
})
}
fn get_relational_database_log_streams(
&self,
input: GetRelationalDatabaseLogStreamsRequest,
) -> RusotoFuture<GetRelationalDatabaseLogStreamsResult, GetRelationalDatabaseLogStreamsError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseLogStreams",
);
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::<GetRelationalDatabaseLogStreamsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseLogStreamsError::from_response(
response,
))
}))
}
})
}
fn get_relational_database_master_user_password(
&self,
input: GetRelationalDatabaseMasterUserPasswordRequest,
) -> RusotoFuture<
GetRelationalDatabaseMasterUserPasswordResult,
GetRelationalDatabaseMasterUserPasswordError,
> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseMasterUserPassword",
);
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::<GetRelationalDatabaseMasterUserPasswordResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseMasterUserPasswordError::from_response(
response,
))
}))
}
})
}
fn get_relational_database_metric_data(
&self,
input: GetRelationalDatabaseMetricDataRequest,
) -> RusotoFuture<GetRelationalDatabaseMetricDataResult, GetRelationalDatabaseMetricDataError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseMetricData",
);
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::<GetRelationalDatabaseMetricDataResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseMetricDataError::from_response(
response,
))
}))
}
})
}
fn get_relational_database_parameters(
&self,
input: GetRelationalDatabaseParametersRequest,
) -> RusotoFuture<GetRelationalDatabaseParametersResult, GetRelationalDatabaseParametersError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseParameters",
);
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::<GetRelationalDatabaseParametersResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseParametersError::from_response(
response,
))
}))
}
})
}
fn get_relational_database_snapshot(
&self,
input: GetRelationalDatabaseSnapshotRequest,
) -> RusotoFuture<GetRelationalDatabaseSnapshotResult, GetRelationalDatabaseSnapshotError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseSnapshot",
);
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::<GetRelationalDatabaseSnapshotResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseSnapshotError::from_response(response))
}))
}
})
}
fn get_relational_database_snapshots(
&self,
input: GetRelationalDatabaseSnapshotsRequest,
) -> RusotoFuture<GetRelationalDatabaseSnapshotsResult, GetRelationalDatabaseSnapshotsError>
{
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.GetRelationalDatabaseSnapshots",
);
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::<GetRelationalDatabaseSnapshotsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabaseSnapshotsError::from_response(response))
}))
}
})
}
fn get_relational_databases(
&self,
input: GetRelationalDatabasesRequest,
) -> RusotoFuture<GetRelationalDatabasesResult, GetRelationalDatabasesError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetRelationalDatabases");
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::<GetRelationalDatabasesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetRelationalDatabasesError::from_response(response))
}),
)
}
})
}
fn get_static_ip(
&self,
input: GetStaticIpRequest,
) -> RusotoFuture<GetStaticIpResult, GetStaticIpError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetStaticIp");
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::<GetStaticIpResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetStaticIpError::from_response(response))),
)
}
})
}
fn get_static_ips(
&self,
input: GetStaticIpsRequest,
) -> RusotoFuture<GetStaticIpsResult, GetStaticIpsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.GetStaticIps");
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::<GetStaticIpsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetStaticIpsError::from_response(response))),
)
}
})
}
fn import_key_pair(
&self,
input: ImportKeyPairRequest,
) -> RusotoFuture<ImportKeyPairResult, ImportKeyPairError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.ImportKeyPair");
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::<ImportKeyPairResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ImportKeyPairError::from_response(response))),
)
}
})
}
fn is_vpc_peered(&self) -> RusotoFuture<IsVpcPeeredResult, IsVpcPeeredError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.IsVpcPeered");
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::<IsVpcPeeredResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(IsVpcPeeredError::from_response(response))),
)
}
})
}
fn open_instance_public_ports(
&self,
input: OpenInstancePublicPortsRequest,
) -> RusotoFuture<OpenInstancePublicPortsResult, OpenInstancePublicPortsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.OpenInstancePublicPorts");
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::<OpenInstancePublicPortsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(OpenInstancePublicPortsError::from_response(response))
}))
}
})
}
fn peer_vpc(&self) -> RusotoFuture<PeerVpcResult, PeerVpcError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.PeerVpc");
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::<PeerVpcResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(PeerVpcError::from_response(response))),
)
}
})
}
fn put_instance_public_ports(
&self,
input: PutInstancePublicPortsRequest,
) -> RusotoFuture<PutInstancePublicPortsResult, PutInstancePublicPortsError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.PutInstancePublicPorts");
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::<PutInstancePublicPortsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(PutInstancePublicPortsError::from_response(response))
}),
)
}
})
}
fn reboot_instance(
&self,
input: RebootInstanceRequest,
) -> RusotoFuture<RebootInstanceResult, RebootInstanceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.RebootInstance");
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::<RebootInstanceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(RebootInstanceError::from_response(response))),
)
}
})
}
fn reboot_relational_database(
&self,
input: RebootRelationalDatabaseRequest,
) -> RusotoFuture<RebootRelationalDatabaseResult, RebootRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.RebootRelationalDatabase",
);
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::<RebootRelationalDatabaseResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(RebootRelationalDatabaseError::from_response(response))
}))
}
})
}
fn release_static_ip(
&self,
input: ReleaseStaticIpRequest,
) -> RusotoFuture<ReleaseStaticIpResult, ReleaseStaticIpError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.ReleaseStaticIp");
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::<ReleaseStaticIpResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ReleaseStaticIpError::from_response(response))),
)
}
})
}
fn start_instance(
&self,
input: StartInstanceRequest,
) -> RusotoFuture<StartInstanceResult, StartInstanceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.StartInstance");
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::<StartInstanceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StartInstanceError::from_response(response))),
)
}
})
}
fn start_relational_database(
&self,
input: StartRelationalDatabaseRequest,
) -> RusotoFuture<StartRelationalDatabaseResult, StartRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.StartRelationalDatabase");
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::<StartRelationalDatabaseResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(StartRelationalDatabaseError::from_response(response))
}))
}
})
}
fn stop_instance(
&self,
input: StopInstanceRequest,
) -> RusotoFuture<StopInstanceResult, StopInstanceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.StopInstance");
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::<StopInstanceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StopInstanceError::from_response(response))),
)
}
})
}
fn stop_relational_database(
&self,
input: StopRelationalDatabaseRequest,
) -> RusotoFuture<StopRelationalDatabaseResult, StopRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.StopRelationalDatabase");
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::<StopRelationalDatabaseResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(StopRelationalDatabaseError::from_response(response))
}),
)
}
})
}
fn tag_resource(
&self,
input: TagResourceRequest,
) -> RusotoFuture<TagResourceResult, TagResourceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.TagResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<TagResourceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(TagResourceError::from_response(response))),
)
}
})
}
fn unpeer_vpc(&self) -> RusotoFuture<UnpeerVpcResult, UnpeerVpcError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.UnpeerVpc");
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::<UnpeerVpcResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UnpeerVpcError::from_response(response))),
)
}
})
}
fn untag_resource(
&self,
input: UntagResourceRequest,
) -> RusotoFuture<UntagResourceResult, UntagResourceError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.UntagResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<UntagResourceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UntagResourceError::from_response(response))),
)
}
})
}
fn update_domain_entry(
&self,
input: UpdateDomainEntryRequest,
) -> RusotoFuture<UpdateDomainEntryResult, UpdateDomainEntryError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "Lightsail_20161128.UpdateDomainEntry");
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::<UpdateDomainEntryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateDomainEntryError::from_response(response))),
)
}
})
}
fn update_load_balancer_attribute(
&self,
input: UpdateLoadBalancerAttributeRequest,
) -> RusotoFuture<UpdateLoadBalancerAttributeResult, UpdateLoadBalancerAttributeError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.UpdateLoadBalancerAttribute",
);
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::<UpdateLoadBalancerAttributeResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateLoadBalancerAttributeError::from_response(response))
}))
}
})
}
fn update_relational_database(
&self,
input: UpdateRelationalDatabaseRequest,
) -> RusotoFuture<UpdateRelationalDatabaseResult, UpdateRelationalDatabaseError> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.UpdateRelationalDatabase",
);
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::<UpdateRelationalDatabaseResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateRelationalDatabaseError::from_response(response))
}))
}
})
}
fn update_relational_database_parameters(
&self,
input: UpdateRelationalDatabaseParametersRequest,
) -> RusotoFuture<
UpdateRelationalDatabaseParametersResult,
UpdateRelationalDatabaseParametersError,
> {
let mut request = SignedRequest::new("POST", "lightsail", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"Lightsail_20161128.UpdateRelationalDatabaseParameters",
);
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::<UpdateRelationalDatabaseParametersResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateRelationalDatabaseParametersError::from_response(
response,
))
}))
}
})
}
}