use std::error::Error;
use std::fmt;
#[allow(warnings)]
use futures::future;
use futures::Future;
use rusoto_core::credential::ProvideAwsCredentials;
use rusoto_core::region;
use rusoto_core::request::{BufferedHttpResponse, DispatchSignedRequest};
use rusoto_core::{Client, RusotoError, RusotoFuture};
use rusoto_core::proto;
use rusoto_core::signature::SignedRequest;
use serde_json;
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Activation {
#[serde(rename = "ActivationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub activation_id: Option<String>,
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "DefaultInstanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_instance_name: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "ExpirationDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expiration_date: Option<f64>,
#[serde(rename = "Expired")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expired: Option<bool>,
#[serde(rename = "IamRole")]
#[serde(skip_serializing_if = "Option::is_none")]
pub iam_role: Option<String>,
#[serde(rename = "RegistrationLimit")]
#[serde(skip_serializing_if = "Option::is_none")]
pub registration_limit: Option<i64>,
#[serde(rename = "RegistrationsCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub registrations_count: Option<i64>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AddTagsToResourceRequest {
#[serde(rename = "ResourceId")]
pub resource_id: String,
#[serde(rename = "ResourceType")]
pub resource_type: String,
#[serde(rename = "Tags")]
pub tags: Vec<Tag>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AddTagsToResourceResult {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Association {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "LastExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_execution_date: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Overview")]
#[serde(skip_serializing_if = "Option::is_none")]
pub overview: Option<AssociationOverview>,
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociationDescription {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "AutomationTargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_target_parameter_name: Option<String>,
#[serde(rename = "ComplianceSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_severity: Option<String>,
#[serde(rename = "Date")]
#[serde(skip_serializing_if = "Option::is_none")]
pub date: Option<f64>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "LastExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_execution_date: Option<f64>,
#[serde(rename = "LastSuccessfulExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_successful_execution_date: Option<f64>,
#[serde(rename = "LastUpdateAssociationDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_update_association_date: Option<f64>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OutputLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_location: Option<InstanceAssociationOutputLocation>,
#[serde(rename = "Overview")]
#[serde(skip_serializing_if = "Option::is_none")]
pub overview: Option<AssociationOverview>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<AssociationStatus>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociationExecution {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "DetailedStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub detailed_status: Option<String>,
#[serde(rename = "ExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_id: Option<String>,
#[serde(rename = "LastExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_execution_date: Option<f64>,
#[serde(rename = "ResourceCountByStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_count_by_status: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociationExecutionFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Type")]
pub type_: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociationExecutionTarget {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "DetailedStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub detailed_status: Option<String>,
#[serde(rename = "ExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_id: Option<String>,
#[serde(rename = "LastExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_execution_date: Option<f64>,
#[serde(rename = "OutputSource")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_source: Option<OutputSource>,
#[serde(rename = "ResourceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_id: 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>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociationExecutionTargetsFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AssociationFilter {
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociationOverview {
#[serde(rename = "AssociationStatusAggregatedCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_status_aggregated_count: Option<::std::collections::HashMap<String, i64>>,
#[serde(rename = "DetailedStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub detailed_status: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct AssociationStatus {
#[serde(rename = "AdditionalInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub additional_info: Option<String>,
#[serde(rename = "Date")]
pub date: f64,
#[serde(rename = "Message")]
pub message: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AssociationVersionInfo {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "ComplianceSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_severity: Option<String>,
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OutputLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_location: Option<InstanceAssociationOutputLocation>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AttachmentContent {
#[serde(rename = "Hash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hash: Option<String>,
#[serde(rename = "HashType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hash_type: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Size")]
#[serde(skip_serializing_if = "Option::is_none")]
pub size: Option<i64>,
#[serde(rename = "Url")]
#[serde(skip_serializing_if = "Option::is_none")]
pub url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AttachmentInformation {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AttachmentsSource {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AutomationExecution {
#[serde(rename = "AutomationExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution_id: Option<String>,
#[serde(rename = "AutomationExecutionStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution_status: Option<String>,
#[serde(rename = "CurrentAction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub current_action: Option<String>,
#[serde(rename = "CurrentStepName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub current_step_name: Option<String>,
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "ExecutedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub executed_by: Option<String>,
#[serde(rename = "ExecutionEndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_end_time: Option<f64>,
#[serde(rename = "ExecutionStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_start_time: Option<f64>,
#[serde(rename = "FailureMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_message: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Mode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
#[serde(rename = "Outputs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub outputs: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ParentAutomationExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parent_automation_execution_id: Option<String>,
#[serde(rename = "ProgressCounters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub progress_counters: Option<ProgressCounters>,
#[serde(rename = "ResolvedTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resolved_targets: Option<ResolvedTargets>,
#[serde(rename = "StepExecutions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_executions: Option<Vec<StepExecution>>,
#[serde(rename = "StepExecutionsTruncated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_executions_truncated: Option<bool>,
#[serde(rename = "Target")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
#[serde(rename = "TargetLocations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_locations: Option<Vec<TargetLocation>>,
#[serde(rename = "TargetMaps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_maps: Option<Vec<::std::collections::HashMap<String, Vec<String>>>>,
#[serde(rename = "TargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_parameter_name: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct AutomationExecutionFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct AutomationExecutionMetadata {
#[serde(rename = "AutomationExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution_id: Option<String>,
#[serde(rename = "AutomationExecutionStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution_status: Option<String>,
#[serde(rename = "AutomationType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_type: Option<String>,
#[serde(rename = "CurrentAction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub current_action: Option<String>,
#[serde(rename = "CurrentStepName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub current_step_name: Option<String>,
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "ExecutedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub executed_by: Option<String>,
#[serde(rename = "ExecutionEndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_end_time: Option<f64>,
#[serde(rename = "ExecutionStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_start_time: Option<f64>,
#[serde(rename = "FailureMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_message: Option<String>,
#[serde(rename = "LogFile")]
#[serde(skip_serializing_if = "Option::is_none")]
pub log_file: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Mode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
#[serde(rename = "Outputs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub outputs: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ParentAutomationExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parent_automation_execution_id: Option<String>,
#[serde(rename = "ResolvedTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resolved_targets: Option<ResolvedTargets>,
#[serde(rename = "Target")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
#[serde(rename = "TargetMaps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_maps: Option<Vec<::std::collections::HashMap<String, Vec<String>>>>,
#[serde(rename = "TargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_parameter_name: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CancelCommandRequest {
#[serde(rename = "CommandId")]
pub command_id: String,
#[serde(rename = "InstanceIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_ids: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CancelCommandResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CancelMaintenanceWindowExecutionRequest {
#[serde(rename = "WindowExecutionId")]
pub window_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CancelMaintenanceWindowExecutionResult {
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CloudWatchOutputConfig {
#[serde(rename = "CloudWatchLogGroupName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_log_group_name: Option<String>,
#[serde(rename = "CloudWatchOutputEnabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_output_enabled: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Command {
#[serde(rename = "CloudWatchOutputConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_output_config: Option<CloudWatchOutputConfig>,
#[serde(rename = "CommandId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_id: Option<String>,
#[serde(rename = "Comment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "CompletedCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub completed_count: Option<i64>,
#[serde(rename = "DeliveryTimedOutCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub delivery_timed_out_count: Option<i64>,
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "ErrorCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_count: Option<i64>,
#[serde(rename = "ExpiresAfter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expires_after: Option<f64>,
#[serde(rename = "InstanceIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_ids: Option<Vec<String>>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "NotificationConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_config: Option<NotificationConfig>,
#[serde(rename = "OutputS3BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_bucket_name: Option<String>,
#[serde(rename = "OutputS3KeyPrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_key_prefix: Option<String>,
#[serde(rename = "OutputS3Region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_region: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "RequestedDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub requested_date_time: Option<f64>,
#[serde(rename = "ServiceRole")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TargetCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_count: Option<i64>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CommandFilter {
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CommandInvocation {
#[serde(rename = "CloudWatchOutputConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_output_config: Option<CloudWatchOutputConfig>,
#[serde(rename = "CommandId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_id: Option<String>,
#[serde(rename = "CommandPlugins")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_plugins: Option<Vec<CommandPlugin>>,
#[serde(rename = "Comment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "InstanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_name: Option<String>,
#[serde(rename = "NotificationConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_config: Option<NotificationConfig>,
#[serde(rename = "RequestedDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub requested_date_time: Option<f64>,
#[serde(rename = "ServiceRole")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role: Option<String>,
#[serde(rename = "StandardErrorUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_error_url: Option<String>,
#[serde(rename = "StandardOutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_output_url: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TraceOutput")]
#[serde(skip_serializing_if = "Option::is_none")]
pub trace_output: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CommandPlugin {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Output")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output: Option<String>,
#[serde(rename = "OutputS3BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_bucket_name: Option<String>,
#[serde(rename = "OutputS3KeyPrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_key_prefix: Option<String>,
#[serde(rename = "OutputS3Region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_region: Option<String>,
#[serde(rename = "ResponseCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub response_code: Option<i64>,
#[serde(rename = "ResponseFinishDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub response_finish_date_time: Option<f64>,
#[serde(rename = "ResponseStartDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub response_start_date_time: Option<f64>,
#[serde(rename = "StandardErrorUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_error_url: Option<String>,
#[serde(rename = "StandardOutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_output_url: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ComplianceExecutionSummary {
#[serde(rename = "ExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_id: Option<String>,
#[serde(rename = "ExecutionTime")]
pub execution_time: f64,
#[serde(rename = "ExecutionType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ComplianceItem {
#[serde(rename = "ComplianceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_type: Option<String>,
#[serde(rename = "Details")]
#[serde(skip_serializing_if = "Option::is_none")]
pub details: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "ExecutionSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_summary: Option<ComplianceExecutionSummary>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "ResourceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_id: Option<String>,
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "Severity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub severity: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Title")]
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ComplianceItemEntry {
#[serde(rename = "Details")]
#[serde(skip_serializing_if = "Option::is_none")]
pub details: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "Severity")]
pub severity: String,
#[serde(rename = "Status")]
pub status: String,
#[serde(rename = "Title")]
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ComplianceStringFilter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ComplianceSummaryItem {
#[serde(rename = "ComplianceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_type: Option<String>,
#[serde(rename = "CompliantSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliant_summary: Option<CompliantSummary>,
#[serde(rename = "NonCompliantSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub non_compliant_summary: Option<NonCompliantSummary>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CompliantSummary {
#[serde(rename = "CompliantCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliant_count: Option<i64>,
#[serde(rename = "SeveritySummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub severity_summary: Option<SeveritySummary>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateActivationRequest {
#[serde(rename = "DefaultInstanceName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_instance_name: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "ExpirationDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expiration_date: Option<f64>,
#[serde(rename = "IamRole")]
pub iam_role: String,
#[serde(rename = "RegistrationLimit")]
#[serde(skip_serializing_if = "Option::is_none")]
pub registration_limit: Option<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 CreateActivationResult {
#[serde(rename = "ActivationCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub activation_code: Option<String>,
#[serde(rename = "ActivationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub activation_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateAssociationBatchRequest {
#[serde(rename = "Entries")]
pub entries: Vec<CreateAssociationBatchRequestEntry>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct CreateAssociationBatchRequestEntry {
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AutomationTargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_target_parameter_name: Option<String>,
#[serde(rename = "ComplianceSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_severity: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "OutputLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_location: Option<InstanceAssociationOutputLocation>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateAssociationBatchResult {
#[serde(rename = "Failed")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failed: Option<Vec<FailedCreateAssociation>>,
#[serde(rename = "Successful")]
#[serde(skip_serializing_if = "Option::is_none")]
pub successful: Option<Vec<AssociationDescription>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateAssociationRequest {
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AutomationTargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_target_parameter_name: Option<String>,
#[serde(rename = "ComplianceSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_severity: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "OutputLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_location: Option<InstanceAssociationOutputLocation>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateAssociationResult {
#[serde(rename = "AssociationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_description: Option<AssociationDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateDocumentRequest {
#[serde(rename = "Attachments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attachments: Option<Vec<AttachmentsSource>>,
#[serde(rename = "Content")]
pub content: String,
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_type: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "TargetType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_type: Option<String>,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateDocumentResult {
#[serde(rename = "DocumentDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_description: Option<DocumentDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateMaintenanceWindowRequest {
#[serde(rename = "AllowUnassociatedTargets")]
pub allow_unassociated_targets: bool,
#[serde(rename = "ClientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
#[serde(rename = "Cutoff")]
pub cutoff: i64,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Duration")]
pub duration: i64,
#[serde(rename = "EndDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_date: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Schedule")]
pub schedule: String,
#[serde(rename = "ScheduleTimezone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_timezone: Option<String>,
#[serde(rename = "StartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_date: 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 CreateMaintenanceWindowResult {
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateOpsItemRequest {
#[serde(rename = "Description")]
pub description: String,
#[serde(rename = "Notifications")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notifications: Option<Vec<OpsItemNotification>>,
#[serde(rename = "OperationalData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operational_data: Option<::std::collections::HashMap<String, OpsItemDataValue>>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "RelatedOpsItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub related_ops_items: Option<Vec<RelatedOpsItem>>,
#[serde(rename = "Source")]
pub source: String,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "Title")]
pub title: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateOpsItemResponse {
#[serde(rename = "OpsItemId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ops_item_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreatePatchBaselineRequest {
#[serde(rename = "ApprovalRules")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approval_rules: Option<PatchRuleGroup>,
#[serde(rename = "ApprovedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches: Option<Vec<String>>,
#[serde(rename = "ApprovedPatchesComplianceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_compliance_level: Option<String>,
#[serde(rename = "ApprovedPatchesEnableNonSecurity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_enable_non_security: Option<bool>,
#[serde(rename = "ClientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "GlobalFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub global_filters: Option<PatchFilterGroup>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
#[serde(rename = "RejectedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches: Option<Vec<String>>,
#[serde(rename = "RejectedPatchesAction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches_action: Option<String>,
#[serde(rename = "Sources")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sources: Option<Vec<PatchSource>>,
#[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 CreatePatchBaselineResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct CreateResourceDataSyncRequest {
#[serde(rename = "S3Destination")]
pub s3_destination: ResourceDataSyncS3Destination,
#[serde(rename = "SyncName")]
pub sync_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct CreateResourceDataSyncResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteActivationRequest {
#[serde(rename = "ActivationId")]
pub activation_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteActivationResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteAssociationRequest {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[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 DeleteAssociationResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteDocumentRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteDocumentResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteInventoryRequest {
#[serde(rename = "ClientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
#[serde(rename = "DryRun")]
#[serde(skip_serializing_if = "Option::is_none")]
pub dry_run: Option<bool>,
#[serde(rename = "SchemaDeleteOption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_delete_option: Option<String>,
#[serde(rename = "TypeName")]
pub type_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteInventoryResult {
#[serde(rename = "DeletionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletion_id: Option<String>,
#[serde(rename = "DeletionSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletion_summary: Option<InventoryDeletionSummary>,
#[serde(rename = "TypeName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteMaintenanceWindowRequest {
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteMaintenanceWindowResult {
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteParameterRequest {
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteParameterResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteParametersRequest {
#[serde(rename = "Names")]
pub names: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteParametersResult {
#[serde(rename = "DeletedParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deleted_parameters: Option<Vec<String>>,
#[serde(rename = "InvalidParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub invalid_parameters: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeletePatchBaselineRequest {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeletePatchBaselineResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeleteResourceDataSyncRequest {
#[serde(rename = "SyncName")]
pub sync_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeleteResourceDataSyncResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeregisterManagedInstanceRequest {
#[serde(rename = "InstanceId")]
pub instance_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeregisterManagedInstanceResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeregisterPatchBaselineForPatchGroupRequest {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
#[serde(rename = "PatchGroup")]
pub patch_group: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeregisterPatchBaselineForPatchGroupResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "PatchGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_group: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeregisterTargetFromMaintenanceWindowRequest {
#[serde(rename = "Safe")]
#[serde(skip_serializing_if = "Option::is_none")]
pub safe: Option<bool>,
#[serde(rename = "WindowId")]
pub window_id: String,
#[serde(rename = "WindowTargetId")]
pub window_target_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeregisterTargetFromMaintenanceWindowResult {
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTargetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_target_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DeregisterTaskFromMaintenanceWindowRequest {
#[serde(rename = "WindowId")]
pub window_id: String,
#[serde(rename = "WindowTaskId")]
pub window_task_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DeregisterTaskFromMaintenanceWindowResult {
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTaskId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_task_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeActivationsFilter {
#[serde(rename = "FilterKey")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filter_key: Option<String>,
#[serde(rename = "FilterValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filter_values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeActivationsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<DescribeActivationsFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeActivationsResult {
#[serde(rename = "ActivationList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub activation_list: Option<Vec<Activation>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAssociationExecutionTargetsRequest {
#[serde(rename = "AssociationId")]
pub association_id: String,
#[serde(rename = "ExecutionId")]
pub execution_id: String,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<AssociationExecutionTargetsFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeAssociationExecutionTargetsResult {
#[serde(rename = "AssociationExecutionTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_execution_targets: Option<Vec<AssociationExecutionTarget>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAssociationExecutionsRequest {
#[serde(rename = "AssociationId")]
pub association_id: String,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<AssociationExecutionFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeAssociationExecutionsResult {
#[serde(rename = "AssociationExecutions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_executions: Option<Vec<AssociationExecution>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAssociationRequest {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[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 DescribeAssociationResult {
#[serde(rename = "AssociationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_description: Option<AssociationDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAutomationExecutionsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<AutomationExecutionFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeAutomationExecutionsResult {
#[serde(rename = "AutomationExecutionMetadataList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution_metadata_list: Option<Vec<AutomationExecutionMetadata>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAutomationStepExecutionsRequest {
#[serde(rename = "AutomationExecutionId")]
pub automation_execution_id: String,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<StepExecutionFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ReverseOrder")]
#[serde(skip_serializing_if = "Option::is_none")]
pub reverse_order: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeAutomationStepExecutionsResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "StepExecutions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_executions: Option<Vec<StepExecution>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeAvailablePatchesRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<PatchOrchestratorFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeAvailablePatchesResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Patches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patches: Option<Vec<Patch>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeDocumentPermissionRequest {
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "PermissionType")]
pub permission_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeDocumentPermissionResponse {
#[serde(rename = "AccountIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_ids: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeDocumentRequest {
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeDocumentResult {
#[serde(rename = "Document")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document: Option<DocumentDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEffectiveInstanceAssociationsRequest {
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEffectiveInstanceAssociationsResult {
#[serde(rename = "Associations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub associations: Option<Vec<InstanceAssociation>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeEffectivePatchesForPatchBaselineRequest {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeEffectivePatchesForPatchBaselineResult {
#[serde(rename = "EffectivePatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub effective_patches: Option<Vec<EffectivePatch>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeInstanceAssociationsStatusRequest {
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeInstanceAssociationsStatusResult {
#[serde(rename = "InstanceAssociationStatusInfos")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_association_status_infos: Option<Vec<InstanceAssociationStatusInfo>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeInstanceInformationRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<InstanceInformationStringFilter>>,
#[serde(rename = "InstanceInformationFilterList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_information_filter_list: Option<Vec<InstanceInformationFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeInstanceInformationResult {
#[serde(rename = "InstanceInformationList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_information_list: Option<Vec<InstanceInformation>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeInstancePatchStatesForPatchGroupRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<InstancePatchStateFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "PatchGroup")]
pub patch_group: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeInstancePatchStatesForPatchGroupResult {
#[serde(rename = "InstancePatchStates")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_patch_states: Option<Vec<InstancePatchState>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeInstancePatchStatesRequest {
#[serde(rename = "InstanceIds")]
pub instance_ids: Vec<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeInstancePatchStatesResult {
#[serde(rename = "InstancePatchStates")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_patch_states: Option<Vec<InstancePatchState>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeInstancePatchesRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<PatchOrchestratorFilter>>,
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeInstancePatchesResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Patches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patches: Option<Vec<PatchComplianceData>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeInventoryDeletionsRequest {
#[serde(rename = "DeletionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletion_id: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeInventoryDeletionsResult {
#[serde(rename = "InventoryDeletions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub inventory_deletions: Option<Vec<InventoryDeletionStatusItem>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<MaintenanceWindowFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "TaskId")]
pub task_id: String,
#[serde(rename = "WindowExecutionId")]
pub window_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowExecutionTaskInvocationsResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowExecutionTaskInvocationIdentities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_task_invocation_identities:
Option<Vec<MaintenanceWindowExecutionTaskInvocationIdentity>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowExecutionTasksRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<MaintenanceWindowFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowExecutionId")]
pub window_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowExecutionTasksResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowExecutionTaskIdentities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_task_identities: Option<Vec<MaintenanceWindowExecutionTaskIdentity>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowExecutionsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<MaintenanceWindowFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowExecutionsResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowExecutions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_executions: Option<Vec<MaintenanceWindowExecution>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowScheduleRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<PatchOrchestratorFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowScheduleResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ScheduledWindowExecutions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub scheduled_window_executions: Option<Vec<ScheduledWindowExecution>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowTargetsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<MaintenanceWindowFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowTargetsResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<MaintenanceWindowTarget>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowTasksRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<MaintenanceWindowFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowTasksResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Tasks")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tasks: Option<Vec<MaintenanceWindowTask>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowsForTargetRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ResourceType")]
pub resource_type: String,
#[serde(rename = "Targets")]
pub targets: Vec<Target>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowsForTargetResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowIdentities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_identities: Option<Vec<MaintenanceWindowIdentityForTarget>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeMaintenanceWindowsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<MaintenanceWindowFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeMaintenanceWindowsResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WindowIdentities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_identities: Option<Vec<MaintenanceWindowIdentity>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeOpsItemsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "OpsItemFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ops_item_filters: Option<Vec<OpsItemFilter>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeOpsItemsResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "OpsItemSummaries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ops_item_summaries: Option<Vec<OpsItemSummary>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeParametersRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<ParametersFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ParameterFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_filters: Option<Vec<ParameterStringFilter>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeParametersResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<Vec<ParameterMetadata>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePatchBaselinesRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<PatchOrchestratorFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePatchBaselinesResult {
#[serde(rename = "BaselineIdentities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_identities: Option<Vec<PatchBaselineIdentity>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePatchGroupStateRequest {
#[serde(rename = "PatchGroup")]
pub patch_group: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePatchGroupStateResult {
#[serde(rename = "Instances")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances: Option<i64>,
#[serde(rename = "InstancesWithFailedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_failed_patches: Option<i64>,
#[serde(rename = "InstancesWithInstalledOtherPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_installed_other_patches: Option<i64>,
#[serde(rename = "InstancesWithInstalledPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_installed_patches: Option<i64>,
#[serde(rename = "InstancesWithInstalledRejectedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_installed_rejected_patches: Option<i64>,
#[serde(rename = "InstancesWithMissingPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_missing_patches: Option<i64>,
#[serde(rename = "InstancesWithNotApplicablePatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_not_applicable_patches: Option<i64>,
#[serde(rename = "InstancesWithUnreportedNotApplicablePatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instances_with_unreported_not_applicable_patches: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePatchGroupsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<PatchOrchestratorFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePatchGroupsResult {
#[serde(rename = "Mappings")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mappings: Option<Vec<PatchGroupPatchBaselineMapping>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribePatchPropertiesRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "OperatingSystem")]
pub operating_system: String,
#[serde(rename = "PatchSet")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_set: Option<String>,
#[serde(rename = "Property")]
pub property: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribePatchPropertiesResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Properties")]
#[serde(skip_serializing_if = "Option::is_none")]
pub properties: Option<Vec<::std::collections::HashMap<String, String>>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DescribeSessionsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<SessionFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "State")]
pub state: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DescribeSessionsResponse {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Sessions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sessions: Option<Vec<Session>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DocumentDefaultVersionDescription {
#[serde(rename = "DefaultVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_version: Option<String>,
#[serde(rename = "DefaultVersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_version_name: Option<String>,
#[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 DocumentDescription {
#[serde(rename = "AttachmentsInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attachments_information: Option<Vec<AttachmentInformation>>,
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "DefaultVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_version: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_type: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Hash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hash: Option<String>,
#[serde(rename = "HashType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub hash_type: Option<String>,
#[serde(rename = "LatestVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub latest_version: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<Vec<DocumentParameter>>,
#[serde(rename = "PlatformTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform_types: Option<Vec<String>>,
#[serde(rename = "SchemaVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_version: Option<String>,
#[serde(rename = "Sha1")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sha_1: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_information: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "TargetType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_type: Option<String>,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DocumentFilter {
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DocumentIdentifier {
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_type: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "PlatformTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform_types: Option<Vec<String>>,
#[serde(rename = "SchemaVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_version: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "TargetType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_type: Option<String>,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct DocumentKeyValuesFilter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DocumentParameter {
#[serde(rename = "DefaultValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_value: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct DocumentVersionInfo {
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "IsDefaultVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_default_version: Option<bool>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_information: Option<String>,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct EffectivePatch {
#[serde(rename = "Patch")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch: Option<Patch>,
#[serde(rename = "PatchStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_status: Option<PatchStatus>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct FailedCreateAssociation {
#[serde(rename = "Entry")]
#[serde(skip_serializing_if = "Option::is_none")]
pub entry: Option<CreateAssociationBatchRequestEntry>,
#[serde(rename = "Fault")]
#[serde(skip_serializing_if = "Option::is_none")]
pub fault: Option<String>,
#[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 FailureDetails {
#[serde(rename = "Details")]
#[serde(skip_serializing_if = "Option::is_none")]
pub details: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "FailureStage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_stage: Option<String>,
#[serde(rename = "FailureType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetAutomationExecutionRequest {
#[serde(rename = "AutomationExecutionId")]
pub automation_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetAutomationExecutionResult {
#[serde(rename = "AutomationExecution")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution: Option<AutomationExecution>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetCommandInvocationRequest {
#[serde(rename = "CommandId")]
pub command_id: String,
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "PluginName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plugin_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetCommandInvocationResult {
#[serde(rename = "CloudWatchOutputConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_output_config: Option<CloudWatchOutputConfig>,
#[serde(rename = "CommandId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_id: Option<String>,
#[serde(rename = "Comment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "ExecutionElapsedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_elapsed_time: Option<String>,
#[serde(rename = "ExecutionEndDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_end_date_time: Option<String>,
#[serde(rename = "ExecutionStartDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_start_date_time: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "PluginName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub plugin_name: Option<String>,
#[serde(rename = "ResponseCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub response_code: Option<i64>,
#[serde(rename = "StandardErrorContent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_error_content: Option<String>,
#[serde(rename = "StandardErrorUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_error_url: Option<String>,
#[serde(rename = "StandardOutputContent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_output_content: Option<String>,
#[serde(rename = "StandardOutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub standard_output_url: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetConnectionStatusRequest {
#[serde(rename = "Target")]
pub target: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetConnectionStatusResponse {
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Target")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDefaultPatchBaselineRequest {
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDefaultPatchBaselineResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDeployablePatchSnapshotForInstanceRequest {
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "SnapshotId")]
pub snapshot_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDeployablePatchSnapshotForInstanceResult {
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "Product")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product: Option<String>,
#[serde(rename = "SnapshotDownloadUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub snapshot_download_url: Option<String>,
#[serde(rename = "SnapshotId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub snapshot_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetDocumentRequest {
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetDocumentResult {
#[serde(rename = "AttachmentsContent")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attachments_content: Option<Vec<AttachmentContent>>,
#[serde(rename = "Content")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content: Option<String>,
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_type: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_information: Option<String>,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInventoryRequest {
#[serde(rename = "Aggregators")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aggregators: Option<Vec<InventoryAggregator>>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<InventoryFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ResultAttributes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub result_attributes: Option<Vec<ResultAttribute>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInventoryResult {
#[serde(rename = "Entities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub entities: Option<Vec<InventoryResultEntity>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetInventorySchemaRequest {
#[serde(rename = "Aggregator")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aggregator: Option<bool>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "SubType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sub_type: Option<bool>,
#[serde(rename = "TypeName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetInventorySchemaResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Schemas")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schemas: Option<Vec<InventoryItemSchema>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetMaintenanceWindowExecutionRequest {
#[serde(rename = "WindowExecutionId")]
pub window_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetMaintenanceWindowExecutionResult {
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TaskIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_ids: Option<Vec<String>>,
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetMaintenanceWindowExecutionTaskInvocationRequest {
#[serde(rename = "InvocationId")]
pub invocation_id: String,
#[serde(rename = "TaskId")]
pub task_id: String,
#[serde(rename = "WindowExecutionId")]
pub window_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetMaintenanceWindowExecutionTaskInvocationResult {
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "ExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_id: Option<String>,
#[serde(rename = "InvocationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub invocation_id: Option<String>,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<String>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TaskExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_execution_id: Option<String>,
#[serde(rename = "TaskType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_type: Option<String>,
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
#[serde(rename = "WindowTargetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_target_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetMaintenanceWindowExecutionTaskRequest {
#[serde(rename = "TaskId")]
pub task_id: String,
#[serde(rename = "WindowExecutionId")]
pub window_execution_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetMaintenanceWindowExecutionTaskResult {
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "ServiceRole")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role: Option<String>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_arn: Option<String>,
#[serde(rename = "TaskExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_execution_id: Option<String>,
#[serde(rename = "TaskParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_parameters: Option<
Vec<::std::collections::HashMap<String, MaintenanceWindowTaskParameterValueExpression>>,
>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetMaintenanceWindowRequest {
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetMaintenanceWindowResult {
#[serde(rename = "AllowUnassociatedTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_unassociated_targets: Option<bool>,
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "Cutoff")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cutoff: Option<i64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Duration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration: Option<i64>,
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EndDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_date: Option<String>,
#[serde(rename = "ModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub modified_date: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "NextExecutionTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_execution_time: Option<String>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "ScheduleTimezone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_timezone: Option<String>,
#[serde(rename = "StartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_date: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetMaintenanceWindowTaskRequest {
#[serde(rename = "WindowId")]
pub window_id: String,
#[serde(rename = "WindowTaskId")]
pub window_task_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetMaintenanceWindowTaskResult {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LoggingInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logging_info: Option<LoggingInfo>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "TaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_arn: Option<String>,
#[serde(rename = "TaskInvocationParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_invocation_parameters: Option<MaintenanceWindowTaskInvocationParameters>,
#[serde(rename = "TaskParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_parameters:
Option<::std::collections::HashMap<String, MaintenanceWindowTaskParameterValueExpression>>,
#[serde(rename = "TaskType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_type: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTaskId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_task_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetOpsItemRequest {
#[serde(rename = "OpsItemId")]
pub ops_item_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetOpsItemResponse {
#[serde(rename = "OpsItem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ops_item: Option<OpsItem>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetOpsSummaryRequest {
#[serde(rename = "Aggregators")]
pub aggregators: Vec<OpsAggregator>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<OpsFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetOpsSummaryResult {
#[serde(rename = "Entities")]
#[serde(skip_serializing_if = "Option::is_none")]
pub entities: Option<Vec<OpsEntity>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetParameterHistoryRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "WithDecryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub with_decryption: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetParameterHistoryResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<Vec<ParameterHistory>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetParameterRequest {
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "WithDecryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub with_decryption: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetParameterResult {
#[serde(rename = "Parameter")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter: Option<Parameter>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetParametersByPathRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ParameterFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_filters: Option<Vec<ParameterStringFilter>>,
#[serde(rename = "Path")]
pub path: String,
#[serde(rename = "Recursive")]
#[serde(skip_serializing_if = "Option::is_none")]
pub recursive: Option<bool>,
#[serde(rename = "WithDecryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub with_decryption: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetParametersByPathResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<Vec<Parameter>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetParametersRequest {
#[serde(rename = "Names")]
pub names: Vec<String>,
#[serde(rename = "WithDecryption")]
#[serde(skip_serializing_if = "Option::is_none")]
pub with_decryption: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetParametersResult {
#[serde(rename = "InvalidParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub invalid_parameters: Option<Vec<String>>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<Vec<Parameter>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetPatchBaselineForPatchGroupRequest {
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
#[serde(rename = "PatchGroup")]
pub patch_group: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetPatchBaselineForPatchGroupResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
#[serde(rename = "PatchGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_group: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetPatchBaselineRequest {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetPatchBaselineResult {
#[serde(rename = "ApprovalRules")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approval_rules: Option<PatchRuleGroup>,
#[serde(rename = "ApprovedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches: Option<Vec<String>>,
#[serde(rename = "ApprovedPatchesComplianceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_compliance_level: Option<String>,
#[serde(rename = "ApprovedPatchesEnableNonSecurity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_enable_non_security: Option<bool>,
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "GlobalFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub global_filters: Option<PatchFilterGroup>,
#[serde(rename = "ModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub modified_date: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
#[serde(rename = "PatchGroups")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_groups: Option<Vec<String>>,
#[serde(rename = "RejectedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches: Option<Vec<String>>,
#[serde(rename = "RejectedPatchesAction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches_action: Option<String>,
#[serde(rename = "Sources")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sources: Option<Vec<PatchSource>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct GetServiceSettingRequest {
#[serde(rename = "SettingId")]
pub setting_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct GetServiceSettingResult {
#[serde(rename = "ServiceSetting")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_setting: Option<ServiceSetting>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceAggregatedAssociationOverview {
#[serde(rename = "DetailedStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub detailed_status: Option<String>,
#[serde(rename = "InstanceAssociationStatusAggregatedCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_association_status_aggregated_count:
Option<::std::collections::HashMap<String, i64>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceAssociation {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "Content")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct InstanceAssociationOutputLocation {
#[serde(rename = "S3Location")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_location: Option<S3OutputLocation>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceAssociationOutputUrl {
#[serde(rename = "S3OutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_output_url: Option<S3OutputUrl>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceAssociationStatusInfo {
#[serde(rename = "AssociationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_id: Option<String>,
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "DetailedStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub detailed_status: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "ErrorCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub error_code: Option<String>,
#[serde(rename = "ExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_date: Option<f64>,
#[serde(rename = "ExecutionSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_summary: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_url: Option<InstanceAssociationOutputUrl>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstanceInformation {
#[serde(rename = "ActivationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub activation_id: Option<String>,
#[serde(rename = "AgentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub agent_version: Option<String>,
#[serde(rename = "AssociationOverview")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_overview: Option<InstanceAggregatedAssociationOverview>,
#[serde(rename = "AssociationStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_status: Option<String>,
#[serde(rename = "ComputerName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub computer_name: Option<String>,
#[serde(rename = "IPAddress")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ip_address: Option<String>,
#[serde(rename = "IamRole")]
#[serde(skip_serializing_if = "Option::is_none")]
pub iam_role: Option<String>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "IsLatestVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_latest_version: Option<bool>,
#[serde(rename = "LastAssociationExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_association_execution_date: Option<f64>,
#[serde(rename = "LastPingDateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_ping_date_time: Option<f64>,
#[serde(rename = "LastSuccessfulAssociationExecutionDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_successful_association_execution_date: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "PingStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ping_status: Option<String>,
#[serde(rename = "PlatformName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform_name: Option<String>,
#[serde(rename = "PlatformType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform_type: Option<String>,
#[serde(rename = "PlatformVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub platform_version: Option<String>,
#[serde(rename = "RegistrationDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub registration_date: Option<f64>,
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InstanceInformationFilter {
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "valueSet")]
pub value_set: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InstanceInformationStringFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InstancePatchState {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
#[serde(rename = "FailedCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failed_count: Option<i64>,
#[serde(rename = "InstallOverrideList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub install_override_list: Option<String>,
#[serde(rename = "InstalledCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub installed_count: Option<i64>,
#[serde(rename = "InstalledOtherCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub installed_other_count: Option<i64>,
#[serde(rename = "InstalledRejectedCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub installed_rejected_count: Option<i64>,
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "MissingCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub missing_count: Option<i64>,
#[serde(rename = "NotApplicableCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub not_applicable_count: Option<i64>,
#[serde(rename = "Operation")]
pub operation: String,
#[serde(rename = "OperationEndTime")]
pub operation_end_time: f64,
#[serde(rename = "OperationStartTime")]
pub operation_start_time: f64,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "PatchGroup")]
pub patch_group: String,
#[serde(rename = "SnapshotId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub snapshot_id: Option<String>,
#[serde(rename = "UnreportedNotApplicableCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unreported_not_applicable_count: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InstancePatchStateFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Type")]
pub type_: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InventoryAggregator {
#[serde(rename = "Aggregators")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aggregators: Option<Vec<InventoryAggregator>>,
#[serde(rename = "Expression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub expression: Option<String>,
#[serde(rename = "Groups")]
#[serde(skip_serializing_if = "Option::is_none")]
pub groups: Option<Vec<InventoryGroup>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryDeletionStatusItem {
#[serde(rename = "DeletionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletion_id: Option<String>,
#[serde(rename = "DeletionStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletion_start_time: Option<f64>,
#[serde(rename = "DeletionSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deletion_summary: Option<InventoryDeletionSummary>,
#[serde(rename = "LastStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_status: Option<String>,
#[serde(rename = "LastStatusMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_status_message: Option<String>,
#[serde(rename = "LastStatusUpdateTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_status_update_time: Option<f64>,
#[serde(rename = "TypeName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryDeletionSummary {
#[serde(rename = "RemainingCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remaining_count: Option<i64>,
#[serde(rename = "SummaryItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub summary_items: Option<Vec<InventoryDeletionSummaryItem>>,
#[serde(rename = "TotalCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total_count: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryDeletionSummaryItem {
#[serde(rename = "Count")]
#[serde(skip_serializing_if = "Option::is_none")]
pub count: Option<i64>,
#[serde(rename = "RemainingCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub remaining_count: Option<i64>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InventoryFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InventoryGroup {
#[serde(rename = "Filters")]
pub filters: Vec<InventoryFilter>,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct InventoryItem {
#[serde(rename = "CaptureTime")]
pub capture_time: String,
#[serde(rename = "Content")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content: Option<Vec<::std::collections::HashMap<String, String>>>,
#[serde(rename = "ContentHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content_hash: Option<String>,
#[serde(rename = "Context")]
#[serde(skip_serializing_if = "Option::is_none")]
pub context: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "SchemaVersion")]
pub schema_version: String,
#[serde(rename = "TypeName")]
pub type_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryItemAttribute {
#[serde(rename = "DataType")]
pub data_type: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryItemSchema {
#[serde(rename = "Attributes")]
pub attributes: Vec<InventoryItemAttribute>,
#[serde(rename = "DisplayName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub display_name: Option<String>,
#[serde(rename = "TypeName")]
pub type_name: String,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryResultEntity {
#[serde(rename = "Data")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<::std::collections::HashMap<String, InventoryResultItem>>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct InventoryResultItem {
#[serde(rename = "CaptureTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_time: Option<String>,
#[serde(rename = "Content")]
pub content: Vec<::std::collections::HashMap<String, String>>,
#[serde(rename = "ContentHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content_hash: Option<String>,
#[serde(rename = "SchemaVersion")]
pub schema_version: String,
#[serde(rename = "TypeName")]
pub type_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct LabelParameterVersionRequest {
#[serde(rename = "Labels")]
pub labels: Vec<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "ParameterVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct LabelParameterVersionResult {
#[serde(rename = "InvalidLabels")]
#[serde(skip_serializing_if = "Option::is_none")]
pub invalid_labels: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListAssociationVersionsRequest {
#[serde(rename = "AssociationId")]
pub association_id: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListAssociationVersionsResult {
#[serde(rename = "AssociationVersions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_versions: Option<Vec<AssociationVersionInfo>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListAssociationsRequest {
#[serde(rename = "AssociationFilterList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_filter_list: Option<Vec<AssociationFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListAssociationsResult {
#[serde(rename = "Associations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub associations: Option<Vec<Association>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListCommandInvocationsRequest {
#[serde(rename = "CommandId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_id: Option<String>,
#[serde(rename = "Details")]
#[serde(skip_serializing_if = "Option::is_none")]
pub details: Option<bool>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<CommandFilter>>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListCommandInvocationsResult {
#[serde(rename = "CommandInvocations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_invocations: Option<Vec<CommandInvocation>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListCommandsRequest {
#[serde(rename = "CommandId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command_id: Option<String>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<CommandFilter>>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListCommandsResult {
#[serde(rename = "Commands")]
#[serde(skip_serializing_if = "Option::is_none")]
pub commands: Option<Vec<Command>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListComplianceItemsRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<ComplianceStringFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ResourceIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_ids: Option<Vec<String>>,
#[serde(rename = "ResourceTypes")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_types: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListComplianceItemsResult {
#[serde(rename = "ComplianceItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_items: Option<Vec<ComplianceItem>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListComplianceSummariesRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<ComplianceStringFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListComplianceSummariesResult {
#[serde(rename = "ComplianceSummaryItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_summary_items: Option<Vec<ComplianceSummaryItem>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListDocumentVersionsRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListDocumentVersionsResult {
#[serde(rename = "DocumentVersions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_versions: Option<Vec<DocumentVersionInfo>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListDocumentsRequest {
#[serde(rename = "DocumentFilterList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_filter_list: Option<Vec<DocumentFilter>>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<DocumentKeyValuesFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListDocumentsResult {
#[serde(rename = "DocumentIdentifiers")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_identifiers: Option<Vec<DocumentIdentifier>>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListInventoryEntriesRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<InventoryFilter>>,
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "TypeName")]
pub type_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListInventoryEntriesResult {
#[serde(rename = "CaptureTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub capture_time: Option<String>,
#[serde(rename = "Entries")]
#[serde(skip_serializing_if = "Option::is_none")]
pub entries: Option<Vec<::std::collections::HashMap<String, String>>>,
#[serde(rename = "InstanceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_id: Option<String>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "SchemaVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schema_version: Option<String>,
#[serde(rename = "TypeName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListResourceComplianceSummariesRequest {
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<ComplianceStringFilter>>,
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListResourceComplianceSummariesResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ResourceComplianceSummaryItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_compliance_summary_items: Option<Vec<ResourceComplianceSummaryItem>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListResourceDataSyncRequest {
#[serde(rename = "MaxResults")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_results: Option<i64>,
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListResourceDataSyncResult {
#[serde(rename = "NextToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_token: Option<String>,
#[serde(rename = "ResourceDataSyncItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_data_sync_items: Option<Vec<ResourceDataSyncItem>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ListTagsForResourceRequest {
#[serde(rename = "ResourceId")]
pub resource_id: String,
#[serde(rename = "ResourceType")]
pub resource_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ListTagsForResourceResult {
#[serde(rename = "TagList")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tag_list: Option<Vec<Tag>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct LoggingInfo {
#[serde(rename = "S3BucketName")]
pub s3_bucket_name: String,
#[serde(rename = "S3KeyPrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_key_prefix: Option<String>,
#[serde(rename = "S3Region")]
pub s3_region: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MaintenanceWindowAutomationParameters {
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MaintenanceWindowExecution {
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MaintenanceWindowExecutionTaskIdentity {
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_arn: Option<String>,
#[serde(rename = "TaskExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_execution_id: Option<String>,
#[serde(rename = "TaskType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_type: Option<String>,
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MaintenanceWindowExecutionTaskInvocationIdentity {
#[serde(rename = "EndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_time: Option<f64>,
#[serde(rename = "ExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_id: Option<String>,
#[serde(rename = "InvocationId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub invocation_id: Option<String>,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<String>,
#[serde(rename = "StartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_time: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "StatusDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status_details: Option<String>,
#[serde(rename = "TaskExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_execution_id: Option<String>,
#[serde(rename = "TaskType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_type: Option<String>,
#[serde(rename = "WindowExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_execution_id: Option<String>,
#[serde(rename = "WindowTargetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_target_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct MaintenanceWindowFilter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MaintenanceWindowIdentity {
#[serde(rename = "Cutoff")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cutoff: Option<i64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Duration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration: Option<i64>,
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EndDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_date: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "NextExecutionTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_execution_time: Option<String>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "ScheduleTimezone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_timezone: Option<String>,
#[serde(rename = "StartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_date: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MaintenanceWindowIdentityForTarget {
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MaintenanceWindowLambdaParameters {
#[serde(rename = "ClientContext")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_context: Option<String>,
#[serde(rename = "Payload")]
#[serde(
deserialize_with = "::rusoto_core::serialization::SerdeBlob::deserialize_blob",
serialize_with = "::rusoto_core::serialization::SerdeBlob::serialize_blob",
default
)]
#[serde(skip_serializing_if = "Option::is_none")]
pub payload: Option<bytes::Bytes>,
#[serde(rename = "Qualifier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub qualifier: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MaintenanceWindowRunCommandParameters {
#[serde(rename = "Comment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "DocumentHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_hash: Option<String>,
#[serde(rename = "DocumentHashType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_hash_type: Option<String>,
#[serde(rename = "NotificationConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_config: Option<NotificationConfig>,
#[serde(rename = "OutputS3BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_bucket_name: Option<String>,
#[serde(rename = "OutputS3KeyPrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_key_prefix: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "TimeoutSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout_seconds: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MaintenanceWindowStepFunctionsParameters {
#[serde(rename = "Input")]
#[serde(skip_serializing_if = "Option::is_none")]
pub input: Option<String>,
#[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 MaintenanceWindowTarget {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "ResourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_type: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTargetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_target_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct MaintenanceWindowTask {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LoggingInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logging_info: Option<LoggingInfo>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "TaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_arn: Option<String>,
#[serde(rename = "TaskParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_parameters:
Option<::std::collections::HashMap<String, MaintenanceWindowTaskParameterValueExpression>>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTaskId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_task_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MaintenanceWindowTaskInvocationParameters {
#[serde(rename = "Automation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation: Option<MaintenanceWindowAutomationParameters>,
#[serde(rename = "Lambda")]
#[serde(skip_serializing_if = "Option::is_none")]
pub lambda: Option<MaintenanceWindowLambdaParameters>,
#[serde(rename = "RunCommand")]
#[serde(skip_serializing_if = "Option::is_none")]
pub run_command: Option<MaintenanceWindowRunCommandParameters>,
#[serde(rename = "StepFunctions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_functions: Option<MaintenanceWindowStepFunctionsParameters>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct MaintenanceWindowTaskParameterValueExpression {
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ModifyDocumentPermissionRequest {
#[serde(rename = "AccountIdsToAdd")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_ids_to_add: Option<Vec<String>>,
#[serde(rename = "AccountIdsToRemove")]
#[serde(skip_serializing_if = "Option::is_none")]
pub account_ids_to_remove: Option<Vec<String>>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "PermissionType")]
pub permission_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ModifyDocumentPermissionResponse {}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct NonCompliantSummary {
#[serde(rename = "NonCompliantCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub non_compliant_count: Option<i64>,
#[serde(rename = "SeveritySummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub severity_summary: Option<SeveritySummary>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct NotificationConfig {
#[serde(rename = "NotificationArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_arn: Option<String>,
#[serde(rename = "NotificationEvents")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_events: Option<Vec<String>>,
#[serde(rename = "NotificationType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct OpsAggregator {
#[serde(rename = "AggregatorType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aggregator_type: Option<String>,
#[serde(rename = "Aggregators")]
#[serde(skip_serializing_if = "Option::is_none")]
pub aggregators: Option<Vec<OpsAggregator>>,
#[serde(rename = "AttributeName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attribute_name: Option<String>,
#[serde(rename = "Filters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub filters: Option<Vec<OpsFilter>>,
#[serde(rename = "TypeName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_name: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<::std::collections::HashMap<String, String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OpsEntity {
#[serde(rename = "Data")]
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<::std::collections::HashMap<String, OpsEntityItem>>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OpsEntityItem {
#[serde(rename = "Content")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content: Option<Vec<::std::collections::HashMap<String, String>>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct OpsFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OpsItem {
#[serde(rename = "CreatedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_by: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LastModifiedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_by: Option<String>,
#[serde(rename = "LastModifiedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_time: Option<f64>,
#[serde(rename = "Notifications")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notifications: Option<Vec<OpsItemNotification>>,
#[serde(rename = "OperationalData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operational_data: Option<::std::collections::HashMap<String, OpsItemDataValue>>,
#[serde(rename = "OpsItemId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ops_item_id: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "RelatedOpsItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub related_ops_items: Option<Vec<RelatedOpsItem>>,
#[serde(rename = "Source")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Title")]
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct OpsItemDataValue {
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct OpsItemFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Operator")]
pub operator: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct OpsItemNotification {
#[serde(rename = "Arn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OpsItemSummary {
#[serde(rename = "CreatedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_by: Option<String>,
#[serde(rename = "CreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_time: Option<f64>,
#[serde(rename = "LastModifiedBy")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_by: Option<String>,
#[serde(rename = "LastModifiedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_time: Option<f64>,
#[serde(rename = "OperationalData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operational_data: Option<::std::collections::HashMap<String, OpsItemDataValue>>,
#[serde(rename = "OpsItemId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub ops_item_id: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "Source")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Title")]
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct OutputSource {
#[serde(rename = "OutputSourceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_source_id: Option<String>,
#[serde(rename = "OutputSourceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_source_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Parameter {
#[serde(rename = "ARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "LastModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_date: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Selector")]
#[serde(skip_serializing_if = "Option::is_none")]
pub selector: Option<String>,
#[serde(rename = "SourceResult")]
#[serde(skip_serializing_if = "Option::is_none")]
pub source_result: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ParameterHistory {
#[serde(rename = "AllowedPattern")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allowed_pattern: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "KeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_id: Option<String>,
#[serde(rename = "Labels")]
#[serde(skip_serializing_if = "Option::is_none")]
pub labels: Option<Vec<String>>,
#[serde(rename = "LastModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_date: Option<f64>,
#[serde(rename = "LastModifiedUser")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_user: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Policies")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policies: Option<Vec<ParameterInlinePolicy>>,
#[serde(rename = "Tier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tier: Option<String>,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
#[serde(rename = "Value")]
#[serde(skip_serializing_if = "Option::is_none")]
pub value: Option<String>,
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ParameterInlinePolicy {
#[serde(rename = "PolicyStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_status: Option<String>,
#[serde(rename = "PolicyText")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_text: Option<String>,
#[serde(rename = "PolicyType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policy_type: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ParameterMetadata {
#[serde(rename = "AllowedPattern")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allowed_pattern: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "KeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_id: Option<String>,
#[serde(rename = "LastModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_date: Option<f64>,
#[serde(rename = "LastModifiedUser")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_user: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Policies")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policies: Option<Vec<ParameterInlinePolicy>>,
#[serde(rename = "Tier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tier: 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<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ParameterStringFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Option")]
#[serde(skip_serializing_if = "Option::is_none")]
pub option: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ParametersFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Patch {
#[serde(rename = "Classification")]
#[serde(skip_serializing_if = "Option::is_none")]
pub classification: Option<String>,
#[serde(rename = "ContentUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub content_url: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Id")]
#[serde(skip_serializing_if = "Option::is_none")]
pub id: Option<String>,
#[serde(rename = "KbNumber")]
#[serde(skip_serializing_if = "Option::is_none")]
pub kb_number: Option<String>,
#[serde(rename = "Language")]
#[serde(skip_serializing_if = "Option::is_none")]
pub language: Option<String>,
#[serde(rename = "MsrcNumber")]
#[serde(skip_serializing_if = "Option::is_none")]
pub msrc_number: Option<String>,
#[serde(rename = "MsrcSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub msrc_severity: Option<String>,
#[serde(rename = "Product")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product: Option<String>,
#[serde(rename = "ProductFamily")]
#[serde(skip_serializing_if = "Option::is_none")]
pub product_family: Option<String>,
#[serde(rename = "ReleaseDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub release_date: Option<f64>,
#[serde(rename = "Title")]
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
#[serde(rename = "Vendor")]
#[serde(skip_serializing_if = "Option::is_none")]
pub vendor: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PatchBaselineIdentity {
#[serde(rename = "BaselineDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_description: Option<String>,
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "BaselineName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_name: Option<String>,
#[serde(rename = "DefaultBaseline")]
#[serde(skip_serializing_if = "Option::is_none")]
pub default_baseline: Option<bool>,
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PatchComplianceData {
#[serde(rename = "Classification")]
pub classification: String,
#[serde(rename = "InstalledTime")]
pub installed_time: f64,
#[serde(rename = "KBId")]
pub kb_id: String,
#[serde(rename = "Severity")]
pub severity: String,
#[serde(rename = "State")]
pub state: String,
#[serde(rename = "Title")]
pub title: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PatchFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PatchFilterGroup {
#[serde(rename = "PatchFilters")]
pub patch_filters: Vec<PatchFilter>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PatchGroupPatchBaselineMapping {
#[serde(rename = "BaselineIdentity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_identity: Option<PatchBaselineIdentity>,
#[serde(rename = "PatchGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_group: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PatchOrchestratorFilter {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PatchRule {
#[serde(rename = "ApproveAfterDays")]
pub approve_after_days: i64,
#[serde(rename = "ComplianceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_level: Option<String>,
#[serde(rename = "EnableNonSecurity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enable_non_security: Option<bool>,
#[serde(rename = "PatchFilterGroup")]
pub patch_filter_group: PatchFilterGroup,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PatchRuleGroup {
#[serde(rename = "PatchRules")]
pub patch_rules: Vec<PatchRule>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct PatchSource {
#[serde(rename = "Configuration")]
pub configuration: String,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Products")]
pub products: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PatchStatus {
#[serde(rename = "ApprovalDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approval_date: Option<f64>,
#[serde(rename = "ComplianceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_level: Option<String>,
#[serde(rename = "DeploymentStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub deployment_status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ProgressCounters {
#[serde(rename = "CancelledSteps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cancelled_steps: Option<i64>,
#[serde(rename = "FailedSteps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failed_steps: Option<i64>,
#[serde(rename = "SuccessSteps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub success_steps: Option<i64>,
#[serde(rename = "TimedOutSteps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timed_out_steps: Option<i64>,
#[serde(rename = "TotalSteps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub total_steps: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PutComplianceItemsRequest {
#[serde(rename = "ComplianceType")]
pub compliance_type: String,
#[serde(rename = "ExecutionSummary")]
pub execution_summary: ComplianceExecutionSummary,
#[serde(rename = "ItemContentHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub item_content_hash: Option<String>,
#[serde(rename = "Items")]
pub items: Vec<ComplianceItemEntry>,
#[serde(rename = "ResourceId")]
pub resource_id: String,
#[serde(rename = "ResourceType")]
pub resource_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PutComplianceItemsResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PutInventoryRequest {
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "Items")]
pub items: Vec<InventoryItem>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PutInventoryResult {
#[serde(rename = "Message")]
#[serde(skip_serializing_if = "Option::is_none")]
pub message: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct PutParameterRequest {
#[serde(rename = "AllowedPattern")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allowed_pattern: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "KeyId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key_id: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "Overwrite")]
#[serde(skip_serializing_if = "Option::is_none")]
pub overwrite: Option<bool>,
#[serde(rename = "Policies")]
#[serde(skip_serializing_if = "Option::is_none")]
pub policies: Option<String>,
#[serde(rename = "Tags")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tags: Option<Vec<Tag>>,
#[serde(rename = "Tier")]
#[serde(skip_serializing_if = "Option::is_none")]
pub tier: Option<String>,
#[serde(rename = "Type")]
pub type_: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct PutParameterResult {
#[serde(rename = "Version")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RegisterDefaultPatchBaselineRequest {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RegisterDefaultPatchBaselineResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RegisterPatchBaselineForPatchGroupRequest {
#[serde(rename = "BaselineId")]
pub baseline_id: String,
#[serde(rename = "PatchGroup")]
pub patch_group: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RegisterPatchBaselineForPatchGroupResult {
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "PatchGroup")]
#[serde(skip_serializing_if = "Option::is_none")]
pub patch_group: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RegisterTargetWithMaintenanceWindowRequest {
#[serde(rename = "ClientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "ResourceType")]
pub resource_type: String,
#[serde(rename = "Targets")]
pub targets: Vec<Target>,
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RegisterTargetWithMaintenanceWindowResult {
#[serde(rename = "WindowTargetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_target_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RegisterTaskWithMaintenanceWindowRequest {
#[serde(rename = "ClientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LoggingInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logging_info: Option<LoggingInfo>,
#[serde(rename = "MaxConcurrency")]
pub max_concurrency: String,
#[serde(rename = "MaxErrors")]
pub max_errors: String,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "Targets")]
pub targets: Vec<Target>,
#[serde(rename = "TaskArn")]
pub task_arn: String,
#[serde(rename = "TaskInvocationParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_invocation_parameters: Option<MaintenanceWindowTaskInvocationParameters>,
#[serde(rename = "TaskParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_parameters:
Option<::std::collections::HashMap<String, MaintenanceWindowTaskParameterValueExpression>>,
#[serde(rename = "TaskType")]
pub task_type: String,
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RegisterTaskWithMaintenanceWindowResult {
#[serde(rename = "WindowTaskId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_task_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct RelatedOpsItem {
#[serde(rename = "OpsItemId")]
pub ops_item_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct RemoveTagsFromResourceRequest {
#[serde(rename = "ResourceId")]
pub resource_id: String,
#[serde(rename = "ResourceType")]
pub resource_type: String,
#[serde(rename = "TagKeys")]
pub tag_keys: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct RemoveTagsFromResourceResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ResetServiceSettingRequest {
#[serde(rename = "SettingId")]
pub setting_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResetServiceSettingResult {
#[serde(rename = "ServiceSetting")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_setting: Option<ServiceSetting>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResolvedTargets {
#[serde(rename = "ParameterValues")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameter_values: Option<Vec<String>>,
#[serde(rename = "Truncated")]
#[serde(skip_serializing_if = "Option::is_none")]
pub truncated: Option<bool>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceComplianceSummaryItem {
#[serde(rename = "ComplianceType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_type: Option<String>,
#[serde(rename = "CompliantSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliant_summary: Option<CompliantSummary>,
#[serde(rename = "ExecutionSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_summary: Option<ComplianceExecutionSummary>,
#[serde(rename = "NonCompliantSummary")]
#[serde(skip_serializing_if = "Option::is_none")]
pub non_compliant_summary: Option<NonCompliantSummary>,
#[serde(rename = "OverallSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub overall_severity: Option<String>,
#[serde(rename = "ResourceId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub resource_id: 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>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResourceDataSyncItem {
#[serde(rename = "LastStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_status: Option<String>,
#[serde(rename = "LastSuccessfulSyncTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_successful_sync_time: Option<f64>,
#[serde(rename = "LastSyncStatusMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_sync_status_message: Option<String>,
#[serde(rename = "LastSyncTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_sync_time: Option<f64>,
#[serde(rename = "S3Destination")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_destination: Option<ResourceDataSyncS3Destination>,
#[serde(rename = "SyncCreatedTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sync_created_time: Option<f64>,
#[serde(rename = "SyncName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sync_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct ResourceDataSyncS3Destination {
#[serde(rename = "AWSKMSKeyARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub awskms_key_arn: Option<String>,
#[serde(rename = "BucketName")]
pub bucket_name: String,
#[serde(rename = "Prefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub prefix: Option<String>,
#[serde(rename = "Region")]
pub region: String,
#[serde(rename = "SyncFormat")]
pub sync_format: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ResultAttribute {
#[serde(rename = "TypeName")]
pub type_name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct ResumeSessionRequest {
#[serde(rename = "SessionId")]
pub session_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ResumeSessionResponse {
#[serde(rename = "SessionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub session_id: Option<String>,
#[serde(rename = "StreamUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stream_url: Option<String>,
#[serde(rename = "TokenValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub token_value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct S3OutputLocation {
#[serde(rename = "OutputS3BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_bucket_name: Option<String>,
#[serde(rename = "OutputS3KeyPrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_key_prefix: Option<String>,
#[serde(rename = "OutputS3Region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_region: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct S3OutputUrl {
#[serde(rename = "OutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ScheduledWindowExecution {
#[serde(rename = "ExecutionTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_time: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct SendAutomationSignalRequest {
#[serde(rename = "AutomationExecutionId")]
pub automation_execution_id: String,
#[serde(rename = "Payload")]
#[serde(skip_serializing_if = "Option::is_none")]
pub payload: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "SignalType")]
pub signal_type: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SendAutomationSignalResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct SendCommandRequest {
#[serde(rename = "CloudWatchOutputConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_output_config: Option<CloudWatchOutputConfig>,
#[serde(rename = "Comment")]
#[serde(skip_serializing_if = "Option::is_none")]
pub comment: Option<String>,
#[serde(rename = "DocumentHash")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_hash: Option<String>,
#[serde(rename = "DocumentHashType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_hash_type: Option<String>,
#[serde(rename = "DocumentName")]
pub document_name: String,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "InstanceIds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub instance_ids: Option<Vec<String>>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "NotificationConfig")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notification_config: Option<NotificationConfig>,
#[serde(rename = "OutputS3BucketName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_bucket_name: Option<String>,
#[serde(rename = "OutputS3KeyPrefix")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_key_prefix: Option<String>,
#[serde(rename = "OutputS3Region")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_s3_region: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "TimeoutSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout_seconds: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SendCommandResult {
#[serde(rename = "Command")]
#[serde(skip_serializing_if = "Option::is_none")]
pub command: Option<Command>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct ServiceSetting {
#[serde(rename = "ARN")]
#[serde(skip_serializing_if = "Option::is_none")]
pub arn: Option<String>,
#[serde(rename = "LastModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_date: Option<f64>,
#[serde(rename = "LastModifiedUser")]
#[serde(skip_serializing_if = "Option::is_none")]
pub last_modified_user: Option<String>,
#[serde(rename = "SettingId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub setting_id: Option<String>,
#[serde(rename = "SettingValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub setting_value: Option<String>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct Session {
#[serde(rename = "Details")]
#[serde(skip_serializing_if = "Option::is_none")]
pub details: Option<String>,
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "EndDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_date: Option<f64>,
#[serde(rename = "OutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_url: Option<SessionManagerOutputUrl>,
#[serde(rename = "Owner")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner: Option<String>,
#[serde(rename = "SessionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub session_id: Option<String>,
#[serde(rename = "StartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_date: Option<f64>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Target")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct SessionFilter {
#[serde(rename = "key")]
pub key: String,
#[serde(rename = "value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SessionManagerOutputUrl {
#[serde(rename = "CloudWatchOutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cloud_watch_output_url: Option<String>,
#[serde(rename = "S3OutputUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub s3_output_url: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct SeveritySummary {
#[serde(rename = "CriticalCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub critical_count: Option<i64>,
#[serde(rename = "HighCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub high_count: Option<i64>,
#[serde(rename = "InformationalCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub informational_count: Option<i64>,
#[serde(rename = "LowCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub low_count: Option<i64>,
#[serde(rename = "MediumCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub medium_count: Option<i64>,
#[serde(rename = "UnspecifiedCount")]
#[serde(skip_serializing_if = "Option::is_none")]
pub unspecified_count: Option<i64>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartAssociationsOnceRequest {
#[serde(rename = "AssociationIds")]
pub association_ids: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartAssociationsOnceResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartAutomationExecutionRequest {
#[serde(rename = "ClientToken")]
#[serde(skip_serializing_if = "Option::is_none")]
pub client_token: Option<String>,
#[serde(rename = "DocumentName")]
pub document_name: String,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Mode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub mode: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "TargetLocations")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_locations: Option<Vec<TargetLocation>>,
#[serde(rename = "TargetMaps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_maps: Option<Vec<::std::collections::HashMap<String, Vec<String>>>>,
#[serde(rename = "TargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_parameter_name: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartAutomationExecutionResult {
#[serde(rename = "AutomationExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_execution_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StartSessionRequest {
#[serde(rename = "DocumentName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_name: Option<String>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "Target")]
pub target: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StartSessionResponse {
#[serde(rename = "SessionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub session_id: Option<String>,
#[serde(rename = "StreamUrl")]
#[serde(skip_serializing_if = "Option::is_none")]
pub stream_url: Option<String>,
#[serde(rename = "TokenValue")]
#[serde(skip_serializing_if = "Option::is_none")]
pub token_value: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StepExecution {
#[serde(rename = "Action")]
#[serde(skip_serializing_if = "Option::is_none")]
pub action: Option<String>,
#[serde(rename = "ExecutionEndTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_end_time: Option<f64>,
#[serde(rename = "ExecutionStartTime")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_start_time: Option<f64>,
#[serde(rename = "FailureDetails")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_details: Option<FailureDetails>,
#[serde(rename = "FailureMessage")]
#[serde(skip_serializing_if = "Option::is_none")]
pub failure_message: Option<String>,
#[serde(rename = "Inputs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub inputs: Option<::std::collections::HashMap<String, String>>,
#[serde(rename = "IsCritical")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_critical: Option<bool>,
#[serde(rename = "IsEnd")]
#[serde(skip_serializing_if = "Option::is_none")]
pub is_end: Option<bool>,
#[serde(rename = "MaxAttempts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_attempts: Option<i64>,
#[serde(rename = "NextStep")]
#[serde(skip_serializing_if = "Option::is_none")]
pub next_step: Option<String>,
#[serde(rename = "OnFailure")]
#[serde(skip_serializing_if = "Option::is_none")]
pub on_failure: Option<String>,
#[serde(rename = "Outputs")]
#[serde(skip_serializing_if = "Option::is_none")]
pub outputs: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "OverriddenParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub overridden_parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "Response")]
#[serde(skip_serializing_if = "Option::is_none")]
pub response: Option<String>,
#[serde(rename = "ResponseCode")]
#[serde(skip_serializing_if = "Option::is_none")]
pub response_code: Option<String>,
#[serde(rename = "StepExecutionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_execution_id: Option<String>,
#[serde(rename = "StepName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_name: Option<String>,
#[serde(rename = "StepStatus")]
#[serde(skip_serializing_if = "Option::is_none")]
pub step_status: Option<String>,
#[serde(rename = "TargetLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_location: Option<TargetLocation>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "TimeoutSeconds")]
#[serde(skip_serializing_if = "Option::is_none")]
pub timeout_seconds: Option<i64>,
#[serde(rename = "ValidNextSteps")]
#[serde(skip_serializing_if = "Option::is_none")]
pub valid_next_steps: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StepExecutionFilter {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Values")]
pub values: Vec<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct StopAutomationExecutionRequest {
#[serde(rename = "AutomationExecutionId")]
pub automation_execution_id: String,
#[serde(rename = "Type")]
#[serde(skip_serializing_if = "Option::is_none")]
pub type_: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct StopAutomationExecutionResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Tag {
#[serde(rename = "Key")]
pub key: String,
#[serde(rename = "Value")]
pub value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct Target {
#[serde(rename = "Key")]
#[serde(skip_serializing_if = "Option::is_none")]
pub key: Option<String>,
#[serde(rename = "Values")]
#[serde(skip_serializing_if = "Option::is_none")]
pub values: Option<Vec<String>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize, Deserialize)]
pub struct TargetLocation {
#[serde(rename = "Accounts")]
#[serde(skip_serializing_if = "Option::is_none")]
pub accounts: Option<Vec<String>>,
#[serde(rename = "ExecutionRoleName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub execution_role_name: Option<String>,
#[serde(rename = "Regions")]
#[serde(skip_serializing_if = "Option::is_none")]
pub regions: Option<Vec<String>>,
#[serde(rename = "TargetLocationMaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_location_max_concurrency: Option<String>,
#[serde(rename = "TargetLocationMaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_location_max_errors: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct TerminateSessionRequest {
#[serde(rename = "SessionId")]
pub session_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct TerminateSessionResponse {
#[serde(rename = "SessionId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub session_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateAssociationRequest {
#[serde(rename = "AssociationId")]
pub association_id: String,
#[serde(rename = "AssociationName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_name: Option<String>,
#[serde(rename = "AssociationVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_version: Option<String>,
#[serde(rename = "AutomationTargetParameterName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub automation_target_parameter_name: Option<String>,
#[serde(rename = "ComplianceSeverity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub compliance_severity: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OutputLocation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub output_location: Option<InstanceAssociationOutputLocation>,
#[serde(rename = "Parameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub parameters: Option<::std::collections::HashMap<String, Vec<String>>>,
#[serde(rename = "ScheduleExpression")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_expression: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateAssociationResult {
#[serde(rename = "AssociationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_description: Option<AssociationDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateAssociationStatusRequest {
#[serde(rename = "AssociationStatus")]
pub association_status: AssociationStatus,
#[serde(rename = "InstanceId")]
pub instance_id: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateAssociationStatusResult {
#[serde(rename = "AssociationDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub association_description: Option<AssociationDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDocumentDefaultVersionRequest {
#[serde(rename = "DocumentVersion")]
pub document_version: String,
#[serde(rename = "Name")]
pub name: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDocumentDefaultVersionResult {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<DocumentDefaultVersionDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateDocumentRequest {
#[serde(rename = "Attachments")]
#[serde(skip_serializing_if = "Option::is_none")]
pub attachments: Option<Vec<AttachmentsSource>>,
#[serde(rename = "Content")]
pub content: String,
#[serde(rename = "DocumentFormat")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_format: Option<String>,
#[serde(rename = "DocumentVersion")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_version: Option<String>,
#[serde(rename = "Name")]
pub name: String,
#[serde(rename = "TargetType")]
#[serde(skip_serializing_if = "Option::is_none")]
pub target_type: Option<String>,
#[serde(rename = "VersionName")]
#[serde(skip_serializing_if = "Option::is_none")]
pub version_name: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateDocumentResult {
#[serde(rename = "DocumentDescription")]
#[serde(skip_serializing_if = "Option::is_none")]
pub document_description: Option<DocumentDescription>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateMaintenanceWindowRequest {
#[serde(rename = "AllowUnassociatedTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_unassociated_targets: Option<bool>,
#[serde(rename = "Cutoff")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cutoff: Option<i64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Duration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration: Option<i64>,
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EndDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_date: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Replace")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replace: Option<bool>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "ScheduleTimezone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_timezone: Option<String>,
#[serde(rename = "StartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_date: Option<String>,
#[serde(rename = "WindowId")]
pub window_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateMaintenanceWindowResult {
#[serde(rename = "AllowUnassociatedTargets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub allow_unassociated_targets: Option<bool>,
#[serde(rename = "Cutoff")]
#[serde(skip_serializing_if = "Option::is_none")]
pub cutoff: Option<i64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Duration")]
#[serde(skip_serializing_if = "Option::is_none")]
pub duration: Option<i64>,
#[serde(rename = "Enabled")]
#[serde(skip_serializing_if = "Option::is_none")]
pub enabled: Option<bool>,
#[serde(rename = "EndDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub end_date: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Schedule")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule: Option<String>,
#[serde(rename = "ScheduleTimezone")]
#[serde(skip_serializing_if = "Option::is_none")]
pub schedule_timezone: Option<String>,
#[serde(rename = "StartDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub start_date: Option<String>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateMaintenanceWindowTargetRequest {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "Replace")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replace: Option<bool>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "WindowId")]
pub window_id: String,
#[serde(rename = "WindowTargetId")]
pub window_target_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateMaintenanceWindowTargetResult {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OwnerInformation")]
#[serde(skip_serializing_if = "Option::is_none")]
pub owner_information: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTargetId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_target_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateMaintenanceWindowTaskRequest {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LoggingInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logging_info: Option<LoggingInfo>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "Replace")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replace: Option<bool>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "TaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_arn: Option<String>,
#[serde(rename = "TaskInvocationParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_invocation_parameters: Option<MaintenanceWindowTaskInvocationParameters>,
#[serde(rename = "TaskParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_parameters:
Option<::std::collections::HashMap<String, MaintenanceWindowTaskParameterValueExpression>>,
#[serde(rename = "WindowId")]
pub window_id: String,
#[serde(rename = "WindowTaskId")]
pub window_task_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateMaintenanceWindowTaskResult {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "LoggingInfo")]
#[serde(skip_serializing_if = "Option::is_none")]
pub logging_info: Option<LoggingInfo>,
#[serde(rename = "MaxConcurrency")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_concurrency: Option<String>,
#[serde(rename = "MaxErrors")]
#[serde(skip_serializing_if = "Option::is_none")]
pub max_errors: Option<String>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "ServiceRoleArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub service_role_arn: Option<String>,
#[serde(rename = "Targets")]
#[serde(skip_serializing_if = "Option::is_none")]
pub targets: Option<Vec<Target>>,
#[serde(rename = "TaskArn")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_arn: Option<String>,
#[serde(rename = "TaskInvocationParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_invocation_parameters: Option<MaintenanceWindowTaskInvocationParameters>,
#[serde(rename = "TaskParameters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub task_parameters:
Option<::std::collections::HashMap<String, MaintenanceWindowTaskParameterValueExpression>>,
#[serde(rename = "WindowId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_id: Option<String>,
#[serde(rename = "WindowTaskId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub window_task_id: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateManagedInstanceRoleRequest {
#[serde(rename = "IamRole")]
pub iam_role: String,
#[serde(rename = "InstanceId")]
pub instance_id: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateManagedInstanceRoleResult {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateOpsItemRequest {
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "Notifications")]
#[serde(skip_serializing_if = "Option::is_none")]
pub notifications: Option<Vec<OpsItemNotification>>,
#[serde(rename = "OperationalData")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operational_data: Option<::std::collections::HashMap<String, OpsItemDataValue>>,
#[serde(rename = "OperationalDataToDelete")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operational_data_to_delete: Option<Vec<String>>,
#[serde(rename = "OpsItemId")]
pub ops_item_id: String,
#[serde(rename = "Priority")]
#[serde(skip_serializing_if = "Option::is_none")]
pub priority: Option<i64>,
#[serde(rename = "RelatedOpsItems")]
#[serde(skip_serializing_if = "Option::is_none")]
pub related_ops_items: Option<Vec<RelatedOpsItem>>,
#[serde(rename = "Status")]
#[serde(skip_serializing_if = "Option::is_none")]
pub status: Option<String>,
#[serde(rename = "Title")]
#[serde(skip_serializing_if = "Option::is_none")]
pub title: Option<String>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateOpsItemResponse {}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdatePatchBaselineRequest {
#[serde(rename = "ApprovalRules")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approval_rules: Option<PatchRuleGroup>,
#[serde(rename = "ApprovedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches: Option<Vec<String>>,
#[serde(rename = "ApprovedPatchesComplianceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_compliance_level: Option<String>,
#[serde(rename = "ApprovedPatchesEnableNonSecurity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_enable_non_security: Option<bool>,
#[serde(rename = "BaselineId")]
pub baseline_id: String,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "GlobalFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub global_filters: Option<PatchFilterGroup>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "RejectedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches: Option<Vec<String>>,
#[serde(rename = "RejectedPatchesAction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches_action: Option<String>,
#[serde(rename = "Replace")]
#[serde(skip_serializing_if = "Option::is_none")]
pub replace: Option<bool>,
#[serde(rename = "Sources")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sources: Option<Vec<PatchSource>>,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdatePatchBaselineResult {
#[serde(rename = "ApprovalRules")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approval_rules: Option<PatchRuleGroup>,
#[serde(rename = "ApprovedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches: Option<Vec<String>>,
#[serde(rename = "ApprovedPatchesComplianceLevel")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_compliance_level: Option<String>,
#[serde(rename = "ApprovedPatchesEnableNonSecurity")]
#[serde(skip_serializing_if = "Option::is_none")]
pub approved_patches_enable_non_security: Option<bool>,
#[serde(rename = "BaselineId")]
#[serde(skip_serializing_if = "Option::is_none")]
pub baseline_id: Option<String>,
#[serde(rename = "CreatedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub created_date: Option<f64>,
#[serde(rename = "Description")]
#[serde(skip_serializing_if = "Option::is_none")]
pub description: Option<String>,
#[serde(rename = "GlobalFilters")]
#[serde(skip_serializing_if = "Option::is_none")]
pub global_filters: Option<PatchFilterGroup>,
#[serde(rename = "ModifiedDate")]
#[serde(skip_serializing_if = "Option::is_none")]
pub modified_date: Option<f64>,
#[serde(rename = "Name")]
#[serde(skip_serializing_if = "Option::is_none")]
pub name: Option<String>,
#[serde(rename = "OperatingSystem")]
#[serde(skip_serializing_if = "Option::is_none")]
pub operating_system: Option<String>,
#[serde(rename = "RejectedPatches")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches: Option<Vec<String>>,
#[serde(rename = "RejectedPatchesAction")]
#[serde(skip_serializing_if = "Option::is_none")]
pub rejected_patches_action: Option<String>,
#[serde(rename = "Sources")]
#[serde(skip_serializing_if = "Option::is_none")]
pub sources: Option<Vec<PatchSource>>,
}
#[derive(Default, Debug, Clone, PartialEq, Serialize)]
pub struct UpdateServiceSettingRequest {
#[serde(rename = "SettingId")]
pub setting_id: String,
#[serde(rename = "SettingValue")]
pub setting_value: String,
}
#[derive(Default, Debug, Clone, PartialEq, Deserialize)]
#[cfg_attr(test, derive(Serialize))]
pub struct UpdateServiceSettingResult {}
#[derive(Debug, PartialEq)]
pub enum AddTagsToResourceError {
InternalServerError(String),
InvalidResourceId(String),
InvalidResourceType(String),
TooManyTagsError(String),
TooManyUpdates(String),
}
impl AddTagsToResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<AddTagsToResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(AddTagsToResourceError::InternalServerError(
err.msg,
))
}
"InvalidResourceId" => {
return RusotoError::Service(AddTagsToResourceError::InvalidResourceId(err.msg))
}
"InvalidResourceType" => {
return RusotoError::Service(AddTagsToResourceError::InvalidResourceType(
err.msg,
))
}
"TooManyTagsError" => {
return RusotoError::Service(AddTagsToResourceError::TooManyTagsError(err.msg))
}
"TooManyUpdates" => {
return RusotoError::Service(AddTagsToResourceError::TooManyUpdates(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for AddTagsToResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for AddTagsToResourceError {
fn description(&self) -> &str {
match *self {
AddTagsToResourceError::InternalServerError(ref cause) => cause,
AddTagsToResourceError::InvalidResourceId(ref cause) => cause,
AddTagsToResourceError::InvalidResourceType(ref cause) => cause,
AddTagsToResourceError::TooManyTagsError(ref cause) => cause,
AddTagsToResourceError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CancelCommandError {
DuplicateInstanceId(String),
InternalServerError(String),
InvalidCommandId(String),
InvalidInstanceId(String),
}
impl CancelCommandError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CancelCommandError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateInstanceId" => {
return RusotoError::Service(CancelCommandError::DuplicateInstanceId(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(CancelCommandError::InternalServerError(err.msg))
}
"InvalidCommandId" => {
return RusotoError::Service(CancelCommandError::InvalidCommandId(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(CancelCommandError::InvalidInstanceId(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CancelCommandError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CancelCommandError {
fn description(&self) -> &str {
match *self {
CancelCommandError::DuplicateInstanceId(ref cause) => cause,
CancelCommandError::InternalServerError(ref cause) => cause,
CancelCommandError::InvalidCommandId(ref cause) => cause,
CancelCommandError::InvalidInstanceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CancelMaintenanceWindowExecutionError {
DoesNotExist(String),
InternalServerError(String),
}
impl CancelMaintenanceWindowExecutionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<CancelMaintenanceWindowExecutionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
CancelMaintenanceWindowExecutionError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
CancelMaintenanceWindowExecutionError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CancelMaintenanceWindowExecutionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CancelMaintenanceWindowExecutionError {
fn description(&self) -> &str {
match *self {
CancelMaintenanceWindowExecutionError::DoesNotExist(ref cause) => cause,
CancelMaintenanceWindowExecutionError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateActivationError {
InternalServerError(String),
}
impl CreateActivationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateActivationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(CreateActivationError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateActivationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateActivationError {
fn description(&self) -> &str {
match *self {
CreateActivationError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateAssociationError {
AssociationAlreadyExists(String),
AssociationLimitExceeded(String),
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentVersion(String),
InvalidInstanceId(String),
InvalidOutputLocation(String),
InvalidParameters(String),
InvalidSchedule(String),
InvalidTarget(String),
UnsupportedPlatformType(String),
}
impl CreateAssociationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateAssociationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationAlreadyExists" => {
return RusotoError::Service(CreateAssociationError::AssociationAlreadyExists(
err.msg,
))
}
"AssociationLimitExceeded" => {
return RusotoError::Service(CreateAssociationError::AssociationLimitExceeded(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(CreateAssociationError::InternalServerError(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(CreateAssociationError::InvalidDocument(err.msg))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(CreateAssociationError::InvalidDocumentVersion(
err.msg,
))
}
"InvalidInstanceId" => {
return RusotoError::Service(CreateAssociationError::InvalidInstanceId(err.msg))
}
"InvalidOutputLocation" => {
return RusotoError::Service(CreateAssociationError::InvalidOutputLocation(
err.msg,
))
}
"InvalidParameters" => {
return RusotoError::Service(CreateAssociationError::InvalidParameters(err.msg))
}
"InvalidSchedule" => {
return RusotoError::Service(CreateAssociationError::InvalidSchedule(err.msg))
}
"InvalidTarget" => {
return RusotoError::Service(CreateAssociationError::InvalidTarget(err.msg))
}
"UnsupportedPlatformType" => {
return RusotoError::Service(CreateAssociationError::UnsupportedPlatformType(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateAssociationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateAssociationError {
fn description(&self) -> &str {
match *self {
CreateAssociationError::AssociationAlreadyExists(ref cause) => cause,
CreateAssociationError::AssociationLimitExceeded(ref cause) => cause,
CreateAssociationError::InternalServerError(ref cause) => cause,
CreateAssociationError::InvalidDocument(ref cause) => cause,
CreateAssociationError::InvalidDocumentVersion(ref cause) => cause,
CreateAssociationError::InvalidInstanceId(ref cause) => cause,
CreateAssociationError::InvalidOutputLocation(ref cause) => cause,
CreateAssociationError::InvalidParameters(ref cause) => cause,
CreateAssociationError::InvalidSchedule(ref cause) => cause,
CreateAssociationError::InvalidTarget(ref cause) => cause,
CreateAssociationError::UnsupportedPlatformType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateAssociationBatchError {
AssociationLimitExceeded(String),
DuplicateInstanceId(String),
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentVersion(String),
InvalidInstanceId(String),
InvalidOutputLocation(String),
InvalidParameters(String),
InvalidSchedule(String),
InvalidTarget(String),
UnsupportedPlatformType(String),
}
impl CreateAssociationBatchError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateAssociationBatchError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationLimitExceeded" => {
return RusotoError::Service(
CreateAssociationBatchError::AssociationLimitExceeded(err.msg),
)
}
"DuplicateInstanceId" => {
return RusotoError::Service(CreateAssociationBatchError::DuplicateInstanceId(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(CreateAssociationBatchError::InternalServerError(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(CreateAssociationBatchError::InvalidDocument(
err.msg,
))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(
CreateAssociationBatchError::InvalidDocumentVersion(err.msg),
)
}
"InvalidInstanceId" => {
return RusotoError::Service(CreateAssociationBatchError::InvalidInstanceId(
err.msg,
))
}
"InvalidOutputLocation" => {
return RusotoError::Service(
CreateAssociationBatchError::InvalidOutputLocation(err.msg),
)
}
"InvalidParameters" => {
return RusotoError::Service(CreateAssociationBatchError::InvalidParameters(
err.msg,
))
}
"InvalidSchedule" => {
return RusotoError::Service(CreateAssociationBatchError::InvalidSchedule(
err.msg,
))
}
"InvalidTarget" => {
return RusotoError::Service(CreateAssociationBatchError::InvalidTarget(
err.msg,
))
}
"UnsupportedPlatformType" => {
return RusotoError::Service(
CreateAssociationBatchError::UnsupportedPlatformType(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateAssociationBatchError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateAssociationBatchError {
fn description(&self) -> &str {
match *self {
CreateAssociationBatchError::AssociationLimitExceeded(ref cause) => cause,
CreateAssociationBatchError::DuplicateInstanceId(ref cause) => cause,
CreateAssociationBatchError::InternalServerError(ref cause) => cause,
CreateAssociationBatchError::InvalidDocument(ref cause) => cause,
CreateAssociationBatchError::InvalidDocumentVersion(ref cause) => cause,
CreateAssociationBatchError::InvalidInstanceId(ref cause) => cause,
CreateAssociationBatchError::InvalidOutputLocation(ref cause) => cause,
CreateAssociationBatchError::InvalidParameters(ref cause) => cause,
CreateAssociationBatchError::InvalidSchedule(ref cause) => cause,
CreateAssociationBatchError::InvalidTarget(ref cause) => cause,
CreateAssociationBatchError::UnsupportedPlatformType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateDocumentError {
DocumentAlreadyExists(String),
DocumentLimitExceeded(String),
InternalServerError(String),
InvalidDocumentContent(String),
InvalidDocumentSchemaVersion(String),
MaxDocumentSizeExceeded(String),
}
impl CreateDocumentError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateDocumentError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DocumentAlreadyExists" => {
return RusotoError::Service(CreateDocumentError::DocumentAlreadyExists(
err.msg,
))
}
"DocumentLimitExceeded" => {
return RusotoError::Service(CreateDocumentError::DocumentLimitExceeded(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(CreateDocumentError::InternalServerError(err.msg))
}
"InvalidDocumentContent" => {
return RusotoError::Service(CreateDocumentError::InvalidDocumentContent(
err.msg,
))
}
"InvalidDocumentSchemaVersion" => {
return RusotoError::Service(CreateDocumentError::InvalidDocumentSchemaVersion(
err.msg,
))
}
"MaxDocumentSizeExceeded" => {
return RusotoError::Service(CreateDocumentError::MaxDocumentSizeExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateDocumentError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateDocumentError {
fn description(&self) -> &str {
match *self {
CreateDocumentError::DocumentAlreadyExists(ref cause) => cause,
CreateDocumentError::DocumentLimitExceeded(ref cause) => cause,
CreateDocumentError::InternalServerError(ref cause) => cause,
CreateDocumentError::InvalidDocumentContent(ref cause) => cause,
CreateDocumentError::InvalidDocumentSchemaVersion(ref cause) => cause,
CreateDocumentError::MaxDocumentSizeExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateMaintenanceWindowError {
IdempotentParameterMismatch(String),
InternalServerError(String),
ResourceLimitExceeded(String),
}
impl CreateMaintenanceWindowError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"IdempotentParameterMismatch" => {
return RusotoError::Service(
CreateMaintenanceWindowError::IdempotentParameterMismatch(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(CreateMaintenanceWindowError::InternalServerError(
err.msg,
))
}
"ResourceLimitExceededException" => {
return RusotoError::Service(
CreateMaintenanceWindowError::ResourceLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
CreateMaintenanceWindowError::IdempotentParameterMismatch(ref cause) => cause,
CreateMaintenanceWindowError::InternalServerError(ref cause) => cause,
CreateMaintenanceWindowError::ResourceLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateOpsItemError {
InternalServerError(String),
OpsItemAlreadyExists(String),
OpsItemInvalidParameter(String),
OpsItemLimitExceeded(String),
}
impl CreateOpsItemError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateOpsItemError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(CreateOpsItemError::InternalServerError(err.msg))
}
"OpsItemAlreadyExistsException" => {
return RusotoError::Service(CreateOpsItemError::OpsItemAlreadyExists(err.msg))
}
"OpsItemInvalidParameterException" => {
return RusotoError::Service(CreateOpsItemError::OpsItemInvalidParameter(
err.msg,
))
}
"OpsItemLimitExceededException" => {
return RusotoError::Service(CreateOpsItemError::OpsItemLimitExceeded(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateOpsItemError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateOpsItemError {
fn description(&self) -> &str {
match *self {
CreateOpsItemError::InternalServerError(ref cause) => cause,
CreateOpsItemError::OpsItemAlreadyExists(ref cause) => cause,
CreateOpsItemError::OpsItemInvalidParameter(ref cause) => cause,
CreateOpsItemError::OpsItemLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreatePatchBaselineError {
IdempotentParameterMismatch(String),
InternalServerError(String),
ResourceLimitExceeded(String),
}
impl CreatePatchBaselineError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreatePatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"IdempotentParameterMismatch" => {
return RusotoError::Service(
CreatePatchBaselineError::IdempotentParameterMismatch(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(CreatePatchBaselineError::InternalServerError(
err.msg,
))
}
"ResourceLimitExceededException" => {
return RusotoError::Service(CreatePatchBaselineError::ResourceLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreatePatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreatePatchBaselineError {
fn description(&self) -> &str {
match *self {
CreatePatchBaselineError::IdempotentParameterMismatch(ref cause) => cause,
CreatePatchBaselineError::InternalServerError(ref cause) => cause,
CreatePatchBaselineError::ResourceLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum CreateResourceDataSyncError {
InternalServerError(String),
ResourceDataSyncAlreadyExists(String),
ResourceDataSyncCountExceeded(String),
ResourceDataSyncInvalidConfiguration(String),
}
impl CreateResourceDataSyncError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<CreateResourceDataSyncError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(CreateResourceDataSyncError::InternalServerError(
err.msg,
))
}
"ResourceDataSyncAlreadyExistsException" => {
return RusotoError::Service(
CreateResourceDataSyncError::ResourceDataSyncAlreadyExists(err.msg),
)
}
"ResourceDataSyncCountExceededException" => {
return RusotoError::Service(
CreateResourceDataSyncError::ResourceDataSyncCountExceeded(err.msg),
)
}
"ResourceDataSyncInvalidConfigurationException" => {
return RusotoError::Service(
CreateResourceDataSyncError::ResourceDataSyncInvalidConfiguration(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for CreateResourceDataSyncError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for CreateResourceDataSyncError {
fn description(&self) -> &str {
match *self {
CreateResourceDataSyncError::InternalServerError(ref cause) => cause,
CreateResourceDataSyncError::ResourceDataSyncAlreadyExists(ref cause) => cause,
CreateResourceDataSyncError::ResourceDataSyncCountExceeded(ref cause) => cause,
CreateResourceDataSyncError::ResourceDataSyncInvalidConfiguration(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteActivationError {
InternalServerError(String),
InvalidActivation(String),
InvalidActivationId(String),
TooManyUpdates(String),
}
impl DeleteActivationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteActivationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeleteActivationError::InternalServerError(
err.msg,
))
}
"InvalidActivation" => {
return RusotoError::Service(DeleteActivationError::InvalidActivation(err.msg))
}
"InvalidActivationId" => {
return RusotoError::Service(DeleteActivationError::InvalidActivationId(
err.msg,
))
}
"TooManyUpdates" => {
return RusotoError::Service(DeleteActivationError::TooManyUpdates(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteActivationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteActivationError {
fn description(&self) -> &str {
match *self {
DeleteActivationError::InternalServerError(ref cause) => cause,
DeleteActivationError::InvalidActivation(ref cause) => cause,
DeleteActivationError::InvalidActivationId(ref cause) => cause,
DeleteActivationError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteAssociationError {
AssociationDoesNotExist(String),
InternalServerError(String),
InvalidDocument(String),
InvalidInstanceId(String),
TooManyUpdates(String),
}
impl DeleteAssociationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteAssociationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(DeleteAssociationError::AssociationDoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(DeleteAssociationError::InternalServerError(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(DeleteAssociationError::InvalidDocument(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(DeleteAssociationError::InvalidInstanceId(err.msg))
}
"TooManyUpdates" => {
return RusotoError::Service(DeleteAssociationError::TooManyUpdates(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteAssociationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteAssociationError {
fn description(&self) -> &str {
match *self {
DeleteAssociationError::AssociationDoesNotExist(ref cause) => cause,
DeleteAssociationError::InternalServerError(ref cause) => cause,
DeleteAssociationError::InvalidDocument(ref cause) => cause,
DeleteAssociationError::InvalidInstanceId(ref cause) => cause,
DeleteAssociationError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteDocumentError {
AssociatedInstances(String),
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentOperation(String),
}
impl DeleteDocumentError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteDocumentError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociatedInstances" => {
return RusotoError::Service(DeleteDocumentError::AssociatedInstances(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(DeleteDocumentError::InternalServerError(err.msg))
}
"InvalidDocument" => {
return RusotoError::Service(DeleteDocumentError::InvalidDocument(err.msg))
}
"InvalidDocumentOperation" => {
return RusotoError::Service(DeleteDocumentError::InvalidDocumentOperation(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteDocumentError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteDocumentError {
fn description(&self) -> &str {
match *self {
DeleteDocumentError::AssociatedInstances(ref cause) => cause,
DeleteDocumentError::InternalServerError(ref cause) => cause,
DeleteDocumentError::InvalidDocument(ref cause) => cause,
DeleteDocumentError::InvalidDocumentOperation(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteInventoryError {
InternalServerError(String),
InvalidDeleteInventoryParameters(String),
InvalidInventoryRequest(String),
InvalidOption(String),
InvalidTypeName(String),
}
impl DeleteInventoryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteInventoryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeleteInventoryError::InternalServerError(err.msg))
}
"InvalidDeleteInventoryParametersException" => {
return RusotoError::Service(
DeleteInventoryError::InvalidDeleteInventoryParameters(err.msg),
)
}
"InvalidInventoryRequestException" => {
return RusotoError::Service(DeleteInventoryError::InvalidInventoryRequest(
err.msg,
))
}
"InvalidOptionException" => {
return RusotoError::Service(DeleteInventoryError::InvalidOption(err.msg))
}
"InvalidTypeNameException" => {
return RusotoError::Service(DeleteInventoryError::InvalidTypeName(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteInventoryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteInventoryError {
fn description(&self) -> &str {
match *self {
DeleteInventoryError::InternalServerError(ref cause) => cause,
DeleteInventoryError::InvalidDeleteInventoryParameters(ref cause) => cause,
DeleteInventoryError::InvalidInventoryRequest(ref cause) => cause,
DeleteInventoryError::InvalidOption(ref cause) => cause,
DeleteInventoryError::InvalidTypeName(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteMaintenanceWindowError {
InternalServerError(String),
}
impl DeleteMaintenanceWindowError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeleteMaintenanceWindowError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
DeleteMaintenanceWindowError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteParameterError {
InternalServerError(String),
ParameterNotFound(String),
}
impl DeleteParameterError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteParameterError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeleteParameterError::InternalServerError(err.msg))
}
"ParameterNotFound" => {
return RusotoError::Service(DeleteParameterError::ParameterNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteParameterError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteParameterError {
fn description(&self) -> &str {
match *self {
DeleteParameterError::InternalServerError(ref cause) => cause,
DeleteParameterError::ParameterNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteParametersError {
InternalServerError(String),
}
impl DeleteParametersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteParametersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeleteParametersError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteParametersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteParametersError {
fn description(&self) -> &str {
match *self {
DeleteParametersError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeletePatchBaselineError {
InternalServerError(String),
ResourceInUse(String),
}
impl DeletePatchBaselineError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeletePatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeletePatchBaselineError::InternalServerError(
err.msg,
))
}
"ResourceInUseException" => {
return RusotoError::Service(DeletePatchBaselineError::ResourceInUse(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeletePatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeletePatchBaselineError {
fn description(&self) -> &str {
match *self {
DeletePatchBaselineError::InternalServerError(ref cause) => cause,
DeletePatchBaselineError::ResourceInUse(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeleteResourceDataSyncError {
InternalServerError(String),
ResourceDataSyncNotFound(String),
}
impl DeleteResourceDataSyncError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeleteResourceDataSyncError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DeleteResourceDataSyncError::InternalServerError(
err.msg,
))
}
"ResourceDataSyncNotFoundException" => {
return RusotoError::Service(
DeleteResourceDataSyncError::ResourceDataSyncNotFound(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeleteResourceDataSyncError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeleteResourceDataSyncError {
fn description(&self) -> &str {
match *self {
DeleteResourceDataSyncError::InternalServerError(ref cause) => cause,
DeleteResourceDataSyncError::ResourceDataSyncNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeregisterManagedInstanceError {
InternalServerError(String),
InvalidInstanceId(String),
}
impl DeregisterManagedInstanceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DeregisterManagedInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DeregisterManagedInstanceError::InternalServerError(err.msg),
)
}
"InvalidInstanceId" => {
return RusotoError::Service(DeregisterManagedInstanceError::InvalidInstanceId(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeregisterManagedInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeregisterManagedInstanceError {
fn description(&self) -> &str {
match *self {
DeregisterManagedInstanceError::InternalServerError(ref cause) => cause,
DeregisterManagedInstanceError::InvalidInstanceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeregisterPatchBaselineForPatchGroupError {
InternalServerError(String),
InvalidResourceId(String),
}
impl DeregisterPatchBaselineForPatchGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeregisterPatchBaselineForPatchGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DeregisterPatchBaselineForPatchGroupError::InternalServerError(err.msg),
)
}
"InvalidResourceId" => {
return RusotoError::Service(
DeregisterPatchBaselineForPatchGroupError::InvalidResourceId(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeregisterPatchBaselineForPatchGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeregisterPatchBaselineForPatchGroupError {
fn description(&self) -> &str {
match *self {
DeregisterPatchBaselineForPatchGroupError::InternalServerError(ref cause) => cause,
DeregisterPatchBaselineForPatchGroupError::InvalidResourceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeregisterTargetFromMaintenanceWindowError {
DoesNotExist(String),
InternalServerError(String),
TargetInUse(String),
}
impl DeregisterTargetFromMaintenanceWindowError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeregisterTargetFromMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DeregisterTargetFromMaintenanceWindowError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DeregisterTargetFromMaintenanceWindowError::InternalServerError(err.msg),
)
}
"TargetInUseException" => {
return RusotoError::Service(
DeregisterTargetFromMaintenanceWindowError::TargetInUse(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeregisterTargetFromMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeregisterTargetFromMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
DeregisterTargetFromMaintenanceWindowError::DoesNotExist(ref cause) => cause,
DeregisterTargetFromMaintenanceWindowError::InternalServerError(ref cause) => cause,
DeregisterTargetFromMaintenanceWindowError::TargetInUse(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DeregisterTaskFromMaintenanceWindowError {
DoesNotExist(String),
InternalServerError(String),
}
impl DeregisterTaskFromMaintenanceWindowError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DeregisterTaskFromMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DeregisterTaskFromMaintenanceWindowError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DeregisterTaskFromMaintenanceWindowError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DeregisterTaskFromMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DeregisterTaskFromMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
DeregisterTaskFromMaintenanceWindowError::DoesNotExist(ref cause) => cause,
DeregisterTaskFromMaintenanceWindowError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeActivationsError {
InternalServerError(String),
InvalidFilter(String),
InvalidNextToken(String),
}
impl DescribeActivationsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeActivationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribeActivationsError::InternalServerError(
err.msg,
))
}
"InvalidFilter" => {
return RusotoError::Service(DescribeActivationsError::InvalidFilter(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(DescribeActivationsError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeActivationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeActivationsError {
fn description(&self) -> &str {
match *self {
DescribeActivationsError::InternalServerError(ref cause) => cause,
DescribeActivationsError::InvalidFilter(ref cause) => cause,
DescribeActivationsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAssociationError {
AssociationDoesNotExist(String),
InternalServerError(String),
InvalidAssociationVersion(String),
InvalidDocument(String),
InvalidInstanceId(String),
}
impl DescribeAssociationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeAssociationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(DescribeAssociationError::AssociationDoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(DescribeAssociationError::InternalServerError(
err.msg,
))
}
"InvalidAssociationVersion" => {
return RusotoError::Service(
DescribeAssociationError::InvalidAssociationVersion(err.msg),
)
}
"InvalidDocument" => {
return RusotoError::Service(DescribeAssociationError::InvalidDocument(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(DescribeAssociationError::InvalidInstanceId(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAssociationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAssociationError {
fn description(&self) -> &str {
match *self {
DescribeAssociationError::AssociationDoesNotExist(ref cause) => cause,
DescribeAssociationError::InternalServerError(ref cause) => cause,
DescribeAssociationError::InvalidAssociationVersion(ref cause) => cause,
DescribeAssociationError::InvalidDocument(ref cause) => cause,
DescribeAssociationError::InvalidInstanceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAssociationExecutionTargetsError {
AssociationDoesNotExist(String),
AssociationExecutionDoesNotExist(String),
InternalServerError(String),
InvalidNextToken(String),
}
impl DescribeAssociationExecutionTargetsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeAssociationExecutionTargetsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(
DescribeAssociationExecutionTargetsError::AssociationDoesNotExist(err.msg),
)
}
"AssociationExecutionDoesNotExist" => {
return RusotoError::Service(
DescribeAssociationExecutionTargetsError::AssociationExecutionDoesNotExist(
err.msg,
),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeAssociationExecutionTargetsError::InternalServerError(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeAssociationExecutionTargetsError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAssociationExecutionTargetsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAssociationExecutionTargetsError {
fn description(&self) -> &str {
match *self {
DescribeAssociationExecutionTargetsError::AssociationDoesNotExist(ref cause) => cause,
DescribeAssociationExecutionTargetsError::AssociationExecutionDoesNotExist(
ref cause,
) => cause,
DescribeAssociationExecutionTargetsError::InternalServerError(ref cause) => cause,
DescribeAssociationExecutionTargetsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAssociationExecutionsError {
AssociationDoesNotExist(String),
InternalServerError(String),
InvalidNextToken(String),
}
impl DescribeAssociationExecutionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeAssociationExecutionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(
DescribeAssociationExecutionsError::AssociationDoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeAssociationExecutionsError::InternalServerError(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeAssociationExecutionsError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAssociationExecutionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAssociationExecutionsError {
fn description(&self) -> &str {
match *self {
DescribeAssociationExecutionsError::AssociationDoesNotExist(ref cause) => cause,
DescribeAssociationExecutionsError::InternalServerError(ref cause) => cause,
DescribeAssociationExecutionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAutomationExecutionsError {
InternalServerError(String),
InvalidFilterKey(String),
InvalidFilterValue(String),
InvalidNextToken(String),
}
impl DescribeAutomationExecutionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeAutomationExecutionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeAutomationExecutionsError::InternalServerError(err.msg),
)
}
"InvalidFilterKey" => {
return RusotoError::Service(
DescribeAutomationExecutionsError::InvalidFilterKey(err.msg),
)
}
"InvalidFilterValue" => {
return RusotoError::Service(
DescribeAutomationExecutionsError::InvalidFilterValue(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeAutomationExecutionsError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAutomationExecutionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAutomationExecutionsError {
fn description(&self) -> &str {
match *self {
DescribeAutomationExecutionsError::InternalServerError(ref cause) => cause,
DescribeAutomationExecutionsError::InvalidFilterKey(ref cause) => cause,
DescribeAutomationExecutionsError::InvalidFilterValue(ref cause) => cause,
DescribeAutomationExecutionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAutomationStepExecutionsError {
AutomationExecutionNotFound(String),
InternalServerError(String),
InvalidFilterKey(String),
InvalidFilterValue(String),
InvalidNextToken(String),
}
impl DescribeAutomationStepExecutionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeAutomationStepExecutionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AutomationExecutionNotFoundException" => {
return RusotoError::Service(
DescribeAutomationStepExecutionsError::AutomationExecutionNotFound(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeAutomationStepExecutionsError::InternalServerError(err.msg),
)
}
"InvalidFilterKey" => {
return RusotoError::Service(
DescribeAutomationStepExecutionsError::InvalidFilterKey(err.msg),
)
}
"InvalidFilterValue" => {
return RusotoError::Service(
DescribeAutomationStepExecutionsError::InvalidFilterValue(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeAutomationStepExecutionsError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAutomationStepExecutionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAutomationStepExecutionsError {
fn description(&self) -> &str {
match *self {
DescribeAutomationStepExecutionsError::AutomationExecutionNotFound(ref cause) => cause,
DescribeAutomationStepExecutionsError::InternalServerError(ref cause) => cause,
DescribeAutomationStepExecutionsError::InvalidFilterKey(ref cause) => cause,
DescribeAutomationStepExecutionsError::InvalidFilterValue(ref cause) => cause,
DescribeAutomationStepExecutionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeAvailablePatchesError {
InternalServerError(String),
}
impl DescribeAvailablePatchesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeAvailablePatchesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeAvailablePatchesError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeAvailablePatchesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeAvailablePatchesError {
fn description(&self) -> &str {
match *self {
DescribeAvailablePatchesError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeDocumentError {
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentVersion(String),
}
impl DescribeDocumentError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeDocumentError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribeDocumentError::InternalServerError(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(DescribeDocumentError::InvalidDocument(err.msg))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(DescribeDocumentError::InvalidDocumentVersion(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeDocumentError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeDocumentError {
fn description(&self) -> &str {
match *self {
DescribeDocumentError::InternalServerError(ref cause) => cause,
DescribeDocumentError::InvalidDocument(ref cause) => cause,
DescribeDocumentError::InvalidDocumentVersion(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeDocumentPermissionError {
InternalServerError(String),
InvalidDocument(String),
InvalidPermissionType(String),
}
impl DescribeDocumentPermissionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeDocumentPermissionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeDocumentPermissionError::InternalServerError(err.msg),
)
}
"InvalidDocument" => {
return RusotoError::Service(DescribeDocumentPermissionError::InvalidDocument(
err.msg,
))
}
"InvalidPermissionType" => {
return RusotoError::Service(
DescribeDocumentPermissionError::InvalidPermissionType(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeDocumentPermissionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeDocumentPermissionError {
fn description(&self) -> &str {
match *self {
DescribeDocumentPermissionError::InternalServerError(ref cause) => cause,
DescribeDocumentPermissionError::InvalidDocument(ref cause) => cause,
DescribeDocumentPermissionError::InvalidPermissionType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEffectiveInstanceAssociationsError {
InternalServerError(String),
InvalidInstanceId(String),
InvalidNextToken(String),
}
impl DescribeEffectiveInstanceAssociationsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeEffectiveInstanceAssociationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeEffectiveInstanceAssociationsError::InternalServerError(err.msg),
)
}
"InvalidInstanceId" => {
return RusotoError::Service(
DescribeEffectiveInstanceAssociationsError::InvalidInstanceId(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeEffectiveInstanceAssociationsError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEffectiveInstanceAssociationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEffectiveInstanceAssociationsError {
fn description(&self) -> &str {
match *self {
DescribeEffectiveInstanceAssociationsError::InternalServerError(ref cause) => cause,
DescribeEffectiveInstanceAssociationsError::InvalidInstanceId(ref cause) => cause,
DescribeEffectiveInstanceAssociationsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeEffectivePatchesForPatchBaselineError {
DoesNotExist(String),
InternalServerError(String),
InvalidResourceId(String),
UnsupportedOperatingSystem(String),
}
impl DescribeEffectivePatchesForPatchBaselineError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeEffectivePatchesForPatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DescribeEffectivePatchesForPatchBaselineError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeEffectivePatchesForPatchBaselineError::InternalServerError(err.msg),
)
}
"InvalidResourceId" => {
return RusotoError::Service(
DescribeEffectivePatchesForPatchBaselineError::InvalidResourceId(err.msg),
)
}
"UnsupportedOperatingSystem" => {
return RusotoError::Service(
DescribeEffectivePatchesForPatchBaselineError::UnsupportedOperatingSystem(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeEffectivePatchesForPatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeEffectivePatchesForPatchBaselineError {
fn description(&self) -> &str {
match *self {
DescribeEffectivePatchesForPatchBaselineError::DoesNotExist(ref cause) => cause,
DescribeEffectivePatchesForPatchBaselineError::InternalServerError(ref cause) => cause,
DescribeEffectivePatchesForPatchBaselineError::InvalidResourceId(ref cause) => cause,
DescribeEffectivePatchesForPatchBaselineError::UnsupportedOperatingSystem(
ref cause,
) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeInstanceAssociationsStatusError {
InternalServerError(String),
InvalidInstanceId(String),
InvalidNextToken(String),
}
impl DescribeInstanceAssociationsStatusError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeInstanceAssociationsStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeInstanceAssociationsStatusError::InternalServerError(err.msg),
)
}
"InvalidInstanceId" => {
return RusotoError::Service(
DescribeInstanceAssociationsStatusError::InvalidInstanceId(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeInstanceAssociationsStatusError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeInstanceAssociationsStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeInstanceAssociationsStatusError {
fn description(&self) -> &str {
match *self {
DescribeInstanceAssociationsStatusError::InternalServerError(ref cause) => cause,
DescribeInstanceAssociationsStatusError::InvalidInstanceId(ref cause) => cause,
DescribeInstanceAssociationsStatusError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeInstanceInformationError {
InternalServerError(String),
InvalidFilterKey(String),
InvalidInstanceId(String),
InvalidInstanceInformationFilterValue(String),
InvalidNextToken(String),
}
impl DescribeInstanceInformationError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeInstanceInformationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeInstanceInformationError::InternalServerError(err.msg),
)
}
"InvalidFilterKey" => {
return RusotoError::Service(
DescribeInstanceInformationError::InvalidFilterKey(err.msg),
)
}
"InvalidInstanceId" => {
return RusotoError::Service(
DescribeInstanceInformationError::InvalidInstanceId(err.msg),
)
}
"InvalidInstanceInformationFilterValue" => {
return RusotoError::Service(
DescribeInstanceInformationError::InvalidInstanceInformationFilterValue(
err.msg,
),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeInstanceInformationError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeInstanceInformationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeInstanceInformationError {
fn description(&self) -> &str {
match *self {
DescribeInstanceInformationError::InternalServerError(ref cause) => cause,
DescribeInstanceInformationError::InvalidFilterKey(ref cause) => cause,
DescribeInstanceInformationError::InvalidInstanceId(ref cause) => cause,
DescribeInstanceInformationError::InvalidInstanceInformationFilterValue(ref cause) => {
cause
}
DescribeInstanceInformationError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeInstancePatchStatesError {
InternalServerError(String),
InvalidNextToken(String),
}
impl DescribeInstancePatchStatesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeInstancePatchStatesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeInstancePatchStatesError::InternalServerError(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeInstancePatchStatesError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeInstancePatchStatesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeInstancePatchStatesError {
fn description(&self) -> &str {
match *self {
DescribeInstancePatchStatesError::InternalServerError(ref cause) => cause,
DescribeInstancePatchStatesError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeInstancePatchStatesForPatchGroupError {
InternalServerError(String),
InvalidFilter(String),
InvalidNextToken(String),
}
impl DescribeInstancePatchStatesForPatchGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeInstancePatchStatesForPatchGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeInstancePatchStatesForPatchGroupError::InternalServerError(err.msg),
)
}
"InvalidFilter" => {
return RusotoError::Service(
DescribeInstancePatchStatesForPatchGroupError::InvalidFilter(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
DescribeInstancePatchStatesForPatchGroupError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeInstancePatchStatesForPatchGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeInstancePatchStatesForPatchGroupError {
fn description(&self) -> &str {
match *self {
DescribeInstancePatchStatesForPatchGroupError::InternalServerError(ref cause) => cause,
DescribeInstancePatchStatesForPatchGroupError::InvalidFilter(ref cause) => cause,
DescribeInstancePatchStatesForPatchGroupError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeInstancePatchesError {
InternalServerError(String),
InvalidFilter(String),
InvalidInstanceId(String),
InvalidNextToken(String),
}
impl DescribeInstancePatchesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeInstancePatchesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribeInstancePatchesError::InternalServerError(
err.msg,
))
}
"InvalidFilter" => {
return RusotoError::Service(DescribeInstancePatchesError::InvalidFilter(
err.msg,
))
}
"InvalidInstanceId" => {
return RusotoError::Service(DescribeInstancePatchesError::InvalidInstanceId(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(DescribeInstancePatchesError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeInstancePatchesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeInstancePatchesError {
fn description(&self) -> &str {
match *self {
DescribeInstancePatchesError::InternalServerError(ref cause) => cause,
DescribeInstancePatchesError::InvalidFilter(ref cause) => cause,
DescribeInstancePatchesError::InvalidInstanceId(ref cause) => cause,
DescribeInstancePatchesError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeInventoryDeletionsError {
InternalServerError(String),
InvalidDeletionId(String),
InvalidNextToken(String),
}
impl DescribeInventoryDeletionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeInventoryDeletionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeInventoryDeletionsError::InternalServerError(err.msg),
)
}
"InvalidDeletionIdException" => {
return RusotoError::Service(
DescribeInventoryDeletionsError::InvalidDeletionId(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(DescribeInventoryDeletionsError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeInventoryDeletionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeInventoryDeletionsError {
fn description(&self) -> &str {
match *self {
DescribeInventoryDeletionsError::InternalServerError(ref cause) => cause,
DescribeInventoryDeletionsError::InvalidDeletionId(ref cause) => cause,
DescribeInventoryDeletionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowExecutionTaskInvocationsError {
DoesNotExist(String),
InternalServerError(String),
}
impl DescribeMaintenanceWindowExecutionTaskInvocationsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowExecutionTaskInvocationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DescribeMaintenanceWindowExecutionTaskInvocationsError::DoesNotExist(
err.msg,
),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowExecutionTaskInvocationsError::InternalServerError(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowExecutionTaskInvocationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowExecutionTaskInvocationsError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowExecutionTaskInvocationsError::DoesNotExist(ref cause) => {
cause
}
DescribeMaintenanceWindowExecutionTaskInvocationsError::InternalServerError(
ref cause,
) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowExecutionTasksError {
DoesNotExist(String),
InternalServerError(String),
}
impl DescribeMaintenanceWindowExecutionTasksError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowExecutionTasksError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DescribeMaintenanceWindowExecutionTasksError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowExecutionTasksError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowExecutionTasksError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowExecutionTasksError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowExecutionTasksError::DoesNotExist(ref cause) => cause,
DescribeMaintenanceWindowExecutionTasksError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowExecutionsError {
InternalServerError(String),
}
impl DescribeMaintenanceWindowExecutionsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowExecutionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowExecutionsError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowExecutionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowExecutionsError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowExecutionsError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowScheduleError {
DoesNotExist(String),
InternalServerError(String),
}
impl DescribeMaintenanceWindowScheduleError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowScheduleError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DescribeMaintenanceWindowScheduleError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowScheduleError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowScheduleError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowScheduleError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowScheduleError::DoesNotExist(ref cause) => cause,
DescribeMaintenanceWindowScheduleError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowTargetsError {
DoesNotExist(String),
InternalServerError(String),
}
impl DescribeMaintenanceWindowTargetsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowTargetsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
DescribeMaintenanceWindowTargetsError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowTargetsError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowTargetsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowTargetsError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowTargetsError::DoesNotExist(ref cause) => cause,
DescribeMaintenanceWindowTargetsError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowTasksError {
DoesNotExist(String),
InternalServerError(String),
}
impl DescribeMaintenanceWindowTasksError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowTasksError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(DescribeMaintenanceWindowTasksError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowTasksError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowTasksError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowTasksError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowTasksError::DoesNotExist(ref cause) => cause,
DescribeMaintenanceWindowTasksError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowsError {
InternalServerError(String),
}
impl DescribeMaintenanceWindowsError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowsError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowsError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowsError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeMaintenanceWindowsForTargetError {
InternalServerError(String),
}
impl DescribeMaintenanceWindowsForTargetError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<DescribeMaintenanceWindowsForTargetError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
DescribeMaintenanceWindowsForTargetError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeMaintenanceWindowsForTargetError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeMaintenanceWindowsForTargetError {
fn description(&self) -> &str {
match *self {
DescribeMaintenanceWindowsForTargetError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeOpsItemsError {
InternalServerError(String),
}
impl DescribeOpsItemsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeOpsItemsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribeOpsItemsError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeOpsItemsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeOpsItemsError {
fn description(&self) -> &str {
match *self {
DescribeOpsItemsError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeParametersError {
InternalServerError(String),
InvalidFilterKey(String),
InvalidFilterOption(String),
InvalidFilterValue(String),
InvalidNextToken(String),
}
impl DescribeParametersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeParametersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribeParametersError::InternalServerError(
err.msg,
))
}
"InvalidFilterKey" => {
return RusotoError::Service(DescribeParametersError::InvalidFilterKey(err.msg))
}
"InvalidFilterOption" => {
return RusotoError::Service(DescribeParametersError::InvalidFilterOption(
err.msg,
))
}
"InvalidFilterValue" => {
return RusotoError::Service(DescribeParametersError::InvalidFilterValue(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(DescribeParametersError::InvalidNextToken(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeParametersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeParametersError {
fn description(&self) -> &str {
match *self {
DescribeParametersError::InternalServerError(ref cause) => cause,
DescribeParametersError::InvalidFilterKey(ref cause) => cause,
DescribeParametersError::InvalidFilterOption(ref cause) => cause,
DescribeParametersError::InvalidFilterValue(ref cause) => cause,
DescribeParametersError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePatchBaselinesError {
InternalServerError(String),
}
impl DescribePatchBaselinesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribePatchBaselinesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribePatchBaselinesError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePatchBaselinesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePatchBaselinesError {
fn description(&self) -> &str {
match *self {
DescribePatchBaselinesError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePatchGroupStateError {
InternalServerError(String),
InvalidNextToken(String),
}
impl DescribePatchGroupStateError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribePatchGroupStateError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribePatchGroupStateError::InternalServerError(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(DescribePatchGroupStateError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePatchGroupStateError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePatchGroupStateError {
fn description(&self) -> &str {
match *self {
DescribePatchGroupStateError::InternalServerError(ref cause) => cause,
DescribePatchGroupStateError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePatchGroupsError {
InternalServerError(String),
}
impl DescribePatchGroupsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribePatchGroupsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribePatchGroupsError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePatchGroupsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePatchGroupsError {
fn description(&self) -> &str {
match *self {
DescribePatchGroupsError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribePatchPropertiesError {
InternalServerError(String),
}
impl DescribePatchPropertiesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribePatchPropertiesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribePatchPropertiesError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribePatchPropertiesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribePatchPropertiesError {
fn description(&self) -> &str {
match *self {
DescribePatchPropertiesError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum DescribeSessionsError {
InternalServerError(String),
InvalidFilterKey(String),
InvalidNextToken(String),
}
impl DescribeSessionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<DescribeSessionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(DescribeSessionsError::InternalServerError(
err.msg,
))
}
"InvalidFilterKey" => {
return RusotoError::Service(DescribeSessionsError::InvalidFilterKey(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(DescribeSessionsError::InvalidNextToken(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for DescribeSessionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for DescribeSessionsError {
fn description(&self) -> &str {
match *self {
DescribeSessionsError::InternalServerError(ref cause) => cause,
DescribeSessionsError::InvalidFilterKey(ref cause) => cause,
DescribeSessionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetAutomationExecutionError {
AutomationExecutionNotFound(String),
InternalServerError(String),
}
impl GetAutomationExecutionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetAutomationExecutionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AutomationExecutionNotFoundException" => {
return RusotoError::Service(
GetAutomationExecutionError::AutomationExecutionNotFound(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(GetAutomationExecutionError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetAutomationExecutionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetAutomationExecutionError {
fn description(&self) -> &str {
match *self {
GetAutomationExecutionError::AutomationExecutionNotFound(ref cause) => cause,
GetAutomationExecutionError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetCommandInvocationError {
InternalServerError(String),
InvalidCommandId(String),
InvalidInstanceId(String),
InvalidPluginName(String),
InvocationDoesNotExist(String),
}
impl GetCommandInvocationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetCommandInvocationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetCommandInvocationError::InternalServerError(
err.msg,
))
}
"InvalidCommandId" => {
return RusotoError::Service(GetCommandInvocationError::InvalidCommandId(
err.msg,
))
}
"InvalidInstanceId" => {
return RusotoError::Service(GetCommandInvocationError::InvalidInstanceId(
err.msg,
))
}
"InvalidPluginName" => {
return RusotoError::Service(GetCommandInvocationError::InvalidPluginName(
err.msg,
))
}
"InvocationDoesNotExist" => {
return RusotoError::Service(GetCommandInvocationError::InvocationDoesNotExist(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetCommandInvocationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetCommandInvocationError {
fn description(&self) -> &str {
match *self {
GetCommandInvocationError::InternalServerError(ref cause) => cause,
GetCommandInvocationError::InvalidCommandId(ref cause) => cause,
GetCommandInvocationError::InvalidInstanceId(ref cause) => cause,
GetCommandInvocationError::InvalidPluginName(ref cause) => cause,
GetCommandInvocationError::InvocationDoesNotExist(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetConnectionStatusError {
InternalServerError(String),
}
impl GetConnectionStatusError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetConnectionStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetConnectionStatusError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetConnectionStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetConnectionStatusError {
fn description(&self) -> &str {
match *self {
GetConnectionStatusError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDefaultPatchBaselineError {
InternalServerError(String),
}
impl GetDefaultPatchBaselineError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDefaultPatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetDefaultPatchBaselineError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDefaultPatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDefaultPatchBaselineError {
fn description(&self) -> &str {
match *self {
GetDefaultPatchBaselineError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDeployablePatchSnapshotForInstanceError {
InternalServerError(String),
UnsupportedFeatureRequired(String),
UnsupportedOperatingSystem(String),
}
impl GetDeployablePatchSnapshotForInstanceError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetDeployablePatchSnapshotForInstanceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
GetDeployablePatchSnapshotForInstanceError::InternalServerError(err.msg),
)
}
"UnsupportedFeatureRequiredException" => {
return RusotoError::Service(
GetDeployablePatchSnapshotForInstanceError::UnsupportedFeatureRequired(
err.msg,
),
)
}
"UnsupportedOperatingSystem" => {
return RusotoError::Service(
GetDeployablePatchSnapshotForInstanceError::UnsupportedOperatingSystem(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDeployablePatchSnapshotForInstanceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDeployablePatchSnapshotForInstanceError {
fn description(&self) -> &str {
match *self {
GetDeployablePatchSnapshotForInstanceError::InternalServerError(ref cause) => cause,
GetDeployablePatchSnapshotForInstanceError::UnsupportedFeatureRequired(ref cause) => {
cause
}
GetDeployablePatchSnapshotForInstanceError::UnsupportedOperatingSystem(ref cause) => {
cause
}
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetDocumentError {
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentVersion(String),
}
impl GetDocumentError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetDocumentError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetDocumentError::InternalServerError(err.msg))
}
"InvalidDocument" => {
return RusotoError::Service(GetDocumentError::InvalidDocument(err.msg))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(GetDocumentError::InvalidDocumentVersion(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetDocumentError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetDocumentError {
fn description(&self) -> &str {
match *self {
GetDocumentError::InternalServerError(ref cause) => cause,
GetDocumentError::InvalidDocument(ref cause) => cause,
GetDocumentError::InvalidDocumentVersion(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInventoryError {
InternalServerError(String),
InvalidAggregator(String),
InvalidFilter(String),
InvalidInventoryGroup(String),
InvalidNextToken(String),
InvalidResultAttribute(String),
InvalidTypeName(String),
}
impl GetInventoryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInventoryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetInventoryError::InternalServerError(err.msg))
}
"InvalidAggregatorException" => {
return RusotoError::Service(GetInventoryError::InvalidAggregator(err.msg))
}
"InvalidFilter" => {
return RusotoError::Service(GetInventoryError::InvalidFilter(err.msg))
}
"InvalidInventoryGroupException" => {
return RusotoError::Service(GetInventoryError::InvalidInventoryGroup(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(GetInventoryError::InvalidNextToken(err.msg))
}
"InvalidResultAttributeException" => {
return RusotoError::Service(GetInventoryError::InvalidResultAttribute(err.msg))
}
"InvalidTypeNameException" => {
return RusotoError::Service(GetInventoryError::InvalidTypeName(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInventoryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInventoryError {
fn description(&self) -> &str {
match *self {
GetInventoryError::InternalServerError(ref cause) => cause,
GetInventoryError::InvalidAggregator(ref cause) => cause,
GetInventoryError::InvalidFilter(ref cause) => cause,
GetInventoryError::InvalidInventoryGroup(ref cause) => cause,
GetInventoryError::InvalidNextToken(ref cause) => cause,
GetInventoryError::InvalidResultAttribute(ref cause) => cause,
GetInventoryError::InvalidTypeName(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetInventorySchemaError {
InternalServerError(String),
InvalidNextToken(String),
InvalidTypeName(String),
}
impl GetInventorySchemaError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetInventorySchemaError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetInventorySchemaError::InternalServerError(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(GetInventorySchemaError::InvalidNextToken(err.msg))
}
"InvalidTypeNameException" => {
return RusotoError::Service(GetInventorySchemaError::InvalidTypeName(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetInventorySchemaError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetInventorySchemaError {
fn description(&self) -> &str {
match *self {
GetInventorySchemaError::InternalServerError(ref cause) => cause,
GetInventorySchemaError::InvalidNextToken(ref cause) => cause,
GetInventorySchemaError::InvalidTypeName(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetMaintenanceWindowError {
DoesNotExist(String),
InternalServerError(String),
}
impl GetMaintenanceWindowError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(GetMaintenanceWindowError::DoesNotExist(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(GetMaintenanceWindowError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
GetMaintenanceWindowError::DoesNotExist(ref cause) => cause,
GetMaintenanceWindowError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetMaintenanceWindowExecutionError {
DoesNotExist(String),
InternalServerError(String),
}
impl GetMaintenanceWindowExecutionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetMaintenanceWindowExecutionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(GetMaintenanceWindowExecutionError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(
GetMaintenanceWindowExecutionError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetMaintenanceWindowExecutionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetMaintenanceWindowExecutionError {
fn description(&self) -> &str {
match *self {
GetMaintenanceWindowExecutionError::DoesNotExist(ref cause) => cause,
GetMaintenanceWindowExecutionError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetMaintenanceWindowExecutionTaskError {
DoesNotExist(String),
InternalServerError(String),
}
impl GetMaintenanceWindowExecutionTaskError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetMaintenanceWindowExecutionTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
GetMaintenanceWindowExecutionTaskError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
GetMaintenanceWindowExecutionTaskError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetMaintenanceWindowExecutionTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetMaintenanceWindowExecutionTaskError {
fn description(&self) -> &str {
match *self {
GetMaintenanceWindowExecutionTaskError::DoesNotExist(ref cause) => cause,
GetMaintenanceWindowExecutionTaskError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetMaintenanceWindowExecutionTaskInvocationError {
DoesNotExist(String),
InternalServerError(String),
}
impl GetMaintenanceWindowExecutionTaskInvocationError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetMaintenanceWindowExecutionTaskInvocationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
GetMaintenanceWindowExecutionTaskInvocationError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
GetMaintenanceWindowExecutionTaskInvocationError::InternalServerError(
err.msg,
),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetMaintenanceWindowExecutionTaskInvocationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetMaintenanceWindowExecutionTaskInvocationError {
fn description(&self) -> &str {
match *self {
GetMaintenanceWindowExecutionTaskInvocationError::DoesNotExist(ref cause) => cause,
GetMaintenanceWindowExecutionTaskInvocationError::InternalServerError(ref cause) => {
cause
}
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetMaintenanceWindowTaskError {
DoesNotExist(String),
InternalServerError(String),
}
impl GetMaintenanceWindowTaskError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetMaintenanceWindowTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(GetMaintenanceWindowTaskError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(
GetMaintenanceWindowTaskError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetMaintenanceWindowTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetMaintenanceWindowTaskError {
fn description(&self) -> &str {
match *self {
GetMaintenanceWindowTaskError::DoesNotExist(ref cause) => cause,
GetMaintenanceWindowTaskError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetOpsItemError {
InternalServerError(String),
OpsItemNotFound(String),
}
impl GetOpsItemError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOpsItemError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetOpsItemError::InternalServerError(err.msg))
}
"OpsItemNotFoundException" => {
return RusotoError::Service(GetOpsItemError::OpsItemNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetOpsItemError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetOpsItemError {
fn description(&self) -> &str {
match *self {
GetOpsItemError::InternalServerError(ref cause) => cause,
GetOpsItemError::OpsItemNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetOpsSummaryError {
InternalServerError(String),
InvalidAggregator(String),
InvalidFilter(String),
InvalidNextToken(String),
InvalidTypeName(String),
}
impl GetOpsSummaryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetOpsSummaryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetOpsSummaryError::InternalServerError(err.msg))
}
"InvalidAggregatorException" => {
return RusotoError::Service(GetOpsSummaryError::InvalidAggregator(err.msg))
}
"InvalidFilter" => {
return RusotoError::Service(GetOpsSummaryError::InvalidFilter(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(GetOpsSummaryError::InvalidNextToken(err.msg))
}
"InvalidTypeNameException" => {
return RusotoError::Service(GetOpsSummaryError::InvalidTypeName(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetOpsSummaryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetOpsSummaryError {
fn description(&self) -> &str {
match *self {
GetOpsSummaryError::InternalServerError(ref cause) => cause,
GetOpsSummaryError::InvalidAggregator(ref cause) => cause,
GetOpsSummaryError::InvalidFilter(ref cause) => cause,
GetOpsSummaryError::InvalidNextToken(ref cause) => cause,
GetOpsSummaryError::InvalidTypeName(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetParameterError {
InternalServerError(String),
InvalidKeyId(String),
ParameterNotFound(String),
ParameterVersionNotFound(String),
}
impl GetParameterError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetParameterError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetParameterError::InternalServerError(err.msg))
}
"InvalidKeyId" => {
return RusotoError::Service(GetParameterError::InvalidKeyId(err.msg))
}
"ParameterNotFound" => {
return RusotoError::Service(GetParameterError::ParameterNotFound(err.msg))
}
"ParameterVersionNotFound" => {
return RusotoError::Service(GetParameterError::ParameterVersionNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetParameterError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetParameterError {
fn description(&self) -> &str {
match *self {
GetParameterError::InternalServerError(ref cause) => cause,
GetParameterError::InvalidKeyId(ref cause) => cause,
GetParameterError::ParameterNotFound(ref cause) => cause,
GetParameterError::ParameterVersionNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetParameterHistoryError {
InternalServerError(String),
InvalidKeyId(String),
InvalidNextToken(String),
ParameterNotFound(String),
}
impl GetParameterHistoryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetParameterHistoryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetParameterHistoryError::InternalServerError(
err.msg,
))
}
"InvalidKeyId" => {
return RusotoError::Service(GetParameterHistoryError::InvalidKeyId(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(GetParameterHistoryError::InvalidNextToken(
err.msg,
))
}
"ParameterNotFound" => {
return RusotoError::Service(GetParameterHistoryError::ParameterNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetParameterHistoryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetParameterHistoryError {
fn description(&self) -> &str {
match *self {
GetParameterHistoryError::InternalServerError(ref cause) => cause,
GetParameterHistoryError::InvalidKeyId(ref cause) => cause,
GetParameterHistoryError::InvalidNextToken(ref cause) => cause,
GetParameterHistoryError::ParameterNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetParametersError {
InternalServerError(String),
InvalidKeyId(String),
}
impl GetParametersError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetParametersError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetParametersError::InternalServerError(err.msg))
}
"InvalidKeyId" => {
return RusotoError::Service(GetParametersError::InvalidKeyId(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetParametersError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetParametersError {
fn description(&self) -> &str {
match *self {
GetParametersError::InternalServerError(ref cause) => cause,
GetParametersError::InvalidKeyId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetParametersByPathError {
InternalServerError(String),
InvalidFilterKey(String),
InvalidFilterOption(String),
InvalidFilterValue(String),
InvalidKeyId(String),
InvalidNextToken(String),
}
impl GetParametersByPathError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetParametersByPathError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetParametersByPathError::InternalServerError(
err.msg,
))
}
"InvalidFilterKey" => {
return RusotoError::Service(GetParametersByPathError::InvalidFilterKey(
err.msg,
))
}
"InvalidFilterOption" => {
return RusotoError::Service(GetParametersByPathError::InvalidFilterOption(
err.msg,
))
}
"InvalidFilterValue" => {
return RusotoError::Service(GetParametersByPathError::InvalidFilterValue(
err.msg,
))
}
"InvalidKeyId" => {
return RusotoError::Service(GetParametersByPathError::InvalidKeyId(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(GetParametersByPathError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetParametersByPathError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetParametersByPathError {
fn description(&self) -> &str {
match *self {
GetParametersByPathError::InternalServerError(ref cause) => cause,
GetParametersByPathError::InvalidFilterKey(ref cause) => cause,
GetParametersByPathError::InvalidFilterOption(ref cause) => cause,
GetParametersByPathError::InvalidFilterValue(ref cause) => cause,
GetParametersByPathError::InvalidKeyId(ref cause) => cause,
GetParametersByPathError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetPatchBaselineError {
DoesNotExist(String),
InternalServerError(String),
InvalidResourceId(String),
}
impl GetPatchBaselineError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetPatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(GetPatchBaselineError::DoesNotExist(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(GetPatchBaselineError::InternalServerError(
err.msg,
))
}
"InvalidResourceId" => {
return RusotoError::Service(GetPatchBaselineError::InvalidResourceId(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetPatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetPatchBaselineError {
fn description(&self) -> &str {
match *self {
GetPatchBaselineError::DoesNotExist(ref cause) => cause,
GetPatchBaselineError::InternalServerError(ref cause) => cause,
GetPatchBaselineError::InvalidResourceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetPatchBaselineForPatchGroupError {
InternalServerError(String),
}
impl GetPatchBaselineForPatchGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<GetPatchBaselineForPatchGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
GetPatchBaselineForPatchGroupError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetPatchBaselineForPatchGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetPatchBaselineForPatchGroupError {
fn description(&self) -> &str {
match *self {
GetPatchBaselineForPatchGroupError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum GetServiceSettingError {
InternalServerError(String),
ServiceSettingNotFound(String),
}
impl GetServiceSettingError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<GetServiceSettingError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(GetServiceSettingError::InternalServerError(
err.msg,
))
}
"ServiceSettingNotFound" => {
return RusotoError::Service(GetServiceSettingError::ServiceSettingNotFound(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for GetServiceSettingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for GetServiceSettingError {
fn description(&self) -> &str {
match *self {
GetServiceSettingError::InternalServerError(ref cause) => cause,
GetServiceSettingError::ServiceSettingNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum LabelParameterVersionError {
InternalServerError(String),
ParameterNotFound(String),
ParameterVersionLabelLimitExceeded(String),
ParameterVersionNotFound(String),
TooManyUpdates(String),
}
impl LabelParameterVersionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<LabelParameterVersionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(LabelParameterVersionError::InternalServerError(
err.msg,
))
}
"ParameterNotFound" => {
return RusotoError::Service(LabelParameterVersionError::ParameterNotFound(
err.msg,
))
}
"ParameterVersionLabelLimitExceeded" => {
return RusotoError::Service(
LabelParameterVersionError::ParameterVersionLabelLimitExceeded(err.msg),
)
}
"ParameterVersionNotFound" => {
return RusotoError::Service(
LabelParameterVersionError::ParameterVersionNotFound(err.msg),
)
}
"TooManyUpdates" => {
return RusotoError::Service(LabelParameterVersionError::TooManyUpdates(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for LabelParameterVersionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for LabelParameterVersionError {
fn description(&self) -> &str {
match *self {
LabelParameterVersionError::InternalServerError(ref cause) => cause,
LabelParameterVersionError::ParameterNotFound(ref cause) => cause,
LabelParameterVersionError::ParameterVersionLabelLimitExceeded(ref cause) => cause,
LabelParameterVersionError::ParameterVersionNotFound(ref cause) => cause,
LabelParameterVersionError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListAssociationVersionsError {
AssociationDoesNotExist(String),
InternalServerError(String),
InvalidNextToken(String),
}
impl ListAssociationVersionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListAssociationVersionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(
ListAssociationVersionsError::AssociationDoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(ListAssociationVersionsError::InternalServerError(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListAssociationVersionsError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListAssociationVersionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListAssociationVersionsError {
fn description(&self) -> &str {
match *self {
ListAssociationVersionsError::AssociationDoesNotExist(ref cause) => cause,
ListAssociationVersionsError::InternalServerError(ref cause) => cause,
ListAssociationVersionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListAssociationsError {
InternalServerError(String),
InvalidNextToken(String),
}
impl ListAssociationsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListAssociationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListAssociationsError::InternalServerError(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListAssociationsError::InvalidNextToken(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListAssociationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListAssociationsError {
fn description(&self) -> &str {
match *self {
ListAssociationsError::InternalServerError(ref cause) => cause,
ListAssociationsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListCommandInvocationsError {
InternalServerError(String),
InvalidCommandId(String),
InvalidFilterKey(String),
InvalidInstanceId(String),
InvalidNextToken(String),
}
impl ListCommandInvocationsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListCommandInvocationsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListCommandInvocationsError::InternalServerError(
err.msg,
))
}
"InvalidCommandId" => {
return RusotoError::Service(ListCommandInvocationsError::InvalidCommandId(
err.msg,
))
}
"InvalidFilterKey" => {
return RusotoError::Service(ListCommandInvocationsError::InvalidFilterKey(
err.msg,
))
}
"InvalidInstanceId" => {
return RusotoError::Service(ListCommandInvocationsError::InvalidInstanceId(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListCommandInvocationsError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListCommandInvocationsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListCommandInvocationsError {
fn description(&self) -> &str {
match *self {
ListCommandInvocationsError::InternalServerError(ref cause) => cause,
ListCommandInvocationsError::InvalidCommandId(ref cause) => cause,
ListCommandInvocationsError::InvalidFilterKey(ref cause) => cause,
ListCommandInvocationsError::InvalidInstanceId(ref cause) => cause,
ListCommandInvocationsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListCommandsError {
InternalServerError(String),
InvalidCommandId(String),
InvalidFilterKey(String),
InvalidInstanceId(String),
InvalidNextToken(String),
}
impl ListCommandsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListCommandsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListCommandsError::InternalServerError(err.msg))
}
"InvalidCommandId" => {
return RusotoError::Service(ListCommandsError::InvalidCommandId(err.msg))
}
"InvalidFilterKey" => {
return RusotoError::Service(ListCommandsError::InvalidFilterKey(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(ListCommandsError::InvalidInstanceId(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(ListCommandsError::InvalidNextToken(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListCommandsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListCommandsError {
fn description(&self) -> &str {
match *self {
ListCommandsError::InternalServerError(ref cause) => cause,
ListCommandsError::InvalidCommandId(ref cause) => cause,
ListCommandsError::InvalidFilterKey(ref cause) => cause,
ListCommandsError::InvalidInstanceId(ref cause) => cause,
ListCommandsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListComplianceItemsError {
InternalServerError(String),
InvalidFilter(String),
InvalidNextToken(String),
InvalidResourceId(String),
InvalidResourceType(String),
}
impl ListComplianceItemsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListComplianceItemsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListComplianceItemsError::InternalServerError(
err.msg,
))
}
"InvalidFilter" => {
return RusotoError::Service(ListComplianceItemsError::InvalidFilter(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(ListComplianceItemsError::InvalidNextToken(
err.msg,
))
}
"InvalidResourceId" => {
return RusotoError::Service(ListComplianceItemsError::InvalidResourceId(
err.msg,
))
}
"InvalidResourceType" => {
return RusotoError::Service(ListComplianceItemsError::InvalidResourceType(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListComplianceItemsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListComplianceItemsError {
fn description(&self) -> &str {
match *self {
ListComplianceItemsError::InternalServerError(ref cause) => cause,
ListComplianceItemsError::InvalidFilter(ref cause) => cause,
ListComplianceItemsError::InvalidNextToken(ref cause) => cause,
ListComplianceItemsError::InvalidResourceId(ref cause) => cause,
ListComplianceItemsError::InvalidResourceType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListComplianceSummariesError {
InternalServerError(String),
InvalidFilter(String),
InvalidNextToken(String),
}
impl ListComplianceSummariesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListComplianceSummariesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListComplianceSummariesError::InternalServerError(
err.msg,
))
}
"InvalidFilter" => {
return RusotoError::Service(ListComplianceSummariesError::InvalidFilter(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListComplianceSummariesError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListComplianceSummariesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListComplianceSummariesError {
fn description(&self) -> &str {
match *self {
ListComplianceSummariesError::InternalServerError(ref cause) => cause,
ListComplianceSummariesError::InvalidFilter(ref cause) => cause,
ListComplianceSummariesError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListDocumentVersionsError {
InternalServerError(String),
InvalidDocument(String),
InvalidNextToken(String),
}
impl ListDocumentVersionsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDocumentVersionsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListDocumentVersionsError::InternalServerError(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(ListDocumentVersionsError::InvalidDocument(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListDocumentVersionsError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListDocumentVersionsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListDocumentVersionsError {
fn description(&self) -> &str {
match *self {
ListDocumentVersionsError::InternalServerError(ref cause) => cause,
ListDocumentVersionsError::InvalidDocument(ref cause) => cause,
ListDocumentVersionsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListDocumentsError {
InternalServerError(String),
InvalidFilterKey(String),
InvalidNextToken(String),
}
impl ListDocumentsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListDocumentsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListDocumentsError::InternalServerError(err.msg))
}
"InvalidFilterKey" => {
return RusotoError::Service(ListDocumentsError::InvalidFilterKey(err.msg))
}
"InvalidNextToken" => {
return RusotoError::Service(ListDocumentsError::InvalidNextToken(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListDocumentsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListDocumentsError {
fn description(&self) -> &str {
match *self {
ListDocumentsError::InternalServerError(ref cause) => cause,
ListDocumentsError::InvalidFilterKey(ref cause) => cause,
ListDocumentsError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListInventoryEntriesError {
InternalServerError(String),
InvalidFilter(String),
InvalidInstanceId(String),
InvalidNextToken(String),
InvalidTypeName(String),
}
impl ListInventoryEntriesError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListInventoryEntriesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListInventoryEntriesError::InternalServerError(
err.msg,
))
}
"InvalidFilter" => {
return RusotoError::Service(ListInventoryEntriesError::InvalidFilter(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(ListInventoryEntriesError::InvalidInstanceId(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListInventoryEntriesError::InvalidNextToken(
err.msg,
))
}
"InvalidTypeNameException" => {
return RusotoError::Service(ListInventoryEntriesError::InvalidTypeName(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListInventoryEntriesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListInventoryEntriesError {
fn description(&self) -> &str {
match *self {
ListInventoryEntriesError::InternalServerError(ref cause) => cause,
ListInventoryEntriesError::InvalidFilter(ref cause) => cause,
ListInventoryEntriesError::InvalidInstanceId(ref cause) => cause,
ListInventoryEntriesError::InvalidNextToken(ref cause) => cause,
ListInventoryEntriesError::InvalidTypeName(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListResourceComplianceSummariesError {
InternalServerError(String),
InvalidFilter(String),
InvalidNextToken(String),
}
impl ListResourceComplianceSummariesError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<ListResourceComplianceSummariesError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
ListResourceComplianceSummariesError::InternalServerError(err.msg),
)
}
"InvalidFilter" => {
return RusotoError::Service(
ListResourceComplianceSummariesError::InvalidFilter(err.msg),
)
}
"InvalidNextToken" => {
return RusotoError::Service(
ListResourceComplianceSummariesError::InvalidNextToken(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListResourceComplianceSummariesError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListResourceComplianceSummariesError {
fn description(&self) -> &str {
match *self {
ListResourceComplianceSummariesError::InternalServerError(ref cause) => cause,
ListResourceComplianceSummariesError::InvalidFilter(ref cause) => cause,
ListResourceComplianceSummariesError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListResourceDataSyncError {
InternalServerError(String),
InvalidNextToken(String),
}
impl ListResourceDataSyncError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListResourceDataSyncError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListResourceDataSyncError::InternalServerError(
err.msg,
))
}
"InvalidNextToken" => {
return RusotoError::Service(ListResourceDataSyncError::InvalidNextToken(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListResourceDataSyncError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListResourceDataSyncError {
fn description(&self) -> &str {
match *self {
ListResourceDataSyncError::InternalServerError(ref cause) => cause,
ListResourceDataSyncError::InvalidNextToken(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ListTagsForResourceError {
InternalServerError(String),
InvalidResourceId(String),
InvalidResourceType(String),
}
impl ListTagsForResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ListTagsForResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ListTagsForResourceError::InternalServerError(
err.msg,
))
}
"InvalidResourceId" => {
return RusotoError::Service(ListTagsForResourceError::InvalidResourceId(
err.msg,
))
}
"InvalidResourceType" => {
return RusotoError::Service(ListTagsForResourceError::InvalidResourceType(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ListTagsForResourceError {
fn description(&self) -> &str {
match *self {
ListTagsForResourceError::InternalServerError(ref cause) => cause,
ListTagsForResourceError::InvalidResourceId(ref cause) => cause,
ListTagsForResourceError::InvalidResourceType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ModifyDocumentPermissionError {
DocumentLimitExceeded(String),
DocumentPermissionLimit(String),
InternalServerError(String),
InvalidDocument(String),
InvalidPermissionType(String),
}
impl ModifyDocumentPermissionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ModifyDocumentPermissionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DocumentLimitExceeded" => {
return RusotoError::Service(
ModifyDocumentPermissionError::DocumentLimitExceeded(err.msg),
)
}
"DocumentPermissionLimit" => {
return RusotoError::Service(
ModifyDocumentPermissionError::DocumentPermissionLimit(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
ModifyDocumentPermissionError::InternalServerError(err.msg),
)
}
"InvalidDocument" => {
return RusotoError::Service(ModifyDocumentPermissionError::InvalidDocument(
err.msg,
))
}
"InvalidPermissionType" => {
return RusotoError::Service(
ModifyDocumentPermissionError::InvalidPermissionType(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ModifyDocumentPermissionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ModifyDocumentPermissionError {
fn description(&self) -> &str {
match *self {
ModifyDocumentPermissionError::DocumentLimitExceeded(ref cause) => cause,
ModifyDocumentPermissionError::DocumentPermissionLimit(ref cause) => cause,
ModifyDocumentPermissionError::InternalServerError(ref cause) => cause,
ModifyDocumentPermissionError::InvalidDocument(ref cause) => cause,
ModifyDocumentPermissionError::InvalidPermissionType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PutComplianceItemsError {
ComplianceTypeCountLimitExceeded(String),
InternalServerError(String),
InvalidItemContent(String),
InvalidResourceId(String),
InvalidResourceType(String),
ItemSizeLimitExceeded(String),
TotalSizeLimitExceeded(String),
}
impl PutComplianceItemsError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PutComplianceItemsError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"ComplianceTypeCountLimitExceededException" => {
return RusotoError::Service(
PutComplianceItemsError::ComplianceTypeCountLimitExceeded(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(PutComplianceItemsError::InternalServerError(
err.msg,
))
}
"InvalidItemContentException" => {
return RusotoError::Service(PutComplianceItemsError::InvalidItemContent(
err.msg,
))
}
"InvalidResourceId" => {
return RusotoError::Service(PutComplianceItemsError::InvalidResourceId(
err.msg,
))
}
"InvalidResourceType" => {
return RusotoError::Service(PutComplianceItemsError::InvalidResourceType(
err.msg,
))
}
"ItemSizeLimitExceededException" => {
return RusotoError::Service(PutComplianceItemsError::ItemSizeLimitExceeded(
err.msg,
))
}
"TotalSizeLimitExceededException" => {
return RusotoError::Service(PutComplianceItemsError::TotalSizeLimitExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PutComplianceItemsError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PutComplianceItemsError {
fn description(&self) -> &str {
match *self {
PutComplianceItemsError::ComplianceTypeCountLimitExceeded(ref cause) => cause,
PutComplianceItemsError::InternalServerError(ref cause) => cause,
PutComplianceItemsError::InvalidItemContent(ref cause) => cause,
PutComplianceItemsError::InvalidResourceId(ref cause) => cause,
PutComplianceItemsError::InvalidResourceType(ref cause) => cause,
PutComplianceItemsError::ItemSizeLimitExceeded(ref cause) => cause,
PutComplianceItemsError::TotalSizeLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PutInventoryError {
CustomSchemaCountLimitExceeded(String),
InternalServerError(String),
InvalidInstanceId(String),
InvalidInventoryItemContext(String),
InvalidItemContent(String),
InvalidTypeName(String),
ItemContentMismatch(String),
ItemSizeLimitExceeded(String),
SubTypeCountLimitExceeded(String),
TotalSizeLimitExceeded(String),
UnsupportedInventoryItemContext(String),
UnsupportedInventorySchemaVersion(String),
}
impl PutInventoryError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PutInventoryError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"CustomSchemaCountLimitExceededException" => {
return RusotoError::Service(PutInventoryError::CustomSchemaCountLimitExceeded(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(PutInventoryError::InternalServerError(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(PutInventoryError::InvalidInstanceId(err.msg))
}
"InvalidInventoryItemContextException" => {
return RusotoError::Service(PutInventoryError::InvalidInventoryItemContext(
err.msg,
))
}
"InvalidItemContentException" => {
return RusotoError::Service(PutInventoryError::InvalidItemContent(err.msg))
}
"InvalidTypeNameException" => {
return RusotoError::Service(PutInventoryError::InvalidTypeName(err.msg))
}
"ItemContentMismatchException" => {
return RusotoError::Service(PutInventoryError::ItemContentMismatch(err.msg))
}
"ItemSizeLimitExceededException" => {
return RusotoError::Service(PutInventoryError::ItemSizeLimitExceeded(err.msg))
}
"SubTypeCountLimitExceededException" => {
return RusotoError::Service(PutInventoryError::SubTypeCountLimitExceeded(
err.msg,
))
}
"TotalSizeLimitExceededException" => {
return RusotoError::Service(PutInventoryError::TotalSizeLimitExceeded(err.msg))
}
"UnsupportedInventoryItemContextException" => {
return RusotoError::Service(
PutInventoryError::UnsupportedInventoryItemContext(err.msg),
)
}
"UnsupportedInventorySchemaVersionException" => {
return RusotoError::Service(
PutInventoryError::UnsupportedInventorySchemaVersion(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PutInventoryError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PutInventoryError {
fn description(&self) -> &str {
match *self {
PutInventoryError::CustomSchemaCountLimitExceeded(ref cause) => cause,
PutInventoryError::InternalServerError(ref cause) => cause,
PutInventoryError::InvalidInstanceId(ref cause) => cause,
PutInventoryError::InvalidInventoryItemContext(ref cause) => cause,
PutInventoryError::InvalidItemContent(ref cause) => cause,
PutInventoryError::InvalidTypeName(ref cause) => cause,
PutInventoryError::ItemContentMismatch(ref cause) => cause,
PutInventoryError::ItemSizeLimitExceeded(ref cause) => cause,
PutInventoryError::SubTypeCountLimitExceeded(ref cause) => cause,
PutInventoryError::TotalSizeLimitExceeded(ref cause) => cause,
PutInventoryError::UnsupportedInventoryItemContext(ref cause) => cause,
PutInventoryError::UnsupportedInventorySchemaVersion(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum PutParameterError {
HierarchyLevelLimitExceeded(String),
HierarchyTypeMismatch(String),
IncompatiblePolicy(String),
InternalServerError(String),
InvalidAllowedPattern(String),
InvalidKeyId(String),
InvalidPolicyAttribute(String),
InvalidPolicyType(String),
ParameterAlreadyExists(String),
ParameterLimitExceeded(String),
ParameterMaxVersionLimitExceeded(String),
ParameterPatternMismatch(String),
PoliciesLimitExceeded(String),
TooManyUpdates(String),
UnsupportedParameterType(String),
}
impl PutParameterError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<PutParameterError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"HierarchyLevelLimitExceededException" => {
return RusotoError::Service(PutParameterError::HierarchyLevelLimitExceeded(
err.msg,
))
}
"HierarchyTypeMismatchException" => {
return RusotoError::Service(PutParameterError::HierarchyTypeMismatch(err.msg))
}
"IncompatiblePolicyException" => {
return RusotoError::Service(PutParameterError::IncompatiblePolicy(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(PutParameterError::InternalServerError(err.msg))
}
"InvalidAllowedPatternException" => {
return RusotoError::Service(PutParameterError::InvalidAllowedPattern(err.msg))
}
"InvalidKeyId" => {
return RusotoError::Service(PutParameterError::InvalidKeyId(err.msg))
}
"InvalidPolicyAttributeException" => {
return RusotoError::Service(PutParameterError::InvalidPolicyAttribute(err.msg))
}
"InvalidPolicyTypeException" => {
return RusotoError::Service(PutParameterError::InvalidPolicyType(err.msg))
}
"ParameterAlreadyExists" => {
return RusotoError::Service(PutParameterError::ParameterAlreadyExists(err.msg))
}
"ParameterLimitExceeded" => {
return RusotoError::Service(PutParameterError::ParameterLimitExceeded(err.msg))
}
"ParameterMaxVersionLimitExceeded" => {
return RusotoError::Service(
PutParameterError::ParameterMaxVersionLimitExceeded(err.msg),
)
}
"ParameterPatternMismatchException" => {
return RusotoError::Service(PutParameterError::ParameterPatternMismatch(
err.msg,
))
}
"PoliciesLimitExceededException" => {
return RusotoError::Service(PutParameterError::PoliciesLimitExceeded(err.msg))
}
"TooManyUpdates" => {
return RusotoError::Service(PutParameterError::TooManyUpdates(err.msg))
}
"UnsupportedParameterType" => {
return RusotoError::Service(PutParameterError::UnsupportedParameterType(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for PutParameterError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for PutParameterError {
fn description(&self) -> &str {
match *self {
PutParameterError::HierarchyLevelLimitExceeded(ref cause) => cause,
PutParameterError::HierarchyTypeMismatch(ref cause) => cause,
PutParameterError::IncompatiblePolicy(ref cause) => cause,
PutParameterError::InternalServerError(ref cause) => cause,
PutParameterError::InvalidAllowedPattern(ref cause) => cause,
PutParameterError::InvalidKeyId(ref cause) => cause,
PutParameterError::InvalidPolicyAttribute(ref cause) => cause,
PutParameterError::InvalidPolicyType(ref cause) => cause,
PutParameterError::ParameterAlreadyExists(ref cause) => cause,
PutParameterError::ParameterLimitExceeded(ref cause) => cause,
PutParameterError::ParameterMaxVersionLimitExceeded(ref cause) => cause,
PutParameterError::ParameterPatternMismatch(ref cause) => cause,
PutParameterError::PoliciesLimitExceeded(ref cause) => cause,
PutParameterError::TooManyUpdates(ref cause) => cause,
PutParameterError::UnsupportedParameterType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RegisterDefaultPatchBaselineError {
DoesNotExist(String),
InternalServerError(String),
InvalidResourceId(String),
}
impl RegisterDefaultPatchBaselineError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<RegisterDefaultPatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(RegisterDefaultPatchBaselineError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(
RegisterDefaultPatchBaselineError::InternalServerError(err.msg),
)
}
"InvalidResourceId" => {
return RusotoError::Service(
RegisterDefaultPatchBaselineError::InvalidResourceId(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RegisterDefaultPatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RegisterDefaultPatchBaselineError {
fn description(&self) -> &str {
match *self {
RegisterDefaultPatchBaselineError::DoesNotExist(ref cause) => cause,
RegisterDefaultPatchBaselineError::InternalServerError(ref cause) => cause,
RegisterDefaultPatchBaselineError::InvalidResourceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RegisterPatchBaselineForPatchGroupError {
AlreadyExists(String),
DoesNotExist(String),
InternalServerError(String),
InvalidResourceId(String),
ResourceLimitExceeded(String),
}
impl RegisterPatchBaselineForPatchGroupError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<RegisterPatchBaselineForPatchGroupError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AlreadyExistsException" => {
return RusotoError::Service(
RegisterPatchBaselineForPatchGroupError::AlreadyExists(err.msg),
)
}
"DoesNotExistException" => {
return RusotoError::Service(
RegisterPatchBaselineForPatchGroupError::DoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
RegisterPatchBaselineForPatchGroupError::InternalServerError(err.msg),
)
}
"InvalidResourceId" => {
return RusotoError::Service(
RegisterPatchBaselineForPatchGroupError::InvalidResourceId(err.msg),
)
}
"ResourceLimitExceededException" => {
return RusotoError::Service(
RegisterPatchBaselineForPatchGroupError::ResourceLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RegisterPatchBaselineForPatchGroupError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RegisterPatchBaselineForPatchGroupError {
fn description(&self) -> &str {
match *self {
RegisterPatchBaselineForPatchGroupError::AlreadyExists(ref cause) => cause,
RegisterPatchBaselineForPatchGroupError::DoesNotExist(ref cause) => cause,
RegisterPatchBaselineForPatchGroupError::InternalServerError(ref cause) => cause,
RegisterPatchBaselineForPatchGroupError::InvalidResourceId(ref cause) => cause,
RegisterPatchBaselineForPatchGroupError::ResourceLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RegisterTargetWithMaintenanceWindowError {
DoesNotExist(String),
IdempotentParameterMismatch(String),
InternalServerError(String),
ResourceLimitExceeded(String),
}
impl RegisterTargetWithMaintenanceWindowError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<RegisterTargetWithMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
RegisterTargetWithMaintenanceWindowError::DoesNotExist(err.msg),
)
}
"IdempotentParameterMismatch" => {
return RusotoError::Service(
RegisterTargetWithMaintenanceWindowError::IdempotentParameterMismatch(
err.msg,
),
)
}
"InternalServerError" => {
return RusotoError::Service(
RegisterTargetWithMaintenanceWindowError::InternalServerError(err.msg),
)
}
"ResourceLimitExceededException" => {
return RusotoError::Service(
RegisterTargetWithMaintenanceWindowError::ResourceLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RegisterTargetWithMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RegisterTargetWithMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
RegisterTargetWithMaintenanceWindowError::DoesNotExist(ref cause) => cause,
RegisterTargetWithMaintenanceWindowError::IdempotentParameterMismatch(ref cause) => {
cause
}
RegisterTargetWithMaintenanceWindowError::InternalServerError(ref cause) => cause,
RegisterTargetWithMaintenanceWindowError::ResourceLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RegisterTaskWithMaintenanceWindowError {
DoesNotExist(String),
FeatureNotAvailable(String),
IdempotentParameterMismatch(String),
InternalServerError(String),
ResourceLimitExceeded(String),
}
impl RegisterTaskWithMaintenanceWindowError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<RegisterTaskWithMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(
RegisterTaskWithMaintenanceWindowError::DoesNotExist(err.msg),
)
}
"FeatureNotAvailableException" => {
return RusotoError::Service(
RegisterTaskWithMaintenanceWindowError::FeatureNotAvailable(err.msg),
)
}
"IdempotentParameterMismatch" => {
return RusotoError::Service(
RegisterTaskWithMaintenanceWindowError::IdempotentParameterMismatch(
err.msg,
),
)
}
"InternalServerError" => {
return RusotoError::Service(
RegisterTaskWithMaintenanceWindowError::InternalServerError(err.msg),
)
}
"ResourceLimitExceededException" => {
return RusotoError::Service(
RegisterTaskWithMaintenanceWindowError::ResourceLimitExceeded(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RegisterTaskWithMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RegisterTaskWithMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
RegisterTaskWithMaintenanceWindowError::DoesNotExist(ref cause) => cause,
RegisterTaskWithMaintenanceWindowError::FeatureNotAvailable(ref cause) => cause,
RegisterTaskWithMaintenanceWindowError::IdempotentParameterMismatch(ref cause) => cause,
RegisterTaskWithMaintenanceWindowError::InternalServerError(ref cause) => cause,
RegisterTaskWithMaintenanceWindowError::ResourceLimitExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum RemoveTagsFromResourceError {
InternalServerError(String),
InvalidResourceId(String),
InvalidResourceType(String),
TooManyUpdates(String),
}
impl RemoveTagsFromResourceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<RemoveTagsFromResourceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(RemoveTagsFromResourceError::InternalServerError(
err.msg,
))
}
"InvalidResourceId" => {
return RusotoError::Service(RemoveTagsFromResourceError::InvalidResourceId(
err.msg,
))
}
"InvalidResourceType" => {
return RusotoError::Service(RemoveTagsFromResourceError::InvalidResourceType(
err.msg,
))
}
"TooManyUpdates" => {
return RusotoError::Service(RemoveTagsFromResourceError::TooManyUpdates(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for RemoveTagsFromResourceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for RemoveTagsFromResourceError {
fn description(&self) -> &str {
match *self {
RemoveTagsFromResourceError::InternalServerError(ref cause) => cause,
RemoveTagsFromResourceError::InvalidResourceId(ref cause) => cause,
RemoveTagsFromResourceError::InvalidResourceType(ref cause) => cause,
RemoveTagsFromResourceError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ResetServiceSettingError {
InternalServerError(String),
ServiceSettingNotFound(String),
TooManyUpdates(String),
}
impl ResetServiceSettingError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ResetServiceSettingError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(ResetServiceSettingError::InternalServerError(
err.msg,
))
}
"ServiceSettingNotFound" => {
return RusotoError::Service(ResetServiceSettingError::ServiceSettingNotFound(
err.msg,
))
}
"TooManyUpdates" => {
return RusotoError::Service(ResetServiceSettingError::TooManyUpdates(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ResetServiceSettingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ResetServiceSettingError {
fn description(&self) -> &str {
match *self {
ResetServiceSettingError::InternalServerError(ref cause) => cause,
ResetServiceSettingError::ServiceSettingNotFound(ref cause) => cause,
ResetServiceSettingError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum ResumeSessionError {
DoesNotExist(String),
InternalServerError(String),
}
impl ResumeSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<ResumeSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(ResumeSessionError::DoesNotExist(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(ResumeSessionError::InternalServerError(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for ResumeSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for ResumeSessionError {
fn description(&self) -> &str {
match *self {
ResumeSessionError::DoesNotExist(ref cause) => cause,
ResumeSessionError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum SendAutomationSignalError {
AutomationExecutionNotFound(String),
AutomationStepNotFound(String),
InternalServerError(String),
InvalidAutomationSignal(String),
}
impl SendAutomationSignalError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<SendAutomationSignalError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AutomationExecutionNotFoundException" => {
return RusotoError::Service(
SendAutomationSignalError::AutomationExecutionNotFound(err.msg),
)
}
"AutomationStepNotFoundException" => {
return RusotoError::Service(SendAutomationSignalError::AutomationStepNotFound(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(SendAutomationSignalError::InternalServerError(
err.msg,
))
}
"InvalidAutomationSignalException" => {
return RusotoError::Service(
SendAutomationSignalError::InvalidAutomationSignal(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for SendAutomationSignalError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for SendAutomationSignalError {
fn description(&self) -> &str {
match *self {
SendAutomationSignalError::AutomationExecutionNotFound(ref cause) => cause,
SendAutomationSignalError::AutomationStepNotFound(ref cause) => cause,
SendAutomationSignalError::InternalServerError(ref cause) => cause,
SendAutomationSignalError::InvalidAutomationSignal(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum SendCommandError {
DuplicateInstanceId(String),
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentVersion(String),
InvalidInstanceId(String),
InvalidNotificationConfig(String),
InvalidOutputFolder(String),
InvalidParameters(String),
InvalidRole(String),
MaxDocumentSizeExceeded(String),
UnsupportedPlatformType(String),
}
impl SendCommandError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<SendCommandError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DuplicateInstanceId" => {
return RusotoError::Service(SendCommandError::DuplicateInstanceId(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(SendCommandError::InternalServerError(err.msg))
}
"InvalidDocument" => {
return RusotoError::Service(SendCommandError::InvalidDocument(err.msg))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(SendCommandError::InvalidDocumentVersion(err.msg))
}
"InvalidInstanceId" => {
return RusotoError::Service(SendCommandError::InvalidInstanceId(err.msg))
}
"InvalidNotificationConfig" => {
return RusotoError::Service(SendCommandError::InvalidNotificationConfig(
err.msg,
))
}
"InvalidOutputFolder" => {
return RusotoError::Service(SendCommandError::InvalidOutputFolder(err.msg))
}
"InvalidParameters" => {
return RusotoError::Service(SendCommandError::InvalidParameters(err.msg))
}
"InvalidRole" => {
return RusotoError::Service(SendCommandError::InvalidRole(err.msg))
}
"MaxDocumentSizeExceeded" => {
return RusotoError::Service(SendCommandError::MaxDocumentSizeExceeded(err.msg))
}
"UnsupportedPlatformType" => {
return RusotoError::Service(SendCommandError::UnsupportedPlatformType(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for SendCommandError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for SendCommandError {
fn description(&self) -> &str {
match *self {
SendCommandError::DuplicateInstanceId(ref cause) => cause,
SendCommandError::InternalServerError(ref cause) => cause,
SendCommandError::InvalidDocument(ref cause) => cause,
SendCommandError::InvalidDocumentVersion(ref cause) => cause,
SendCommandError::InvalidInstanceId(ref cause) => cause,
SendCommandError::InvalidNotificationConfig(ref cause) => cause,
SendCommandError::InvalidOutputFolder(ref cause) => cause,
SendCommandError::InvalidParameters(ref cause) => cause,
SendCommandError::InvalidRole(ref cause) => cause,
SendCommandError::MaxDocumentSizeExceeded(ref cause) => cause,
SendCommandError::UnsupportedPlatformType(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartAssociationsOnceError {
AssociationDoesNotExist(String),
InvalidAssociation(String),
}
impl StartAssociationsOnceError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartAssociationsOnceError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(
StartAssociationsOnceError::AssociationDoesNotExist(err.msg),
)
}
"InvalidAssociation" => {
return RusotoError::Service(StartAssociationsOnceError::InvalidAssociation(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartAssociationsOnceError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartAssociationsOnceError {
fn description(&self) -> &str {
match *self {
StartAssociationsOnceError::AssociationDoesNotExist(ref cause) => cause,
StartAssociationsOnceError::InvalidAssociation(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartAutomationExecutionError {
AutomationDefinitionNotFound(String),
AutomationDefinitionVersionNotFound(String),
AutomationExecutionLimitExceeded(String),
IdempotentParameterMismatch(String),
InternalServerError(String),
InvalidAutomationExecutionParameters(String),
InvalidTarget(String),
}
impl StartAutomationExecutionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartAutomationExecutionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AutomationDefinitionNotFoundException" => {
return RusotoError::Service(
StartAutomationExecutionError::AutomationDefinitionNotFound(err.msg),
)
}
"AutomationDefinitionVersionNotFoundException" => {
return RusotoError::Service(
StartAutomationExecutionError::AutomationDefinitionVersionNotFound(err.msg),
)
}
"AutomationExecutionLimitExceededException" => {
return RusotoError::Service(
StartAutomationExecutionError::AutomationExecutionLimitExceeded(err.msg),
)
}
"IdempotentParameterMismatch" => {
return RusotoError::Service(
StartAutomationExecutionError::IdempotentParameterMismatch(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(
StartAutomationExecutionError::InternalServerError(err.msg),
)
}
"InvalidAutomationExecutionParametersException" => {
return RusotoError::Service(
StartAutomationExecutionError::InvalidAutomationExecutionParameters(
err.msg,
),
)
}
"InvalidTarget" => {
return RusotoError::Service(StartAutomationExecutionError::InvalidTarget(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartAutomationExecutionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartAutomationExecutionError {
fn description(&self) -> &str {
match *self {
StartAutomationExecutionError::AutomationDefinitionNotFound(ref cause) => cause,
StartAutomationExecutionError::AutomationDefinitionVersionNotFound(ref cause) => cause,
StartAutomationExecutionError::AutomationExecutionLimitExceeded(ref cause) => cause,
StartAutomationExecutionError::IdempotentParameterMismatch(ref cause) => cause,
StartAutomationExecutionError::InternalServerError(ref cause) => cause,
StartAutomationExecutionError::InvalidAutomationExecutionParameters(ref cause) => cause,
StartAutomationExecutionError::InvalidTarget(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StartSessionError {
InternalServerError(String),
InvalidDocument(String),
TargetNotConnected(String),
}
impl StartSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StartSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(StartSessionError::InternalServerError(err.msg))
}
"InvalidDocument" => {
return RusotoError::Service(StartSessionError::InvalidDocument(err.msg))
}
"TargetNotConnected" => {
return RusotoError::Service(StartSessionError::TargetNotConnected(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StartSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StartSessionError {
fn description(&self) -> &str {
match *self {
StartSessionError::InternalServerError(ref cause) => cause,
StartSessionError::InvalidDocument(ref cause) => cause,
StartSessionError::TargetNotConnected(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum StopAutomationExecutionError {
AutomationExecutionNotFound(String),
InternalServerError(String),
InvalidAutomationStatusUpdate(String),
}
impl StopAutomationExecutionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<StopAutomationExecutionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AutomationExecutionNotFoundException" => {
return RusotoError::Service(
StopAutomationExecutionError::AutomationExecutionNotFound(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(StopAutomationExecutionError::InternalServerError(
err.msg,
))
}
"InvalidAutomationStatusUpdateException" => {
return RusotoError::Service(
StopAutomationExecutionError::InvalidAutomationStatusUpdate(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for StopAutomationExecutionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for StopAutomationExecutionError {
fn description(&self) -> &str {
match *self {
StopAutomationExecutionError::AutomationExecutionNotFound(ref cause) => cause,
StopAutomationExecutionError::InternalServerError(ref cause) => cause,
StopAutomationExecutionError::InvalidAutomationStatusUpdate(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum TerminateSessionError {
DoesNotExist(String),
InternalServerError(String),
}
impl TerminateSessionError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<TerminateSessionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(TerminateSessionError::DoesNotExist(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(TerminateSessionError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for TerminateSessionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for TerminateSessionError {
fn description(&self) -> &str {
match *self {
TerminateSessionError::DoesNotExist(ref cause) => cause,
TerminateSessionError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateAssociationError {
AssociationDoesNotExist(String),
AssociationVersionLimitExceeded(String),
InternalServerError(String),
InvalidAssociationVersion(String),
InvalidDocument(String),
InvalidDocumentVersion(String),
InvalidOutputLocation(String),
InvalidParameters(String),
InvalidSchedule(String),
InvalidTarget(String),
InvalidUpdate(String),
TooManyUpdates(String),
}
impl UpdateAssociationError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateAssociationError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(UpdateAssociationError::AssociationDoesNotExist(
err.msg,
))
}
"AssociationVersionLimitExceeded" => {
return RusotoError::Service(
UpdateAssociationError::AssociationVersionLimitExceeded(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(UpdateAssociationError::InternalServerError(
err.msg,
))
}
"InvalidAssociationVersion" => {
return RusotoError::Service(UpdateAssociationError::InvalidAssociationVersion(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(UpdateAssociationError::InvalidDocument(err.msg))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(UpdateAssociationError::InvalidDocumentVersion(
err.msg,
))
}
"InvalidOutputLocation" => {
return RusotoError::Service(UpdateAssociationError::InvalidOutputLocation(
err.msg,
))
}
"InvalidParameters" => {
return RusotoError::Service(UpdateAssociationError::InvalidParameters(err.msg))
}
"InvalidSchedule" => {
return RusotoError::Service(UpdateAssociationError::InvalidSchedule(err.msg))
}
"InvalidTarget" => {
return RusotoError::Service(UpdateAssociationError::InvalidTarget(err.msg))
}
"InvalidUpdate" => {
return RusotoError::Service(UpdateAssociationError::InvalidUpdate(err.msg))
}
"TooManyUpdates" => {
return RusotoError::Service(UpdateAssociationError::TooManyUpdates(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateAssociationError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateAssociationError {
fn description(&self) -> &str {
match *self {
UpdateAssociationError::AssociationDoesNotExist(ref cause) => cause,
UpdateAssociationError::AssociationVersionLimitExceeded(ref cause) => cause,
UpdateAssociationError::InternalServerError(ref cause) => cause,
UpdateAssociationError::InvalidAssociationVersion(ref cause) => cause,
UpdateAssociationError::InvalidDocument(ref cause) => cause,
UpdateAssociationError::InvalidDocumentVersion(ref cause) => cause,
UpdateAssociationError::InvalidOutputLocation(ref cause) => cause,
UpdateAssociationError::InvalidParameters(ref cause) => cause,
UpdateAssociationError::InvalidSchedule(ref cause) => cause,
UpdateAssociationError::InvalidTarget(ref cause) => cause,
UpdateAssociationError::InvalidUpdate(ref cause) => cause,
UpdateAssociationError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateAssociationStatusError {
AssociationDoesNotExist(String),
InternalServerError(String),
InvalidDocument(String),
InvalidInstanceId(String),
StatusUnchanged(String),
TooManyUpdates(String),
}
impl UpdateAssociationStatusError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateAssociationStatusError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"AssociationDoesNotExist" => {
return RusotoError::Service(
UpdateAssociationStatusError::AssociationDoesNotExist(err.msg),
)
}
"InternalServerError" => {
return RusotoError::Service(UpdateAssociationStatusError::InternalServerError(
err.msg,
))
}
"InvalidDocument" => {
return RusotoError::Service(UpdateAssociationStatusError::InvalidDocument(
err.msg,
))
}
"InvalidInstanceId" => {
return RusotoError::Service(UpdateAssociationStatusError::InvalidInstanceId(
err.msg,
))
}
"StatusUnchanged" => {
return RusotoError::Service(UpdateAssociationStatusError::StatusUnchanged(
err.msg,
))
}
"TooManyUpdates" => {
return RusotoError::Service(UpdateAssociationStatusError::TooManyUpdates(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateAssociationStatusError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateAssociationStatusError {
fn description(&self) -> &str {
match *self {
UpdateAssociationStatusError::AssociationDoesNotExist(ref cause) => cause,
UpdateAssociationStatusError::InternalServerError(ref cause) => cause,
UpdateAssociationStatusError::InvalidDocument(ref cause) => cause,
UpdateAssociationStatusError::InvalidInstanceId(ref cause) => cause,
UpdateAssociationStatusError::StatusUnchanged(ref cause) => cause,
UpdateAssociationStatusError::TooManyUpdates(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDocumentError {
DocumentVersionLimitExceeded(String),
DuplicateDocumentContent(String),
DuplicateDocumentVersionName(String),
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentContent(String),
InvalidDocumentOperation(String),
InvalidDocumentSchemaVersion(String),
InvalidDocumentVersion(String),
MaxDocumentSizeExceeded(String),
}
impl UpdateDocumentError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateDocumentError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DocumentVersionLimitExceeded" => {
return RusotoError::Service(UpdateDocumentError::DocumentVersionLimitExceeded(
err.msg,
))
}
"DuplicateDocumentContent" => {
return RusotoError::Service(UpdateDocumentError::DuplicateDocumentContent(
err.msg,
))
}
"DuplicateDocumentVersionName" => {
return RusotoError::Service(UpdateDocumentError::DuplicateDocumentVersionName(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(UpdateDocumentError::InternalServerError(err.msg))
}
"InvalidDocument" => {
return RusotoError::Service(UpdateDocumentError::InvalidDocument(err.msg))
}
"InvalidDocumentContent" => {
return RusotoError::Service(UpdateDocumentError::InvalidDocumentContent(
err.msg,
))
}
"InvalidDocumentOperation" => {
return RusotoError::Service(UpdateDocumentError::InvalidDocumentOperation(
err.msg,
))
}
"InvalidDocumentSchemaVersion" => {
return RusotoError::Service(UpdateDocumentError::InvalidDocumentSchemaVersion(
err.msg,
))
}
"InvalidDocumentVersion" => {
return RusotoError::Service(UpdateDocumentError::InvalidDocumentVersion(
err.msg,
))
}
"MaxDocumentSizeExceeded" => {
return RusotoError::Service(UpdateDocumentError::MaxDocumentSizeExceeded(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDocumentError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDocumentError {
fn description(&self) -> &str {
match *self {
UpdateDocumentError::DocumentVersionLimitExceeded(ref cause) => cause,
UpdateDocumentError::DuplicateDocumentContent(ref cause) => cause,
UpdateDocumentError::DuplicateDocumentVersionName(ref cause) => cause,
UpdateDocumentError::InternalServerError(ref cause) => cause,
UpdateDocumentError::InvalidDocument(ref cause) => cause,
UpdateDocumentError::InvalidDocumentContent(ref cause) => cause,
UpdateDocumentError::InvalidDocumentOperation(ref cause) => cause,
UpdateDocumentError::InvalidDocumentSchemaVersion(ref cause) => cause,
UpdateDocumentError::InvalidDocumentVersion(ref cause) => cause,
UpdateDocumentError::MaxDocumentSizeExceeded(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateDocumentDefaultVersionError {
InternalServerError(String),
InvalidDocument(String),
InvalidDocumentSchemaVersion(String),
InvalidDocumentVersion(String),
}
impl UpdateDocumentDefaultVersionError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateDocumentDefaultVersionError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
UpdateDocumentDefaultVersionError::InternalServerError(err.msg),
)
}
"InvalidDocument" => {
return RusotoError::Service(
UpdateDocumentDefaultVersionError::InvalidDocument(err.msg),
)
}
"InvalidDocumentSchemaVersion" => {
return RusotoError::Service(
UpdateDocumentDefaultVersionError::InvalidDocumentSchemaVersion(err.msg),
)
}
"InvalidDocumentVersion" => {
return RusotoError::Service(
UpdateDocumentDefaultVersionError::InvalidDocumentVersion(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateDocumentDefaultVersionError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateDocumentDefaultVersionError {
fn description(&self) -> &str {
match *self {
UpdateDocumentDefaultVersionError::InternalServerError(ref cause) => cause,
UpdateDocumentDefaultVersionError::InvalidDocument(ref cause) => cause,
UpdateDocumentDefaultVersionError::InvalidDocumentSchemaVersion(ref cause) => cause,
UpdateDocumentDefaultVersionError::InvalidDocumentVersion(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateMaintenanceWindowError {
DoesNotExist(String),
InternalServerError(String),
}
impl UpdateMaintenanceWindowError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateMaintenanceWindowError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(UpdateMaintenanceWindowError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(UpdateMaintenanceWindowError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateMaintenanceWindowError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateMaintenanceWindowError {
fn description(&self) -> &str {
match *self {
UpdateMaintenanceWindowError::DoesNotExist(ref cause) => cause,
UpdateMaintenanceWindowError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateMaintenanceWindowTargetError {
DoesNotExist(String),
InternalServerError(String),
}
impl UpdateMaintenanceWindowTargetError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateMaintenanceWindowTargetError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(UpdateMaintenanceWindowTargetError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(
UpdateMaintenanceWindowTargetError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateMaintenanceWindowTargetError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateMaintenanceWindowTargetError {
fn description(&self) -> &str {
match *self {
UpdateMaintenanceWindowTargetError::DoesNotExist(ref cause) => cause,
UpdateMaintenanceWindowTargetError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateMaintenanceWindowTaskError {
DoesNotExist(String),
InternalServerError(String),
}
impl UpdateMaintenanceWindowTaskError {
pub fn from_response(
res: BufferedHttpResponse,
) -> RusotoError<UpdateMaintenanceWindowTaskError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(UpdateMaintenanceWindowTaskError::DoesNotExist(
err.msg,
))
}
"InternalServerError" => {
return RusotoError::Service(
UpdateMaintenanceWindowTaskError::InternalServerError(err.msg),
)
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateMaintenanceWindowTaskError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateMaintenanceWindowTaskError {
fn description(&self) -> &str {
match *self {
UpdateMaintenanceWindowTaskError::DoesNotExist(ref cause) => cause,
UpdateMaintenanceWindowTaskError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateManagedInstanceRoleError {
InternalServerError(String),
InvalidInstanceId(String),
}
impl UpdateManagedInstanceRoleError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateManagedInstanceRoleError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(
UpdateManagedInstanceRoleError::InternalServerError(err.msg),
)
}
"InvalidInstanceId" => {
return RusotoError::Service(UpdateManagedInstanceRoleError::InvalidInstanceId(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateManagedInstanceRoleError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateManagedInstanceRoleError {
fn description(&self) -> &str {
match *self {
UpdateManagedInstanceRoleError::InternalServerError(ref cause) => cause,
UpdateManagedInstanceRoleError::InvalidInstanceId(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateOpsItemError {
InternalServerError(String),
OpsItemAlreadyExists(String),
OpsItemInvalidParameter(String),
OpsItemLimitExceeded(String),
OpsItemNotFound(String),
}
impl UpdateOpsItemError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateOpsItemError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(UpdateOpsItemError::InternalServerError(err.msg))
}
"OpsItemAlreadyExistsException" => {
return RusotoError::Service(UpdateOpsItemError::OpsItemAlreadyExists(err.msg))
}
"OpsItemInvalidParameterException" => {
return RusotoError::Service(UpdateOpsItemError::OpsItemInvalidParameter(
err.msg,
))
}
"OpsItemLimitExceededException" => {
return RusotoError::Service(UpdateOpsItemError::OpsItemLimitExceeded(err.msg))
}
"OpsItemNotFoundException" => {
return RusotoError::Service(UpdateOpsItemError::OpsItemNotFound(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateOpsItemError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateOpsItemError {
fn description(&self) -> &str {
match *self {
UpdateOpsItemError::InternalServerError(ref cause) => cause,
UpdateOpsItemError::OpsItemAlreadyExists(ref cause) => cause,
UpdateOpsItemError::OpsItemInvalidParameter(ref cause) => cause,
UpdateOpsItemError::OpsItemLimitExceeded(ref cause) => cause,
UpdateOpsItemError::OpsItemNotFound(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdatePatchBaselineError {
DoesNotExist(String),
InternalServerError(String),
}
impl UpdatePatchBaselineError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdatePatchBaselineError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"DoesNotExistException" => {
return RusotoError::Service(UpdatePatchBaselineError::DoesNotExist(err.msg))
}
"InternalServerError" => {
return RusotoError::Service(UpdatePatchBaselineError::InternalServerError(
err.msg,
))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdatePatchBaselineError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdatePatchBaselineError {
fn description(&self) -> &str {
match *self {
UpdatePatchBaselineError::DoesNotExist(ref cause) => cause,
UpdatePatchBaselineError::InternalServerError(ref cause) => cause,
}
}
}
#[derive(Debug, PartialEq)]
pub enum UpdateServiceSettingError {
InternalServerError(String),
ServiceSettingNotFound(String),
TooManyUpdates(String),
}
impl UpdateServiceSettingError {
pub fn from_response(res: BufferedHttpResponse) -> RusotoError<UpdateServiceSettingError> {
if let Some(err) = proto::json::Error::parse(&res) {
match err.typ.as_str() {
"InternalServerError" => {
return RusotoError::Service(UpdateServiceSettingError::InternalServerError(
err.msg,
))
}
"ServiceSettingNotFound" => {
return RusotoError::Service(UpdateServiceSettingError::ServiceSettingNotFound(
err.msg,
))
}
"TooManyUpdates" => {
return RusotoError::Service(UpdateServiceSettingError::TooManyUpdates(err.msg))
}
"ValidationException" => return RusotoError::Validation(err.msg),
_ => {}
}
}
return RusotoError::Unknown(res);
}
}
impl fmt::Display for UpdateServiceSettingError {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
write!(f, "{}", self.description())
}
}
impl Error for UpdateServiceSettingError {
fn description(&self) -> &str {
match *self {
UpdateServiceSettingError::InternalServerError(ref cause) => cause,
UpdateServiceSettingError::ServiceSettingNotFound(ref cause) => cause,
UpdateServiceSettingError::TooManyUpdates(ref cause) => cause,
}
}
}
pub trait Ssm {
fn add_tags_to_resource(
&self,
input: AddTagsToResourceRequest,
) -> RusotoFuture<AddTagsToResourceResult, AddTagsToResourceError>;
fn cancel_command(
&self,
input: CancelCommandRequest,
) -> RusotoFuture<CancelCommandResult, CancelCommandError>;
fn cancel_maintenance_window_execution(
&self,
input: CancelMaintenanceWindowExecutionRequest,
) -> RusotoFuture<CancelMaintenanceWindowExecutionResult, CancelMaintenanceWindowExecutionError>;
fn create_activation(
&self,
input: CreateActivationRequest,
) -> RusotoFuture<CreateActivationResult, CreateActivationError>;
fn create_association(
&self,
input: CreateAssociationRequest,
) -> RusotoFuture<CreateAssociationResult, CreateAssociationError>;
fn create_association_batch(
&self,
input: CreateAssociationBatchRequest,
) -> RusotoFuture<CreateAssociationBatchResult, CreateAssociationBatchError>;
fn create_document(
&self,
input: CreateDocumentRequest,
) -> RusotoFuture<CreateDocumentResult, CreateDocumentError>;
fn create_maintenance_window(
&self,
input: CreateMaintenanceWindowRequest,
) -> RusotoFuture<CreateMaintenanceWindowResult, CreateMaintenanceWindowError>;
fn create_ops_item(
&self,
input: CreateOpsItemRequest,
) -> RusotoFuture<CreateOpsItemResponse, CreateOpsItemError>;
fn create_patch_baseline(
&self,
input: CreatePatchBaselineRequest,
) -> RusotoFuture<CreatePatchBaselineResult, CreatePatchBaselineError>;
fn create_resource_data_sync(
&self,
input: CreateResourceDataSyncRequest,
) -> RusotoFuture<CreateResourceDataSyncResult, CreateResourceDataSyncError>;
fn delete_activation(
&self,
input: DeleteActivationRequest,
) -> RusotoFuture<DeleteActivationResult, DeleteActivationError>;
fn delete_association(
&self,
input: DeleteAssociationRequest,
) -> RusotoFuture<DeleteAssociationResult, DeleteAssociationError>;
fn delete_document(
&self,
input: DeleteDocumentRequest,
) -> RusotoFuture<DeleteDocumentResult, DeleteDocumentError>;
fn delete_inventory(
&self,
input: DeleteInventoryRequest,
) -> RusotoFuture<DeleteInventoryResult, DeleteInventoryError>;
fn delete_maintenance_window(
&self,
input: DeleteMaintenanceWindowRequest,
) -> RusotoFuture<DeleteMaintenanceWindowResult, DeleteMaintenanceWindowError>;
fn delete_parameter(
&self,
input: DeleteParameterRequest,
) -> RusotoFuture<DeleteParameterResult, DeleteParameterError>;
fn delete_parameters(
&self,
input: DeleteParametersRequest,
) -> RusotoFuture<DeleteParametersResult, DeleteParametersError>;
fn delete_patch_baseline(
&self,
input: DeletePatchBaselineRequest,
) -> RusotoFuture<DeletePatchBaselineResult, DeletePatchBaselineError>;
fn delete_resource_data_sync(
&self,
input: DeleteResourceDataSyncRequest,
) -> RusotoFuture<DeleteResourceDataSyncResult, DeleteResourceDataSyncError>;
fn deregister_managed_instance(
&self,
input: DeregisterManagedInstanceRequest,
) -> RusotoFuture<DeregisterManagedInstanceResult, DeregisterManagedInstanceError>;
fn deregister_patch_baseline_for_patch_group(
&self,
input: DeregisterPatchBaselineForPatchGroupRequest,
) -> RusotoFuture<
DeregisterPatchBaselineForPatchGroupResult,
DeregisterPatchBaselineForPatchGroupError,
>;
fn deregister_target_from_maintenance_window(
&self,
input: DeregisterTargetFromMaintenanceWindowRequest,
) -> RusotoFuture<
DeregisterTargetFromMaintenanceWindowResult,
DeregisterTargetFromMaintenanceWindowError,
>;
fn deregister_task_from_maintenance_window(
&self,
input: DeregisterTaskFromMaintenanceWindowRequest,
) -> RusotoFuture<
DeregisterTaskFromMaintenanceWindowResult,
DeregisterTaskFromMaintenanceWindowError,
>;
fn describe_activations(
&self,
input: DescribeActivationsRequest,
) -> RusotoFuture<DescribeActivationsResult, DescribeActivationsError>;
fn describe_association(
&self,
input: DescribeAssociationRequest,
) -> RusotoFuture<DescribeAssociationResult, DescribeAssociationError>;
fn describe_association_execution_targets(
&self,
input: DescribeAssociationExecutionTargetsRequest,
) -> RusotoFuture<
DescribeAssociationExecutionTargetsResult,
DescribeAssociationExecutionTargetsError,
>;
fn describe_association_executions(
&self,
input: DescribeAssociationExecutionsRequest,
) -> RusotoFuture<DescribeAssociationExecutionsResult, DescribeAssociationExecutionsError>;
fn describe_automation_executions(
&self,
input: DescribeAutomationExecutionsRequest,
) -> RusotoFuture<DescribeAutomationExecutionsResult, DescribeAutomationExecutionsError>;
fn describe_automation_step_executions(
&self,
input: DescribeAutomationStepExecutionsRequest,
) -> RusotoFuture<DescribeAutomationStepExecutionsResult, DescribeAutomationStepExecutionsError>;
fn describe_available_patches(
&self,
input: DescribeAvailablePatchesRequest,
) -> RusotoFuture<DescribeAvailablePatchesResult, DescribeAvailablePatchesError>;
fn describe_document(
&self,
input: DescribeDocumentRequest,
) -> RusotoFuture<DescribeDocumentResult, DescribeDocumentError>;
fn describe_document_permission(
&self,
input: DescribeDocumentPermissionRequest,
) -> RusotoFuture<DescribeDocumentPermissionResponse, DescribeDocumentPermissionError>;
fn describe_effective_instance_associations(
&self,
input: DescribeEffectiveInstanceAssociationsRequest,
) -> RusotoFuture<
DescribeEffectiveInstanceAssociationsResult,
DescribeEffectiveInstanceAssociationsError,
>;
fn describe_effective_patches_for_patch_baseline(
&self,
input: DescribeEffectivePatchesForPatchBaselineRequest,
) -> RusotoFuture<
DescribeEffectivePatchesForPatchBaselineResult,
DescribeEffectivePatchesForPatchBaselineError,
>;
fn describe_instance_associations_status(
&self,
input: DescribeInstanceAssociationsStatusRequest,
) -> RusotoFuture<
DescribeInstanceAssociationsStatusResult,
DescribeInstanceAssociationsStatusError,
>;
fn describe_instance_information(
&self,
input: DescribeInstanceInformationRequest,
) -> RusotoFuture<DescribeInstanceInformationResult, DescribeInstanceInformationError>;
fn describe_instance_patch_states(
&self,
input: DescribeInstancePatchStatesRequest,
) -> RusotoFuture<DescribeInstancePatchStatesResult, DescribeInstancePatchStatesError>;
fn describe_instance_patch_states_for_patch_group(
&self,
input: DescribeInstancePatchStatesForPatchGroupRequest,
) -> RusotoFuture<
DescribeInstancePatchStatesForPatchGroupResult,
DescribeInstancePatchStatesForPatchGroupError,
>;
fn describe_instance_patches(
&self,
input: DescribeInstancePatchesRequest,
) -> RusotoFuture<DescribeInstancePatchesResult, DescribeInstancePatchesError>;
fn describe_inventory_deletions(
&self,
input: DescribeInventoryDeletionsRequest,
) -> RusotoFuture<DescribeInventoryDeletionsResult, DescribeInventoryDeletionsError>;
fn describe_maintenance_window_execution_task_invocations(
&self,
input: DescribeMaintenanceWindowExecutionTaskInvocationsRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowExecutionTaskInvocationsResult,
DescribeMaintenanceWindowExecutionTaskInvocationsError,
>;
fn describe_maintenance_window_execution_tasks(
&self,
input: DescribeMaintenanceWindowExecutionTasksRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowExecutionTasksResult,
DescribeMaintenanceWindowExecutionTasksError,
>;
fn describe_maintenance_window_executions(
&self,
input: DescribeMaintenanceWindowExecutionsRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowExecutionsResult,
DescribeMaintenanceWindowExecutionsError,
>;
fn describe_maintenance_window_schedule(
&self,
input: DescribeMaintenanceWindowScheduleRequest,
) -> RusotoFuture<DescribeMaintenanceWindowScheduleResult, DescribeMaintenanceWindowScheduleError>;
fn describe_maintenance_window_targets(
&self,
input: DescribeMaintenanceWindowTargetsRequest,
) -> RusotoFuture<DescribeMaintenanceWindowTargetsResult, DescribeMaintenanceWindowTargetsError>;
fn describe_maintenance_window_tasks(
&self,
input: DescribeMaintenanceWindowTasksRequest,
) -> RusotoFuture<DescribeMaintenanceWindowTasksResult, DescribeMaintenanceWindowTasksError>;
fn describe_maintenance_windows(
&self,
input: DescribeMaintenanceWindowsRequest,
) -> RusotoFuture<DescribeMaintenanceWindowsResult, DescribeMaintenanceWindowsError>;
fn describe_maintenance_windows_for_target(
&self,
input: DescribeMaintenanceWindowsForTargetRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowsForTargetResult,
DescribeMaintenanceWindowsForTargetError,
>;
fn describe_ops_items(
&self,
input: DescribeOpsItemsRequest,
) -> RusotoFuture<DescribeOpsItemsResponse, DescribeOpsItemsError>;
fn describe_parameters(
&self,
input: DescribeParametersRequest,
) -> RusotoFuture<DescribeParametersResult, DescribeParametersError>;
fn describe_patch_baselines(
&self,
input: DescribePatchBaselinesRequest,
) -> RusotoFuture<DescribePatchBaselinesResult, DescribePatchBaselinesError>;
fn describe_patch_group_state(
&self,
input: DescribePatchGroupStateRequest,
) -> RusotoFuture<DescribePatchGroupStateResult, DescribePatchGroupStateError>;
fn describe_patch_groups(
&self,
input: DescribePatchGroupsRequest,
) -> RusotoFuture<DescribePatchGroupsResult, DescribePatchGroupsError>;
fn describe_patch_properties(
&self,
input: DescribePatchPropertiesRequest,
) -> RusotoFuture<DescribePatchPropertiesResult, DescribePatchPropertiesError>;
fn describe_sessions(
&self,
input: DescribeSessionsRequest,
) -> RusotoFuture<DescribeSessionsResponse, DescribeSessionsError>;
fn get_automation_execution(
&self,
input: GetAutomationExecutionRequest,
) -> RusotoFuture<GetAutomationExecutionResult, GetAutomationExecutionError>;
fn get_command_invocation(
&self,
input: GetCommandInvocationRequest,
) -> RusotoFuture<GetCommandInvocationResult, GetCommandInvocationError>;
fn get_connection_status(
&self,
input: GetConnectionStatusRequest,
) -> RusotoFuture<GetConnectionStatusResponse, GetConnectionStatusError>;
fn get_default_patch_baseline(
&self,
input: GetDefaultPatchBaselineRequest,
) -> RusotoFuture<GetDefaultPatchBaselineResult, GetDefaultPatchBaselineError>;
fn get_deployable_patch_snapshot_for_instance(
&self,
input: GetDeployablePatchSnapshotForInstanceRequest,
) -> RusotoFuture<
GetDeployablePatchSnapshotForInstanceResult,
GetDeployablePatchSnapshotForInstanceError,
>;
fn get_document(
&self,
input: GetDocumentRequest,
) -> RusotoFuture<GetDocumentResult, GetDocumentError>;
fn get_inventory(
&self,
input: GetInventoryRequest,
) -> RusotoFuture<GetInventoryResult, GetInventoryError>;
fn get_inventory_schema(
&self,
input: GetInventorySchemaRequest,
) -> RusotoFuture<GetInventorySchemaResult, GetInventorySchemaError>;
fn get_maintenance_window(
&self,
input: GetMaintenanceWindowRequest,
) -> RusotoFuture<GetMaintenanceWindowResult, GetMaintenanceWindowError>;
fn get_maintenance_window_execution(
&self,
input: GetMaintenanceWindowExecutionRequest,
) -> RusotoFuture<GetMaintenanceWindowExecutionResult, GetMaintenanceWindowExecutionError>;
fn get_maintenance_window_execution_task(
&self,
input: GetMaintenanceWindowExecutionTaskRequest,
) -> RusotoFuture<GetMaintenanceWindowExecutionTaskResult, GetMaintenanceWindowExecutionTaskError>;
fn get_maintenance_window_execution_task_invocation(
&self,
input: GetMaintenanceWindowExecutionTaskInvocationRequest,
) -> RusotoFuture<
GetMaintenanceWindowExecutionTaskInvocationResult,
GetMaintenanceWindowExecutionTaskInvocationError,
>;
fn get_maintenance_window_task(
&self,
input: GetMaintenanceWindowTaskRequest,
) -> RusotoFuture<GetMaintenanceWindowTaskResult, GetMaintenanceWindowTaskError>;
fn get_ops_item(
&self,
input: GetOpsItemRequest,
) -> RusotoFuture<GetOpsItemResponse, GetOpsItemError>;
fn get_ops_summary(
&self,
input: GetOpsSummaryRequest,
) -> RusotoFuture<GetOpsSummaryResult, GetOpsSummaryError>;
fn get_parameter(
&self,
input: GetParameterRequest,
) -> RusotoFuture<GetParameterResult, GetParameterError>;
fn get_parameter_history(
&self,
input: GetParameterHistoryRequest,
) -> RusotoFuture<GetParameterHistoryResult, GetParameterHistoryError>;
fn get_parameters(
&self,
input: GetParametersRequest,
) -> RusotoFuture<GetParametersResult, GetParametersError>;
fn get_parameters_by_path(
&self,
input: GetParametersByPathRequest,
) -> RusotoFuture<GetParametersByPathResult, GetParametersByPathError>;
fn get_patch_baseline(
&self,
input: GetPatchBaselineRequest,
) -> RusotoFuture<GetPatchBaselineResult, GetPatchBaselineError>;
fn get_patch_baseline_for_patch_group(
&self,
input: GetPatchBaselineForPatchGroupRequest,
) -> RusotoFuture<GetPatchBaselineForPatchGroupResult, GetPatchBaselineForPatchGroupError>;
fn get_service_setting(
&self,
input: GetServiceSettingRequest,
) -> RusotoFuture<GetServiceSettingResult, GetServiceSettingError>;
fn label_parameter_version(
&self,
input: LabelParameterVersionRequest,
) -> RusotoFuture<LabelParameterVersionResult, LabelParameterVersionError>;
fn list_association_versions(
&self,
input: ListAssociationVersionsRequest,
) -> RusotoFuture<ListAssociationVersionsResult, ListAssociationVersionsError>;
fn list_associations(
&self,
input: ListAssociationsRequest,
) -> RusotoFuture<ListAssociationsResult, ListAssociationsError>;
fn list_command_invocations(
&self,
input: ListCommandInvocationsRequest,
) -> RusotoFuture<ListCommandInvocationsResult, ListCommandInvocationsError>;
fn list_commands(
&self,
input: ListCommandsRequest,
) -> RusotoFuture<ListCommandsResult, ListCommandsError>;
fn list_compliance_items(
&self,
input: ListComplianceItemsRequest,
) -> RusotoFuture<ListComplianceItemsResult, ListComplianceItemsError>;
fn list_compliance_summaries(
&self,
input: ListComplianceSummariesRequest,
) -> RusotoFuture<ListComplianceSummariesResult, ListComplianceSummariesError>;
fn list_document_versions(
&self,
input: ListDocumentVersionsRequest,
) -> RusotoFuture<ListDocumentVersionsResult, ListDocumentVersionsError>;
fn list_documents(
&self,
input: ListDocumentsRequest,
) -> RusotoFuture<ListDocumentsResult, ListDocumentsError>;
fn list_inventory_entries(
&self,
input: ListInventoryEntriesRequest,
) -> RusotoFuture<ListInventoryEntriesResult, ListInventoryEntriesError>;
fn list_resource_compliance_summaries(
&self,
input: ListResourceComplianceSummariesRequest,
) -> RusotoFuture<ListResourceComplianceSummariesResult, ListResourceComplianceSummariesError>;
fn list_resource_data_sync(
&self,
input: ListResourceDataSyncRequest,
) -> RusotoFuture<ListResourceDataSyncResult, ListResourceDataSyncError>;
fn list_tags_for_resource(
&self,
input: ListTagsForResourceRequest,
) -> RusotoFuture<ListTagsForResourceResult, ListTagsForResourceError>;
fn modify_document_permission(
&self,
input: ModifyDocumentPermissionRequest,
) -> RusotoFuture<ModifyDocumentPermissionResponse, ModifyDocumentPermissionError>;
fn put_compliance_items(
&self,
input: PutComplianceItemsRequest,
) -> RusotoFuture<PutComplianceItemsResult, PutComplianceItemsError>;
fn put_inventory(
&self,
input: PutInventoryRequest,
) -> RusotoFuture<PutInventoryResult, PutInventoryError>;
fn put_parameter(
&self,
input: PutParameterRequest,
) -> RusotoFuture<PutParameterResult, PutParameterError>;
fn register_default_patch_baseline(
&self,
input: RegisterDefaultPatchBaselineRequest,
) -> RusotoFuture<RegisterDefaultPatchBaselineResult, RegisterDefaultPatchBaselineError>;
fn register_patch_baseline_for_patch_group(
&self,
input: RegisterPatchBaselineForPatchGroupRequest,
) -> RusotoFuture<
RegisterPatchBaselineForPatchGroupResult,
RegisterPatchBaselineForPatchGroupError,
>;
fn register_target_with_maintenance_window(
&self,
input: RegisterTargetWithMaintenanceWindowRequest,
) -> RusotoFuture<
RegisterTargetWithMaintenanceWindowResult,
RegisterTargetWithMaintenanceWindowError,
>;
fn register_task_with_maintenance_window(
&self,
input: RegisterTaskWithMaintenanceWindowRequest,
) -> RusotoFuture<RegisterTaskWithMaintenanceWindowResult, RegisterTaskWithMaintenanceWindowError>;
fn remove_tags_from_resource(
&self,
input: RemoveTagsFromResourceRequest,
) -> RusotoFuture<RemoveTagsFromResourceResult, RemoveTagsFromResourceError>;
fn reset_service_setting(
&self,
input: ResetServiceSettingRequest,
) -> RusotoFuture<ResetServiceSettingResult, ResetServiceSettingError>;
fn resume_session(
&self,
input: ResumeSessionRequest,
) -> RusotoFuture<ResumeSessionResponse, ResumeSessionError>;
fn send_automation_signal(
&self,
input: SendAutomationSignalRequest,
) -> RusotoFuture<SendAutomationSignalResult, SendAutomationSignalError>;
fn send_command(
&self,
input: SendCommandRequest,
) -> RusotoFuture<SendCommandResult, SendCommandError>;
fn start_associations_once(
&self,
input: StartAssociationsOnceRequest,
) -> RusotoFuture<StartAssociationsOnceResult, StartAssociationsOnceError>;
fn start_automation_execution(
&self,
input: StartAutomationExecutionRequest,
) -> RusotoFuture<StartAutomationExecutionResult, StartAutomationExecutionError>;
fn start_session(
&self,
input: StartSessionRequest,
) -> RusotoFuture<StartSessionResponse, StartSessionError>;
fn stop_automation_execution(
&self,
input: StopAutomationExecutionRequest,
) -> RusotoFuture<StopAutomationExecutionResult, StopAutomationExecutionError>;
fn terminate_session(
&self,
input: TerminateSessionRequest,
) -> RusotoFuture<TerminateSessionResponse, TerminateSessionError>;
fn update_association(
&self,
input: UpdateAssociationRequest,
) -> RusotoFuture<UpdateAssociationResult, UpdateAssociationError>;
fn update_association_status(
&self,
input: UpdateAssociationStatusRequest,
) -> RusotoFuture<UpdateAssociationStatusResult, UpdateAssociationStatusError>;
fn update_document(
&self,
input: UpdateDocumentRequest,
) -> RusotoFuture<UpdateDocumentResult, UpdateDocumentError>;
fn update_document_default_version(
&self,
input: UpdateDocumentDefaultVersionRequest,
) -> RusotoFuture<UpdateDocumentDefaultVersionResult, UpdateDocumentDefaultVersionError>;
fn update_maintenance_window(
&self,
input: UpdateMaintenanceWindowRequest,
) -> RusotoFuture<UpdateMaintenanceWindowResult, UpdateMaintenanceWindowError>;
fn update_maintenance_window_target(
&self,
input: UpdateMaintenanceWindowTargetRequest,
) -> RusotoFuture<UpdateMaintenanceWindowTargetResult, UpdateMaintenanceWindowTargetError>;
fn update_maintenance_window_task(
&self,
input: UpdateMaintenanceWindowTaskRequest,
) -> RusotoFuture<UpdateMaintenanceWindowTaskResult, UpdateMaintenanceWindowTaskError>;
fn update_managed_instance_role(
&self,
input: UpdateManagedInstanceRoleRequest,
) -> RusotoFuture<UpdateManagedInstanceRoleResult, UpdateManagedInstanceRoleError>;
fn update_ops_item(
&self,
input: UpdateOpsItemRequest,
) -> RusotoFuture<UpdateOpsItemResponse, UpdateOpsItemError>;
fn update_patch_baseline(
&self,
input: UpdatePatchBaselineRequest,
) -> RusotoFuture<UpdatePatchBaselineResult, UpdatePatchBaselineError>;
fn update_service_setting(
&self,
input: UpdateServiceSettingRequest,
) -> RusotoFuture<UpdateServiceSettingResult, UpdateServiceSettingError>;
}
#[derive(Clone)]
pub struct SsmClient {
client: Client,
region: region::Region,
}
impl SsmClient {
pub fn new(region: region::Region) -> SsmClient {
SsmClient {
client: Client::shared(),
region,
}
}
pub fn new_with<P, D>(
request_dispatcher: D,
credentials_provider: P,
region: region::Region,
) -> SsmClient
where
P: ProvideAwsCredentials + Send + Sync + 'static,
P::Future: Send,
D: DispatchSignedRequest + Send + Sync + 'static,
D::Future: Send,
{
SsmClient {
client: Client::new_with(credentials_provider, request_dispatcher),
region,
}
}
}
impl Ssm for SsmClient {
fn add_tags_to_resource(
&self,
input: AddTagsToResourceRequest,
) -> RusotoFuture<AddTagsToResourceResult, AddTagsToResourceError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.AddTagsToResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<AddTagsToResourceResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(AddTagsToResourceError::from_response(response))),
)
}
})
}
fn cancel_command(
&self,
input: CancelCommandRequest,
) -> RusotoFuture<CancelCommandResult, CancelCommandError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CancelCommand");
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::<CancelCommandResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CancelCommandError::from_response(response))),
)
}
})
}
fn cancel_maintenance_window_execution(
&self,
input: CancelMaintenanceWindowExecutionRequest,
) -> RusotoFuture<CancelMaintenanceWindowExecutionResult, CancelMaintenanceWindowExecutionError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CancelMaintenanceWindowExecution");
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::<CancelMaintenanceWindowExecutionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CancelMaintenanceWindowExecutionError::from_response(
response,
))
}))
}
})
}
fn create_activation(
&self,
input: CreateActivationRequest,
) -> RusotoFuture<CreateActivationResult, CreateActivationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateActivation");
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::<CreateActivationResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateActivationError::from_response(response))),
)
}
})
}
fn create_association(
&self,
input: CreateAssociationRequest,
) -> RusotoFuture<CreateAssociationResult, CreateAssociationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateAssociation");
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::<CreateAssociationResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateAssociationError::from_response(response))),
)
}
})
}
fn create_association_batch(
&self,
input: CreateAssociationBatchRequest,
) -> RusotoFuture<CreateAssociationBatchResult, CreateAssociationBatchError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateAssociationBatch");
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::<CreateAssociationBatchResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateAssociationBatchError::from_response(response))
}),
)
}
})
}
fn create_document(
&self,
input: CreateDocumentRequest,
) -> RusotoFuture<CreateDocumentResult, CreateDocumentError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateDocument");
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::<CreateDocumentResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateDocumentError::from_response(response))),
)
}
})
}
fn create_maintenance_window(
&self,
input: CreateMaintenanceWindowRequest,
) -> RusotoFuture<CreateMaintenanceWindowResult, CreateMaintenanceWindowError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateMaintenanceWindow");
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::<CreateMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(CreateMaintenanceWindowError::from_response(response))
}))
}
})
}
fn create_ops_item(
&self,
input: CreateOpsItemRequest,
) -> RusotoFuture<CreateOpsItemResponse, CreateOpsItemError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateOpsItem");
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::<CreateOpsItemResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(CreateOpsItemError::from_response(response))),
)
}
})
}
fn create_patch_baseline(
&self,
input: CreatePatchBaselineRequest,
) -> RusotoFuture<CreatePatchBaselineResult, CreatePatchBaselineError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreatePatchBaseline");
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::<CreatePatchBaselineResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreatePatchBaselineError::from_response(response))
}),
)
}
})
}
fn create_resource_data_sync(
&self,
input: CreateResourceDataSyncRequest,
) -> RusotoFuture<CreateResourceDataSyncResult, CreateResourceDataSyncError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.CreateResourceDataSync");
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::<CreateResourceDataSyncResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(CreateResourceDataSyncError::from_response(response))
}),
)
}
})
}
fn delete_activation(
&self,
input: DeleteActivationRequest,
) -> RusotoFuture<DeleteActivationResult, DeleteActivationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteActivation");
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::<DeleteActivationResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteActivationError::from_response(response))),
)
}
})
}
fn delete_association(
&self,
input: DeleteAssociationRequest,
) -> RusotoFuture<DeleteAssociationResult, DeleteAssociationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteAssociation");
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::<DeleteAssociationResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteAssociationError::from_response(response))),
)
}
})
}
fn delete_document(
&self,
input: DeleteDocumentRequest,
) -> RusotoFuture<DeleteDocumentResult, DeleteDocumentError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteDocument");
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::<DeleteDocumentResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteDocumentError::from_response(response))),
)
}
})
}
fn delete_inventory(
&self,
input: DeleteInventoryRequest,
) -> RusotoFuture<DeleteInventoryResult, DeleteInventoryError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteInventory");
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::<DeleteInventoryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteInventoryError::from_response(response))),
)
}
})
}
fn delete_maintenance_window(
&self,
input: DeleteMaintenanceWindowRequest,
) -> RusotoFuture<DeleteMaintenanceWindowResult, DeleteMaintenanceWindowError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteMaintenanceWindow");
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::<DeleteMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeleteMaintenanceWindowError::from_response(response))
}))
}
})
}
fn delete_parameter(
&self,
input: DeleteParameterRequest,
) -> RusotoFuture<DeleteParameterResult, DeleteParameterError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteParameter");
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::<DeleteParameterResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteParameterError::from_response(response))),
)
}
})
}
fn delete_parameters(
&self,
input: DeleteParametersRequest,
) -> RusotoFuture<DeleteParametersResult, DeleteParametersError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteParameters");
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::<DeleteParametersResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DeleteParametersError::from_response(response))),
)
}
})
}
fn delete_patch_baseline(
&self,
input: DeletePatchBaselineRequest,
) -> RusotoFuture<DeletePatchBaselineResult, DeletePatchBaselineError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeletePatchBaseline");
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::<DeletePatchBaselineResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeletePatchBaselineError::from_response(response))
}),
)
}
})
}
fn delete_resource_data_sync(
&self,
input: DeleteResourceDataSyncRequest,
) -> RusotoFuture<DeleteResourceDataSyncResult, DeleteResourceDataSyncError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeleteResourceDataSync");
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::<DeleteResourceDataSyncResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DeleteResourceDataSyncError::from_response(response))
}),
)
}
})
}
fn deregister_managed_instance(
&self,
input: DeregisterManagedInstanceRequest,
) -> RusotoFuture<DeregisterManagedInstanceResult, DeregisterManagedInstanceError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DeregisterManagedInstance");
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::<DeregisterManagedInstanceResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeregisterManagedInstanceError::from_response(response))
}))
}
})
}
fn deregister_patch_baseline_for_patch_group(
&self,
input: DeregisterPatchBaselineForPatchGroupRequest,
) -> RusotoFuture<
DeregisterPatchBaselineForPatchGroupResult,
DeregisterPatchBaselineForPatchGroupError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DeregisterPatchBaselineForPatchGroup",
);
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::<DeregisterPatchBaselineForPatchGroupResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeregisterPatchBaselineForPatchGroupError::from_response(
response,
))
}))
}
})
}
fn deregister_target_from_maintenance_window(
&self,
input: DeregisterTargetFromMaintenanceWindowRequest,
) -> RusotoFuture<
DeregisterTargetFromMaintenanceWindowResult,
DeregisterTargetFromMaintenanceWindowError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DeregisterTargetFromMaintenanceWindow",
);
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::<DeregisterTargetFromMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeregisterTargetFromMaintenanceWindowError::from_response(
response,
))
}))
}
})
}
fn deregister_task_from_maintenance_window(
&self,
input: DeregisterTaskFromMaintenanceWindowRequest,
) -> RusotoFuture<
DeregisterTaskFromMaintenanceWindowResult,
DeregisterTaskFromMaintenanceWindowError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DeregisterTaskFromMaintenanceWindow",
);
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::<DeregisterTaskFromMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DeregisterTaskFromMaintenanceWindowError::from_response(
response,
))
}))
}
})
}
fn describe_activations(
&self,
input: DescribeActivationsRequest,
) -> RusotoFuture<DescribeActivationsResult, DescribeActivationsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeActivations");
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::<DescribeActivationsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeActivationsError::from_response(response))
}),
)
}
})
}
fn describe_association(
&self,
input: DescribeAssociationRequest,
) -> RusotoFuture<DescribeAssociationResult, DescribeAssociationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeAssociation");
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::<DescribeAssociationResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribeAssociationError::from_response(response))
}),
)
}
})
}
fn describe_association_execution_targets(
&self,
input: DescribeAssociationExecutionTargetsRequest,
) -> RusotoFuture<
DescribeAssociationExecutionTargetsResult,
DescribeAssociationExecutionTargetsError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeAssociationExecutionTargets",
);
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::<DescribeAssociationExecutionTargetsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeAssociationExecutionTargetsError::from_response(
response,
))
}))
}
})
}
fn describe_association_executions(
&self,
input: DescribeAssociationExecutionsRequest,
) -> RusotoFuture<DescribeAssociationExecutionsResult, DescribeAssociationExecutionsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeAssociationExecutions");
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::<DescribeAssociationExecutionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeAssociationExecutionsError::from_response(response))
}))
}
})
}
fn describe_automation_executions(
&self,
input: DescribeAutomationExecutionsRequest,
) -> RusotoFuture<DescribeAutomationExecutionsResult, DescribeAutomationExecutionsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeAutomationExecutions");
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::<DescribeAutomationExecutionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeAutomationExecutionsError::from_response(response))
}))
}
})
}
fn describe_automation_step_executions(
&self,
input: DescribeAutomationStepExecutionsRequest,
) -> RusotoFuture<DescribeAutomationStepExecutionsResult, DescribeAutomationStepExecutionsError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeAutomationStepExecutions");
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::<DescribeAutomationStepExecutionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeAutomationStepExecutionsError::from_response(
response,
))
}))
}
})
}
fn describe_available_patches(
&self,
input: DescribeAvailablePatchesRequest,
) -> RusotoFuture<DescribeAvailablePatchesResult, DescribeAvailablePatchesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeAvailablePatches");
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::<DescribeAvailablePatchesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeAvailablePatchesError::from_response(response))
}))
}
})
}
fn describe_document(
&self,
input: DescribeDocumentRequest,
) -> RusotoFuture<DescribeDocumentResult, DescribeDocumentError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeDocument");
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::<DescribeDocumentResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeDocumentError::from_response(response))),
)
}
})
}
fn describe_document_permission(
&self,
input: DescribeDocumentPermissionRequest,
) -> RusotoFuture<DescribeDocumentPermissionResponse, DescribeDocumentPermissionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeDocumentPermission");
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::<DescribeDocumentPermissionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeDocumentPermissionError::from_response(response))
}))
}
})
}
fn describe_effective_instance_associations(
&self,
input: DescribeEffectiveInstanceAssociationsRequest,
) -> RusotoFuture<
DescribeEffectiveInstanceAssociationsResult,
DescribeEffectiveInstanceAssociationsError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeEffectiveInstanceAssociations",
);
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::<DescribeEffectiveInstanceAssociationsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeEffectiveInstanceAssociationsError::from_response(
response,
))
}))
}
})
}
fn describe_effective_patches_for_patch_baseline(
&self,
input: DescribeEffectivePatchesForPatchBaselineRequest,
) -> RusotoFuture<
DescribeEffectivePatchesForPatchBaselineResult,
DescribeEffectivePatchesForPatchBaselineError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeEffectivePatchesForPatchBaseline",
);
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::<DescribeEffectivePatchesForPatchBaselineResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeEffectivePatchesForPatchBaselineError::from_response(response))
}))
}
})
}
fn describe_instance_associations_status(
&self,
input: DescribeInstanceAssociationsStatusRequest,
) -> RusotoFuture<
DescribeInstanceAssociationsStatusResult,
DescribeInstanceAssociationsStatusError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeInstanceAssociationsStatus",
);
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::<DescribeInstanceAssociationsStatusResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeInstanceAssociationsStatusError::from_response(
response,
))
}))
}
})
}
fn describe_instance_information(
&self,
input: DescribeInstanceInformationRequest,
) -> RusotoFuture<DescribeInstanceInformationResult, DescribeInstanceInformationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeInstanceInformation");
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::<DescribeInstanceInformationResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeInstanceInformationError::from_response(response))
}))
}
})
}
fn describe_instance_patch_states(
&self,
input: DescribeInstancePatchStatesRequest,
) -> RusotoFuture<DescribeInstancePatchStatesResult, DescribeInstancePatchStatesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeInstancePatchStates");
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::<DescribeInstancePatchStatesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeInstancePatchStatesError::from_response(response))
}))
}
})
}
fn describe_instance_patch_states_for_patch_group(
&self,
input: DescribeInstancePatchStatesForPatchGroupRequest,
) -> RusotoFuture<
DescribeInstancePatchStatesForPatchGroupResult,
DescribeInstancePatchStatesForPatchGroupError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeInstancePatchStatesForPatchGroup",
);
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::<DescribeInstancePatchStatesForPatchGroupResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeInstancePatchStatesForPatchGroupError::from_response(response))
}))
}
})
}
fn describe_instance_patches(
&self,
input: DescribeInstancePatchesRequest,
) -> RusotoFuture<DescribeInstancePatchesResult, DescribeInstancePatchesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeInstancePatches");
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::<DescribeInstancePatchesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeInstancePatchesError::from_response(response))
}))
}
})
}
fn describe_inventory_deletions(
&self,
input: DescribeInventoryDeletionsRequest,
) -> RusotoFuture<DescribeInventoryDeletionsResult, DescribeInventoryDeletionsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeInventoryDeletions");
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::<DescribeInventoryDeletionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeInventoryDeletionsError::from_response(response))
}))
}
})
}
fn describe_maintenance_window_execution_task_invocations(
&self,
input: DescribeMaintenanceWindowExecutionTaskInvocationsRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowExecutionTaskInvocationsResult,
DescribeMaintenanceWindowExecutionTaskInvocationsError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeMaintenanceWindowExecutionTaskInvocations",
);
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::<DescribeMaintenanceWindowExecutionTaskInvocationsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowExecutionTaskInvocationsError::from_response(response))
}))
}
})
}
fn describe_maintenance_window_execution_tasks(
&self,
input: DescribeMaintenanceWindowExecutionTasksRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowExecutionTasksResult,
DescribeMaintenanceWindowExecutionTasksError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeMaintenanceWindowExecutionTasks",
);
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::<DescribeMaintenanceWindowExecutionTasksResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowExecutionTasksError::from_response(
response,
))
}))
}
})
}
fn describe_maintenance_window_executions(
&self,
input: DescribeMaintenanceWindowExecutionsRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowExecutionsResult,
DescribeMaintenanceWindowExecutionsError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeMaintenanceWindowExecutions",
);
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::<DescribeMaintenanceWindowExecutionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowExecutionsError::from_response(
response,
))
}))
}
})
}
fn describe_maintenance_window_schedule(
&self,
input: DescribeMaintenanceWindowScheduleRequest,
) -> RusotoFuture<DescribeMaintenanceWindowScheduleResult, DescribeMaintenanceWindowScheduleError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeMaintenanceWindowSchedule",
);
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::<DescribeMaintenanceWindowScheduleResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowScheduleError::from_response(
response,
))
}))
}
})
}
fn describe_maintenance_window_targets(
&self,
input: DescribeMaintenanceWindowTargetsRequest,
) -> RusotoFuture<DescribeMaintenanceWindowTargetsResult, DescribeMaintenanceWindowTargetsError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeMaintenanceWindowTargets");
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::<DescribeMaintenanceWindowTargetsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowTargetsError::from_response(
response,
))
}))
}
})
}
fn describe_maintenance_window_tasks(
&self,
input: DescribeMaintenanceWindowTasksRequest,
) -> RusotoFuture<DescribeMaintenanceWindowTasksResult, DescribeMaintenanceWindowTasksError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeMaintenanceWindowTasks");
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::<DescribeMaintenanceWindowTasksResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowTasksError::from_response(response))
}))
}
})
}
fn describe_maintenance_windows(
&self,
input: DescribeMaintenanceWindowsRequest,
) -> RusotoFuture<DescribeMaintenanceWindowsResult, DescribeMaintenanceWindowsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeMaintenanceWindows");
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::<DescribeMaintenanceWindowsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowsError::from_response(response))
}))
}
})
}
fn describe_maintenance_windows_for_target(
&self,
input: DescribeMaintenanceWindowsForTargetRequest,
) -> RusotoFuture<
DescribeMaintenanceWindowsForTargetResult,
DescribeMaintenanceWindowsForTargetError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.DescribeMaintenanceWindowsForTarget",
);
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::<DescribeMaintenanceWindowsForTargetResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribeMaintenanceWindowsForTargetError::from_response(
response,
))
}))
}
})
}
fn describe_ops_items(
&self,
input: DescribeOpsItemsRequest,
) -> RusotoFuture<DescribeOpsItemsResponse, DescribeOpsItemsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeOpsItems");
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::<DescribeOpsItemsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeOpsItemsError::from_response(response))),
)
}
})
}
fn describe_parameters(
&self,
input: DescribeParametersRequest,
) -> RusotoFuture<DescribeParametersResult, DescribeParametersError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeParameters");
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::<DescribeParametersResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeParametersError::from_response(response))),
)
}
})
}
fn describe_patch_baselines(
&self,
input: DescribePatchBaselinesRequest,
) -> RusotoFuture<DescribePatchBaselinesResult, DescribePatchBaselinesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribePatchBaselines");
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::<DescribePatchBaselinesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribePatchBaselinesError::from_response(response))
}),
)
}
})
}
fn describe_patch_group_state(
&self,
input: DescribePatchGroupStateRequest,
) -> RusotoFuture<DescribePatchGroupStateResult, DescribePatchGroupStateError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribePatchGroupState");
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::<DescribePatchGroupStateResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribePatchGroupStateError::from_response(response))
}))
}
})
}
fn describe_patch_groups(
&self,
input: DescribePatchGroupsRequest,
) -> RusotoFuture<DescribePatchGroupsResult, DescribePatchGroupsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribePatchGroups");
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::<DescribePatchGroupsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(DescribePatchGroupsError::from_response(response))
}),
)
}
})
}
fn describe_patch_properties(
&self,
input: DescribePatchPropertiesRequest,
) -> RusotoFuture<DescribePatchPropertiesResult, DescribePatchPropertiesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribePatchProperties");
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::<DescribePatchPropertiesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(DescribePatchPropertiesError::from_response(response))
}))
}
})
}
fn describe_sessions(
&self,
input: DescribeSessionsRequest,
) -> RusotoFuture<DescribeSessionsResponse, DescribeSessionsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.DescribeSessions");
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::<DescribeSessionsResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(DescribeSessionsError::from_response(response))),
)
}
})
}
fn get_automation_execution(
&self,
input: GetAutomationExecutionRequest,
) -> RusotoFuture<GetAutomationExecutionResult, GetAutomationExecutionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetAutomationExecution");
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::<GetAutomationExecutionResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetAutomationExecutionError::from_response(response))
}),
)
}
})
}
fn get_command_invocation(
&self,
input: GetCommandInvocationRequest,
) -> RusotoFuture<GetCommandInvocationResult, GetCommandInvocationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetCommandInvocation");
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::<GetCommandInvocationResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetCommandInvocationError::from_response(response))
}),
)
}
})
}
fn get_connection_status(
&self,
input: GetConnectionStatusRequest,
) -> RusotoFuture<GetConnectionStatusResponse, GetConnectionStatusError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetConnectionStatus");
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::<GetConnectionStatusResponse, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetConnectionStatusError::from_response(response))
}),
)
}
})
}
fn get_default_patch_baseline(
&self,
input: GetDefaultPatchBaselineRequest,
) -> RusotoFuture<GetDefaultPatchBaselineResult, GetDefaultPatchBaselineError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetDefaultPatchBaseline");
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::<GetDefaultPatchBaselineResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetDefaultPatchBaselineError::from_response(response))
}))
}
})
}
fn get_deployable_patch_snapshot_for_instance(
&self,
input: GetDeployablePatchSnapshotForInstanceRequest,
) -> RusotoFuture<
GetDeployablePatchSnapshotForInstanceResult,
GetDeployablePatchSnapshotForInstanceError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.GetDeployablePatchSnapshotForInstance",
);
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::<GetDeployablePatchSnapshotForInstanceResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetDeployablePatchSnapshotForInstanceError::from_response(
response,
))
}))
}
})
}
fn get_document(
&self,
input: GetDocumentRequest,
) -> RusotoFuture<GetDocumentResult, GetDocumentError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetDocument");
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::<GetDocumentResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetDocumentError::from_response(response))),
)
}
})
}
fn get_inventory(
&self,
input: GetInventoryRequest,
) -> RusotoFuture<GetInventoryResult, GetInventoryError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetInventory");
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::<GetInventoryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetInventoryError::from_response(response))),
)
}
})
}
fn get_inventory_schema(
&self,
input: GetInventorySchemaRequest,
) -> RusotoFuture<GetInventorySchemaResult, GetInventorySchemaError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetInventorySchema");
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::<GetInventorySchemaResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetInventorySchemaError::from_response(response))),
)
}
})
}
fn get_maintenance_window(
&self,
input: GetMaintenanceWindowRequest,
) -> RusotoFuture<GetMaintenanceWindowResult, GetMaintenanceWindowError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetMaintenanceWindow");
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::<GetMaintenanceWindowResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetMaintenanceWindowError::from_response(response))
}),
)
}
})
}
fn get_maintenance_window_execution(
&self,
input: GetMaintenanceWindowExecutionRequest,
) -> RusotoFuture<GetMaintenanceWindowExecutionResult, GetMaintenanceWindowExecutionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetMaintenanceWindowExecution");
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::<GetMaintenanceWindowExecutionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetMaintenanceWindowExecutionError::from_response(response))
}))
}
})
}
fn get_maintenance_window_execution_task(
&self,
input: GetMaintenanceWindowExecutionTaskRequest,
) -> RusotoFuture<GetMaintenanceWindowExecutionTaskResult, GetMaintenanceWindowExecutionTaskError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.GetMaintenanceWindowExecutionTask",
);
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::<GetMaintenanceWindowExecutionTaskResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetMaintenanceWindowExecutionTaskError::from_response(
response,
))
}))
}
})
}
fn get_maintenance_window_execution_task_invocation(
&self,
input: GetMaintenanceWindowExecutionTaskInvocationRequest,
) -> RusotoFuture<
GetMaintenanceWindowExecutionTaskInvocationResult,
GetMaintenanceWindowExecutionTaskInvocationError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.GetMaintenanceWindowExecutionTaskInvocation",
);
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::<GetMaintenanceWindowExecutionTaskInvocationResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetMaintenanceWindowExecutionTaskInvocationError::from_response(response))
}))
}
})
}
fn get_maintenance_window_task(
&self,
input: GetMaintenanceWindowTaskRequest,
) -> RusotoFuture<GetMaintenanceWindowTaskResult, GetMaintenanceWindowTaskError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetMaintenanceWindowTask");
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::<GetMaintenanceWindowTaskResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetMaintenanceWindowTaskError::from_response(response))
}))
}
})
}
fn get_ops_item(
&self,
input: GetOpsItemRequest,
) -> RusotoFuture<GetOpsItemResponse, GetOpsItemError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetOpsItem");
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::<GetOpsItemResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetOpsItemError::from_response(response))),
)
}
})
}
fn get_ops_summary(
&self,
input: GetOpsSummaryRequest,
) -> RusotoFuture<GetOpsSummaryResult, GetOpsSummaryError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetOpsSummary");
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::<GetOpsSummaryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetOpsSummaryError::from_response(response))),
)
}
})
}
fn get_parameter(
&self,
input: GetParameterRequest,
) -> RusotoFuture<GetParameterResult, GetParameterError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetParameter");
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::<GetParameterResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetParameterError::from_response(response))),
)
}
})
}
fn get_parameter_history(
&self,
input: GetParameterHistoryRequest,
) -> RusotoFuture<GetParameterHistoryResult, GetParameterHistoryError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetParameterHistory");
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::<GetParameterHistoryResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetParameterHistoryError::from_response(response))
}),
)
}
})
}
fn get_parameters(
&self,
input: GetParametersRequest,
) -> RusotoFuture<GetParametersResult, GetParametersError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetParameters");
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::<GetParametersResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetParametersError::from_response(response))),
)
}
})
}
fn get_parameters_by_path(
&self,
input: GetParametersByPathRequest,
) -> RusotoFuture<GetParametersByPathResult, GetParametersByPathError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetParametersByPath");
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::<GetParametersByPathResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(GetParametersByPathError::from_response(response))
}),
)
}
})
}
fn get_patch_baseline(
&self,
input: GetPatchBaselineRequest,
) -> RusotoFuture<GetPatchBaselineResult, GetPatchBaselineError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetPatchBaseline");
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::<GetPatchBaselineResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetPatchBaselineError::from_response(response))),
)
}
})
}
fn get_patch_baseline_for_patch_group(
&self,
input: GetPatchBaselineForPatchGroupRequest,
) -> RusotoFuture<GetPatchBaselineForPatchGroupResult, GetPatchBaselineForPatchGroupError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetPatchBaselineForPatchGroup");
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::<GetPatchBaselineForPatchGroupResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(GetPatchBaselineForPatchGroupError::from_response(response))
}))
}
})
}
fn get_service_setting(
&self,
input: GetServiceSettingRequest,
) -> RusotoFuture<GetServiceSettingResult, GetServiceSettingError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.GetServiceSetting");
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::<GetServiceSettingResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(GetServiceSettingError::from_response(response))),
)
}
})
}
fn label_parameter_version(
&self,
input: LabelParameterVersionRequest,
) -> RusotoFuture<LabelParameterVersionResult, LabelParameterVersionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.LabelParameterVersion");
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::<LabelParameterVersionResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(LabelParameterVersionError::from_response(response))
}),
)
}
})
}
fn list_association_versions(
&self,
input: ListAssociationVersionsRequest,
) -> RusotoFuture<ListAssociationVersionsResult, ListAssociationVersionsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListAssociationVersions");
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::<ListAssociationVersionsResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListAssociationVersionsError::from_response(response))
}))
}
})
}
fn list_associations(
&self,
input: ListAssociationsRequest,
) -> RusotoFuture<ListAssociationsResult, ListAssociationsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListAssociations");
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::<ListAssociationsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListAssociationsError::from_response(response))),
)
}
})
}
fn list_command_invocations(
&self,
input: ListCommandInvocationsRequest,
) -> RusotoFuture<ListCommandInvocationsResult, ListCommandInvocationsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListCommandInvocations");
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::<ListCommandInvocationsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListCommandInvocationsError::from_response(response))
}),
)
}
})
}
fn list_commands(
&self,
input: ListCommandsRequest,
) -> RusotoFuture<ListCommandsResult, ListCommandsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListCommands");
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::<ListCommandsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListCommandsError::from_response(response))),
)
}
})
}
fn list_compliance_items(
&self,
input: ListComplianceItemsRequest,
) -> RusotoFuture<ListComplianceItemsResult, ListComplianceItemsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListComplianceItems");
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::<ListComplianceItemsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListComplianceItemsError::from_response(response))
}),
)
}
})
}
fn list_compliance_summaries(
&self,
input: ListComplianceSummariesRequest,
) -> RusotoFuture<ListComplianceSummariesResult, ListComplianceSummariesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListComplianceSummaries");
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::<ListComplianceSummariesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListComplianceSummariesError::from_response(response))
}))
}
})
}
fn list_document_versions(
&self,
input: ListDocumentVersionsRequest,
) -> RusotoFuture<ListDocumentVersionsResult, ListDocumentVersionsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListDocumentVersions");
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::<ListDocumentVersionsResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListDocumentVersionsError::from_response(response))
}),
)
}
})
}
fn list_documents(
&self,
input: ListDocumentsRequest,
) -> RusotoFuture<ListDocumentsResult, ListDocumentsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListDocuments");
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::<ListDocumentsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ListDocumentsError::from_response(response))),
)
}
})
}
fn list_inventory_entries(
&self,
input: ListInventoryEntriesRequest,
) -> RusotoFuture<ListInventoryEntriesResult, ListInventoryEntriesError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListInventoryEntries");
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::<ListInventoryEntriesResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListInventoryEntriesError::from_response(response))
}),
)
}
})
}
fn list_resource_compliance_summaries(
&self,
input: ListResourceComplianceSummariesRequest,
) -> RusotoFuture<ListResourceComplianceSummariesResult, ListResourceComplianceSummariesError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListResourceComplianceSummaries");
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::<ListResourceComplianceSummariesResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ListResourceComplianceSummariesError::from_response(
response,
))
}))
}
})
}
fn list_resource_data_sync(
&self,
input: ListResourceDataSyncRequest,
) -> RusotoFuture<ListResourceDataSyncResult, ListResourceDataSyncError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListResourceDataSync");
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::<ListResourceDataSyncResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListResourceDataSyncError::from_response(response))
}),
)
}
})
}
fn list_tags_for_resource(
&self,
input: ListTagsForResourceRequest,
) -> RusotoFuture<ListTagsForResourceResult, ListTagsForResourceError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ListTagsForResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<ListTagsForResourceResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ListTagsForResourceError::from_response(response))
}),
)
}
})
}
fn modify_document_permission(
&self,
input: ModifyDocumentPermissionRequest,
) -> RusotoFuture<ModifyDocumentPermissionResponse, ModifyDocumentPermissionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ModifyDocumentPermission");
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::<ModifyDocumentPermissionResponse, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(ModifyDocumentPermissionError::from_response(response))
}))
}
})
}
fn put_compliance_items(
&self,
input: PutComplianceItemsRequest,
) -> RusotoFuture<PutComplianceItemsResult, PutComplianceItemsError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.PutComplianceItems");
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::<PutComplianceItemsResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(PutComplianceItemsError::from_response(response))),
)
}
})
}
fn put_inventory(
&self,
input: PutInventoryRequest,
) -> RusotoFuture<PutInventoryResult, PutInventoryError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.PutInventory");
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::<PutInventoryResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(PutInventoryError::from_response(response))),
)
}
})
}
fn put_parameter(
&self,
input: PutParameterRequest,
) -> RusotoFuture<PutParameterResult, PutParameterError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.PutParameter");
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::<PutParameterResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(PutParameterError::from_response(response))),
)
}
})
}
fn register_default_patch_baseline(
&self,
input: RegisterDefaultPatchBaselineRequest,
) -> RusotoFuture<RegisterDefaultPatchBaselineResult, RegisterDefaultPatchBaselineError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.RegisterDefaultPatchBaseline");
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::<RegisterDefaultPatchBaselineResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(RegisterDefaultPatchBaselineError::from_response(response))
}))
}
})
}
fn register_patch_baseline_for_patch_group(
&self,
input: RegisterPatchBaselineForPatchGroupRequest,
) -> RusotoFuture<
RegisterPatchBaselineForPatchGroupResult,
RegisterPatchBaselineForPatchGroupError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.RegisterPatchBaselineForPatchGroup",
);
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::<RegisterPatchBaselineForPatchGroupResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(RegisterPatchBaselineForPatchGroupError::from_response(
response,
))
}))
}
})
}
fn register_target_with_maintenance_window(
&self,
input: RegisterTargetWithMaintenanceWindowRequest,
) -> RusotoFuture<
RegisterTargetWithMaintenanceWindowResult,
RegisterTargetWithMaintenanceWindowError,
> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.RegisterTargetWithMaintenanceWindow",
);
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::<RegisterTargetWithMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(RegisterTargetWithMaintenanceWindowError::from_response(
response,
))
}))
}
})
}
fn register_task_with_maintenance_window(
&self,
input: RegisterTaskWithMaintenanceWindowRequest,
) -> RusotoFuture<RegisterTaskWithMaintenanceWindowResult, RegisterTaskWithMaintenanceWindowError>
{
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header(
"x-amz-target",
"AmazonSSM.RegisterTaskWithMaintenanceWindow",
);
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::<RegisterTaskWithMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(RegisterTaskWithMaintenanceWindowError::from_response(
response,
))
}))
}
})
}
fn remove_tags_from_resource(
&self,
input: RemoveTagsFromResourceRequest,
) -> RusotoFuture<RemoveTagsFromResourceResult, RemoveTagsFromResourceError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.RemoveTagsFromResource");
let encoded = serde_json::to_string(&input).unwrap();
request.set_payload(Some(encoded));
self.client.sign_and_dispatch(request, |response| {
if response.status.is_success() {
Box::new(response.buffer().from_err().and_then(|response| {
proto::json::ResponsePayload::new(&response)
.deserialize::<RemoveTagsFromResourceResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(RemoveTagsFromResourceError::from_response(response))
}),
)
}
})
}
fn reset_service_setting(
&self,
input: ResetServiceSettingRequest,
) -> RusotoFuture<ResetServiceSettingResult, ResetServiceSettingError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ResetServiceSetting");
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::<ResetServiceSettingResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(ResetServiceSettingError::from_response(response))
}),
)
}
})
}
fn resume_session(
&self,
input: ResumeSessionRequest,
) -> RusotoFuture<ResumeSessionResponse, ResumeSessionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.ResumeSession");
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::<ResumeSessionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(ResumeSessionError::from_response(response))),
)
}
})
}
fn send_automation_signal(
&self,
input: SendAutomationSignalRequest,
) -> RusotoFuture<SendAutomationSignalResult, SendAutomationSignalError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.SendAutomationSignal");
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::<SendAutomationSignalResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(SendAutomationSignalError::from_response(response))
}),
)
}
})
}
fn send_command(
&self,
input: SendCommandRequest,
) -> RusotoFuture<SendCommandResult, SendCommandError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.SendCommand");
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::<SendCommandResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(SendCommandError::from_response(response))),
)
}
})
}
fn start_associations_once(
&self,
input: StartAssociationsOnceRequest,
) -> RusotoFuture<StartAssociationsOnceResult, StartAssociationsOnceError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.StartAssociationsOnce");
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::<StartAssociationsOnceResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(StartAssociationsOnceError::from_response(response))
}),
)
}
})
}
fn start_automation_execution(
&self,
input: StartAutomationExecutionRequest,
) -> RusotoFuture<StartAutomationExecutionResult, StartAutomationExecutionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.StartAutomationExecution");
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::<StartAutomationExecutionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(StartAutomationExecutionError::from_response(response))
}))
}
})
}
fn start_session(
&self,
input: StartSessionRequest,
) -> RusotoFuture<StartSessionResponse, StartSessionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.StartSession");
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::<StartSessionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(StartSessionError::from_response(response))),
)
}
})
}
fn stop_automation_execution(
&self,
input: StopAutomationExecutionRequest,
) -> RusotoFuture<StopAutomationExecutionResult, StopAutomationExecutionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.StopAutomationExecution");
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::<StopAutomationExecutionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(StopAutomationExecutionError::from_response(response))
}))
}
})
}
fn terminate_session(
&self,
input: TerminateSessionRequest,
) -> RusotoFuture<TerminateSessionResponse, TerminateSessionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.TerminateSession");
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::<TerminateSessionResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(TerminateSessionError::from_response(response))),
)
}
})
}
fn update_association(
&self,
input: UpdateAssociationRequest,
) -> RusotoFuture<UpdateAssociationResult, UpdateAssociationError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateAssociation");
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::<UpdateAssociationResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateAssociationError::from_response(response))),
)
}
})
}
fn update_association_status(
&self,
input: UpdateAssociationStatusRequest,
) -> RusotoFuture<UpdateAssociationStatusResult, UpdateAssociationStatusError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateAssociationStatus");
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::<UpdateAssociationStatusResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateAssociationStatusError::from_response(response))
}))
}
})
}
fn update_document(
&self,
input: UpdateDocumentRequest,
) -> RusotoFuture<UpdateDocumentResult, UpdateDocumentError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateDocument");
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::<UpdateDocumentResult, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateDocumentError::from_response(response))),
)
}
})
}
fn update_document_default_version(
&self,
input: UpdateDocumentDefaultVersionRequest,
) -> RusotoFuture<UpdateDocumentDefaultVersionResult, UpdateDocumentDefaultVersionError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateDocumentDefaultVersion");
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::<UpdateDocumentDefaultVersionResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateDocumentDefaultVersionError::from_response(response))
}))
}
})
}
fn update_maintenance_window(
&self,
input: UpdateMaintenanceWindowRequest,
) -> RusotoFuture<UpdateMaintenanceWindowResult, UpdateMaintenanceWindowError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateMaintenanceWindow");
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::<UpdateMaintenanceWindowResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateMaintenanceWindowError::from_response(response))
}))
}
})
}
fn update_maintenance_window_target(
&self,
input: UpdateMaintenanceWindowTargetRequest,
) -> RusotoFuture<UpdateMaintenanceWindowTargetResult, UpdateMaintenanceWindowTargetError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateMaintenanceWindowTarget");
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::<UpdateMaintenanceWindowTargetResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateMaintenanceWindowTargetError::from_response(response))
}))
}
})
}
fn update_maintenance_window_task(
&self,
input: UpdateMaintenanceWindowTaskRequest,
) -> RusotoFuture<UpdateMaintenanceWindowTaskResult, UpdateMaintenanceWindowTaskError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateMaintenanceWindowTask");
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::<UpdateMaintenanceWindowTaskResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateMaintenanceWindowTaskError::from_response(response))
}))
}
})
}
fn update_managed_instance_role(
&self,
input: UpdateManagedInstanceRoleRequest,
) -> RusotoFuture<UpdateManagedInstanceRoleResult, UpdateManagedInstanceRoleError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateManagedInstanceRole");
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::<UpdateManagedInstanceRoleResult, _>()
}))
} else {
Box::new(response.buffer().from_err().and_then(|response| {
Err(UpdateManagedInstanceRoleError::from_response(response))
}))
}
})
}
fn update_ops_item(
&self,
input: UpdateOpsItemRequest,
) -> RusotoFuture<UpdateOpsItemResponse, UpdateOpsItemError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateOpsItem");
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::<UpdateOpsItemResponse, _>()
}))
} else {
Box::new(
response
.buffer()
.from_err()
.and_then(|response| Err(UpdateOpsItemError::from_response(response))),
)
}
})
}
fn update_patch_baseline(
&self,
input: UpdatePatchBaselineRequest,
) -> RusotoFuture<UpdatePatchBaselineResult, UpdatePatchBaselineError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdatePatchBaseline");
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::<UpdatePatchBaselineResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdatePatchBaselineError::from_response(response))
}),
)
}
})
}
fn update_service_setting(
&self,
input: UpdateServiceSettingRequest,
) -> RusotoFuture<UpdateServiceSettingResult, UpdateServiceSettingError> {
let mut request = SignedRequest::new("POST", "ssm", &self.region, "/");
request.set_content_type("application/x-amz-json-1.1".to_owned());
request.add_header("x-amz-target", "AmazonSSM.UpdateServiceSetting");
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::<UpdateServiceSettingResult, _>()
}))
} else {
Box::new(
response.buffer().from_err().and_then(|response| {
Err(UpdateServiceSettingError::from_response(response))
}),
)
}
})
}
}