#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateDeploymentGroupError {
pub kind: UpdateDeploymentGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateDeploymentGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateDeploymentGroupErrorKind {
AlarmsLimitExceededException(crate::error::AlarmsLimitExceededException),
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupAlreadyExistsException(crate::error::DeploymentGroupAlreadyExistsException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
EcsServiceMappingLimitExceededException(crate::error::EcsServiceMappingLimitExceededException),
InvalidAlarmConfigException(crate::error::InvalidAlarmConfigException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidAutoRollbackConfigException(crate::error::InvalidAutoRollbackConfigException),
InvalidAutoScalingGroupException(crate::error::InvalidAutoScalingGroupException),
InvalidBlueGreenDeploymentConfigurationException(
crate::error::InvalidBlueGreenDeploymentConfigurationException,
),
InvalidDeploymentConfigNameException(crate::error::InvalidDeploymentConfigNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
InvalidDeploymentStyleException(crate::error::InvalidDeploymentStyleException),
InvalidEc2TagCombinationException(crate::error::InvalidEc2TagCombinationException),
InvalidEc2TagException(crate::error::InvalidEc2TagException),
InvalidEcsServiceException(crate::error::InvalidEcsServiceException),
InvalidInputException(crate::error::InvalidInputException),
InvalidLoadBalancerInfoException(crate::error::InvalidLoadBalancerInfoException),
InvalidOnPremisesTagCombinationException(
crate::error::InvalidOnPremisesTagCombinationException,
),
InvalidRoleException(crate::error::InvalidRoleException),
InvalidTagException(crate::error::InvalidTagException),
InvalidTargetGroupPairException(crate::error::InvalidTargetGroupPairException),
InvalidTrafficRoutingConfigurationException(
crate::error::InvalidTrafficRoutingConfigurationException,
),
InvalidTriggerConfigException(crate::error::InvalidTriggerConfigException),
LifecycleHookLimitExceededException(crate::error::LifecycleHookLimitExceededException),
TagSetListLimitExceededException(crate::error::TagSetListLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TriggerTargetsLimitExceededException(crate::error::TriggerTargetsLimitExceededException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateDeploymentGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateDeploymentGroupErrorKind::AlarmsLimitExceededException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::DeploymentGroupAlreadyExistsException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::DeploymentGroupDoesNotExistException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::EcsServiceMappingLimitExceededException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidAlarmConfigException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidAutoRollbackConfigException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidAutoScalingGroupException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidBlueGreenDeploymentConfigurationException(
_inner,
) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidDeploymentConfigNameException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidDeploymentStyleException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidEc2TagCombinationException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidEc2TagException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidEcsServiceException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidLoadBalancerInfoException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidOnPremisesTagCombinationException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidRoleException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::InvalidTargetGroupPairException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidTrafficRoutingConfigurationException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::InvalidTriggerConfigException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::LifecycleHookLimitExceededException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::TagSetListLimitExceededException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
UpdateDeploymentGroupErrorKind::TriggerTargetsLimitExceededException(_inner) => {
_inner.fmt(f)
}
UpdateDeploymentGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateDeploymentGroupError {
fn code(&self) -> Option<&str> {
UpdateDeploymentGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateDeploymentGroupError {
pub fn new(kind: UpdateDeploymentGroupErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UpdateDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_alarms_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::AlarmsLimitExceededException(_)
)
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::DeploymentGroupAlreadyExistsException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_ecs_service_mapping_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::EcsServiceMappingLimitExceededException(_)
)
}
pub fn is_invalid_alarm_config_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidAlarmConfigException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_auto_rollback_config_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidAutoRollbackConfigException(_)
)
}
pub fn is_invalid_auto_scaling_group_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidAutoScalingGroupException(_)
)
}
pub fn is_invalid_blue_green_deployment_configuration_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidBlueGreenDeploymentConfigurationException(_)
)
}
pub fn is_invalid_deployment_config_name_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidDeploymentConfigNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_)
)
}
pub fn is_invalid_deployment_style_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidDeploymentStyleException(_)
)
}
pub fn is_invalid_ec2_tag_combination_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidEc2TagCombinationException(_)
)
}
pub fn is_invalid_ec2_tag_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidEc2TagException(_)
)
}
pub fn is_invalid_ecs_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidEcsServiceException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_load_balancer_info_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidLoadBalancerInfoException(_)
)
}
pub fn is_invalid_on_premises_tag_combination_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidOnPremisesTagCombinationException(_)
)
}
pub fn is_invalid_role_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidRoleException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidTagException(_)
)
}
pub fn is_invalid_target_group_pair_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidTargetGroupPairException(_)
)
}
pub fn is_invalid_traffic_routing_configuration_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidTrafficRoutingConfigurationException(_)
)
}
pub fn is_invalid_trigger_config_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::InvalidTriggerConfigException(_)
)
}
pub fn is_lifecycle_hook_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::LifecycleHookLimitExceededException(_)
)
}
pub fn is_tag_set_list_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::TagSetListLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::ThrottlingException(_)
)
}
pub fn is_trigger_targets_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateDeploymentGroupErrorKind::TriggerTargetsLimitExceededException(_)
)
}
}
impl std::error::Error for UpdateDeploymentGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateDeploymentGroupErrorKind::AlarmsLimitExceededException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::DeploymentGroupAlreadyExistsException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::DeploymentGroupDoesNotExistException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::EcsServiceMappingLimitExceededException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidAlarmConfigException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidAutoRollbackConfigException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidAutoScalingGroupException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidBlueGreenDeploymentConfigurationException(
_inner,
) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidDeploymentConfigNameException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidDeploymentStyleException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidEc2TagCombinationException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidEc2TagException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidEcsServiceException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidInputException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidLoadBalancerInfoException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidOnPremisesTagCombinationException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidRoleException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidTagException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidTargetGroupPairException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::InvalidTrafficRoutingConfigurationException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::InvalidTriggerConfigException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::LifecycleHookLimitExceededException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::TagSetListLimitExceededException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::ThrottlingException(_inner) => Some(_inner),
UpdateDeploymentGroupErrorKind::TriggerTargetsLimitExceededException(_inner) => {
Some(_inner)
}
UpdateDeploymentGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TriggerTargetsLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TriggerTargetsLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TriggerTargetsLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TriggerTargetsLimitExceededException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for TriggerTargetsLimitExceededException {}
pub mod trigger_targets_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TriggerTargetsLimitExceededException {
crate::error::TriggerTargetsLimitExceededException {
message: self.message,
}
}
}
}
impl TriggerTargetsLimitExceededException {
pub fn builder() -> crate::error::trigger_targets_limit_exceeded_exception::Builder {
crate::error::trigger_targets_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ThrottlingException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ThrottlingException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ThrottlingException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ThrottlingException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for ThrottlingException {}
pub mod throttling_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ThrottlingException {
crate::error::ThrottlingException {
message: self.message,
}
}
}
}
impl ThrottlingException {
pub fn builder() -> crate::error::throttling_exception::Builder {
crate::error::throttling_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagSetListLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TagSetListLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TagSetListLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TagSetListLimitExceededException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for TagSetListLimitExceededException {}
pub mod tag_set_list_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TagSetListLimitExceededException {
crate::error::TagSetListLimitExceededException {
message: self.message,
}
}
}
}
impl TagSetListLimitExceededException {
pub fn builder() -> crate::error::tag_set_list_limit_exceeded_exception::Builder {
crate::error::tag_set_list_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LifecycleHookLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl LifecycleHookLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LifecycleHookLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LifecycleHookLimitExceededException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for LifecycleHookLimitExceededException {}
pub mod lifecycle_hook_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::LifecycleHookLimitExceededException {
crate::error::LifecycleHookLimitExceededException {
message: self.message,
}
}
}
}
impl LifecycleHookLimitExceededException {
pub fn builder() -> crate::error::lifecycle_hook_limit_exceeded_exception::Builder {
crate::error::lifecycle_hook_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTriggerConfigException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTriggerConfigException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTriggerConfigException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTriggerConfigException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTriggerConfigException {}
pub mod invalid_trigger_config_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTriggerConfigException {
crate::error::InvalidTriggerConfigException {
message: self.message,
}
}
}
}
impl InvalidTriggerConfigException {
pub fn builder() -> crate::error::invalid_trigger_config_exception::Builder {
crate::error::invalid_trigger_config_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTrafficRoutingConfigurationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTrafficRoutingConfigurationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTrafficRoutingConfigurationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTrafficRoutingConfigurationException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTrafficRoutingConfigurationException {}
pub mod invalid_traffic_routing_configuration_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTrafficRoutingConfigurationException {
crate::error::InvalidTrafficRoutingConfigurationException {
message: self.message,
}
}
}
}
impl InvalidTrafficRoutingConfigurationException {
pub fn builder() -> crate::error::invalid_traffic_routing_configuration_exception::Builder {
crate::error::invalid_traffic_routing_configuration_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTargetGroupPairException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTargetGroupPairException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTargetGroupPairException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTargetGroupPairException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTargetGroupPairException {}
pub mod invalid_target_group_pair_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTargetGroupPairException {
crate::error::InvalidTargetGroupPairException {
message: self.message,
}
}
}
}
impl InvalidTargetGroupPairException {
pub fn builder() -> crate::error::invalid_target_group_pair_exception::Builder {
crate::error::invalid_target_group_pair_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTagException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTagException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTagException {}
pub mod invalid_tag_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTagException {
crate::error::InvalidTagException {
message: self.message,
}
}
}
}
impl InvalidTagException {
pub fn builder() -> crate::error::invalid_tag_exception::Builder {
crate::error::invalid_tag_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidRoleException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidRoleException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRoleException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRoleException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidRoleException {}
pub mod invalid_role_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidRoleException {
crate::error::InvalidRoleException {
message: self.message,
}
}
}
}
impl InvalidRoleException {
pub fn builder() -> crate::error::invalid_role_exception::Builder {
crate::error::invalid_role_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidOnPremisesTagCombinationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidOnPremisesTagCombinationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOnPremisesTagCombinationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOnPremisesTagCombinationException")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidOnPremisesTagCombinationException {}
pub mod invalid_on_premises_tag_combination_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidOnPremisesTagCombinationException {
crate::error::InvalidOnPremisesTagCombinationException {
message: self.message,
}
}
}
}
impl InvalidOnPremisesTagCombinationException {
pub fn builder() -> crate::error::invalid_on_premises_tag_combination_exception::Builder {
crate::error::invalid_on_premises_tag_combination_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidLoadBalancerInfoException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidLoadBalancerInfoException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLoadBalancerInfoException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLoadBalancerInfoException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidLoadBalancerInfoException {}
pub mod invalid_load_balancer_info_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidLoadBalancerInfoException {
crate::error::InvalidLoadBalancerInfoException {
message: self.message,
}
}
}
}
impl InvalidLoadBalancerInfoException {
pub fn builder() -> crate::error::invalid_load_balancer_info_exception::Builder {
crate::error::invalid_load_balancer_info_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidInputException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidInputException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInputException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInputException")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidInputException {}
pub mod invalid_input_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidInputException {
crate::error::InvalidInputException {
message: self.message,
}
}
}
}
impl InvalidInputException {
pub fn builder() -> crate::error::invalid_input_exception::Builder {
crate::error::invalid_input_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidEcsServiceException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidEcsServiceException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidEcsServiceException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidEcsServiceException [InvalidECSServiceException]")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidEcsServiceException {}
pub mod invalid_ecs_service_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidEcsServiceException {
crate::error::InvalidEcsServiceException {
message: self.message,
}
}
}
}
impl InvalidEcsServiceException {
pub fn builder() -> crate::error::invalid_ecs_service_exception::Builder {
crate::error::invalid_ecs_service_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidEc2TagException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidEc2TagException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidEc2TagException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidEc2TagException [InvalidEC2TagException]")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidEc2TagException {}
pub mod invalid_ec2_tag_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidEc2TagException {
crate::error::InvalidEc2TagException {
message: self.message,
}
}
}
}
impl InvalidEc2TagException {
pub fn builder() -> crate::error::invalid_ec2_tag_exception::Builder {
crate::error::invalid_ec2_tag_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidEc2TagCombinationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidEc2TagCombinationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidEc2TagCombinationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"InvalidEc2TagCombinationException [InvalidEC2TagCombinationException]"
)?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidEc2TagCombinationException {}
pub mod invalid_ec2_tag_combination_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidEc2TagCombinationException {
crate::error::InvalidEc2TagCombinationException {
message: self.message,
}
}
}
}
impl InvalidEc2TagCombinationException {
pub fn builder() -> crate::error::invalid_ec2_tag_combination_exception::Builder {
crate::error::invalid_ec2_tag_combination_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentStyleException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentStyleException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentStyleException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentStyleException")?;
if let Some(inner_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentStyleException {}
pub mod invalid_deployment_style_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentStyleException {
crate::error::InvalidDeploymentStyleException {
message: self.message,
}
}
}
}
impl InvalidDeploymentStyleException {
pub fn builder() -> crate::error::invalid_deployment_style_exception::Builder {
crate::error::invalid_deployment_style_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentGroupNameException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentGroupNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentGroupNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentGroupNameException")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentGroupNameException {}
pub mod invalid_deployment_group_name_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentGroupNameException {
crate::error::InvalidDeploymentGroupNameException {
message: self.message,
}
}
}
}
impl InvalidDeploymentGroupNameException {
pub fn builder() -> crate::error::invalid_deployment_group_name_exception::Builder {
crate::error::invalid_deployment_group_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentConfigNameException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentConfigNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentConfigNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentConfigNameException")?;
if let Some(inner_18) = &self.message {
{
write!(f, ": {}", inner_18)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentConfigNameException {}
pub mod invalid_deployment_config_name_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentConfigNameException {
crate::error::InvalidDeploymentConfigNameException {
message: self.message,
}
}
}
}
impl InvalidDeploymentConfigNameException {
pub fn builder() -> crate::error::invalid_deployment_config_name_exception::Builder {
crate::error::invalid_deployment_config_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidBlueGreenDeploymentConfigurationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidBlueGreenDeploymentConfigurationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidBlueGreenDeploymentConfigurationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidBlueGreenDeploymentConfigurationException")?;
if let Some(inner_19) = &self.message {
{
write!(f, ": {}", inner_19)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidBlueGreenDeploymentConfigurationException {}
pub mod invalid_blue_green_deployment_configuration_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidBlueGreenDeploymentConfigurationException {
crate::error::InvalidBlueGreenDeploymentConfigurationException {
message: self.message,
}
}
}
}
impl InvalidBlueGreenDeploymentConfigurationException {
pub fn builder() -> crate::error::invalid_blue_green_deployment_configuration_exception::Builder
{
crate::error::invalid_blue_green_deployment_configuration_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidAutoScalingGroupException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidAutoScalingGroupException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidAutoScalingGroupException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidAutoScalingGroupException")?;
if let Some(inner_20) = &self.message {
{
write!(f, ": {}", inner_20)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidAutoScalingGroupException {}
pub mod invalid_auto_scaling_group_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidAutoScalingGroupException {
crate::error::InvalidAutoScalingGroupException {
message: self.message,
}
}
}
}
impl InvalidAutoScalingGroupException {
pub fn builder() -> crate::error::invalid_auto_scaling_group_exception::Builder {
crate::error::invalid_auto_scaling_group_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidAutoRollbackConfigException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidAutoRollbackConfigException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidAutoRollbackConfigException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidAutoRollbackConfigException")?;
if let Some(inner_21) = &self.message {
{
write!(f, ": {}", inner_21)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidAutoRollbackConfigException {}
pub mod invalid_auto_rollback_config_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidAutoRollbackConfigException {
crate::error::InvalidAutoRollbackConfigException {
message: self.message,
}
}
}
}
impl InvalidAutoRollbackConfigException {
pub fn builder() -> crate::error::invalid_auto_rollback_config_exception::Builder {
crate::error::invalid_auto_rollback_config_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidApplicationNameException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidApplicationNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidApplicationNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidApplicationNameException")?;
if let Some(inner_22) = &self.message {
{
write!(f, ": {}", inner_22)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidApplicationNameException {}
pub mod invalid_application_name_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidApplicationNameException {
crate::error::InvalidApplicationNameException {
message: self.message,
}
}
}
}
impl InvalidApplicationNameException {
pub fn builder() -> crate::error::invalid_application_name_exception::Builder {
crate::error::invalid_application_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidAlarmConfigException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidAlarmConfigException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidAlarmConfigException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidAlarmConfigException")?;
if let Some(inner_23) = &self.message {
{
write!(f, ": {}", inner_23)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidAlarmConfigException {}
pub mod invalid_alarm_config_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidAlarmConfigException {
crate::error::InvalidAlarmConfigException {
message: self.message,
}
}
}
}
impl InvalidAlarmConfigException {
pub fn builder() -> crate::error::invalid_alarm_config_exception::Builder {
crate::error::invalid_alarm_config_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct EcsServiceMappingLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl EcsServiceMappingLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for EcsServiceMappingLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"EcsServiceMappingLimitExceededException [ECSServiceMappingLimitExceededException]"
)?;
if let Some(inner_24) = &self.message {
{
write!(f, ": {}", inner_24)?;
}
}
Ok(())
}
}
impl std::error::Error for EcsServiceMappingLimitExceededException {}
pub mod ecs_service_mapping_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::EcsServiceMappingLimitExceededException {
crate::error::EcsServiceMappingLimitExceededException {
message: self.message,
}
}
}
}
impl EcsServiceMappingLimitExceededException {
pub fn builder() -> crate::error::ecs_service_mapping_limit_exceeded_exception::Builder {
crate::error::ecs_service_mapping_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentGroupNameRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentGroupNameRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentGroupNameRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentGroupNameRequiredException")?;
if let Some(inner_25) = &self.message {
{
write!(f, ": {}", inner_25)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentGroupNameRequiredException {}
pub mod deployment_group_name_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentGroupNameRequiredException {
crate::error::DeploymentGroupNameRequiredException {
message: self.message,
}
}
}
}
impl DeploymentGroupNameRequiredException {
pub fn builder() -> crate::error::deployment_group_name_required_exception::Builder {
crate::error::deployment_group_name_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentGroupDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentGroupDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentGroupDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentGroupDoesNotExistException")?;
if let Some(inner_26) = &self.message {
{
write!(f, ": {}", inner_26)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentGroupDoesNotExistException {}
pub mod deployment_group_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentGroupDoesNotExistException {
crate::error::DeploymentGroupDoesNotExistException {
message: self.message,
}
}
}
}
impl DeploymentGroupDoesNotExistException {
pub fn builder() -> crate::error::deployment_group_does_not_exist_exception::Builder {
crate::error::deployment_group_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentGroupAlreadyExistsException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentGroupAlreadyExistsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentGroupAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentGroupAlreadyExistsException")?;
if let Some(inner_27) = &self.message {
{
write!(f, ": {}", inner_27)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentGroupAlreadyExistsException {}
pub mod deployment_group_already_exists_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentGroupAlreadyExistsException {
crate::error::DeploymentGroupAlreadyExistsException {
message: self.message,
}
}
}
}
impl DeploymentGroupAlreadyExistsException {
pub fn builder() -> crate::error::deployment_group_already_exists_exception::Builder {
crate::error::deployment_group_already_exists_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentConfigDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentConfigDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentConfigDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentConfigDoesNotExistException")?;
if let Some(inner_28) = &self.message {
{
write!(f, ": {}", inner_28)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentConfigDoesNotExistException {}
pub mod deployment_config_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentConfigDoesNotExistException {
crate::error::DeploymentConfigDoesNotExistException {
message: self.message,
}
}
}
}
impl DeploymentConfigDoesNotExistException {
pub fn builder() -> crate::error::deployment_config_does_not_exist_exception::Builder {
crate::error::deployment_config_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationNameRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ApplicationNameRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ApplicationNameRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ApplicationNameRequiredException")?;
if let Some(inner_29) = &self.message {
{
write!(f, ": {}", inner_29)?;
}
}
Ok(())
}
}
impl std::error::Error for ApplicationNameRequiredException {}
pub mod application_name_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ApplicationNameRequiredException {
crate::error::ApplicationNameRequiredException {
message: self.message,
}
}
}
}
impl ApplicationNameRequiredException {
pub fn builder() -> crate::error::application_name_required_exception::Builder {
crate::error::application_name_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ApplicationDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ApplicationDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ApplicationDoesNotExistException")?;
if let Some(inner_30) = &self.message {
{
write!(f, ": {}", inner_30)?;
}
}
Ok(())
}
}
impl std::error::Error for ApplicationDoesNotExistException {}
pub mod application_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ApplicationDoesNotExistException {
crate::error::ApplicationDoesNotExistException {
message: self.message,
}
}
}
}
impl ApplicationDoesNotExistException {
pub fn builder() -> crate::error::application_does_not_exist_exception::Builder {
crate::error::application_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AlarmsLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl AlarmsLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AlarmsLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AlarmsLimitExceededException")?;
if let Some(inner_31) = &self.message {
{
write!(f, ": {}", inner_31)?;
}
}
Ok(())
}
}
impl std::error::Error for AlarmsLimitExceededException {}
pub mod alarms_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AlarmsLimitExceededException {
crate::error::AlarmsLimitExceededException {
message: self.message,
}
}
}
}
impl AlarmsLimitExceededException {
pub fn builder() -> crate::error::alarms_limit_exceeded_exception::Builder {
crate::error::alarms_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateApplicationError {
pub kind: UpdateApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateApplicationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateApplicationErrorKind {
ApplicationAlreadyExistsException(crate::error::ApplicationAlreadyExistsException),
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateApplicationErrorKind::ApplicationAlreadyExistsException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
UpdateApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateApplicationError {
fn code(&self) -> Option<&str> {
UpdateApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateApplicationError {
pub fn new(kind: UpdateApplicationErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UpdateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::ApplicationAlreadyExistsException(_)
)
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
UpdateApplicationErrorKind::InvalidApplicationNameException(_)
)
}
}
impl std::error::Error for UpdateApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateApplicationErrorKind::ApplicationAlreadyExistsException(_inner) => Some(_inner),
UpdateApplicationErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
UpdateApplicationErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
UpdateApplicationErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
UpdateApplicationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationAlreadyExistsException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ApplicationAlreadyExistsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ApplicationAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ApplicationAlreadyExistsException")?;
if let Some(inner_32) = &self.message {
{
write!(f, ": {}", inner_32)?;
}
}
Ok(())
}
}
impl std::error::Error for ApplicationAlreadyExistsException {}
pub mod application_already_exists_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ApplicationAlreadyExistsException {
crate::error::ApplicationAlreadyExistsException {
message: self.message,
}
}
}
}
impl ApplicationAlreadyExistsException {
pub fn builder() -> crate::error::application_already_exists_exception::Builder {
crate::error::application_already_exists_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UntagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ArnNotSupportedException(crate::error::ArnNotSupportedException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
InvalidArnException(crate::error::InvalidArnException),
InvalidTagsToAddException(crate::error::InvalidTagsToAddException),
ResourceArnRequiredException(crate::error::ResourceArnRequiredException),
TagRequiredException(crate::error::TagRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ArnNotSupportedException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::DeploymentConfigDoesNotExistException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::DeploymentGroupDoesNotExistException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidTagsToAddException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::ResourceArnRequiredException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::TagRequiredException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_arn_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ArnNotSupportedException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::InvalidArnException(_))
}
pub fn is_invalid_tags_to_add_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InvalidTagsToAddException(_)
)
}
pub fn is_resource_arn_required_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::ResourceArnRequiredException(_)
)
}
pub fn is_tag_required_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::TagRequiredException(_))
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
UntagResourceErrorKind::ArnNotSupportedException(_inner) => Some(_inner),
UntagResourceErrorKind::DeploymentConfigDoesNotExistException(_inner) => Some(_inner),
UntagResourceErrorKind::DeploymentGroupDoesNotExistException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidArnException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidTagsToAddException(_inner) => Some(_inner),
UntagResourceErrorKind::ResourceArnRequiredException(_inner) => Some(_inner),
UntagResourceErrorKind::TagRequiredException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TagRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TagRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TagRequiredException")?;
if let Some(inner_33) = &self.message {
{
write!(f, ": {}", inner_33)?;
}
}
Ok(())
}
}
impl std::error::Error for TagRequiredException {}
pub mod tag_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TagRequiredException {
crate::error::TagRequiredException {
message: self.message,
}
}
}
}
impl TagRequiredException {
pub fn builder() -> crate::error::tag_required_exception::Builder {
crate::error::tag_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceArnRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceArnRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceArnRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceArnRequiredException")?;
if let Some(inner_34) = &self.message {
{
write!(f, ": {}", inner_34)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceArnRequiredException {}
pub mod resource_arn_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceArnRequiredException {
crate::error::ResourceArnRequiredException {
message: self.message,
}
}
}
}
impl ResourceArnRequiredException {
pub fn builder() -> crate::error::resource_arn_required_exception::Builder {
crate::error::resource_arn_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTagsToAddException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTagsToAddException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagsToAddException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagsToAddException")?;
if let Some(inner_35) = &self.message {
{
write!(f, ": {}", inner_35)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTagsToAddException {}
pub mod invalid_tags_to_add_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTagsToAddException {
crate::error::InvalidTagsToAddException {
message: self.message,
}
}
}
}
impl InvalidTagsToAddException {
pub fn builder() -> crate::error::invalid_tags_to_add_exception::Builder {
crate::error::invalid_tags_to_add_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidArnException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidArnException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidArnException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidArnException")?;
if let Some(inner_36) = &self.message {
{
write!(f, ": {}", inner_36)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidArnException {}
pub mod invalid_arn_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidArnException {
crate::error::InvalidArnException {
message: self.message,
}
}
}
}
impl InvalidArnException {
pub fn builder() -> crate::error::invalid_arn_exception::Builder {
crate::error::invalid_arn_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ArnNotSupportedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ArnNotSupportedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ArnNotSupportedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ArnNotSupportedException")?;
if let Some(inner_37) = &self.message {
{
write!(f, ": {}", inner_37)?;
}
}
Ok(())
}
}
impl std::error::Error for ArnNotSupportedException {}
pub mod arn_not_supported_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ArnNotSupportedException {
crate::error::ArnNotSupportedException {
message: self.message,
}
}
}
}
impl ArnNotSupportedException {
pub fn builder() -> crate::error::arn_not_supported_exception::Builder {
crate::error::arn_not_supported_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ArnNotSupportedException(crate::error::ArnNotSupportedException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
InvalidArnException(crate::error::InvalidArnException),
InvalidTagsToAddException(crate::error::InvalidTagsToAddException),
ResourceArnRequiredException(crate::error::ResourceArnRequiredException),
TagRequiredException(crate::error::TagRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ArnNotSupportedException(_inner) => _inner.fmt(f),
TagResourceErrorKind::DeploymentConfigDoesNotExistException(_inner) => _inner.fmt(f),
TagResourceErrorKind::DeploymentGroupDoesNotExistException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidTagsToAddException(_inner) => _inner.fmt(f),
TagResourceErrorKind::ResourceArnRequiredException(_inner) => _inner.fmt(f),
TagResourceErrorKind::TagRequiredException(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_arn_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ArnNotSupportedException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidArnException(_))
}
pub fn is_invalid_tags_to_add_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InvalidTagsToAddException(_)
)
}
pub fn is_resource_arn_required_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::ResourceArnRequiredException(_)
)
}
pub fn is_tag_required_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::TagRequiredException(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
TagResourceErrorKind::ArnNotSupportedException(_inner) => Some(_inner),
TagResourceErrorKind::DeploymentConfigDoesNotExistException(_inner) => Some(_inner),
TagResourceErrorKind::DeploymentGroupDoesNotExistException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidArnException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidTagsToAddException(_inner) => Some(_inner),
TagResourceErrorKind::ResourceArnRequiredException(_inner) => Some(_inner),
TagResourceErrorKind::TagRequiredException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopDeploymentError {
pub kind: StopDeploymentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopDeploymentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopDeploymentErrorKind {
DeploymentAlreadyCompletedException(crate::error::DeploymentAlreadyCompletedException),
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
UnsupportedActionForDeploymentTypeException(
crate::error::UnsupportedActionForDeploymentTypeException,
),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopDeploymentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopDeploymentErrorKind::DeploymentAlreadyCompletedException(_inner) => _inner.fmt(f),
StopDeploymentErrorKind::DeploymentDoesNotExistException(_inner) => _inner.fmt(f),
StopDeploymentErrorKind::DeploymentGroupDoesNotExistException(_inner) => _inner.fmt(f),
StopDeploymentErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
StopDeploymentErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
StopDeploymentErrorKind::UnsupportedActionForDeploymentTypeException(_inner) => {
_inner.fmt(f)
}
StopDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopDeploymentError {
fn code(&self) -> Option<&str> {
StopDeploymentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopDeploymentError {
pub fn new(kind: StopDeploymentErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: StopDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_already_completed_exception(&self) -> bool {
matches!(
&self.kind,
StopDeploymentErrorKind::DeploymentAlreadyCompletedException(_)
)
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
StopDeploymentErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
StopDeploymentErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
StopDeploymentErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
StopDeploymentErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_unsupported_action_for_deployment_type_exception(&self) -> bool {
matches!(
&self.kind,
StopDeploymentErrorKind::UnsupportedActionForDeploymentTypeException(_)
)
}
}
impl std::error::Error for StopDeploymentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopDeploymentErrorKind::DeploymentAlreadyCompletedException(_inner) => Some(_inner),
StopDeploymentErrorKind::DeploymentDoesNotExistException(_inner) => Some(_inner),
StopDeploymentErrorKind::DeploymentGroupDoesNotExistException(_inner) => Some(_inner),
StopDeploymentErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
StopDeploymentErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
StopDeploymentErrorKind::UnsupportedActionForDeploymentTypeException(_inner) => {
Some(_inner)
}
StopDeploymentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnsupportedActionForDeploymentTypeException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnsupportedActionForDeploymentTypeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedActionForDeploymentTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedActionForDeploymentTypeException")?;
if let Some(inner_38) = &self.message {
{
write!(f, ": {}", inner_38)?;
}
}
Ok(())
}
}
impl std::error::Error for UnsupportedActionForDeploymentTypeException {}
pub mod unsupported_action_for_deployment_type_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnsupportedActionForDeploymentTypeException {
crate::error::UnsupportedActionForDeploymentTypeException {
message: self.message,
}
}
}
}
impl UnsupportedActionForDeploymentTypeException {
pub fn builder() -> crate::error::unsupported_action_for_deployment_type_exception::Builder {
crate::error::unsupported_action_for_deployment_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentIdException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentIdException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentIdException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentIdException")?;
if let Some(inner_39) = &self.message {
{
write!(f, ": {}", inner_39)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentIdException {}
pub mod invalid_deployment_id_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentIdException {
crate::error::InvalidDeploymentIdException {
message: self.message,
}
}
}
}
impl InvalidDeploymentIdException {
pub fn builder() -> crate::error::invalid_deployment_id_exception::Builder {
crate::error::invalid_deployment_id_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentIdRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentIdRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentIdRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentIdRequiredException")?;
if let Some(inner_40) = &self.message {
{
write!(f, ": {}", inner_40)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentIdRequiredException {}
pub mod deployment_id_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentIdRequiredException {
crate::error::DeploymentIdRequiredException {
message: self.message,
}
}
}
}
impl DeploymentIdRequiredException {
pub fn builder() -> crate::error::deployment_id_required_exception::Builder {
crate::error::deployment_id_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentDoesNotExistException")?;
if let Some(inner_41) = &self.message {
{
write!(f, ": {}", inner_41)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentDoesNotExistException {}
pub mod deployment_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentDoesNotExistException {
crate::error::DeploymentDoesNotExistException {
message: self.message,
}
}
}
}
impl DeploymentDoesNotExistException {
pub fn builder() -> crate::error::deployment_does_not_exist_exception::Builder {
crate::error::deployment_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentAlreadyCompletedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentAlreadyCompletedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentAlreadyCompletedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentAlreadyCompletedException")?;
if let Some(inner_42) = &self.message {
{
write!(f, ": {}", inner_42)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentAlreadyCompletedException {}
pub mod deployment_already_completed_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentAlreadyCompletedException {
crate::error::DeploymentAlreadyCompletedException {
message: self.message,
}
}
}
}
impl DeploymentAlreadyCompletedException {
pub fn builder() -> crate::error::deployment_already_completed_exception::Builder {
crate::error::deployment_already_completed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SkipWaitTimeForInstanceTerminationError {
pub kind: SkipWaitTimeForInstanceTerminationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SkipWaitTimeForInstanceTerminationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SkipWaitTimeForInstanceTerminationErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SkipWaitTimeForInstanceTerminationErrorKind {
DeploymentAlreadyCompletedException(crate::error::DeploymentAlreadyCompletedException),
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
DeploymentNotStartedException(crate::error::DeploymentNotStartedException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
UnsupportedActionForDeploymentTypeException(
crate::error::UnsupportedActionForDeploymentTypeException,
),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SkipWaitTimeForInstanceTerminationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentAlreadyCompletedException(_inner) =>
_inner.fmt(f)
,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentDoesNotExistException(_inner) =>
_inner.fmt(f)
,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentIdRequiredException(_inner) =>
_inner.fmt(f)
,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentNotStartedException(_inner) =>
_inner.fmt(f)
,
SkipWaitTimeForInstanceTerminationErrorKind::InvalidDeploymentIdException(_inner) =>
_inner.fmt(f)
,
SkipWaitTimeForInstanceTerminationErrorKind::UnsupportedActionForDeploymentTypeException(_inner) =>
_inner.fmt(f)
,
SkipWaitTimeForInstanceTerminationErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SkipWaitTimeForInstanceTerminationError {
fn code(&self) -> Option<&str> {
SkipWaitTimeForInstanceTerminationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SkipWaitTimeForInstanceTerminationError {
pub fn new(
kind: SkipWaitTimeForInstanceTerminationErrorKind,
meta: aws_smithy_types::Error,
) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: SkipWaitTimeForInstanceTerminationErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SkipWaitTimeForInstanceTerminationErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_already_completed_exception(&self) -> bool {
matches!(
&self.kind,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentAlreadyCompletedException(_)
)
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_deployment_not_started_exception(&self) -> bool {
matches!(
&self.kind,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentNotStartedException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
SkipWaitTimeForInstanceTerminationErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_unsupported_action_for_deployment_type_exception(&self) -> bool {
matches!(&self.kind, SkipWaitTimeForInstanceTerminationErrorKind::UnsupportedActionForDeploymentTypeException(_))
}
}
impl std::error::Error for SkipWaitTimeForInstanceTerminationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentAlreadyCompletedException(_inner) =>
Some(_inner)
,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentDoesNotExistException(_inner) =>
Some(_inner)
,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentIdRequiredException(_inner) =>
Some(_inner)
,
SkipWaitTimeForInstanceTerminationErrorKind::DeploymentNotStartedException(_inner) =>
Some(_inner)
,
SkipWaitTimeForInstanceTerminationErrorKind::InvalidDeploymentIdException(_inner) =>
Some(_inner)
,
SkipWaitTimeForInstanceTerminationErrorKind::UnsupportedActionForDeploymentTypeException(_inner) =>
Some(_inner)
,
SkipWaitTimeForInstanceTerminationErrorKind::Unhandled(_inner) => {
Some(_inner)
}
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentNotStartedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentNotStartedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentNotStartedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentNotStartedException")?;
if let Some(inner_43) = &self.message {
{
write!(f, ": {}", inner_43)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentNotStartedException {}
pub mod deployment_not_started_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentNotStartedException {
crate::error::DeploymentNotStartedException {
message: self.message,
}
}
}
}
impl DeploymentNotStartedException {
pub fn builder() -> crate::error::deployment_not_started_exception::Builder {
crate::error::deployment_not_started_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveTagsFromOnPremisesInstancesError {
pub kind: RemoveTagsFromOnPremisesInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveTagsFromOnPremisesInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveTagsFromOnPremisesInstancesErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveTagsFromOnPremisesInstancesErrorKind {
InstanceLimitExceededException(crate::error::InstanceLimitExceededException),
InstanceNameRequiredException(crate::error::InstanceNameRequiredException),
InstanceNotRegisteredException(crate::error::InstanceNotRegisteredException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
InvalidTagException(crate::error::InvalidTagException),
TagLimitExceededException(crate::error::TagLimitExceededException),
TagRequiredException(crate::error::TagRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveTagsFromOnPremisesInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceLimitExceededException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceNameRequiredException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceNotRegisteredException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InvalidInstanceNameException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InvalidTagException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::TagLimitExceededException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::TagRequiredException(_inner) => {
_inner.fmt(f)
}
RemoveTagsFromOnPremisesInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveTagsFromOnPremisesInstancesError {
fn code(&self) -> Option<&str> {
RemoveTagsFromOnPremisesInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveTagsFromOnPremisesInstancesError {
pub fn new(
kind: RemoveTagsFromOnPremisesInstancesErrorKind,
meta: aws_smithy_types::Error,
) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: RemoveTagsFromOnPremisesInstancesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveTagsFromOnPremisesInstancesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_instance_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceLimitExceededException(_)
)
}
pub fn is_instance_name_required_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceNameRequiredException(_)
)
}
pub fn is_instance_not_registered_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceNotRegisteredException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::InvalidInstanceNameException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::InvalidTagException(_)
)
}
pub fn is_tag_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::TagLimitExceededException(_)
)
}
pub fn is_tag_required_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsFromOnPremisesInstancesErrorKind::TagRequiredException(_)
)
}
}
impl std::error::Error for RemoveTagsFromOnPremisesInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceLimitExceededException(_inner) => {
Some(_inner)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceNameRequiredException(_inner) => {
Some(_inner)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InstanceNotRegisteredException(_inner) => {
Some(_inner)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InvalidInstanceNameException(_inner) => {
Some(_inner)
}
RemoveTagsFromOnPremisesInstancesErrorKind::InvalidTagException(_inner) => Some(_inner),
RemoveTagsFromOnPremisesInstancesErrorKind::TagLimitExceededException(_inner) => {
Some(_inner)
}
RemoveTagsFromOnPremisesInstancesErrorKind::TagRequiredException(_inner) => {
Some(_inner)
}
RemoveTagsFromOnPremisesInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TagLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TagLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TagLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TagLimitExceededException")?;
if let Some(inner_44) = &self.message {
{
write!(f, ": {}", inner_44)?;
}
}
Ok(())
}
}
impl std::error::Error for TagLimitExceededException {}
pub mod tag_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TagLimitExceededException {
crate::error::TagLimitExceededException {
message: self.message,
}
}
}
}
impl TagLimitExceededException {
pub fn builder() -> crate::error::tag_limit_exceeded_exception::Builder {
crate::error::tag_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidInstanceNameException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidInstanceNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInstanceNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInstanceNameException")?;
if let Some(inner_45) = &self.message {
{
write!(f, ": {}", inner_45)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidInstanceNameException {}
pub mod invalid_instance_name_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidInstanceNameException {
crate::error::InvalidInstanceNameException {
message: self.message,
}
}
}
}
impl InvalidInstanceNameException {
pub fn builder() -> crate::error::invalid_instance_name_exception::Builder {
crate::error::invalid_instance_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceNotRegisteredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InstanceNotRegisteredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceNotRegisteredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceNotRegisteredException")?;
if let Some(inner_46) = &self.message {
{
write!(f, ": {}", inner_46)?;
}
}
Ok(())
}
}
impl std::error::Error for InstanceNotRegisteredException {}
pub mod instance_not_registered_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InstanceNotRegisteredException {
crate::error::InstanceNotRegisteredException {
message: self.message,
}
}
}
}
impl InstanceNotRegisteredException {
pub fn builder() -> crate::error::instance_not_registered_exception::Builder {
crate::error::instance_not_registered_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceNameRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InstanceNameRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceNameRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceNameRequiredException")?;
if let Some(inner_47) = &self.message {
{
write!(f, ": {}", inner_47)?;
}
}
Ok(())
}
}
impl std::error::Error for InstanceNameRequiredException {}
pub mod instance_name_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InstanceNameRequiredException {
crate::error::InstanceNameRequiredException {
message: self.message,
}
}
}
}
impl InstanceNameRequiredException {
pub fn builder() -> crate::error::instance_name_required_exception::Builder {
crate::error::instance_name_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InstanceLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceLimitExceededException")?;
if let Some(inner_48) = &self.message {
{
write!(f, ": {}", inner_48)?;
}
}
Ok(())
}
}
impl std::error::Error for InstanceLimitExceededException {}
pub mod instance_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InstanceLimitExceededException {
crate::error::InstanceLimitExceededException {
message: self.message,
}
}
}
}
impl InstanceLimitExceededException {
pub fn builder() -> crate::error::instance_limit_exceeded_exception::Builder {
crate::error::instance_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterOnPremisesInstanceError {
pub kind: RegisterOnPremisesInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterOnPremisesInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterOnPremisesInstanceErrorKind {
IamArnRequiredException(crate::error::IamArnRequiredException),
IamSessionArnAlreadyRegisteredException(crate::error::IamSessionArnAlreadyRegisteredException),
IamUserArnAlreadyRegisteredException(crate::error::IamUserArnAlreadyRegisteredException),
IamUserArnRequiredException(crate::error::IamUserArnRequiredException),
InstanceNameAlreadyRegisteredException(crate::error::InstanceNameAlreadyRegisteredException),
InstanceNameRequiredException(crate::error::InstanceNameRequiredException),
InvalidIamSessionArnException(crate::error::InvalidIamSessionArnException),
InvalidIamUserArnException(crate::error::InvalidIamUserArnException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
MultipleIamArnsProvidedException(crate::error::MultipleIamArnsProvidedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterOnPremisesInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterOnPremisesInstanceErrorKind::IamArnRequiredException(_inner) => _inner.fmt(f),
RegisterOnPremisesInstanceErrorKind::IamSessionArnAlreadyRegisteredException(
_inner,
) => _inner.fmt(f),
RegisterOnPremisesInstanceErrorKind::IamUserArnAlreadyRegisteredException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::IamUserArnRequiredException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::InstanceNameAlreadyRegisteredException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::InstanceNameRequiredException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::InvalidIamSessionArnException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::InvalidIamUserArnException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::InvalidInstanceNameException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::MultipleIamArnsProvidedException(_inner) => {
_inner.fmt(f)
}
RegisterOnPremisesInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterOnPremisesInstanceError {
fn code(&self) -> Option<&str> {
RegisterOnPremisesInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterOnPremisesInstanceError {
pub fn new(kind: RegisterOnPremisesInstanceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: RegisterOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_iam_arn_required_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::IamArnRequiredException(_)
)
}
pub fn is_iam_session_arn_already_registered_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::IamSessionArnAlreadyRegisteredException(_)
)
}
pub fn is_iam_user_arn_already_registered_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::IamUserArnAlreadyRegisteredException(_)
)
}
pub fn is_iam_user_arn_required_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::IamUserArnRequiredException(_)
)
}
pub fn is_instance_name_already_registered_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::InstanceNameAlreadyRegisteredException(_)
)
}
pub fn is_instance_name_required_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::InstanceNameRequiredException(_)
)
}
pub fn is_invalid_iam_session_arn_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::InvalidIamSessionArnException(_)
)
}
pub fn is_invalid_iam_user_arn_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::InvalidIamUserArnException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::InvalidInstanceNameException(_)
)
}
pub fn is_multiple_iam_arns_provided_exception(&self) -> bool {
matches!(
&self.kind,
RegisterOnPremisesInstanceErrorKind::MultipleIamArnsProvidedException(_)
)
}
}
impl std::error::Error for RegisterOnPremisesInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterOnPremisesInstanceErrorKind::IamArnRequiredException(_inner) => Some(_inner),
RegisterOnPremisesInstanceErrorKind::IamSessionArnAlreadyRegisteredException(
_inner,
) => Some(_inner),
RegisterOnPremisesInstanceErrorKind::IamUserArnAlreadyRegisteredException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::IamUserArnRequiredException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::InstanceNameAlreadyRegisteredException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::InstanceNameRequiredException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::InvalidIamSessionArnException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::InvalidIamUserArnException(_inner) => Some(_inner),
RegisterOnPremisesInstanceErrorKind::InvalidInstanceNameException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::MultipleIamArnsProvidedException(_inner) => {
Some(_inner)
}
RegisterOnPremisesInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct MultipleIamArnsProvidedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl MultipleIamArnsProvidedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for MultipleIamArnsProvidedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "MultipleIamArnsProvidedException")?;
if let Some(inner_49) = &self.message {
{
write!(f, ": {}", inner_49)?;
}
}
Ok(())
}
}
impl std::error::Error for MultipleIamArnsProvidedException {}
pub mod multiple_iam_arns_provided_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::MultipleIamArnsProvidedException {
crate::error::MultipleIamArnsProvidedException {
message: self.message,
}
}
}
}
impl MultipleIamArnsProvidedException {
pub fn builder() -> crate::error::multiple_iam_arns_provided_exception::Builder {
crate::error::multiple_iam_arns_provided_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidIamUserArnException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidIamUserArnException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidIamUserArnException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidIamUserArnException")?;
if let Some(inner_50) = &self.message {
{
write!(f, ": {}", inner_50)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidIamUserArnException {}
pub mod invalid_iam_user_arn_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidIamUserArnException {
crate::error::InvalidIamUserArnException {
message: self.message,
}
}
}
}
impl InvalidIamUserArnException {
pub fn builder() -> crate::error::invalid_iam_user_arn_exception::Builder {
crate::error::invalid_iam_user_arn_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidIamSessionArnException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidIamSessionArnException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidIamSessionArnException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidIamSessionArnException")?;
if let Some(inner_51) = &self.message {
{
write!(f, ": {}", inner_51)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidIamSessionArnException {}
pub mod invalid_iam_session_arn_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidIamSessionArnException {
crate::error::InvalidIamSessionArnException {
message: self.message,
}
}
}
}
impl InvalidIamSessionArnException {
pub fn builder() -> crate::error::invalid_iam_session_arn_exception::Builder {
crate::error::invalid_iam_session_arn_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceNameAlreadyRegisteredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InstanceNameAlreadyRegisteredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceNameAlreadyRegisteredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceNameAlreadyRegisteredException")?;
if let Some(inner_52) = &self.message {
{
write!(f, ": {}", inner_52)?;
}
}
Ok(())
}
}
impl std::error::Error for InstanceNameAlreadyRegisteredException {}
pub mod instance_name_already_registered_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InstanceNameAlreadyRegisteredException {
crate::error::InstanceNameAlreadyRegisteredException {
message: self.message,
}
}
}
}
impl InstanceNameAlreadyRegisteredException {
pub fn builder() -> crate::error::instance_name_already_registered_exception::Builder {
crate::error::instance_name_already_registered_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IamUserArnRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IamUserArnRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IamUserArnRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IamUserArnRequiredException")?;
if let Some(inner_53) = &self.message {
{
write!(f, ": {}", inner_53)?;
}
}
Ok(())
}
}
impl std::error::Error for IamUserArnRequiredException {}
pub mod iam_user_arn_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IamUserArnRequiredException {
crate::error::IamUserArnRequiredException {
message: self.message,
}
}
}
}
impl IamUserArnRequiredException {
pub fn builder() -> crate::error::iam_user_arn_required_exception::Builder {
crate::error::iam_user_arn_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IamUserArnAlreadyRegisteredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IamUserArnAlreadyRegisteredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IamUserArnAlreadyRegisteredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IamUserArnAlreadyRegisteredException")?;
if let Some(inner_54) = &self.message {
{
write!(f, ": {}", inner_54)?;
}
}
Ok(())
}
}
impl std::error::Error for IamUserArnAlreadyRegisteredException {}
pub mod iam_user_arn_already_registered_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IamUserArnAlreadyRegisteredException {
crate::error::IamUserArnAlreadyRegisteredException {
message: self.message,
}
}
}
}
impl IamUserArnAlreadyRegisteredException {
pub fn builder() -> crate::error::iam_user_arn_already_registered_exception::Builder {
crate::error::iam_user_arn_already_registered_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IamSessionArnAlreadyRegisteredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IamSessionArnAlreadyRegisteredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IamSessionArnAlreadyRegisteredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IamSessionArnAlreadyRegisteredException")?;
if let Some(inner_55) = &self.message {
{
write!(f, ": {}", inner_55)?;
}
}
Ok(())
}
}
impl std::error::Error for IamSessionArnAlreadyRegisteredException {}
pub mod iam_session_arn_already_registered_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IamSessionArnAlreadyRegisteredException {
crate::error::IamSessionArnAlreadyRegisteredException {
message: self.message,
}
}
}
}
impl IamSessionArnAlreadyRegisteredException {
pub fn builder() -> crate::error::iam_session_arn_already_registered_exception::Builder {
crate::error::iam_session_arn_already_registered_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IamArnRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IamArnRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IamArnRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IamArnRequiredException")?;
if let Some(inner_56) = &self.message {
{
write!(f, ": {}", inner_56)?;
}
}
Ok(())
}
}
impl std::error::Error for IamArnRequiredException {}
pub mod iam_arn_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IamArnRequiredException {
crate::error::IamArnRequiredException {
message: self.message,
}
}
}
}
impl IamArnRequiredException {
pub fn builder() -> crate::error::iam_arn_required_exception::Builder {
crate::error::iam_arn_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterApplicationRevisionError {
pub kind: RegisterApplicationRevisionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterApplicationRevisionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterApplicationRevisionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterApplicationRevisionErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DescriptionTooLongException(crate::error::DescriptionTooLongException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidRevisionException(crate::error::InvalidRevisionException),
RevisionRequiredException(crate::error::RevisionRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterApplicationRevisionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterApplicationRevisionErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
RegisterApplicationRevisionErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
RegisterApplicationRevisionErrorKind::DescriptionTooLongException(_inner) => {
_inner.fmt(f)
}
RegisterApplicationRevisionErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
RegisterApplicationRevisionErrorKind::InvalidRevisionException(_inner) => _inner.fmt(f),
RegisterApplicationRevisionErrorKind::RevisionRequiredException(_inner) => {
_inner.fmt(f)
}
RegisterApplicationRevisionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterApplicationRevisionError {
fn code(&self) -> Option<&str> {
RegisterApplicationRevisionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterApplicationRevisionError {
pub fn new(kind: RegisterApplicationRevisionErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: RegisterApplicationRevisionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterApplicationRevisionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
RegisterApplicationRevisionErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
RegisterApplicationRevisionErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_description_too_long_exception(&self) -> bool {
matches!(
&self.kind,
RegisterApplicationRevisionErrorKind::DescriptionTooLongException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
RegisterApplicationRevisionErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_revision_exception(&self) -> bool {
matches!(
&self.kind,
RegisterApplicationRevisionErrorKind::InvalidRevisionException(_)
)
}
pub fn is_revision_required_exception(&self) -> bool {
matches!(
&self.kind,
RegisterApplicationRevisionErrorKind::RevisionRequiredException(_)
)
}
}
impl std::error::Error for RegisterApplicationRevisionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterApplicationRevisionErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
RegisterApplicationRevisionErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
RegisterApplicationRevisionErrorKind::DescriptionTooLongException(_inner) => {
Some(_inner)
}
RegisterApplicationRevisionErrorKind::InvalidApplicationNameException(_inner) => {
Some(_inner)
}
RegisterApplicationRevisionErrorKind::InvalidRevisionException(_inner) => Some(_inner),
RegisterApplicationRevisionErrorKind::RevisionRequiredException(_inner) => Some(_inner),
RegisterApplicationRevisionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RevisionRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl RevisionRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RevisionRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RevisionRequiredException")?;
if let Some(inner_57) = &self.message {
{
write!(f, ": {}", inner_57)?;
}
}
Ok(())
}
}
impl std::error::Error for RevisionRequiredException {}
pub mod revision_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::RevisionRequiredException {
crate::error::RevisionRequiredException {
message: self.message,
}
}
}
}
impl RevisionRequiredException {
pub fn builder() -> crate::error::revision_required_exception::Builder {
crate::error::revision_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidRevisionException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidRevisionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRevisionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRevisionException")?;
if let Some(inner_58) = &self.message {
{
write!(f, ": {}", inner_58)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidRevisionException {}
pub mod invalid_revision_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidRevisionException {
crate::error::InvalidRevisionException {
message: self.message,
}
}
}
}
impl InvalidRevisionException {
pub fn builder() -> crate::error::invalid_revision_exception::Builder {
crate::error::invalid_revision_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DescriptionTooLongException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DescriptionTooLongException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DescriptionTooLongException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DescriptionTooLongException")?;
if let Some(inner_59) = &self.message {
{
write!(f, ": {}", inner_59)?;
}
}
Ok(())
}
}
impl std::error::Error for DescriptionTooLongException {}
pub mod description_too_long_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DescriptionTooLongException {
crate::error::DescriptionTooLongException {
message: self.message,
}
}
}
}
impl DescriptionTooLongException {
pub fn builder() -> crate::error::description_too_long_exception::Builder {
crate::error::description_too_long_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutLifecycleEventHookExecutionStatusError {
pub kind: PutLifecycleEventHookExecutionStatusErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutLifecycleEventHookExecutionStatusError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutLifecycleEventHookExecutionStatusErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutLifecycleEventHookExecutionStatusErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidLifecycleEventHookExecutionIdException(
crate::error::InvalidLifecycleEventHookExecutionIdException,
),
InvalidLifecycleEventHookExecutionStatusException(
crate::error::InvalidLifecycleEventHookExecutionStatusException,
),
LifecycleEventAlreadyCompletedException(crate::error::LifecycleEventAlreadyCompletedException),
UnsupportedActionForDeploymentTypeException(
crate::error::UnsupportedActionForDeploymentTypeException,
),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutLifecycleEventHookExecutionStatusError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutLifecycleEventHookExecutionStatusErrorKind::DeploymentDoesNotExistException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::DeploymentIdRequiredException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidDeploymentIdException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidLifecycleEventHookExecutionIdException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidLifecycleEventHookExecutionStatusException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::LifecycleEventAlreadyCompletedException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::UnsupportedActionForDeploymentTypeException(_inner) =>
_inner.fmt(f)
,
PutLifecycleEventHookExecutionStatusErrorKind::Unhandled(_inner) => {
_inner.fmt(f)
}
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutLifecycleEventHookExecutionStatusError {
fn code(&self) -> Option<&str> {
PutLifecycleEventHookExecutionStatusError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutLifecycleEventHookExecutionStatusError {
pub fn new(
kind: PutLifecycleEventHookExecutionStatusErrorKind,
meta: aws_smithy_types::Error,
) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: PutLifecycleEventHookExecutionStatusErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutLifecycleEventHookExecutionStatusErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
PutLifecycleEventHookExecutionStatusErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
PutLifecycleEventHookExecutionStatusErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_lifecycle_event_hook_execution_id_exception(&self) -> bool {
matches!(&self.kind, PutLifecycleEventHookExecutionStatusErrorKind::InvalidLifecycleEventHookExecutionIdException(_))
}
pub fn is_invalid_lifecycle_event_hook_execution_status_exception(&self) -> bool {
matches!(&self.kind, PutLifecycleEventHookExecutionStatusErrorKind::InvalidLifecycleEventHookExecutionStatusException(_))
}
pub fn is_lifecycle_event_already_completed_exception(&self) -> bool {
matches!(
&self.kind,
PutLifecycleEventHookExecutionStatusErrorKind::LifecycleEventAlreadyCompletedException(
_
)
)
}
pub fn is_unsupported_action_for_deployment_type_exception(&self) -> bool {
matches!(&self.kind, PutLifecycleEventHookExecutionStatusErrorKind::UnsupportedActionForDeploymentTypeException(_))
}
}
impl std::error::Error for PutLifecycleEventHookExecutionStatusError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutLifecycleEventHookExecutionStatusErrorKind::DeploymentDoesNotExistException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::DeploymentIdRequiredException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidDeploymentIdException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidLifecycleEventHookExecutionIdException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::InvalidLifecycleEventHookExecutionStatusException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::LifecycleEventAlreadyCompletedException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::UnsupportedActionForDeploymentTypeException(_inner) =>
Some(_inner)
,
PutLifecycleEventHookExecutionStatusErrorKind::Unhandled(_inner) => {
Some(_inner)
}
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LifecycleEventAlreadyCompletedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl LifecycleEventAlreadyCompletedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LifecycleEventAlreadyCompletedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LifecycleEventAlreadyCompletedException")?;
if let Some(inner_60) = &self.message {
{
write!(f, ": {}", inner_60)?;
}
}
Ok(())
}
}
impl std::error::Error for LifecycleEventAlreadyCompletedException {}
pub mod lifecycle_event_already_completed_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::LifecycleEventAlreadyCompletedException {
crate::error::LifecycleEventAlreadyCompletedException {
message: self.message,
}
}
}
}
impl LifecycleEventAlreadyCompletedException {
pub fn builder() -> crate::error::lifecycle_event_already_completed_exception::Builder {
crate::error::lifecycle_event_already_completed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidLifecycleEventHookExecutionStatusException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidLifecycleEventHookExecutionStatusException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLifecycleEventHookExecutionStatusException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLifecycleEventHookExecutionStatusException")?;
if let Some(inner_61) = &self.message {
{
write!(f, ": {}", inner_61)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidLifecycleEventHookExecutionStatusException {}
pub mod invalid_lifecycle_event_hook_execution_status_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidLifecycleEventHookExecutionStatusException {
crate::error::InvalidLifecycleEventHookExecutionStatusException {
message: self.message,
}
}
}
}
impl InvalidLifecycleEventHookExecutionStatusException {
pub fn builder(
) -> crate::error::invalid_lifecycle_event_hook_execution_status_exception::Builder {
crate::error::invalid_lifecycle_event_hook_execution_status_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidLifecycleEventHookExecutionIdException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidLifecycleEventHookExecutionIdException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLifecycleEventHookExecutionIdException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLifecycleEventHookExecutionIdException")?;
if let Some(inner_62) = &self.message {
{
write!(f, ": {}", inner_62)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidLifecycleEventHookExecutionIdException {}
pub mod invalid_lifecycle_event_hook_execution_id_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidLifecycleEventHookExecutionIdException {
crate::error::InvalidLifecycleEventHookExecutionIdException {
message: self.message,
}
}
}
}
impl InvalidLifecycleEventHookExecutionIdException {
pub fn builder() -> crate::error::invalid_lifecycle_event_hook_execution_id_exception::Builder {
crate::error::invalid_lifecycle_event_hook_execution_id_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
ArnNotSupportedException(crate::error::ArnNotSupportedException),
InvalidArnException(crate::error::InvalidArnException),
ResourceArnRequiredException(crate::error::ResourceArnRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::ArnNotSupportedException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidArnException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::ResourceArnRequiredException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_arn_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ArnNotSupportedException(_)
)
}
pub fn is_invalid_arn_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidArnException(_)
)
}
pub fn is_resource_arn_required_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::ResourceArnRequiredException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::ArnNotSupportedException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidArnException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::ResourceArnRequiredException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListOnPremisesInstancesError {
pub kind: ListOnPremisesInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListOnPremisesInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListOnPremisesInstancesErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
InvalidRegistrationStatusException(crate::error::InvalidRegistrationStatusException),
InvalidTagFilterException(crate::error::InvalidTagFilterException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListOnPremisesInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListOnPremisesInstancesErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListOnPremisesInstancesErrorKind::InvalidRegistrationStatusException(_inner) => {
_inner.fmt(f)
}
ListOnPremisesInstancesErrorKind::InvalidTagFilterException(_inner) => _inner.fmt(f),
ListOnPremisesInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListOnPremisesInstancesError {
fn code(&self) -> Option<&str> {
ListOnPremisesInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListOnPremisesInstancesError {
pub fn new(kind: ListOnPremisesInstancesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListOnPremisesInstancesErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_invalid_registration_status_exception(&self) -> bool {
matches!(
&self.kind,
ListOnPremisesInstancesErrorKind::InvalidRegistrationStatusException(_)
)
}
pub fn is_invalid_tag_filter_exception(&self) -> bool {
matches!(
&self.kind,
ListOnPremisesInstancesErrorKind::InvalidTagFilterException(_)
)
}
}
impl std::error::Error for ListOnPremisesInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListOnPremisesInstancesErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListOnPremisesInstancesErrorKind::InvalidRegistrationStatusException(_inner) => {
Some(_inner)
}
ListOnPremisesInstancesErrorKind::InvalidTagFilterException(_inner) => Some(_inner),
ListOnPremisesInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTagFilterException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTagFilterException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTagFilterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTagFilterException")?;
if let Some(inner_63) = &self.message {
{
write!(f, ": {}", inner_63)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTagFilterException {}
pub mod invalid_tag_filter_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTagFilterException {
crate::error::InvalidTagFilterException {
message: self.message,
}
}
}
}
impl InvalidTagFilterException {
pub fn builder() -> crate::error::invalid_tag_filter_exception::Builder {
crate::error::invalid_tag_filter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidRegistrationStatusException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidRegistrationStatusException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRegistrationStatusException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRegistrationStatusException")?;
if let Some(inner_64) = &self.message {
{
write!(f, ": {}", inner_64)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidRegistrationStatusException {}
pub mod invalid_registration_status_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidRegistrationStatusException {
crate::error::InvalidRegistrationStatusException {
message: self.message,
}
}
}
}
impl InvalidRegistrationStatusException {
pub fn builder() -> crate::error::invalid_registration_status_exception::Builder {
crate::error::invalid_registration_status_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidNextTokenException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidNextTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidNextTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidNextTokenException")?;
if let Some(inner_65) = &self.message {
{
write!(f, ": {}", inner_65)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidNextTokenException {}
pub mod invalid_next_token_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidNextTokenException {
crate::error::InvalidNextTokenException {
message: self.message,
}
}
}
}
impl InvalidNextTokenException {
pub fn builder() -> crate::error::invalid_next_token_exception::Builder {
crate::error::invalid_next_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListGitHubAccountTokenNamesError {
pub kind: ListGitHubAccountTokenNamesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListGitHubAccountTokenNamesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListGitHubAccountTokenNamesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListGitHubAccountTokenNamesErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
OperationNotSupportedException(crate::error::OperationNotSupportedException),
ResourceValidationException(crate::error::ResourceValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListGitHubAccountTokenNamesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListGitHubAccountTokenNamesErrorKind::InvalidNextTokenException(_inner) => {
_inner.fmt(f)
}
ListGitHubAccountTokenNamesErrorKind::OperationNotSupportedException(_inner) => {
_inner.fmt(f)
}
ListGitHubAccountTokenNamesErrorKind::ResourceValidationException(_inner) => {
_inner.fmt(f)
}
ListGitHubAccountTokenNamesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListGitHubAccountTokenNamesError {
fn code(&self) -> Option<&str> {
ListGitHubAccountTokenNamesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListGitHubAccountTokenNamesError {
pub fn new(kind: ListGitHubAccountTokenNamesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListGitHubAccountTokenNamesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListGitHubAccountTokenNamesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListGitHubAccountTokenNamesErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_operation_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
ListGitHubAccountTokenNamesErrorKind::OperationNotSupportedException(_)
)
}
pub fn is_resource_validation_exception(&self) -> bool {
matches!(
&self.kind,
ListGitHubAccountTokenNamesErrorKind::ResourceValidationException(_)
)
}
}
impl std::error::Error for ListGitHubAccountTokenNamesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListGitHubAccountTokenNamesErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListGitHubAccountTokenNamesErrorKind::OperationNotSupportedException(_inner) => {
Some(_inner)
}
ListGitHubAccountTokenNamesErrorKind::ResourceValidationException(_inner) => {
Some(_inner)
}
ListGitHubAccountTokenNamesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceValidationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceValidationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceValidationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceValidationException")?;
if let Some(inner_66) = &self.message {
{
write!(f, ": {}", inner_66)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceValidationException {}
pub mod resource_validation_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceValidationException {
crate::error::ResourceValidationException {
message: self.message,
}
}
}
}
impl ResourceValidationException {
pub fn builder() -> crate::error::resource_validation_exception::Builder {
crate::error::resource_validation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OperationNotSupportedException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl OperationNotSupportedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OperationNotSupportedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OperationNotSupportedException")?;
if let Some(inner_67) = &self.message {
{
write!(f, ": {}", inner_67)?;
}
}
Ok(())
}
}
impl std::error::Error for OperationNotSupportedException {}
pub mod operation_not_supported_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::OperationNotSupportedException {
crate::error::OperationNotSupportedException {
message: self.message,
}
}
}
}
impl OperationNotSupportedException {
pub fn builder() -> crate::error::operation_not_supported_exception::Builder {
crate::error::operation_not_supported_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDeploymentTargetsError {
pub kind: ListDeploymentTargetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDeploymentTargetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDeploymentTargetsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDeploymentTargetsErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
DeploymentNotStartedException(crate::error::DeploymentNotStartedException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidDeploymentInstanceTypeException(crate::error::InvalidDeploymentInstanceTypeException),
InvalidInstanceStatusException(crate::error::InvalidInstanceStatusException),
InvalidInstanceTypeException(crate::error::InvalidInstanceTypeException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDeploymentTargetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDeploymentTargetsErrorKind::DeploymentDoesNotExistException(_inner) => {
_inner.fmt(f)
}
ListDeploymentTargetsErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
ListDeploymentTargetsErrorKind::DeploymentNotStartedException(_inner) => _inner.fmt(f),
ListDeploymentTargetsErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
ListDeploymentTargetsErrorKind::InvalidDeploymentInstanceTypeException(_inner) => {
_inner.fmt(f)
}
ListDeploymentTargetsErrorKind::InvalidInstanceStatusException(_inner) => _inner.fmt(f),
ListDeploymentTargetsErrorKind::InvalidInstanceTypeException(_inner) => _inner.fmt(f),
ListDeploymentTargetsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListDeploymentTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDeploymentTargetsError {
fn code(&self) -> Option<&str> {
ListDeploymentTargetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDeploymentTargetsError {
pub fn new(kind: ListDeploymentTargetsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListDeploymentTargetsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDeploymentTargetsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_deployment_not_started_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::DeploymentNotStartedException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_deployment_instance_type_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::InvalidDeploymentInstanceTypeException(_)
)
}
pub fn is_invalid_instance_status_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::InvalidInstanceStatusException(_)
)
}
pub fn is_invalid_instance_type_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::InvalidInstanceTypeException(_)
)
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentTargetsErrorKind::InvalidNextTokenException(_)
)
}
}
impl std::error::Error for ListDeploymentTargetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDeploymentTargetsErrorKind::DeploymentDoesNotExistException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::DeploymentNotStartedException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::InvalidDeploymentInstanceTypeException(_inner) => {
Some(_inner)
}
ListDeploymentTargetsErrorKind::InvalidInstanceStatusException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::InvalidInstanceTypeException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListDeploymentTargetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidInstanceTypeException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidInstanceTypeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInstanceTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInstanceTypeException")?;
if let Some(inner_68) = &self.message {
{
write!(f, ": {}", inner_68)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidInstanceTypeException {}
pub mod invalid_instance_type_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidInstanceTypeException {
crate::error::InvalidInstanceTypeException {
message: self.message,
}
}
}
}
impl InvalidInstanceTypeException {
pub fn builder() -> crate::error::invalid_instance_type_exception::Builder {
crate::error::invalid_instance_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidInstanceStatusException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidInstanceStatusException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidInstanceStatusException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidInstanceStatusException")?;
if let Some(inner_69) = &self.message {
{
write!(f, ": {}", inner_69)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidInstanceStatusException {}
pub mod invalid_instance_status_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidInstanceStatusException {
crate::error::InvalidInstanceStatusException {
message: self.message,
}
}
}
}
impl InvalidInstanceStatusException {
pub fn builder() -> crate::error::invalid_instance_status_exception::Builder {
crate::error::invalid_instance_status_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentInstanceTypeException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentInstanceTypeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentInstanceTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentInstanceTypeException")?;
if let Some(inner_70) = &self.message {
{
write!(f, ": {}", inner_70)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentInstanceTypeException {}
pub mod invalid_deployment_instance_type_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentInstanceTypeException {
crate::error::InvalidDeploymentInstanceTypeException {
message: self.message,
}
}
}
}
impl InvalidDeploymentInstanceTypeException {
pub fn builder() -> crate::error::invalid_deployment_instance_type_exception::Builder {
crate::error::invalid_deployment_instance_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDeploymentsError {
pub kind: ListDeploymentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDeploymentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDeploymentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDeploymentsErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
InvalidDeploymentStatusException(crate::error::InvalidDeploymentStatusException),
InvalidExternalIdException(crate::error::InvalidExternalIdException),
InvalidInputException(crate::error::InvalidInputException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
InvalidTimeRangeException(crate::error::InvalidTimeRangeException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDeploymentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDeploymentsErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::DeploymentGroupDoesNotExistException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::DeploymentGroupNameRequiredException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidDeploymentGroupNameException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidDeploymentStatusException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidExternalIdException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::InvalidTimeRangeException(_inner) => _inner.fmt(f),
ListDeploymentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDeploymentsError {
fn code(&self) -> Option<&str> {
ListDeploymentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDeploymentsError {
pub fn new(kind: ListDeploymentsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListDeploymentsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDeploymentsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidDeploymentGroupNameException(_)
)
}
pub fn is_invalid_deployment_status_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidDeploymentStatusException(_)
)
}
pub fn is_invalid_external_id_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidExternalIdException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_invalid_time_range_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentsErrorKind::InvalidTimeRangeException(_)
)
}
}
impl std::error::Error for ListDeploymentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDeploymentsErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
ListDeploymentsErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
ListDeploymentsErrorKind::DeploymentGroupDoesNotExistException(_inner) => Some(_inner),
ListDeploymentsErrorKind::DeploymentGroupNameRequiredException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidDeploymentGroupNameException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidDeploymentStatusException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidExternalIdException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidInputException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListDeploymentsErrorKind::InvalidTimeRangeException(_inner) => Some(_inner),
ListDeploymentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTimeRangeException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTimeRangeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTimeRangeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTimeRangeException")?;
if let Some(inner_71) = &self.message {
{
write!(f, ": {}", inner_71)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTimeRangeException {}
pub mod invalid_time_range_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTimeRangeException {
crate::error::InvalidTimeRangeException {
message: self.message,
}
}
}
}
impl InvalidTimeRangeException {
pub fn builder() -> crate::error::invalid_time_range_exception::Builder {
crate::error::invalid_time_range_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidExternalIdException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidExternalIdException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidExternalIdException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidExternalIdException")?;
if let Some(inner_72) = &self.message {
{
write!(f, ": {}", inner_72)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidExternalIdException {}
pub mod invalid_external_id_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidExternalIdException {
crate::error::InvalidExternalIdException {
message: self.message,
}
}
}
}
impl InvalidExternalIdException {
pub fn builder() -> crate::error::invalid_external_id_exception::Builder {
crate::error::invalid_external_id_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentStatusException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentStatusException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentStatusException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentStatusException")?;
if let Some(inner_73) = &self.message {
{
write!(f, ": {}", inner_73)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentStatusException {}
pub mod invalid_deployment_status_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentStatusException {
crate::error::InvalidDeploymentStatusException {
message: self.message,
}
}
}
}
impl InvalidDeploymentStatusException {
pub fn builder() -> crate::error::invalid_deployment_status_exception::Builder {
crate::error::invalid_deployment_status_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDeploymentInstancesError {
pub kind: ListDeploymentInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDeploymentInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDeploymentInstancesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDeploymentInstancesErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
DeploymentNotStartedException(crate::error::DeploymentNotStartedException),
InvalidComputePlatformException(crate::error::InvalidComputePlatformException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidDeploymentInstanceTypeException(crate::error::InvalidDeploymentInstanceTypeException),
InvalidInstanceStatusException(crate::error::InvalidInstanceStatusException),
InvalidInstanceTypeException(crate::error::InvalidInstanceTypeException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
InvalidTargetFilterNameException(crate::error::InvalidTargetFilterNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDeploymentInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDeploymentInstancesErrorKind::DeploymentDoesNotExistException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::DeploymentIdRequiredException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::DeploymentNotStartedException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::InvalidComputePlatformException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
ListDeploymentInstancesErrorKind::InvalidDeploymentInstanceTypeException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::InvalidInstanceStatusException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::InvalidInstanceTypeException(_inner) => _inner.fmt(f),
ListDeploymentInstancesErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListDeploymentInstancesErrorKind::InvalidTargetFilterNameException(_inner) => {
_inner.fmt(f)
}
ListDeploymentInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDeploymentInstancesError {
fn code(&self) -> Option<&str> {
ListDeploymentInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDeploymentInstancesError {
pub fn new(kind: ListDeploymentInstancesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListDeploymentInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDeploymentInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_deployment_not_started_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::DeploymentNotStartedException(_)
)
}
pub fn is_invalid_compute_platform_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidComputePlatformException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_deployment_instance_type_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidDeploymentInstanceTypeException(_)
)
}
pub fn is_invalid_instance_status_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidInstanceStatusException(_)
)
}
pub fn is_invalid_instance_type_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidInstanceTypeException(_)
)
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_invalid_target_filter_name_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentInstancesErrorKind::InvalidTargetFilterNameException(_)
)
}
}
impl std::error::Error for ListDeploymentInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDeploymentInstancesErrorKind::DeploymentDoesNotExistException(_inner) => {
Some(_inner)
}
ListDeploymentInstancesErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
ListDeploymentInstancesErrorKind::DeploymentNotStartedException(_inner) => Some(_inner),
ListDeploymentInstancesErrorKind::InvalidComputePlatformException(_inner) => {
Some(_inner)
}
ListDeploymentInstancesErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
ListDeploymentInstancesErrorKind::InvalidDeploymentInstanceTypeException(_inner) => {
Some(_inner)
}
ListDeploymentInstancesErrorKind::InvalidInstanceStatusException(_inner) => {
Some(_inner)
}
ListDeploymentInstancesErrorKind::InvalidInstanceTypeException(_inner) => Some(_inner),
ListDeploymentInstancesErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListDeploymentInstancesErrorKind::InvalidTargetFilterNameException(_inner) => {
Some(_inner)
}
ListDeploymentInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTargetFilterNameException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTargetFilterNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTargetFilterNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTargetFilterNameException")?;
if let Some(inner_74) = &self.message {
{
write!(f, ": {}", inner_74)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTargetFilterNameException {}
pub mod invalid_target_filter_name_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTargetFilterNameException {
crate::error::InvalidTargetFilterNameException {
message: self.message,
}
}
}
}
impl InvalidTargetFilterNameException {
pub fn builder() -> crate::error::invalid_target_filter_name_exception::Builder {
crate::error::invalid_target_filter_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidComputePlatformException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidComputePlatformException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidComputePlatformException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidComputePlatformException")?;
if let Some(inner_75) = &self.message {
{
write!(f, ": {}", inner_75)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidComputePlatformException {}
pub mod invalid_compute_platform_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidComputePlatformException {
crate::error::InvalidComputePlatformException {
message: self.message,
}
}
}
}
impl InvalidComputePlatformException {
pub fn builder() -> crate::error::invalid_compute_platform_exception::Builder {
crate::error::invalid_compute_platform_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDeploymentGroupsError {
pub kind: ListDeploymentGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDeploymentGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDeploymentGroupsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDeploymentGroupsErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDeploymentGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDeploymentGroupsErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
ListDeploymentGroupsErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
ListDeploymentGroupsErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
ListDeploymentGroupsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListDeploymentGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDeploymentGroupsError {
fn code(&self) -> Option<&str> {
ListDeploymentGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDeploymentGroupsError {
pub fn new(kind: ListDeploymentGroupsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListDeploymentGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDeploymentGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentGroupsErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentGroupsErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentGroupsErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentGroupsErrorKind::InvalidNextTokenException(_)
)
}
}
impl std::error::Error for ListDeploymentGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDeploymentGroupsErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
ListDeploymentGroupsErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
ListDeploymentGroupsErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
ListDeploymentGroupsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListDeploymentGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListDeploymentConfigsError {
pub kind: ListDeploymentConfigsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListDeploymentConfigsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListDeploymentConfigsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListDeploymentConfigsErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListDeploymentConfigsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListDeploymentConfigsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListDeploymentConfigsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListDeploymentConfigsError {
fn code(&self) -> Option<&str> {
ListDeploymentConfigsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListDeploymentConfigsError {
pub fn new(kind: ListDeploymentConfigsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListDeploymentConfigsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListDeploymentConfigsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListDeploymentConfigsErrorKind::InvalidNextTokenException(_)
)
}
}
impl std::error::Error for ListDeploymentConfigsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListDeploymentConfigsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListDeploymentConfigsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListApplicationsError {
pub kind: ListApplicationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListApplicationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListApplicationsErrorKind {
InvalidNextTokenException(crate::error::InvalidNextTokenException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListApplicationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListApplicationsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListApplicationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListApplicationsError {
fn code(&self) -> Option<&str> {
ListApplicationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListApplicationsError {
pub fn new(kind: ListApplicationsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationsErrorKind::InvalidNextTokenException(_)
)
}
}
impl std::error::Error for ListApplicationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListApplicationsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListApplicationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListApplicationRevisionsError {
pub kind: ListApplicationRevisionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListApplicationRevisionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListApplicationRevisionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListApplicationRevisionsErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
BucketNameFilterRequiredException(crate::error::BucketNameFilterRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidBucketNameFilterException(crate::error::InvalidBucketNameFilterException),
InvalidDeployedStateFilterException(crate::error::InvalidDeployedStateFilterException),
InvalidKeyPrefixFilterException(crate::error::InvalidKeyPrefixFilterException),
InvalidNextTokenException(crate::error::InvalidNextTokenException),
InvalidSortByException(crate::error::InvalidSortByException),
InvalidSortOrderException(crate::error::InvalidSortOrderException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListApplicationRevisionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListApplicationRevisionsErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::BucketNameFilterRequiredException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::InvalidBucketNameFilterException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::InvalidDeployedStateFilterException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::InvalidKeyPrefixFilterException(_inner) => {
_inner.fmt(f)
}
ListApplicationRevisionsErrorKind::InvalidNextTokenException(_inner) => _inner.fmt(f),
ListApplicationRevisionsErrorKind::InvalidSortByException(_inner) => _inner.fmt(f),
ListApplicationRevisionsErrorKind::InvalidSortOrderException(_inner) => _inner.fmt(f),
ListApplicationRevisionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListApplicationRevisionsError {
fn code(&self) -> Option<&str> {
ListApplicationRevisionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListApplicationRevisionsError {
pub fn new(kind: ListApplicationRevisionsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListApplicationRevisionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListApplicationRevisionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_bucket_name_filter_required_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::BucketNameFilterRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_bucket_name_filter_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidBucketNameFilterException(_)
)
}
pub fn is_invalid_deployed_state_filter_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidDeployedStateFilterException(_)
)
}
pub fn is_invalid_key_prefix_filter_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidKeyPrefixFilterException(_)
)
}
pub fn is_invalid_next_token_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidNextTokenException(_)
)
}
pub fn is_invalid_sort_by_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidSortByException(_)
)
}
pub fn is_invalid_sort_order_exception(&self) -> bool {
matches!(
&self.kind,
ListApplicationRevisionsErrorKind::InvalidSortOrderException(_)
)
}
}
impl std::error::Error for ListApplicationRevisionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListApplicationRevisionsErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::BucketNameFilterRequiredException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::InvalidApplicationNameException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::InvalidBucketNameFilterException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::InvalidDeployedStateFilterException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::InvalidKeyPrefixFilterException(_inner) => {
Some(_inner)
}
ListApplicationRevisionsErrorKind::InvalidNextTokenException(_inner) => Some(_inner),
ListApplicationRevisionsErrorKind::InvalidSortByException(_inner) => Some(_inner),
ListApplicationRevisionsErrorKind::InvalidSortOrderException(_inner) => Some(_inner),
ListApplicationRevisionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSortOrderException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidSortOrderException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidSortOrderException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidSortOrderException")?;
if let Some(inner_76) = &self.message {
{
write!(f, ": {}", inner_76)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidSortOrderException {}
pub mod invalid_sort_order_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidSortOrderException {
crate::error::InvalidSortOrderException {
message: self.message,
}
}
}
}
impl InvalidSortOrderException {
pub fn builder() -> crate::error::invalid_sort_order_exception::Builder {
crate::error::invalid_sort_order_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSortByException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidSortByException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidSortByException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidSortByException")?;
if let Some(inner_77) = &self.message {
{
write!(f, ": {}", inner_77)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidSortByException {}
pub mod invalid_sort_by_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidSortByException {
crate::error::InvalidSortByException {
message: self.message,
}
}
}
}
impl InvalidSortByException {
pub fn builder() -> crate::error::invalid_sort_by_exception::Builder {
crate::error::invalid_sort_by_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidKeyPrefixFilterException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidKeyPrefixFilterException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidKeyPrefixFilterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidKeyPrefixFilterException")?;
if let Some(inner_78) = &self.message {
{
write!(f, ": {}", inner_78)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidKeyPrefixFilterException {}
pub mod invalid_key_prefix_filter_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidKeyPrefixFilterException {
crate::error::InvalidKeyPrefixFilterException {
message: self.message,
}
}
}
}
impl InvalidKeyPrefixFilterException {
pub fn builder() -> crate::error::invalid_key_prefix_filter_exception::Builder {
crate::error::invalid_key_prefix_filter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeployedStateFilterException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeployedStateFilterException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeployedStateFilterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeployedStateFilterException")?;
if let Some(inner_79) = &self.message {
{
write!(f, ": {}", inner_79)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeployedStateFilterException {}
pub mod invalid_deployed_state_filter_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeployedStateFilterException {
crate::error::InvalidDeployedStateFilterException {
message: self.message,
}
}
}
}
impl InvalidDeployedStateFilterException {
pub fn builder() -> crate::error::invalid_deployed_state_filter_exception::Builder {
crate::error::invalid_deployed_state_filter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidBucketNameFilterException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidBucketNameFilterException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidBucketNameFilterException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidBucketNameFilterException")?;
if let Some(inner_80) = &self.message {
{
write!(f, ": {}", inner_80)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidBucketNameFilterException {}
pub mod invalid_bucket_name_filter_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidBucketNameFilterException {
crate::error::InvalidBucketNameFilterException {
message: self.message,
}
}
}
}
impl InvalidBucketNameFilterException {
pub fn builder() -> crate::error::invalid_bucket_name_filter_exception::Builder {
crate::error::invalid_bucket_name_filter_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BucketNameFilterRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl BucketNameFilterRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BucketNameFilterRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BucketNameFilterRequiredException")?;
if let Some(inner_81) = &self.message {
{
write!(f, ": {}", inner_81)?;
}
}
Ok(())
}
}
impl std::error::Error for BucketNameFilterRequiredException {}
pub mod bucket_name_filter_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::BucketNameFilterRequiredException {
crate::error::BucketNameFilterRequiredException {
message: self.message,
}
}
}
}
impl BucketNameFilterRequiredException {
pub fn builder() -> crate::error::bucket_name_filter_required_exception::Builder {
crate::error::bucket_name_filter_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetOnPremisesInstanceError {
pub kind: GetOnPremisesInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetOnPremisesInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetOnPremisesInstanceErrorKind {
InstanceNameRequiredException(crate::error::InstanceNameRequiredException),
InstanceNotRegisteredException(crate::error::InstanceNotRegisteredException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetOnPremisesInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetOnPremisesInstanceErrorKind::InstanceNameRequiredException(_inner) => _inner.fmt(f),
GetOnPremisesInstanceErrorKind::InstanceNotRegisteredException(_inner) => _inner.fmt(f),
GetOnPremisesInstanceErrorKind::InvalidInstanceNameException(_inner) => _inner.fmt(f),
GetOnPremisesInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetOnPremisesInstanceError {
fn code(&self) -> Option<&str> {
GetOnPremisesInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetOnPremisesInstanceError {
pub fn new(kind: GetOnPremisesInstanceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_instance_name_required_exception(&self) -> bool {
matches!(
&self.kind,
GetOnPremisesInstanceErrorKind::InstanceNameRequiredException(_)
)
}
pub fn is_instance_not_registered_exception(&self) -> bool {
matches!(
&self.kind,
GetOnPremisesInstanceErrorKind::InstanceNotRegisteredException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
GetOnPremisesInstanceErrorKind::InvalidInstanceNameException(_)
)
}
}
impl std::error::Error for GetOnPremisesInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetOnPremisesInstanceErrorKind::InstanceNameRequiredException(_inner) => Some(_inner),
GetOnPremisesInstanceErrorKind::InstanceNotRegisteredException(_inner) => Some(_inner),
GetOnPremisesInstanceErrorKind::InvalidInstanceNameException(_inner) => Some(_inner),
GetOnPremisesInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDeploymentTargetError {
pub kind: GetDeploymentTargetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDeploymentTargetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDeploymentTargetErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDeploymentTargetErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
DeploymentNotStartedException(crate::error::DeploymentNotStartedException),
DeploymentTargetDoesNotExistException(crate::error::DeploymentTargetDoesNotExistException),
DeploymentTargetIdRequiredException(crate::error::DeploymentTargetIdRequiredException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidDeploymentTargetIdException(crate::error::InvalidDeploymentTargetIdException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDeploymentTargetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDeploymentTargetErrorKind::DeploymentDoesNotExistException(_inner) => _inner.fmt(f),
GetDeploymentTargetErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
GetDeploymentTargetErrorKind::DeploymentNotStartedException(_inner) => _inner.fmt(f),
GetDeploymentTargetErrorKind::DeploymentTargetDoesNotExistException(_inner) => {
_inner.fmt(f)
}
GetDeploymentTargetErrorKind::DeploymentTargetIdRequiredException(_inner) => {
_inner.fmt(f)
}
GetDeploymentTargetErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
GetDeploymentTargetErrorKind::InvalidDeploymentTargetIdException(_inner) => {
_inner.fmt(f)
}
GetDeploymentTargetErrorKind::InvalidInstanceNameException(_inner) => _inner.fmt(f),
GetDeploymentTargetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDeploymentTargetError {
fn code(&self) -> Option<&str> {
GetDeploymentTargetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDeploymentTargetError {
pub fn new(kind: GetDeploymentTargetErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetDeploymentTargetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDeploymentTargetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_deployment_not_started_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::DeploymentNotStartedException(_)
)
}
pub fn is_deployment_target_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::DeploymentTargetDoesNotExistException(_)
)
}
pub fn is_deployment_target_id_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::DeploymentTargetIdRequiredException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_deployment_target_id_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::InvalidDeploymentTargetIdException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentTargetErrorKind::InvalidInstanceNameException(_)
)
}
}
impl std::error::Error for GetDeploymentTargetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDeploymentTargetErrorKind::DeploymentDoesNotExistException(_inner) => Some(_inner),
GetDeploymentTargetErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
GetDeploymentTargetErrorKind::DeploymentNotStartedException(_inner) => Some(_inner),
GetDeploymentTargetErrorKind::DeploymentTargetDoesNotExistException(_inner) => {
Some(_inner)
}
GetDeploymentTargetErrorKind::DeploymentTargetIdRequiredException(_inner) => {
Some(_inner)
}
GetDeploymentTargetErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
GetDeploymentTargetErrorKind::InvalidDeploymentTargetIdException(_inner) => {
Some(_inner)
}
GetDeploymentTargetErrorKind::InvalidInstanceNameException(_inner) => Some(_inner),
GetDeploymentTargetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentTargetIdException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentTargetIdException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentTargetIdException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentTargetIdException")?;
if let Some(inner_82) = &self.message {
{
write!(f, ": {}", inner_82)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentTargetIdException {}
pub mod invalid_deployment_target_id_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentTargetIdException {
crate::error::InvalidDeploymentTargetIdException {
message: self.message,
}
}
}
}
impl InvalidDeploymentTargetIdException {
pub fn builder() -> crate::error::invalid_deployment_target_id_exception::Builder {
crate::error::invalid_deployment_target_id_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentTargetIdRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentTargetIdRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentTargetIdRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentTargetIdRequiredException")?;
if let Some(inner_83) = &self.message {
{
write!(f, ": {}", inner_83)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentTargetIdRequiredException {}
pub mod deployment_target_id_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentTargetIdRequiredException {
crate::error::DeploymentTargetIdRequiredException {
message: self.message,
}
}
}
}
impl DeploymentTargetIdRequiredException {
pub fn builder() -> crate::error::deployment_target_id_required_exception::Builder {
crate::error::deployment_target_id_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentTargetDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentTargetDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentTargetDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentTargetDoesNotExistException")?;
if let Some(inner_84) = &self.message {
{
write!(f, ": {}", inner_84)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentTargetDoesNotExistException {}
pub mod deployment_target_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentTargetDoesNotExistException {
crate::error::DeploymentTargetDoesNotExistException {
message: self.message,
}
}
}
}
impl DeploymentTargetDoesNotExistException {
pub fn builder() -> crate::error::deployment_target_does_not_exist_exception::Builder {
crate::error::deployment_target_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDeploymentInstanceError {
pub kind: GetDeploymentInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDeploymentInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDeploymentInstanceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDeploymentInstanceErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
#[deprecated(
note = "This exception is deprecated, use DeploymentTargetDoesNotExistException instead."
)]
InstanceDoesNotExistException(crate::error::InstanceDoesNotExistException),
#[deprecated(
note = "This exception is deprecated, use DeploymentTargetIdRequiredException instead."
)]
InstanceIdRequiredException(crate::error::InstanceIdRequiredException),
InvalidComputePlatformException(crate::error::InvalidComputePlatformException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDeploymentInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDeploymentInstanceErrorKind::DeploymentDoesNotExistException(_inner) => {
_inner.fmt(f)
}
GetDeploymentInstanceErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
GetDeploymentInstanceErrorKind::InstanceDoesNotExistException(_inner) => _inner.fmt(f),
GetDeploymentInstanceErrorKind::InstanceIdRequiredException(_inner) => _inner.fmt(f),
GetDeploymentInstanceErrorKind::InvalidComputePlatformException(_inner) => {
_inner.fmt(f)
}
GetDeploymentInstanceErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
GetDeploymentInstanceErrorKind::InvalidInstanceNameException(_inner) => _inner.fmt(f),
GetDeploymentInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDeploymentInstanceError {
fn code(&self) -> Option<&str> {
GetDeploymentInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDeploymentInstanceError {
pub fn new(kind: GetDeploymentInstanceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetDeploymentInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDeploymentInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_instance_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::InstanceDoesNotExistException(_)
)
}
pub fn is_instance_id_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::InstanceIdRequiredException(_)
)
}
pub fn is_invalid_compute_platform_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::InvalidComputePlatformException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentInstanceErrorKind::InvalidInstanceNameException(_)
)
}
}
impl std::error::Error for GetDeploymentInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDeploymentInstanceErrorKind::DeploymentDoesNotExistException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::InstanceDoesNotExistException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::InstanceIdRequiredException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::InvalidComputePlatformException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::InvalidInstanceNameException(_inner) => Some(_inner),
GetDeploymentInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[deprecated(
note = "This exception is deprecated, use DeploymentTargetIdRequiredException instead."
)]
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceIdRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InstanceIdRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceIdRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceIdRequiredException")?;
if let Some(inner_85) = &self.message {
{
write!(f, ": {}", inner_85)?;
}
}
Ok(())
}
}
impl std::error::Error for InstanceIdRequiredException {}
pub mod instance_id_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InstanceIdRequiredException {
crate::error::InstanceIdRequiredException {
message: self.message,
}
}
}
}
impl InstanceIdRequiredException {
pub fn builder() -> crate::error::instance_id_required_exception::Builder {
crate::error::instance_id_required_exception::Builder::default()
}
}
#[deprecated(
note = "This exception is deprecated, use DeploymentTargetDoesNotExistException instead."
)]
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InstanceDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InstanceDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InstanceDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InstanceDoesNotExistException")?;
if let Some(inner_86) = &self.message {
{
write!(f, ": {}", inner_86)?;
}
}
Ok(())
}
}
impl std::error::Error for InstanceDoesNotExistException {}
pub mod instance_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InstanceDoesNotExistException {
crate::error::InstanceDoesNotExistException {
message: self.message,
}
}
}
}
impl InstanceDoesNotExistException {
pub fn builder() -> crate::error::instance_does_not_exist_exception::Builder {
crate::error::instance_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDeploymentGroupError {
pub kind: GetDeploymentGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDeploymentGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDeploymentGroupErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDeploymentGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDeploymentGroupErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
GetDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
GetDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
_inner.fmt(f)
}
GetDeploymentGroupErrorKind::DeploymentGroupDoesNotExistException(_inner) => {
_inner.fmt(f)
}
GetDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
_inner.fmt(f)
}
GetDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
GetDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
_inner.fmt(f)
}
GetDeploymentGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDeploymentGroupError {
fn code(&self) -> Option<&str> {
GetDeploymentGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDeploymentGroupError {
pub fn new(kind: GetDeploymentGroupErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_)
)
}
}
impl std::error::Error for GetDeploymentGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDeploymentGroupErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
GetDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
GetDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
Some(_inner)
}
GetDeploymentGroupErrorKind::DeploymentGroupDoesNotExistException(_inner) => {
Some(_inner)
}
GetDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
Some(_inner)
}
GetDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
GetDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
Some(_inner)
}
GetDeploymentGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDeploymentConfigError {
pub kind: GetDeploymentConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDeploymentConfigError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDeploymentConfigErrorKind {
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentConfigNameRequiredException(crate::error::DeploymentConfigNameRequiredException),
InvalidComputePlatformException(crate::error::InvalidComputePlatformException),
InvalidDeploymentConfigNameException(crate::error::InvalidDeploymentConfigNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDeploymentConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDeploymentConfigErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
_inner.fmt(f)
}
GetDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_inner) => {
_inner.fmt(f)
}
GetDeploymentConfigErrorKind::InvalidComputePlatformException(_inner) => _inner.fmt(f),
GetDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_inner) => {
_inner.fmt(f)
}
GetDeploymentConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDeploymentConfigError {
fn code(&self) -> Option<&str> {
GetDeploymentConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDeploymentConfigError {
pub fn new(kind: GetDeploymentConfigErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentConfigErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_config_name_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_)
)
}
pub fn is_invalid_compute_platform_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentConfigErrorKind::InvalidComputePlatformException(_)
)
}
pub fn is_invalid_deployment_config_name_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_)
)
}
}
impl std::error::Error for GetDeploymentConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDeploymentConfigErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
Some(_inner)
}
GetDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_inner) => {
Some(_inner)
}
GetDeploymentConfigErrorKind::InvalidComputePlatformException(_inner) => Some(_inner),
GetDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_inner) => {
Some(_inner)
}
GetDeploymentConfigErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentConfigNameRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentConfigNameRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentConfigNameRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentConfigNameRequiredException")?;
if let Some(inner_87) = &self.message {
{
write!(f, ": {}", inner_87)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentConfigNameRequiredException {}
pub mod deployment_config_name_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentConfigNameRequiredException {
crate::error::DeploymentConfigNameRequiredException {
message: self.message,
}
}
}
}
impl DeploymentConfigNameRequiredException {
pub fn builder() -> crate::error::deployment_config_name_required_exception::Builder {
crate::error::deployment_config_name_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetDeploymentError {
pub kind: GetDeploymentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetDeploymentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetDeploymentErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetDeploymentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetDeploymentErrorKind::DeploymentDoesNotExistException(_inner) => _inner.fmt(f),
GetDeploymentErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
GetDeploymentErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
GetDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetDeploymentError {
fn code(&self) -> Option<&str> {
GetDeploymentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetDeploymentError {
pub fn new(kind: GetDeploymentErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
GetDeploymentErrorKind::InvalidDeploymentIdException(_)
)
}
}
impl std::error::Error for GetDeploymentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetDeploymentErrorKind::DeploymentDoesNotExistException(_inner) => Some(_inner),
GetDeploymentErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
GetDeploymentErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
GetDeploymentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetApplicationRevisionError {
pub kind: GetApplicationRevisionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetApplicationRevisionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetApplicationRevisionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetApplicationRevisionErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidRevisionException(crate::error::InvalidRevisionException),
RevisionDoesNotExistException(crate::error::RevisionDoesNotExistException),
RevisionRequiredException(crate::error::RevisionRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetApplicationRevisionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetApplicationRevisionErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
GetApplicationRevisionErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
GetApplicationRevisionErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
GetApplicationRevisionErrorKind::InvalidRevisionException(_inner) => _inner.fmt(f),
GetApplicationRevisionErrorKind::RevisionDoesNotExistException(_inner) => _inner.fmt(f),
GetApplicationRevisionErrorKind::RevisionRequiredException(_inner) => _inner.fmt(f),
GetApplicationRevisionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetApplicationRevisionError {
fn code(&self) -> Option<&str> {
GetApplicationRevisionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetApplicationRevisionError {
pub fn new(kind: GetApplicationRevisionErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetApplicationRevisionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetApplicationRevisionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationRevisionErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationRevisionErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationRevisionErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_revision_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationRevisionErrorKind::InvalidRevisionException(_)
)
}
pub fn is_revision_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationRevisionErrorKind::RevisionDoesNotExistException(_)
)
}
pub fn is_revision_required_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationRevisionErrorKind::RevisionRequiredException(_)
)
}
}
impl std::error::Error for GetApplicationRevisionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetApplicationRevisionErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
GetApplicationRevisionErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
GetApplicationRevisionErrorKind::InvalidApplicationNameException(_inner) => {
Some(_inner)
}
GetApplicationRevisionErrorKind::InvalidRevisionException(_inner) => Some(_inner),
GetApplicationRevisionErrorKind::RevisionDoesNotExistException(_inner) => Some(_inner),
GetApplicationRevisionErrorKind::RevisionRequiredException(_inner) => Some(_inner),
GetApplicationRevisionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RevisionDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl RevisionDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RevisionDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RevisionDoesNotExistException")?;
if let Some(inner_88) = &self.message {
{
write!(f, ": {}", inner_88)?;
}
}
Ok(())
}
}
impl std::error::Error for RevisionDoesNotExistException {}
pub mod revision_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::RevisionDoesNotExistException {
crate::error::RevisionDoesNotExistException {
message: self.message,
}
}
}
}
impl RevisionDoesNotExistException {
pub fn builder() -> crate::error::revision_does_not_exist_exception::Builder {
crate::error::revision_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetApplicationError {
pub kind: GetApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetApplicationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetApplicationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetApplicationErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetApplicationErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
GetApplicationErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
GetApplicationErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
GetApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetApplicationError {
fn code(&self) -> Option<&str> {
GetApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetApplicationError {
pub fn new(kind: GetApplicationErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: GetApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
GetApplicationErrorKind::InvalidApplicationNameException(_)
)
}
}
impl std::error::Error for GetApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetApplicationErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
GetApplicationErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
GetApplicationErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
GetApplicationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeregisterOnPremisesInstanceError {
pub kind: DeregisterOnPremisesInstanceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeregisterOnPremisesInstanceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeregisterOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeregisterOnPremisesInstanceErrorKind {
InstanceNameRequiredException(crate::error::InstanceNameRequiredException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeregisterOnPremisesInstanceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeregisterOnPremisesInstanceErrorKind::InstanceNameRequiredException(_inner) => {
_inner.fmt(f)
}
DeregisterOnPremisesInstanceErrorKind::InvalidInstanceNameException(_inner) => {
_inner.fmt(f)
}
DeregisterOnPremisesInstanceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeregisterOnPremisesInstanceError {
fn code(&self) -> Option<&str> {
DeregisterOnPremisesInstanceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeregisterOnPremisesInstanceError {
pub fn new(kind: DeregisterOnPremisesInstanceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeregisterOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeregisterOnPremisesInstanceErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_instance_name_required_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterOnPremisesInstanceErrorKind::InstanceNameRequiredException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterOnPremisesInstanceErrorKind::InvalidInstanceNameException(_)
)
}
}
impl std::error::Error for DeregisterOnPremisesInstanceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeregisterOnPremisesInstanceErrorKind::InstanceNameRequiredException(_inner) => {
Some(_inner)
}
DeregisterOnPremisesInstanceErrorKind::InvalidInstanceNameException(_inner) => {
Some(_inner)
}
DeregisterOnPremisesInstanceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteResourcesByExternalIdError {
pub kind: DeleteResourcesByExternalIdErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteResourcesByExternalIdError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteResourcesByExternalIdErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteResourcesByExternalIdErrorKind {
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteResourcesByExternalIdError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteResourcesByExternalIdErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteResourcesByExternalIdError {
fn code(&self) -> Option<&str> {
DeleteResourcesByExternalIdError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteResourcesByExternalIdError {
pub fn new(kind: DeleteResourcesByExternalIdErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteResourcesByExternalIdErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteResourcesByExternalIdErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
}
impl std::error::Error for DeleteResourcesByExternalIdError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteResourcesByExternalIdErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteGitHubAccountTokenError {
pub kind: DeleteGitHubAccountTokenErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteGitHubAccountTokenError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteGitHubAccountTokenErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteGitHubAccountTokenErrorKind {
GitHubAccountTokenDoesNotExistException(crate::error::GitHubAccountTokenDoesNotExistException),
GitHubAccountTokenNameRequiredException(crate::error::GitHubAccountTokenNameRequiredException),
InvalidGitHubAccountTokenNameException(crate::error::InvalidGitHubAccountTokenNameException),
OperationNotSupportedException(crate::error::OperationNotSupportedException),
ResourceValidationException(crate::error::ResourceValidationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteGitHubAccountTokenError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteGitHubAccountTokenErrorKind::GitHubAccountTokenDoesNotExistException(_inner) => {
_inner.fmt(f)
}
DeleteGitHubAccountTokenErrorKind::GitHubAccountTokenNameRequiredException(_inner) => {
_inner.fmt(f)
}
DeleteGitHubAccountTokenErrorKind::InvalidGitHubAccountTokenNameException(_inner) => {
_inner.fmt(f)
}
DeleteGitHubAccountTokenErrorKind::OperationNotSupportedException(_inner) => {
_inner.fmt(f)
}
DeleteGitHubAccountTokenErrorKind::ResourceValidationException(_inner) => _inner.fmt(f),
DeleteGitHubAccountTokenErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteGitHubAccountTokenError {
fn code(&self) -> Option<&str> {
DeleteGitHubAccountTokenError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteGitHubAccountTokenError {
pub fn new(kind: DeleteGitHubAccountTokenErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteGitHubAccountTokenErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteGitHubAccountTokenErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_git_hub_account_token_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGitHubAccountTokenErrorKind::GitHubAccountTokenDoesNotExistException(_)
)
}
pub fn is_git_hub_account_token_name_required_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGitHubAccountTokenErrorKind::GitHubAccountTokenNameRequiredException(_)
)
}
pub fn is_invalid_git_hub_account_token_name_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGitHubAccountTokenErrorKind::InvalidGitHubAccountTokenNameException(_)
)
}
pub fn is_operation_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGitHubAccountTokenErrorKind::OperationNotSupportedException(_)
)
}
pub fn is_resource_validation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGitHubAccountTokenErrorKind::ResourceValidationException(_)
)
}
}
impl std::error::Error for DeleteGitHubAccountTokenError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteGitHubAccountTokenErrorKind::GitHubAccountTokenDoesNotExistException(_inner) => {
Some(_inner)
}
DeleteGitHubAccountTokenErrorKind::GitHubAccountTokenNameRequiredException(_inner) => {
Some(_inner)
}
DeleteGitHubAccountTokenErrorKind::InvalidGitHubAccountTokenNameException(_inner) => {
Some(_inner)
}
DeleteGitHubAccountTokenErrorKind::OperationNotSupportedException(_inner) => {
Some(_inner)
}
DeleteGitHubAccountTokenErrorKind::ResourceValidationException(_inner) => Some(_inner),
DeleteGitHubAccountTokenErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidGitHubAccountTokenNameException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidGitHubAccountTokenNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidGitHubAccountTokenNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidGitHubAccountTokenNameException")?;
if let Some(inner_89) = &self.message {
{
write!(f, ": {}", inner_89)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidGitHubAccountTokenNameException {}
pub mod invalid_git_hub_account_token_name_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidGitHubAccountTokenNameException {
crate::error::InvalidGitHubAccountTokenNameException {
message: self.message,
}
}
}
}
impl InvalidGitHubAccountTokenNameException {
pub fn builder() -> crate::error::invalid_git_hub_account_token_name_exception::Builder {
crate::error::invalid_git_hub_account_token_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GitHubAccountTokenNameRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl GitHubAccountTokenNameRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GitHubAccountTokenNameRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GitHubAccountTokenNameRequiredException")?;
if let Some(inner_90) = &self.message {
{
write!(f, ": {}", inner_90)?;
}
}
Ok(())
}
}
impl std::error::Error for GitHubAccountTokenNameRequiredException {}
pub mod git_hub_account_token_name_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::GitHubAccountTokenNameRequiredException {
crate::error::GitHubAccountTokenNameRequiredException {
message: self.message,
}
}
}
}
impl GitHubAccountTokenNameRequiredException {
pub fn builder() -> crate::error::git_hub_account_token_name_required_exception::Builder {
crate::error::git_hub_account_token_name_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GitHubAccountTokenDoesNotExistException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl GitHubAccountTokenDoesNotExistException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GitHubAccountTokenDoesNotExistException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GitHubAccountTokenDoesNotExistException")?;
if let Some(inner_91) = &self.message {
{
write!(f, ": {}", inner_91)?;
}
}
Ok(())
}
}
impl std::error::Error for GitHubAccountTokenDoesNotExistException {}
pub mod git_hub_account_token_does_not_exist_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::GitHubAccountTokenDoesNotExistException {
crate::error::GitHubAccountTokenDoesNotExistException {
message: self.message,
}
}
}
}
impl GitHubAccountTokenDoesNotExistException {
pub fn builder() -> crate::error::git_hub_account_token_does_not_exist_exception::Builder {
crate::error::git_hub_account_token_does_not_exist_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDeploymentGroupError {
pub kind: DeleteDeploymentGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteDeploymentGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDeploymentGroupErrorKind {
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
InvalidRoleException(crate::error::InvalidRoleException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteDeploymentGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentGroupErrorKind::InvalidRoleException(_inner) => _inner.fmt(f),
DeleteDeploymentGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDeploymentGroupError {
fn code(&self) -> Option<&str> {
DeleteDeploymentGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDeploymentGroupError {
pub fn new(kind: DeleteDeploymentGroupErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentGroupErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentGroupErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_)
)
}
pub fn is_invalid_role_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentGroupErrorKind::InvalidRoleException(_)
)
}
}
impl std::error::Error for DeleteDeploymentGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
DeleteDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
Some(_inner)
}
DeleteDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
DeleteDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
Some(_inner)
}
DeleteDeploymentGroupErrorKind::InvalidRoleException(_inner) => Some(_inner),
DeleteDeploymentGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteDeploymentConfigError {
pub kind: DeleteDeploymentConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteDeploymentConfigError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteDeploymentConfigErrorKind {
DeploymentConfigInUseException(crate::error::DeploymentConfigInUseException),
DeploymentConfigNameRequiredException(crate::error::DeploymentConfigNameRequiredException),
InvalidDeploymentConfigNameException(crate::error::InvalidDeploymentConfigNameException),
InvalidOperationException(crate::error::InvalidOperationException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteDeploymentConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteDeploymentConfigErrorKind::DeploymentConfigInUseException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_inner) => {
_inner.fmt(f)
}
DeleteDeploymentConfigErrorKind::InvalidOperationException(_inner) => _inner.fmt(f),
DeleteDeploymentConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteDeploymentConfigError {
fn code(&self) -> Option<&str> {
DeleteDeploymentConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteDeploymentConfigError {
pub fn new(kind: DeleteDeploymentConfigErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_config_in_use_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentConfigErrorKind::DeploymentConfigInUseException(_)
)
}
pub fn is_deployment_config_name_required_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_)
)
}
pub fn is_invalid_deployment_config_name_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_)
)
}
pub fn is_invalid_operation_exception(&self) -> bool {
matches!(
&self.kind,
DeleteDeploymentConfigErrorKind::InvalidOperationException(_)
)
}
}
impl std::error::Error for DeleteDeploymentConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteDeploymentConfigErrorKind::DeploymentConfigInUseException(_inner) => Some(_inner),
DeleteDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_inner) => {
Some(_inner)
}
DeleteDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_inner) => {
Some(_inner)
}
DeleteDeploymentConfigErrorKind::InvalidOperationException(_inner) => Some(_inner),
DeleteDeploymentConfigErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidOperationException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidOperationException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidOperationException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidOperationException")?;
if let Some(inner_92) = &self.message {
{
write!(f, ": {}", inner_92)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidOperationException {}
pub mod invalid_operation_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidOperationException {
crate::error::InvalidOperationException {
message: self.message,
}
}
}
}
impl InvalidOperationException {
pub fn builder() -> crate::error::invalid_operation_exception::Builder {
crate::error::invalid_operation_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentConfigInUseException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentConfigInUseException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentConfigInUseException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentConfigInUseException")?;
if let Some(inner_93) = &self.message {
{
write!(f, ": {}", inner_93)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentConfigInUseException {}
pub mod deployment_config_in_use_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentConfigInUseException {
crate::error::DeploymentConfigInUseException {
message: self.message,
}
}
}
}
impl DeploymentConfigInUseException {
pub fn builder() -> crate::error::deployment_config_in_use_exception::Builder {
crate::error::deployment_config_in_use_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteApplicationError {
pub kind: DeleteApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteApplicationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteApplicationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteApplicationErrorKind {
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidRoleException(crate::error::InvalidRoleException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteApplicationErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
DeleteApplicationErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
DeleteApplicationErrorKind::InvalidRoleException(_inner) => _inner.fmt(f),
DeleteApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteApplicationError {
fn code(&self) -> Option<&str> {
DeleteApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteApplicationError {
pub fn new(kind: DeleteApplicationErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: DeleteApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_role_exception(&self) -> bool {
matches!(
&self.kind,
DeleteApplicationErrorKind::InvalidRoleException(_)
)
}
}
impl std::error::Error for DeleteApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteApplicationErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
DeleteApplicationErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
DeleteApplicationErrorKind::InvalidRoleException(_inner) => Some(_inner),
DeleteApplicationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDeploymentGroupError {
pub kind: CreateDeploymentGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateDeploymentGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDeploymentGroupErrorKind {
AlarmsLimitExceededException(crate::error::AlarmsLimitExceededException),
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupAlreadyExistsException(crate::error::DeploymentGroupAlreadyExistsException),
DeploymentGroupLimitExceededException(crate::error::DeploymentGroupLimitExceededException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
EcsServiceMappingLimitExceededException(crate::error::EcsServiceMappingLimitExceededException),
InvalidAlarmConfigException(crate::error::InvalidAlarmConfigException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidAutoRollbackConfigException(crate::error::InvalidAutoRollbackConfigException),
InvalidAutoScalingGroupException(crate::error::InvalidAutoScalingGroupException),
InvalidBlueGreenDeploymentConfigurationException(
crate::error::InvalidBlueGreenDeploymentConfigurationException,
),
InvalidDeploymentConfigNameException(crate::error::InvalidDeploymentConfigNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
InvalidDeploymentStyleException(crate::error::InvalidDeploymentStyleException),
InvalidEc2TagCombinationException(crate::error::InvalidEc2TagCombinationException),
InvalidEc2TagException(crate::error::InvalidEc2TagException),
InvalidEcsServiceException(crate::error::InvalidEcsServiceException),
InvalidInputException(crate::error::InvalidInputException),
InvalidLoadBalancerInfoException(crate::error::InvalidLoadBalancerInfoException),
InvalidOnPremisesTagCombinationException(
crate::error::InvalidOnPremisesTagCombinationException,
),
InvalidRoleException(crate::error::InvalidRoleException),
InvalidTagException(crate::error::InvalidTagException),
InvalidTagsToAddException(crate::error::InvalidTagsToAddException),
InvalidTargetGroupPairException(crate::error::InvalidTargetGroupPairException),
InvalidTrafficRoutingConfigurationException(
crate::error::InvalidTrafficRoutingConfigurationException,
),
InvalidTriggerConfigException(crate::error::InvalidTriggerConfigException),
LifecycleHookLimitExceededException(crate::error::LifecycleHookLimitExceededException),
RoleRequiredException(crate::error::RoleRequiredException),
TagSetListLimitExceededException(crate::error::TagSetListLimitExceededException),
ThrottlingException(crate::error::ThrottlingException),
TriggerTargetsLimitExceededException(crate::error::TriggerTargetsLimitExceededException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateDeploymentGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDeploymentGroupErrorKind::AlarmsLimitExceededException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::DeploymentGroupAlreadyExistsException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::DeploymentGroupLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::EcsServiceMappingLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidAlarmConfigException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidAutoRollbackConfigException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidAutoScalingGroupException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidBlueGreenDeploymentConfigurationException(
_inner,
) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidDeploymentConfigNameException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidDeploymentStyleException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidEc2TagCombinationException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidEc2TagException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidEcsServiceException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidInputException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidLoadBalancerInfoException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidOnPremisesTagCombinationException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidRoleException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidTagsToAddException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::InvalidTargetGroupPairException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidTrafficRoutingConfigurationException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::InvalidTriggerConfigException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::LifecycleHookLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::RoleRequiredException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::TagSetListLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateDeploymentGroupErrorKind::TriggerTargetsLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDeploymentGroupError {
fn code(&self) -> Option<&str> {
CreateDeploymentGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDeploymentGroupError {
pub fn new(kind: CreateDeploymentGroupErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDeploymentGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_alarms_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::AlarmsLimitExceededException(_)
)
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::DeploymentGroupAlreadyExistsException(_)
)
}
pub fn is_deployment_group_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::DeploymentGroupLimitExceededException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_ecs_service_mapping_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::EcsServiceMappingLimitExceededException(_)
)
}
pub fn is_invalid_alarm_config_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidAlarmConfigException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_auto_rollback_config_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidAutoRollbackConfigException(_)
)
}
pub fn is_invalid_auto_scaling_group_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidAutoScalingGroupException(_)
)
}
pub fn is_invalid_blue_green_deployment_configuration_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidBlueGreenDeploymentConfigurationException(_)
)
}
pub fn is_invalid_deployment_config_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidDeploymentConfigNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_)
)
}
pub fn is_invalid_deployment_style_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidDeploymentStyleException(_)
)
}
pub fn is_invalid_ec2_tag_combination_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidEc2TagCombinationException(_)
)
}
pub fn is_invalid_ec2_tag_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidEc2TagException(_)
)
}
pub fn is_invalid_ecs_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidEcsServiceException(_)
)
}
pub fn is_invalid_input_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidInputException(_)
)
}
pub fn is_invalid_load_balancer_info_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidLoadBalancerInfoException(_)
)
}
pub fn is_invalid_on_premises_tag_combination_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidOnPremisesTagCombinationException(_)
)
}
pub fn is_invalid_role_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidRoleException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidTagException(_)
)
}
pub fn is_invalid_tags_to_add_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidTagsToAddException(_)
)
}
pub fn is_invalid_target_group_pair_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidTargetGroupPairException(_)
)
}
pub fn is_invalid_traffic_routing_configuration_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidTrafficRoutingConfigurationException(_)
)
}
pub fn is_invalid_trigger_config_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::InvalidTriggerConfigException(_)
)
}
pub fn is_lifecycle_hook_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::LifecycleHookLimitExceededException(_)
)
}
pub fn is_role_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::RoleRequiredException(_)
)
}
pub fn is_tag_set_list_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::TagSetListLimitExceededException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::ThrottlingException(_)
)
}
pub fn is_trigger_targets_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentGroupErrorKind::TriggerTargetsLimitExceededException(_)
)
}
}
impl std::error::Error for CreateDeploymentGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDeploymentGroupErrorKind::AlarmsLimitExceededException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::DeploymentGroupAlreadyExistsException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::DeploymentGroupLimitExceededException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::DeploymentGroupNameRequiredException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::EcsServiceMappingLimitExceededException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidAlarmConfigException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidAutoRollbackConfigException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidAutoScalingGroupException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidBlueGreenDeploymentConfigurationException(
_inner,
) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidDeploymentConfigNameException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidDeploymentGroupNameException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidDeploymentStyleException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidEc2TagCombinationException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidEc2TagException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidEcsServiceException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidInputException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidLoadBalancerInfoException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidOnPremisesTagCombinationException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidRoleException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidTagException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidTagsToAddException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidTargetGroupPairException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::InvalidTrafficRoutingConfigurationException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::InvalidTriggerConfigException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::LifecycleHookLimitExceededException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::RoleRequiredException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::TagSetListLimitExceededException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateDeploymentGroupErrorKind::TriggerTargetsLimitExceededException(_inner) => {
Some(_inner)
}
CreateDeploymentGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RoleRequiredException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl RoleRequiredException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RoleRequiredException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RoleRequiredException")?;
if let Some(inner_94) = &self.message {
{
write!(f, ": {}", inner_94)?;
}
}
Ok(())
}
}
impl std::error::Error for RoleRequiredException {}
pub mod role_required_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::RoleRequiredException {
crate::error::RoleRequiredException {
message: self.message,
}
}
}
}
impl RoleRequiredException {
pub fn builder() -> crate::error::role_required_exception::Builder {
crate::error::role_required_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentGroupLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentGroupLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentGroupLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentGroupLimitExceededException")?;
if let Some(inner_95) = &self.message {
{
write!(f, ": {}", inner_95)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentGroupLimitExceededException {}
pub mod deployment_group_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentGroupLimitExceededException {
crate::error::DeploymentGroupLimitExceededException {
message: self.message,
}
}
}
}
impl DeploymentGroupLimitExceededException {
pub fn builder() -> crate::error::deployment_group_limit_exceeded_exception::Builder {
crate::error::deployment_group_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDeploymentConfigError {
pub kind: CreateDeploymentConfigErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateDeploymentConfigError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDeploymentConfigErrorKind {
DeploymentConfigAlreadyExistsException(crate::error::DeploymentConfigAlreadyExistsException),
DeploymentConfigLimitExceededException(crate::error::DeploymentConfigLimitExceededException),
DeploymentConfigNameRequiredException(crate::error::DeploymentConfigNameRequiredException),
InvalidComputePlatformException(crate::error::InvalidComputePlatformException),
InvalidDeploymentConfigNameException(crate::error::InvalidDeploymentConfigNameException),
InvalidMinimumHealthyHostValueException(crate::error::InvalidMinimumHealthyHostValueException),
InvalidTrafficRoutingConfigurationException(
crate::error::InvalidTrafficRoutingConfigurationException,
),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateDeploymentConfigError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDeploymentConfigErrorKind::DeploymentConfigAlreadyExistsException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentConfigErrorKind::DeploymentConfigLimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentConfigErrorKind::InvalidComputePlatformException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentConfigErrorKind::InvalidMinimumHealthyHostValueException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentConfigErrorKind::InvalidTrafficRoutingConfigurationException(
_inner,
) => _inner.fmt(f),
CreateDeploymentConfigErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDeploymentConfigError {
fn code(&self) -> Option<&str> {
CreateDeploymentConfigError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDeploymentConfigError {
pub fn new(kind: CreateDeploymentConfigErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDeploymentConfigErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_config_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::DeploymentConfigAlreadyExistsException(_)
)
}
pub fn is_deployment_config_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::DeploymentConfigLimitExceededException(_)
)
}
pub fn is_deployment_config_name_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_)
)
}
pub fn is_invalid_compute_platform_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::InvalidComputePlatformException(_)
)
}
pub fn is_invalid_deployment_config_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_)
)
}
pub fn is_invalid_minimum_healthy_host_value_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::InvalidMinimumHealthyHostValueException(_)
)
}
pub fn is_invalid_traffic_routing_configuration_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentConfigErrorKind::InvalidTrafficRoutingConfigurationException(_)
)
}
}
impl std::error::Error for CreateDeploymentConfigError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDeploymentConfigErrorKind::DeploymentConfigAlreadyExistsException(_inner) => {
Some(_inner)
}
CreateDeploymentConfigErrorKind::DeploymentConfigLimitExceededException(_inner) => {
Some(_inner)
}
CreateDeploymentConfigErrorKind::DeploymentConfigNameRequiredException(_inner) => {
Some(_inner)
}
CreateDeploymentConfigErrorKind::InvalidComputePlatformException(_inner) => {
Some(_inner)
}
CreateDeploymentConfigErrorKind::InvalidDeploymentConfigNameException(_inner) => {
Some(_inner)
}
CreateDeploymentConfigErrorKind::InvalidMinimumHealthyHostValueException(_inner) => {
Some(_inner)
}
CreateDeploymentConfigErrorKind::InvalidTrafficRoutingConfigurationException(
_inner,
) => Some(_inner),
CreateDeploymentConfigErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidMinimumHealthyHostValueException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidMinimumHealthyHostValueException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidMinimumHealthyHostValueException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidMinimumHealthyHostValueException")?;
if let Some(inner_96) = &self.message {
{
write!(f, ": {}", inner_96)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidMinimumHealthyHostValueException {}
pub mod invalid_minimum_healthy_host_value_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidMinimumHealthyHostValueException {
crate::error::InvalidMinimumHealthyHostValueException {
message: self.message,
}
}
}
}
impl InvalidMinimumHealthyHostValueException {
pub fn builder() -> crate::error::invalid_minimum_healthy_host_value_exception::Builder {
crate::error::invalid_minimum_healthy_host_value_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentConfigLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentConfigLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentConfigLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentConfigLimitExceededException")?;
if let Some(inner_97) = &self.message {
{
write!(f, ": {}", inner_97)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentConfigLimitExceededException {}
pub mod deployment_config_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentConfigLimitExceededException {
crate::error::DeploymentConfigLimitExceededException {
message: self.message,
}
}
}
}
impl DeploymentConfigLimitExceededException {
pub fn builder() -> crate::error::deployment_config_limit_exceeded_exception::Builder {
crate::error::deployment_config_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentConfigAlreadyExistsException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentConfigAlreadyExistsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentConfigAlreadyExistsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentConfigAlreadyExistsException")?;
if let Some(inner_98) = &self.message {
{
write!(f, ": {}", inner_98)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentConfigAlreadyExistsException {}
pub mod deployment_config_already_exists_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentConfigAlreadyExistsException {
crate::error::DeploymentConfigAlreadyExistsException {
message: self.message,
}
}
}
}
impl DeploymentConfigAlreadyExistsException {
pub fn builder() -> crate::error::deployment_config_already_exists_exception::Builder {
crate::error::deployment_config_already_exists_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateDeploymentError {
pub kind: CreateDeploymentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateDeploymentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateDeploymentErrorKind {
AlarmsLimitExceededException(crate::error::AlarmsLimitExceededException),
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupDoesNotExistException(crate::error::DeploymentGroupDoesNotExistException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
DeploymentLimitExceededException(crate::error::DeploymentLimitExceededException),
DescriptionTooLongException(crate::error::DescriptionTooLongException),
InvalidAlarmConfigException(crate::error::InvalidAlarmConfigException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidAutoRollbackConfigException(crate::error::InvalidAutoRollbackConfigException),
InvalidAutoScalingGroupException(crate::error::InvalidAutoScalingGroupException),
InvalidDeploymentConfigNameException(crate::error::InvalidDeploymentConfigNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
InvalidFileExistsBehaviorException(crate::error::InvalidFileExistsBehaviorException),
InvalidGitHubAccountTokenException(crate::error::InvalidGitHubAccountTokenException),
InvalidIgnoreApplicationStopFailuresValueException(
crate::error::InvalidIgnoreApplicationStopFailuresValueException,
),
InvalidLoadBalancerInfoException(crate::error::InvalidLoadBalancerInfoException),
InvalidRevisionException(crate::error::InvalidRevisionException),
InvalidRoleException(crate::error::InvalidRoleException),
InvalidTargetInstancesException(crate::error::InvalidTargetInstancesException),
InvalidTrafficRoutingConfigurationException(
crate::error::InvalidTrafficRoutingConfigurationException,
),
InvalidUpdateOutdatedInstancesOnlyValueException(
crate::error::InvalidUpdateOutdatedInstancesOnlyValueException,
),
RevisionDoesNotExistException(crate::error::RevisionDoesNotExistException),
RevisionRequiredException(crate::error::RevisionRequiredException),
ThrottlingException(crate::error::ThrottlingException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateDeploymentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateDeploymentErrorKind::AlarmsLimitExceededException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::ApplicationDoesNotExistException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentErrorKind::DeploymentGroupDoesNotExistException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentErrorKind::DeploymentGroupNameRequiredException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentErrorKind::DeploymentLimitExceededException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::DescriptionTooLongException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidAlarmConfigException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidAutoRollbackConfigException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidAutoScalingGroupException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidDeploymentConfigNameException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentErrorKind::InvalidDeploymentGroupNameException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidFileExistsBehaviorException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidGitHubAccountTokenException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidIgnoreApplicationStopFailuresValueException(
_inner,
) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidLoadBalancerInfoException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidRevisionException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidRoleException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidTargetInstancesException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::InvalidTrafficRoutingConfigurationException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentErrorKind::InvalidUpdateOutdatedInstancesOnlyValueException(_inner) => {
_inner.fmt(f)
}
CreateDeploymentErrorKind::RevisionDoesNotExistException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::RevisionRequiredException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::ThrottlingException(_inner) => _inner.fmt(f),
CreateDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateDeploymentError {
fn code(&self) -> Option<&str> {
CreateDeploymentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateDeploymentError {
pub fn new(kind: CreateDeploymentErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_alarms_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::AlarmsLimitExceededException(_)
)
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::DeploymentGroupDoesNotExistException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_deployment_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::DeploymentLimitExceededException(_)
)
}
pub fn is_description_too_long_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::DescriptionTooLongException(_)
)
}
pub fn is_invalid_alarm_config_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidAlarmConfigException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_auto_rollback_config_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidAutoRollbackConfigException(_)
)
}
pub fn is_invalid_auto_scaling_group_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidAutoScalingGroupException(_)
)
}
pub fn is_invalid_deployment_config_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidDeploymentConfigNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidDeploymentGroupNameException(_)
)
}
pub fn is_invalid_file_exists_behavior_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidFileExistsBehaviorException(_)
)
}
pub fn is_invalid_git_hub_account_token_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidGitHubAccountTokenException(_)
)
}
pub fn is_invalid_ignore_application_stop_failures_value_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidIgnoreApplicationStopFailuresValueException(_)
)
}
pub fn is_invalid_load_balancer_info_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidLoadBalancerInfoException(_)
)
}
pub fn is_invalid_revision_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidRevisionException(_)
)
}
pub fn is_invalid_role_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidRoleException(_)
)
}
pub fn is_invalid_target_instances_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidTargetInstancesException(_)
)
}
pub fn is_invalid_traffic_routing_configuration_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidTrafficRoutingConfigurationException(_)
)
}
pub fn is_invalid_update_outdated_instances_only_value_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::InvalidUpdateOutdatedInstancesOnlyValueException(_)
)
}
pub fn is_revision_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::RevisionDoesNotExistException(_)
)
}
pub fn is_revision_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::RevisionRequiredException(_)
)
}
pub fn is_throttling_exception(&self) -> bool {
matches!(
&self.kind,
CreateDeploymentErrorKind::ThrottlingException(_)
)
}
}
impl std::error::Error for CreateDeploymentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateDeploymentErrorKind::AlarmsLimitExceededException(_inner) => Some(_inner),
CreateDeploymentErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
CreateDeploymentErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
CreateDeploymentErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
Some(_inner)
}
CreateDeploymentErrorKind::DeploymentGroupDoesNotExistException(_inner) => Some(_inner),
CreateDeploymentErrorKind::DeploymentGroupNameRequiredException(_inner) => Some(_inner),
CreateDeploymentErrorKind::DeploymentLimitExceededException(_inner) => Some(_inner),
CreateDeploymentErrorKind::DescriptionTooLongException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidAlarmConfigException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidAutoRollbackConfigException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidAutoScalingGroupException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidDeploymentConfigNameException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidDeploymentGroupNameException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidFileExistsBehaviorException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidGitHubAccountTokenException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidIgnoreApplicationStopFailuresValueException(
_inner,
) => Some(_inner),
CreateDeploymentErrorKind::InvalidLoadBalancerInfoException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidRevisionException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidRoleException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidTargetInstancesException(_inner) => Some(_inner),
CreateDeploymentErrorKind::InvalidTrafficRoutingConfigurationException(_inner) => {
Some(_inner)
}
CreateDeploymentErrorKind::InvalidUpdateOutdatedInstancesOnlyValueException(_inner) => {
Some(_inner)
}
CreateDeploymentErrorKind::RevisionDoesNotExistException(_inner) => Some(_inner),
CreateDeploymentErrorKind::RevisionRequiredException(_inner) => Some(_inner),
CreateDeploymentErrorKind::ThrottlingException(_inner) => Some(_inner),
CreateDeploymentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidUpdateOutdatedInstancesOnlyValueException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidUpdateOutdatedInstancesOnlyValueException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidUpdateOutdatedInstancesOnlyValueException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidUpdateOutdatedInstancesOnlyValueException")?;
if let Some(inner_99) = &self.message {
{
write!(f, ": {}", inner_99)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidUpdateOutdatedInstancesOnlyValueException {}
pub mod invalid_update_outdated_instances_only_value_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidUpdateOutdatedInstancesOnlyValueException {
crate::error::InvalidUpdateOutdatedInstancesOnlyValueException {
message: self.message,
}
}
}
}
impl InvalidUpdateOutdatedInstancesOnlyValueException {
pub fn builder() -> crate::error::invalid_update_outdated_instances_only_value_exception::Builder
{
crate::error::invalid_update_outdated_instances_only_value_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTargetInstancesException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTargetInstancesException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTargetInstancesException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTargetInstancesException")?;
if let Some(inner_100) = &self.message {
{
write!(f, ": {}", inner_100)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTargetInstancesException {}
pub mod invalid_target_instances_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTargetInstancesException {
crate::error::InvalidTargetInstancesException {
message: self.message,
}
}
}
}
impl InvalidTargetInstancesException {
pub fn builder() -> crate::error::invalid_target_instances_exception::Builder {
crate::error::invalid_target_instances_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidIgnoreApplicationStopFailuresValueException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidIgnoreApplicationStopFailuresValueException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidIgnoreApplicationStopFailuresValueException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidIgnoreApplicationStopFailuresValueException")?;
if let Some(inner_101) = &self.message {
{
write!(f, ": {}", inner_101)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidIgnoreApplicationStopFailuresValueException {}
pub mod invalid_ignore_application_stop_failures_value_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidIgnoreApplicationStopFailuresValueException {
crate::error::InvalidIgnoreApplicationStopFailuresValueException {
message: self.message,
}
}
}
}
impl InvalidIgnoreApplicationStopFailuresValueException {
pub fn builder(
) -> crate::error::invalid_ignore_application_stop_failures_value_exception::Builder {
crate::error::invalid_ignore_application_stop_failures_value_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidGitHubAccountTokenException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidGitHubAccountTokenException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidGitHubAccountTokenException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidGitHubAccountTokenException")?;
if let Some(inner_102) = &self.message {
{
write!(f, ": {}", inner_102)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidGitHubAccountTokenException {}
pub mod invalid_git_hub_account_token_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidGitHubAccountTokenException {
crate::error::InvalidGitHubAccountTokenException {
message: self.message,
}
}
}
}
impl InvalidGitHubAccountTokenException {
pub fn builder() -> crate::error::invalid_git_hub_account_token_exception::Builder {
crate::error::invalid_git_hub_account_token_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidFileExistsBehaviorException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidFileExistsBehaviorException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidFileExistsBehaviorException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidFileExistsBehaviorException")?;
if let Some(inner_103) = &self.message {
{
write!(f, ": {}", inner_103)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidFileExistsBehaviorException {}
pub mod invalid_file_exists_behavior_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidFileExistsBehaviorException {
crate::error::InvalidFileExistsBehaviorException {
message: self.message,
}
}
}
}
impl InvalidFileExistsBehaviorException {
pub fn builder() -> crate::error::invalid_file_exists_behavior_exception::Builder {
crate::error::invalid_file_exists_behavior_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentLimitExceededException")?;
if let Some(inner_104) = &self.message {
{
write!(f, ": {}", inner_104)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentLimitExceededException {}
pub mod deployment_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentLimitExceededException {
crate::error::DeploymentLimitExceededException {
message: self.message,
}
}
}
}
impl DeploymentLimitExceededException {
pub fn builder() -> crate::error::deployment_limit_exceeded_exception::Builder {
crate::error::deployment_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateApplicationError {
pub kind: CreateApplicationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateApplicationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateApplicationErrorKind {
ApplicationAlreadyExistsException(crate::error::ApplicationAlreadyExistsException),
ApplicationLimitExceededException(crate::error::ApplicationLimitExceededException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidComputePlatformException(crate::error::InvalidComputePlatformException),
InvalidTagsToAddException(crate::error::InvalidTagsToAddException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateApplicationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateApplicationErrorKind::ApplicationAlreadyExistsException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::ApplicationLimitExceededException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::ApplicationNameRequiredException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::InvalidComputePlatformException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::InvalidTagsToAddException(_inner) => _inner.fmt(f),
CreateApplicationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateApplicationError {
fn code(&self) -> Option<&str> {
CreateApplicationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateApplicationError {
pub fn new(kind: CreateApplicationErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: CreateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateApplicationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_already_exists_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::ApplicationAlreadyExistsException(_)
)
}
pub fn is_application_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::ApplicationLimitExceededException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_compute_platform_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::InvalidComputePlatformException(_)
)
}
pub fn is_invalid_tags_to_add_exception(&self) -> bool {
matches!(
&self.kind,
CreateApplicationErrorKind::InvalidTagsToAddException(_)
)
}
}
impl std::error::Error for CreateApplicationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateApplicationErrorKind::ApplicationAlreadyExistsException(_inner) => Some(_inner),
CreateApplicationErrorKind::ApplicationLimitExceededException(_inner) => Some(_inner),
CreateApplicationErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
CreateApplicationErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
CreateApplicationErrorKind::InvalidComputePlatformException(_inner) => Some(_inner),
CreateApplicationErrorKind::InvalidTagsToAddException(_inner) => Some(_inner),
CreateApplicationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ApplicationLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ApplicationLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ApplicationLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ApplicationLimitExceededException")?;
if let Some(inner_105) = &self.message {
{
write!(f, ": {}", inner_105)?;
}
}
Ok(())
}
}
impl std::error::Error for ApplicationLimitExceededException {}
pub mod application_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ApplicationLimitExceededException {
crate::error::ApplicationLimitExceededException {
message: self.message,
}
}
}
}
impl ApplicationLimitExceededException {
pub fn builder() -> crate::error::application_limit_exceeded_exception::Builder {
crate::error::application_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ContinueDeploymentError {
pub kind: ContinueDeploymentErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ContinueDeploymentError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ContinueDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ContinueDeploymentErrorKind {
DeploymentAlreadyCompletedException(crate::error::DeploymentAlreadyCompletedException),
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
DeploymentIsNotInReadyStateException(crate::error::DeploymentIsNotInReadyStateException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidDeploymentStatusException(crate::error::InvalidDeploymentStatusException),
InvalidDeploymentWaitTypeException(crate::error::InvalidDeploymentWaitTypeException),
UnsupportedActionForDeploymentTypeException(
crate::error::UnsupportedActionForDeploymentTypeException,
),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ContinueDeploymentError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ContinueDeploymentErrorKind::DeploymentAlreadyCompletedException(_inner) => {
_inner.fmt(f)
}
ContinueDeploymentErrorKind::DeploymentDoesNotExistException(_inner) => _inner.fmt(f),
ContinueDeploymentErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
ContinueDeploymentErrorKind::DeploymentIsNotInReadyStateException(_inner) => {
_inner.fmt(f)
}
ContinueDeploymentErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
ContinueDeploymentErrorKind::InvalidDeploymentStatusException(_inner) => _inner.fmt(f),
ContinueDeploymentErrorKind::InvalidDeploymentWaitTypeException(_inner) => {
_inner.fmt(f)
}
ContinueDeploymentErrorKind::UnsupportedActionForDeploymentTypeException(_inner) => {
_inner.fmt(f)
}
ContinueDeploymentErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ContinueDeploymentError {
fn code(&self) -> Option<&str> {
ContinueDeploymentError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ContinueDeploymentError {
pub fn new(kind: ContinueDeploymentErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ContinueDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ContinueDeploymentErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_already_completed_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::DeploymentAlreadyCompletedException(_)
)
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_deployment_is_not_in_ready_state_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::DeploymentIsNotInReadyStateException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_deployment_status_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::InvalidDeploymentStatusException(_)
)
}
pub fn is_invalid_deployment_wait_type_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::InvalidDeploymentWaitTypeException(_)
)
}
pub fn is_unsupported_action_for_deployment_type_exception(&self) -> bool {
matches!(
&self.kind,
ContinueDeploymentErrorKind::UnsupportedActionForDeploymentTypeException(_)
)
}
}
impl std::error::Error for ContinueDeploymentError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ContinueDeploymentErrorKind::DeploymentAlreadyCompletedException(_inner) => {
Some(_inner)
}
ContinueDeploymentErrorKind::DeploymentDoesNotExistException(_inner) => Some(_inner),
ContinueDeploymentErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
ContinueDeploymentErrorKind::DeploymentIsNotInReadyStateException(_inner) => {
Some(_inner)
}
ContinueDeploymentErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
ContinueDeploymentErrorKind::InvalidDeploymentStatusException(_inner) => Some(_inner),
ContinueDeploymentErrorKind::InvalidDeploymentWaitTypeException(_inner) => Some(_inner),
ContinueDeploymentErrorKind::UnsupportedActionForDeploymentTypeException(_inner) => {
Some(_inner)
}
ContinueDeploymentErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidDeploymentWaitTypeException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidDeploymentWaitTypeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidDeploymentWaitTypeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidDeploymentWaitTypeException")?;
if let Some(inner_106) = &self.message {
{
write!(f, ": {}", inner_106)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidDeploymentWaitTypeException {}
pub mod invalid_deployment_wait_type_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidDeploymentWaitTypeException {
crate::error::InvalidDeploymentWaitTypeException {
message: self.message,
}
}
}
}
impl InvalidDeploymentWaitTypeException {
pub fn builder() -> crate::error::invalid_deployment_wait_type_exception::Builder {
crate::error::invalid_deployment_wait_type_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentIsNotInReadyStateException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentIsNotInReadyStateException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentIsNotInReadyStateException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentIsNotInReadyStateException")?;
if let Some(inner_107) = &self.message {
{
write!(f, ": {}", inner_107)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentIsNotInReadyStateException {}
pub mod deployment_is_not_in_ready_state_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentIsNotInReadyStateException {
crate::error::DeploymentIsNotInReadyStateException {
message: self.message,
}
}
}
}
impl DeploymentIsNotInReadyStateException {
pub fn builder() -> crate::error::deployment_is_not_in_ready_state_exception::Builder {
crate::error::deployment_is_not_in_ready_state_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetOnPremisesInstancesError {
pub kind: BatchGetOnPremisesInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetOnPremisesInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetOnPremisesInstancesErrorKind {
BatchLimitExceededException(crate::error::BatchLimitExceededException),
InstanceNameRequiredException(crate::error::InstanceNameRequiredException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetOnPremisesInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetOnPremisesInstancesErrorKind::BatchLimitExceededException(_inner) => {
_inner.fmt(f)
}
BatchGetOnPremisesInstancesErrorKind::InstanceNameRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetOnPremisesInstancesErrorKind::InvalidInstanceNameException(_inner) => {
_inner.fmt(f)
}
BatchGetOnPremisesInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetOnPremisesInstancesError {
fn code(&self) -> Option<&str> {
BatchGetOnPremisesInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetOnPremisesInstancesError {
pub fn new(kind: BatchGetOnPremisesInstancesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_batch_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetOnPremisesInstancesErrorKind::BatchLimitExceededException(_)
)
}
pub fn is_instance_name_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetOnPremisesInstancesErrorKind::InstanceNameRequiredException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetOnPremisesInstancesErrorKind::InvalidInstanceNameException(_)
)
}
}
impl std::error::Error for BatchGetOnPremisesInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetOnPremisesInstancesErrorKind::BatchLimitExceededException(_inner) => {
Some(_inner)
}
BatchGetOnPremisesInstancesErrorKind::InstanceNameRequiredException(_inner) => {
Some(_inner)
}
BatchGetOnPremisesInstancesErrorKind::InvalidInstanceNameException(_inner) => {
Some(_inner)
}
BatchGetOnPremisesInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct BatchLimitExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl BatchLimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for BatchLimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "BatchLimitExceededException")?;
if let Some(inner_108) = &self.message {
{
write!(f, ": {}", inner_108)?;
}
}
Ok(())
}
}
impl std::error::Error for BatchLimitExceededException {}
pub mod batch_limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::BatchLimitExceededException {
crate::error::BatchLimitExceededException {
message: self.message,
}
}
}
}
impl BatchLimitExceededException {
pub fn builder() -> crate::error::batch_limit_exceeded_exception::Builder {
crate::error::batch_limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetDeploymentTargetsError {
pub kind: BatchGetDeploymentTargetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetDeploymentTargetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetDeploymentTargetsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetDeploymentTargetsErrorKind {
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
DeploymentNotStartedException(crate::error::DeploymentNotStartedException),
DeploymentTargetDoesNotExistException(crate::error::DeploymentTargetDoesNotExistException),
DeploymentTargetIdRequiredException(crate::error::DeploymentTargetIdRequiredException),
DeploymentTargetListSizeExceededException(
crate::error::DeploymentTargetListSizeExceededException,
),
#[deprecated(
note = "This exception is deprecated, use DeploymentTargetDoesNotExistException instead."
)]
InstanceDoesNotExistException(crate::error::InstanceDoesNotExistException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidDeploymentTargetIdException(crate::error::InvalidDeploymentTargetIdException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetDeploymentTargetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetDeploymentTargetsErrorKind::DeploymentDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::DeploymentIdRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::DeploymentNotStartedException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::DeploymentTargetDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::DeploymentTargetIdRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::DeploymentTargetListSizeExceededException(
_inner,
) => _inner.fmt(f),
BatchGetDeploymentTargetsErrorKind::InstanceDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::InvalidDeploymentIdException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::InvalidDeploymentTargetIdException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetDeploymentTargetsError {
fn code(&self) -> Option<&str> {
BatchGetDeploymentTargetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetDeploymentTargetsError {
pub fn new(kind: BatchGetDeploymentTargetsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetDeploymentTargetsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetDeploymentTargetsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_deployment_not_started_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::DeploymentNotStartedException(_)
)
}
pub fn is_deployment_target_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::DeploymentTargetDoesNotExistException(_)
)
}
pub fn is_deployment_target_id_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::DeploymentTargetIdRequiredException(_)
)
}
pub fn is_deployment_target_list_size_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::DeploymentTargetListSizeExceededException(_)
)
}
pub fn is_instance_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::InstanceDoesNotExistException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_deployment_target_id_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentTargetsErrorKind::InvalidDeploymentTargetIdException(_)
)
}
}
impl std::error::Error for BatchGetDeploymentTargetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetDeploymentTargetsErrorKind::DeploymentDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::DeploymentIdRequiredException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::DeploymentNotStartedException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::DeploymentTargetDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::DeploymentTargetIdRequiredException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::DeploymentTargetListSizeExceededException(
_inner,
) => Some(_inner),
BatchGetDeploymentTargetsErrorKind::InstanceDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::InvalidDeploymentIdException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::InvalidDeploymentTargetIdException(_inner) => {
Some(_inner)
}
BatchGetDeploymentTargetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DeploymentTargetListSizeExceededException {
#[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DeploymentTargetListSizeExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DeploymentTargetListSizeExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DeploymentTargetListSizeExceededException")?;
if let Some(inner_109) = &self.message {
{
write!(f, ": {}", inner_109)?;
}
}
Ok(())
}
}
impl std::error::Error for DeploymentTargetListSizeExceededException {}
pub mod deployment_target_list_size_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DeploymentTargetListSizeExceededException {
crate::error::DeploymentTargetListSizeExceededException {
message: self.message,
}
}
}
}
impl DeploymentTargetListSizeExceededException {
pub fn builder() -> crate::error::deployment_target_list_size_exceeded_exception::Builder {
crate::error::deployment_target_list_size_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetDeploymentsError {
pub kind: BatchGetDeploymentsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetDeploymentsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetDeploymentsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetDeploymentsErrorKind {
BatchLimitExceededException(crate::error::BatchLimitExceededException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetDeploymentsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetDeploymentsErrorKind::BatchLimitExceededException(_inner) => _inner.fmt(f),
BatchGetDeploymentsErrorKind::DeploymentIdRequiredException(_inner) => _inner.fmt(f),
BatchGetDeploymentsErrorKind::InvalidDeploymentIdException(_inner) => _inner.fmt(f),
BatchGetDeploymentsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetDeploymentsError {
fn code(&self) -> Option<&str> {
BatchGetDeploymentsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetDeploymentsError {
pub fn new(kind: BatchGetDeploymentsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetDeploymentsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetDeploymentsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_batch_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentsErrorKind::BatchLimitExceededException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentsErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentsErrorKind::InvalidDeploymentIdException(_)
)
}
}
impl std::error::Error for BatchGetDeploymentsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetDeploymentsErrorKind::BatchLimitExceededException(_inner) => Some(_inner),
BatchGetDeploymentsErrorKind::DeploymentIdRequiredException(_inner) => Some(_inner),
BatchGetDeploymentsErrorKind::InvalidDeploymentIdException(_inner) => Some(_inner),
BatchGetDeploymentsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetDeploymentInstancesError {
pub kind: BatchGetDeploymentInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetDeploymentInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetDeploymentInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetDeploymentInstancesErrorKind {
BatchLimitExceededException(crate::error::BatchLimitExceededException),
DeploymentDoesNotExistException(crate::error::DeploymentDoesNotExistException),
DeploymentIdRequiredException(crate::error::DeploymentIdRequiredException),
#[deprecated(
note = "This exception is deprecated, use DeploymentTargetIdRequiredException instead."
)]
InstanceIdRequiredException(crate::error::InstanceIdRequiredException),
InvalidComputePlatformException(crate::error::InvalidComputePlatformException),
InvalidDeploymentIdException(crate::error::InvalidDeploymentIdException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetDeploymentInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetDeploymentInstancesErrorKind::BatchLimitExceededException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::DeploymentDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::DeploymentIdRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::InstanceIdRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::InvalidComputePlatformException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::InvalidDeploymentIdException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::InvalidInstanceNameException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetDeploymentInstancesError {
fn code(&self) -> Option<&str> {
BatchGetDeploymentInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetDeploymentInstancesError {
pub fn new(kind: BatchGetDeploymentInstancesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetDeploymentInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetDeploymentInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_batch_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::BatchLimitExceededException(_)
)
}
pub fn is_deployment_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::DeploymentDoesNotExistException(_)
)
}
pub fn is_deployment_id_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::DeploymentIdRequiredException(_)
)
}
pub fn is_instance_id_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::InstanceIdRequiredException(_)
)
}
pub fn is_invalid_compute_platform_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::InvalidComputePlatformException(_)
)
}
pub fn is_invalid_deployment_id_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::InvalidDeploymentIdException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentInstancesErrorKind::InvalidInstanceNameException(_)
)
}
}
impl std::error::Error for BatchGetDeploymentInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetDeploymentInstancesErrorKind::BatchLimitExceededException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::DeploymentDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::DeploymentIdRequiredException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::InstanceIdRequiredException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::InvalidComputePlatformException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::InvalidDeploymentIdException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::InvalidInstanceNameException(_inner) => {
Some(_inner)
}
BatchGetDeploymentInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetDeploymentGroupsError {
pub kind: BatchGetDeploymentGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetDeploymentGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetDeploymentGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetDeploymentGroupsErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
BatchLimitExceededException(crate::error::BatchLimitExceededException),
DeploymentConfigDoesNotExistException(crate::error::DeploymentConfigDoesNotExistException),
DeploymentGroupNameRequiredException(crate::error::DeploymentGroupNameRequiredException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidDeploymentGroupNameException(crate::error::InvalidDeploymentGroupNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetDeploymentGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetDeploymentGroupsErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentGroupsErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentGroupsErrorKind::BatchLimitExceededException(_inner) => _inner.fmt(f),
BatchGetDeploymentGroupsErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentGroupsErrorKind::DeploymentGroupNameRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentGroupsErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentGroupsErrorKind::InvalidDeploymentGroupNameException(_inner) => {
_inner.fmt(f)
}
BatchGetDeploymentGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetDeploymentGroupsError {
fn code(&self) -> Option<&str> {
BatchGetDeploymentGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetDeploymentGroupsError {
pub fn new(kind: BatchGetDeploymentGroupsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetDeploymentGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetDeploymentGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_batch_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::BatchLimitExceededException(_)
)
}
pub fn is_deployment_config_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::DeploymentConfigDoesNotExistException(_)
)
}
pub fn is_deployment_group_name_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::DeploymentGroupNameRequiredException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_deployment_group_name_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetDeploymentGroupsErrorKind::InvalidDeploymentGroupNameException(_)
)
}
}
impl std::error::Error for BatchGetDeploymentGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetDeploymentGroupsErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetDeploymentGroupsErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
BatchGetDeploymentGroupsErrorKind::BatchLimitExceededException(_inner) => Some(_inner),
BatchGetDeploymentGroupsErrorKind::DeploymentConfigDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetDeploymentGroupsErrorKind::DeploymentGroupNameRequiredException(_inner) => {
Some(_inner)
}
BatchGetDeploymentGroupsErrorKind::InvalidApplicationNameException(_inner) => {
Some(_inner)
}
BatchGetDeploymentGroupsErrorKind::InvalidDeploymentGroupNameException(_inner) => {
Some(_inner)
}
BatchGetDeploymentGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetApplicationsError {
pub kind: BatchGetApplicationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetApplicationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetApplicationsErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
BatchLimitExceededException(crate::error::BatchLimitExceededException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetApplicationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetApplicationsErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationsErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationsErrorKind::BatchLimitExceededException(_inner) => _inner.fmt(f),
BatchGetApplicationsErrorKind::InvalidApplicationNameException(_inner) => _inner.fmt(f),
BatchGetApplicationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetApplicationsError {
fn code(&self) -> Option<&str> {
BatchGetApplicationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetApplicationsError {
pub fn new(kind: BatchGetApplicationsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetApplicationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationsErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationsErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_batch_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationsErrorKind::BatchLimitExceededException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationsErrorKind::InvalidApplicationNameException(_)
)
}
}
impl std::error::Error for BatchGetApplicationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetApplicationsErrorKind::ApplicationDoesNotExistException(_inner) => Some(_inner),
BatchGetApplicationsErrorKind::ApplicationNameRequiredException(_inner) => Some(_inner),
BatchGetApplicationsErrorKind::BatchLimitExceededException(_inner) => Some(_inner),
BatchGetApplicationsErrorKind::InvalidApplicationNameException(_inner) => Some(_inner),
BatchGetApplicationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct BatchGetApplicationRevisionsError {
pub kind: BatchGetApplicationRevisionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for BatchGetApplicationRevisionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: BatchGetApplicationRevisionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum BatchGetApplicationRevisionsErrorKind {
ApplicationDoesNotExistException(crate::error::ApplicationDoesNotExistException),
ApplicationNameRequiredException(crate::error::ApplicationNameRequiredException),
BatchLimitExceededException(crate::error::BatchLimitExceededException),
InvalidApplicationNameException(crate::error::InvalidApplicationNameException),
InvalidRevisionException(crate::error::InvalidRevisionException),
RevisionRequiredException(crate::error::RevisionRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for BatchGetApplicationRevisionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
BatchGetApplicationRevisionsErrorKind::ApplicationDoesNotExistException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationRevisionsErrorKind::ApplicationNameRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationRevisionsErrorKind::BatchLimitExceededException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationRevisionsErrorKind::InvalidApplicationNameException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationRevisionsErrorKind::InvalidRevisionException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationRevisionsErrorKind::RevisionRequiredException(_inner) => {
_inner.fmt(f)
}
BatchGetApplicationRevisionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for BatchGetApplicationRevisionsError {
fn code(&self) -> Option<&str> {
BatchGetApplicationRevisionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl BatchGetApplicationRevisionsError {
pub fn new(kind: BatchGetApplicationRevisionsErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: BatchGetApplicationRevisionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: BatchGetApplicationRevisionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_application_does_not_exist_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationRevisionsErrorKind::ApplicationDoesNotExistException(_)
)
}
pub fn is_application_name_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationRevisionsErrorKind::ApplicationNameRequiredException(_)
)
}
pub fn is_batch_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationRevisionsErrorKind::BatchLimitExceededException(_)
)
}
pub fn is_invalid_application_name_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationRevisionsErrorKind::InvalidApplicationNameException(_)
)
}
pub fn is_invalid_revision_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationRevisionsErrorKind::InvalidRevisionException(_)
)
}
pub fn is_revision_required_exception(&self) -> bool {
matches!(
&self.kind,
BatchGetApplicationRevisionsErrorKind::RevisionRequiredException(_)
)
}
}
impl std::error::Error for BatchGetApplicationRevisionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
BatchGetApplicationRevisionsErrorKind::ApplicationDoesNotExistException(_inner) => {
Some(_inner)
}
BatchGetApplicationRevisionsErrorKind::ApplicationNameRequiredException(_inner) => {
Some(_inner)
}
BatchGetApplicationRevisionsErrorKind::BatchLimitExceededException(_inner) => {
Some(_inner)
}
BatchGetApplicationRevisionsErrorKind::InvalidApplicationNameException(_inner) => {
Some(_inner)
}
BatchGetApplicationRevisionsErrorKind::InvalidRevisionException(_inner) => Some(_inner),
BatchGetApplicationRevisionsErrorKind::RevisionRequiredException(_inner) => {
Some(_inner)
}
BatchGetApplicationRevisionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddTagsToOnPremisesInstancesError {
pub kind: AddTagsToOnPremisesInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddTagsToOnPremisesInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddTagsToOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddTagsToOnPremisesInstancesErrorKind {
InstanceLimitExceededException(crate::error::InstanceLimitExceededException),
InstanceNameRequiredException(crate::error::InstanceNameRequiredException),
InstanceNotRegisteredException(crate::error::InstanceNotRegisteredException),
InvalidInstanceNameException(crate::error::InvalidInstanceNameException),
InvalidTagException(crate::error::InvalidTagException),
TagLimitExceededException(crate::error::TagLimitExceededException),
TagRequiredException(crate::error::TagRequiredException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddTagsToOnPremisesInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddTagsToOnPremisesInstancesErrorKind::InstanceLimitExceededException(_inner) => {
_inner.fmt(f)
}
AddTagsToOnPremisesInstancesErrorKind::InstanceNameRequiredException(_inner) => {
_inner.fmt(f)
}
AddTagsToOnPremisesInstancesErrorKind::InstanceNotRegisteredException(_inner) => {
_inner.fmt(f)
}
AddTagsToOnPremisesInstancesErrorKind::InvalidInstanceNameException(_inner) => {
_inner.fmt(f)
}
AddTagsToOnPremisesInstancesErrorKind::InvalidTagException(_inner) => _inner.fmt(f),
AddTagsToOnPremisesInstancesErrorKind::TagLimitExceededException(_inner) => {
_inner.fmt(f)
}
AddTagsToOnPremisesInstancesErrorKind::TagRequiredException(_inner) => _inner.fmt(f),
AddTagsToOnPremisesInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddTagsToOnPremisesInstancesError {
fn code(&self) -> Option<&str> {
AddTagsToOnPremisesInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddTagsToOnPremisesInstancesError {
pub fn new(kind: AddTagsToOnPremisesInstancesErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: AddTagsToOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddTagsToOnPremisesInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_instance_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::InstanceLimitExceededException(_)
)
}
pub fn is_instance_name_required_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::InstanceNameRequiredException(_)
)
}
pub fn is_instance_not_registered_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::InstanceNotRegisteredException(_)
)
}
pub fn is_invalid_instance_name_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::InvalidInstanceNameException(_)
)
}
pub fn is_invalid_tag_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::InvalidTagException(_)
)
}
pub fn is_tag_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::TagLimitExceededException(_)
)
}
pub fn is_tag_required_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsToOnPremisesInstancesErrorKind::TagRequiredException(_)
)
}
}
impl std::error::Error for AddTagsToOnPremisesInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddTagsToOnPremisesInstancesErrorKind::InstanceLimitExceededException(_inner) => {
Some(_inner)
}
AddTagsToOnPremisesInstancesErrorKind::InstanceNameRequiredException(_inner) => {
Some(_inner)
}
AddTagsToOnPremisesInstancesErrorKind::InstanceNotRegisteredException(_inner) => {
Some(_inner)
}
AddTagsToOnPremisesInstancesErrorKind::InvalidInstanceNameException(_inner) => {
Some(_inner)
}
AddTagsToOnPremisesInstancesErrorKind::InvalidTagException(_inner) => Some(_inner),
AddTagsToOnPremisesInstancesErrorKind::TagLimitExceededException(_inner) => {
Some(_inner)
}
AddTagsToOnPremisesInstancesErrorKind::TagRequiredException(_inner) => Some(_inner),
AddTagsToOnPremisesInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[derive(Debug)]
pub struct Unhandled {
source: Box<dyn std::error::Error + Send + Sync + 'static>,
}
impl Unhandled {
#[allow(unused)]
pub(crate) fn new(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self { source }
}
}
impl std::fmt::Display for Unhandled {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> Result<(), std::fmt::Error> {
write!(f, "unhandled error")
}
}
impl std::error::Error for Unhandled {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
Some(self.source.as_ref() as _)
}
}