#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetSubnetsError {
pub kind: SetSubnetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetSubnetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetSubnetsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetSubnetsErrorKind {
AllocationIdNotFoundException(crate::error::AllocationIdNotFoundException),
AvailabilityZoneNotSupportedException(crate::error::AvailabilityZoneNotSupportedException),
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidSubnetException(crate::error::InvalidSubnetException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
SubnetNotFoundException(crate::error::SubnetNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetSubnetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetSubnetsErrorKind::AllocationIdNotFoundException(_inner) => _inner.fmt(f),
SetSubnetsErrorKind::AvailabilityZoneNotSupportedException(_inner) => _inner.fmt(f),
SetSubnetsErrorKind::InvalidConfigurationRequestException(_inner) => _inner.fmt(f),
SetSubnetsErrorKind::InvalidSubnetException(_inner) => _inner.fmt(f),
SetSubnetsErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
SetSubnetsErrorKind::SubnetNotFoundException(_inner) => _inner.fmt(f),
SetSubnetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetSubnetsError {
fn code(&self) -> Option<&str> {
SetSubnetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetSubnetsError {
pub fn new(kind: SetSubnetsErrorKind, 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: SetSubnetsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetSubnetsErrorKind::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_allocation_id_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetSubnetsErrorKind::AllocationIdNotFoundException(_)
)
}
pub fn is_availability_zone_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
SetSubnetsErrorKind::AvailabilityZoneNotSupportedException(_)
)
}
pub fn is_invalid_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
SetSubnetsErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_subnet_exception(&self) -> bool {
matches!(&self.kind, SetSubnetsErrorKind::InvalidSubnetException(_))
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetSubnetsErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_subnet_not_found_exception(&self) -> bool {
matches!(&self.kind, SetSubnetsErrorKind::SubnetNotFoundException(_))
}
}
impl std::error::Error for SetSubnetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetSubnetsErrorKind::AllocationIdNotFoundException(_inner) => Some(_inner),
SetSubnetsErrorKind::AvailabilityZoneNotSupportedException(_inner) => Some(_inner),
SetSubnetsErrorKind::InvalidConfigurationRequestException(_inner) => Some(_inner),
SetSubnetsErrorKind::InvalidSubnetException(_inner) => Some(_inner),
SetSubnetsErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
SetSubnetsErrorKind::SubnetNotFoundException(_inner) => Some(_inner),
SetSubnetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SubnetNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl SubnetNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SubnetNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SubnetNotFoundException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for SubnetNotFoundException {}
pub mod subnet_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::SubnetNotFoundException {
crate::error::SubnetNotFoundException {
message: self.message,
}
}
}
}
impl SubnetNotFoundException {
pub fn builder() -> crate::error::subnet_not_found_exception::Builder {
crate::error::subnet_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LoadBalancerNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl LoadBalancerNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LoadBalancerNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LoadBalancerNotFoundException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for LoadBalancerNotFoundException {}
pub mod load_balancer_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::LoadBalancerNotFoundException {
crate::error::LoadBalancerNotFoundException {
message: self.message,
}
}
}
}
impl LoadBalancerNotFoundException {
pub fn builder() -> crate::error::load_balancer_not_found_exception::Builder {
crate::error::load_balancer_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSubnetException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidSubnetException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidSubnetException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidSubnetException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidSubnetException {}
pub mod invalid_subnet_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidSubnetException {
crate::error::InvalidSubnetException {
message: self.message,
}
}
}
}
impl InvalidSubnetException {
pub fn builder() -> crate::error::invalid_subnet_exception::Builder {
crate::error::invalid_subnet_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidConfigurationRequestException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidConfigurationRequestException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidConfigurationRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidConfigurationRequestException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidConfigurationRequestException {}
pub mod invalid_configuration_request_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidConfigurationRequestException {
crate::error::InvalidConfigurationRequestException {
message: self.message,
}
}
}
}
impl InvalidConfigurationRequestException {
pub fn builder() -> crate::error::invalid_configuration_request_exception::Builder {
crate::error::invalid_configuration_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AvailabilityZoneNotSupportedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl AvailabilityZoneNotSupportedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AvailabilityZoneNotSupportedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AvailabilityZoneNotSupportedException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for AvailabilityZoneNotSupportedException {}
pub mod availability_zone_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AvailabilityZoneNotSupportedException {
crate::error::AvailabilityZoneNotSupportedException {
message: self.message,
}
}
}
}
impl AvailabilityZoneNotSupportedException {
pub fn builder() -> crate::error::availability_zone_not_supported_exception::Builder {
crate::error::availability_zone_not_supported_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AllocationIdNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl AllocationIdNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AllocationIdNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "AllocationIdNotFoundException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for AllocationIdNotFoundException {}
pub mod allocation_id_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AllocationIdNotFoundException {
crate::error::AllocationIdNotFoundException {
message: self.message,
}
}
}
}
impl AllocationIdNotFoundException {
pub fn builder() -> crate::error::allocation_id_not_found_exception::Builder {
crate::error::allocation_id_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetSecurityGroupsError {
pub kind: SetSecurityGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetSecurityGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetSecurityGroupsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetSecurityGroupsErrorKind {
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidSecurityGroupException(crate::error::InvalidSecurityGroupException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetSecurityGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetSecurityGroupsErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
SetSecurityGroupsErrorKind::InvalidSecurityGroupException(_inner) => _inner.fmt(f),
SetSecurityGroupsErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
SetSecurityGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetSecurityGroupsError {
fn code(&self) -> Option<&str> {
SetSecurityGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetSecurityGroupsError {
pub fn new(kind: SetSecurityGroupsErrorKind, 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: SetSecurityGroupsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetSecurityGroupsErrorKind::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_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
SetSecurityGroupsErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_security_group_exception(&self) -> bool {
matches!(
&self.kind,
SetSecurityGroupsErrorKind::InvalidSecurityGroupException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetSecurityGroupsErrorKind::LoadBalancerNotFoundException(_)
)
}
}
impl std::error::Error for SetSecurityGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetSecurityGroupsErrorKind::InvalidConfigurationRequestException(_inner) => {
Some(_inner)
}
SetSecurityGroupsErrorKind::InvalidSecurityGroupException(_inner) => Some(_inner),
SetSecurityGroupsErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
SetSecurityGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSecurityGroupException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidSecurityGroupException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidSecurityGroupException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidSecurityGroupException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidSecurityGroupException {}
pub mod invalid_security_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidSecurityGroupException {
crate::error::InvalidSecurityGroupException {
message: self.message,
}
}
}
}
impl InvalidSecurityGroupException {
pub fn builder() -> crate::error::invalid_security_group_exception::Builder {
crate::error::invalid_security_group_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetRulePrioritiesError {
pub kind: SetRulePrioritiesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetRulePrioritiesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetRulePrioritiesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetRulePrioritiesErrorKind {
OperationNotPermittedException(crate::error::OperationNotPermittedException),
PriorityInUseException(crate::error::PriorityInUseException),
RuleNotFoundException(crate::error::RuleNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetRulePrioritiesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetRulePrioritiesErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
SetRulePrioritiesErrorKind::PriorityInUseException(_inner) => _inner.fmt(f),
SetRulePrioritiesErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
SetRulePrioritiesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetRulePrioritiesError {
fn code(&self) -> Option<&str> {
SetRulePrioritiesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetRulePrioritiesError {
pub fn new(kind: SetRulePrioritiesErrorKind, 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: SetRulePrioritiesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetRulePrioritiesErrorKind::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_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
SetRulePrioritiesErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_priority_in_use_exception(&self) -> bool {
matches!(
&self.kind,
SetRulePrioritiesErrorKind::PriorityInUseException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetRulePrioritiesErrorKind::RuleNotFoundException(_)
)
}
}
impl std::error::Error for SetRulePrioritiesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetRulePrioritiesErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
SetRulePrioritiesErrorKind::PriorityInUseException(_inner) => Some(_inner),
SetRulePrioritiesErrorKind::RuleNotFoundException(_inner) => Some(_inner),
SetRulePrioritiesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct RuleNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl RuleNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for RuleNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "RuleNotFoundException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for RuleNotFoundException {}
pub mod rule_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::RuleNotFoundException {
crate::error::RuleNotFoundException {
message: self.message,
}
}
}
}
impl RuleNotFoundException {
pub fn builder() -> crate::error::rule_not_found_exception::Builder {
crate::error::rule_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct PriorityInUseException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl PriorityInUseException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for PriorityInUseException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "PriorityInUseException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for PriorityInUseException {}
pub mod priority_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::PriorityInUseException {
crate::error::PriorityInUseException {
message: self.message,
}
}
}
}
impl PriorityInUseException {
pub fn builder() -> crate::error::priority_in_use_exception::Builder {
crate::error::priority_in_use_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OperationNotPermittedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl OperationNotPermittedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OperationNotPermittedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OperationNotPermittedException")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for OperationNotPermittedException {}
pub mod operation_not_permitted_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::OperationNotPermittedException {
crate::error::OperationNotPermittedException {
message: self.message,
}
}
}
}
impl OperationNotPermittedException {
pub fn builder() -> crate::error::operation_not_permitted_exception::Builder {
crate::error::operation_not_permitted_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SetIpAddressTypeError {
pub kind: SetIpAddressTypeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SetIpAddressTypeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SetIpAddressTypeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SetIpAddressTypeErrorKind {
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidSubnetException(crate::error::InvalidSubnetException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SetIpAddressTypeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SetIpAddressTypeErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
SetIpAddressTypeErrorKind::InvalidSubnetException(_inner) => _inner.fmt(f),
SetIpAddressTypeErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
SetIpAddressTypeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SetIpAddressTypeError {
fn code(&self) -> Option<&str> {
SetIpAddressTypeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SetIpAddressTypeError {
pub fn new(kind: SetIpAddressTypeErrorKind, 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: SetIpAddressTypeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SetIpAddressTypeErrorKind::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_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
SetIpAddressTypeErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_subnet_exception(&self) -> bool {
matches!(
&self.kind,
SetIpAddressTypeErrorKind::InvalidSubnetException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SetIpAddressTypeErrorKind::LoadBalancerNotFoundException(_)
)
}
}
impl std::error::Error for SetIpAddressTypeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SetIpAddressTypeErrorKind::InvalidConfigurationRequestException(_inner) => Some(_inner),
SetIpAddressTypeErrorKind::InvalidSubnetException(_inner) => Some(_inner),
SetIpAddressTypeErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
SetIpAddressTypeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveTagsError {
pub kind: RemoveTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveTagsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveTagsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveTagsErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
RuleNotFoundException(crate::error::RuleNotFoundException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveTagsErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
RemoveTagsErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
RemoveTagsErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
RemoveTagsErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
RemoveTagsErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
RemoveTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveTagsError {
fn code(&self) -> Option<&str> {
RemoveTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveTagsError {
pub fn new(kind: RemoveTagsErrorKind, 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: RemoveTagsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveTagsErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(&self.kind, RemoveTagsErrorKind::RuleNotFoundException(_))
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RemoveTagsErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, RemoveTagsErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for RemoveTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveTagsErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
RemoveTagsErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
RemoveTagsErrorKind::RuleNotFoundException(_inner) => Some(_inner),
RemoveTagsErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
RemoveTagsErrorKind::TooManyTagsException(_inner) => Some(_inner),
RemoveTagsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyTagsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyTagsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTagsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTagsException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyTagsException {}
pub mod too_many_tags_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyTagsException {
crate::error::TooManyTagsException {
message: self.message,
}
}
}
}
impl TooManyTagsException {
pub fn builder() -> crate::error::too_many_tags_exception::Builder {
crate::error::too_many_tags_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TargetGroupNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TargetGroupNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TargetGroupNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TargetGroupNotFoundException")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for TargetGroupNotFoundException {}
pub mod target_group_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TargetGroupNotFoundException {
crate::error::TargetGroupNotFoundException {
message: self.message,
}
}
}
}
impl TargetGroupNotFoundException {
pub fn builder() -> crate::error::target_group_not_found_exception::Builder {
crate::error::target_group_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ListenerNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ListenerNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ListenerNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ListenerNotFoundException")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for ListenerNotFoundException {}
pub mod listener_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ListenerNotFoundException {
crate::error::ListenerNotFoundException {
message: self.message,
}
}
}
}
impl ListenerNotFoundException {
pub fn builder() -> crate::error::listener_not_found_exception::Builder {
crate::error::listener_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RemoveListenerCertificatesError {
pub kind: RemoveListenerCertificatesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RemoveListenerCertificatesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RemoveListenerCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RemoveListenerCertificatesErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RemoveListenerCertificatesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RemoveListenerCertificatesErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
RemoveListenerCertificatesErrorKind::OperationNotPermittedException(_inner) => {
_inner.fmt(f)
}
RemoveListenerCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RemoveListenerCertificatesError {
fn code(&self) -> Option<&str> {
RemoveListenerCertificatesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RemoveListenerCertificatesError {
pub fn new(kind: RemoveListenerCertificatesErrorKind, 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: RemoveListenerCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RemoveListenerCertificatesErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RemoveListenerCertificatesErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
RemoveListenerCertificatesErrorKind::OperationNotPermittedException(_)
)
}
}
impl std::error::Error for RemoveListenerCertificatesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RemoveListenerCertificatesErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
RemoveListenerCertificatesErrorKind::OperationNotPermittedException(_inner) => {
Some(_inner)
}
RemoveListenerCertificatesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterTargetsError {
pub kind: RegisterTargetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterTargetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterTargetsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterTargetsErrorKind {
InvalidTargetException(crate::error::InvalidTargetException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyRegistrationsForTargetIdException(
crate::error::TooManyRegistrationsForTargetIdException,
),
TooManyTargetsException(crate::error::TooManyTargetsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterTargetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterTargetsErrorKind::InvalidTargetException(_inner) => _inner.fmt(f),
RegisterTargetsErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
RegisterTargetsErrorKind::TooManyRegistrationsForTargetIdException(_inner) => {
_inner.fmt(f)
}
RegisterTargetsErrorKind::TooManyTargetsException(_inner) => _inner.fmt(f),
RegisterTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterTargetsError {
fn code(&self) -> Option<&str> {
RegisterTargetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterTargetsError {
pub fn new(kind: RegisterTargetsErrorKind, 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: RegisterTargetsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterTargetsErrorKind::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_target_exception(&self) -> bool {
matches!(
&self.kind,
RegisterTargetsErrorKind::InvalidTargetException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RegisterTargetsErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_registrations_for_target_id_exception(&self) -> bool {
matches!(
&self.kind,
RegisterTargetsErrorKind::TooManyRegistrationsForTargetIdException(_)
)
}
pub fn is_too_many_targets_exception(&self) -> bool {
matches!(
&self.kind,
RegisterTargetsErrorKind::TooManyTargetsException(_)
)
}
}
impl std::error::Error for RegisterTargetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterTargetsErrorKind::InvalidTargetException(_inner) => Some(_inner),
RegisterTargetsErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
RegisterTargetsErrorKind::TooManyRegistrationsForTargetIdException(_inner) => {
Some(_inner)
}
RegisterTargetsErrorKind::TooManyTargetsException(_inner) => Some(_inner),
RegisterTargetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyTargetsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyTargetsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTargetsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTargetsException")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyTargetsException {}
pub mod too_many_targets_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyTargetsException {
crate::error::TooManyTargetsException {
message: self.message,
}
}
}
}
impl TooManyTargetsException {
pub fn builder() -> crate::error::too_many_targets_exception::Builder {
crate::error::too_many_targets_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyRegistrationsForTargetIdException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyRegistrationsForTargetIdException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyRegistrationsForTargetIdException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyRegistrationsForTargetIdException")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyRegistrationsForTargetIdException {}
pub mod too_many_registrations_for_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyRegistrationsForTargetIdException {
crate::error::TooManyRegistrationsForTargetIdException {
message: self.message,
}
}
}
}
impl TooManyRegistrationsForTargetIdException {
pub fn builder() -> crate::error::too_many_registrations_for_target_id_exception::Builder {
crate::error::too_many_registrations_for_target_id_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidTargetException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidTargetException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidTargetException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidTargetException")?;
if let Some(inner_16) = &self.message {
{
write!(f, ": {}", inner_16)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidTargetException {}
pub mod invalid_target_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidTargetException {
crate::error::InvalidTargetException {
message: self.message,
}
}
}
}
impl InvalidTargetException {
pub fn builder() -> crate::error::invalid_target_exception::Builder {
crate::error::invalid_target_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyTargetGroupAttributesError {
pub kind: ModifyTargetGroupAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyTargetGroupAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyTargetGroupAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyTargetGroupAttributesErrorKind {
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyTargetGroupAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyTargetGroupAttributesErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
ModifyTargetGroupAttributesErrorKind::TargetGroupNotFoundException(_inner) => {
_inner.fmt(f)
}
ModifyTargetGroupAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyTargetGroupAttributesError {
fn code(&self) -> Option<&str> {
ModifyTargetGroupAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyTargetGroupAttributesError {
pub fn new(kind: ModifyTargetGroupAttributesErrorKind, 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: ModifyTargetGroupAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyTargetGroupAttributesErrorKind::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_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
ModifyTargetGroupAttributesErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyTargetGroupAttributesErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for ModifyTargetGroupAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyTargetGroupAttributesErrorKind::InvalidConfigurationRequestException(_inner) => {
Some(_inner)
}
ModifyTargetGroupAttributesErrorKind::TargetGroupNotFoundException(_inner) => {
Some(_inner)
}
ModifyTargetGroupAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyTargetGroupError {
pub kind: ModifyTargetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyTargetGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyTargetGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyTargetGroupErrorKind {
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyTargetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyTargetGroupErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
ModifyTargetGroupErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
ModifyTargetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyTargetGroupError {
fn code(&self) -> Option<&str> {
ModifyTargetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyTargetGroupError {
pub fn new(kind: ModifyTargetGroupErrorKind, 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: ModifyTargetGroupErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyTargetGroupErrorKind::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_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
ModifyTargetGroupErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyTargetGroupErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for ModifyTargetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyTargetGroupErrorKind::InvalidConfigurationRequestException(_inner) => {
Some(_inner)
}
ModifyTargetGroupErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
ModifyTargetGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyRuleError {
pub kind: ModifyRuleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyRuleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyRuleErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyRuleErrorKind {
IncompatibleProtocolsException(crate::error::IncompatibleProtocolsException),
InvalidLoadBalancerActionException(crate::error::InvalidLoadBalancerActionException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
RuleNotFoundException(crate::error::RuleNotFoundException),
TargetGroupAssociationLimitException(crate::error::TargetGroupAssociationLimitException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyActionsException(crate::error::TooManyActionsException),
TooManyRegistrationsForTargetIdException(
crate::error::TooManyRegistrationsForTargetIdException,
),
TooManyTargetsException(crate::error::TooManyTargetsException),
TooManyUniqueTargetGroupsPerLoadBalancerException(
crate::error::TooManyUniqueTargetGroupsPerLoadBalancerException,
),
UnsupportedProtocolException(crate::error::UnsupportedProtocolException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyRuleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyRuleErrorKind::IncompatibleProtocolsException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::InvalidLoadBalancerActionException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::TargetGroupAssociationLimitException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::TooManyActionsException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::TooManyRegistrationsForTargetIdException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::TooManyTargetsException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
_inner.fmt(f)
}
ModifyRuleErrorKind::UnsupportedProtocolException(_inner) => _inner.fmt(f),
ModifyRuleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyRuleError {
fn code(&self) -> Option<&str> {
ModifyRuleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyRuleError {
pub fn new(kind: ModifyRuleErrorKind, 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: ModifyRuleErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyRuleErrorKind::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_incompatible_protocols_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::IncompatibleProtocolsException(_)
)
}
pub fn is_invalid_load_balancer_action_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::InvalidLoadBalancerActionException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(&self.kind, ModifyRuleErrorKind::RuleNotFoundException(_))
}
pub fn is_target_group_association_limit_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::TargetGroupAssociationLimitException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_actions_exception(&self) -> bool {
matches!(&self.kind, ModifyRuleErrorKind::TooManyActionsException(_))
}
pub fn is_too_many_registrations_for_target_id_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::TooManyRegistrationsForTargetIdException(_)
)
}
pub fn is_too_many_targets_exception(&self) -> bool {
matches!(&self.kind, ModifyRuleErrorKind::TooManyTargetsException(_))
}
pub fn is_too_many_unique_target_groups_per_load_balancer_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_)
)
}
pub fn is_unsupported_protocol_exception(&self) -> bool {
matches!(
&self.kind,
ModifyRuleErrorKind::UnsupportedProtocolException(_)
)
}
}
impl std::error::Error for ModifyRuleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyRuleErrorKind::IncompatibleProtocolsException(_inner) => Some(_inner),
ModifyRuleErrorKind::InvalidLoadBalancerActionException(_inner) => Some(_inner),
ModifyRuleErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
ModifyRuleErrorKind::RuleNotFoundException(_inner) => Some(_inner),
ModifyRuleErrorKind::TargetGroupAssociationLimitException(_inner) => Some(_inner),
ModifyRuleErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
ModifyRuleErrorKind::TooManyActionsException(_inner) => Some(_inner),
ModifyRuleErrorKind::TooManyRegistrationsForTargetIdException(_inner) => Some(_inner),
ModifyRuleErrorKind::TooManyTargetsException(_inner) => Some(_inner),
ModifyRuleErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
Some(_inner)
}
ModifyRuleErrorKind::UnsupportedProtocolException(_inner) => Some(_inner),
ModifyRuleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnsupportedProtocolException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnsupportedProtocolException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedProtocolException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedProtocolException")?;
if let Some(inner_17) = &self.message {
{
write!(f, ": {}", inner_17)?;
}
}
Ok(())
}
}
impl std::error::Error for UnsupportedProtocolException {}
pub mod unsupported_protocol_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::UnsupportedProtocolException {
crate::error::UnsupportedProtocolException {
message: self.message,
}
}
}
}
impl UnsupportedProtocolException {
pub fn builder() -> crate::error::unsupported_protocol_exception::Builder {
crate::error::unsupported_protocol_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyUniqueTargetGroupsPerLoadBalancerException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyUniqueTargetGroupsPerLoadBalancerException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyUniqueTargetGroupsPerLoadBalancerException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyUniqueTargetGroupsPerLoadBalancerException")?;
if let Some(inner_18) = &self.message {
{
write!(f, ": {}", inner_18)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyUniqueTargetGroupsPerLoadBalancerException {}
pub mod too_many_unique_target_groups_per_load_balancer_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyUniqueTargetGroupsPerLoadBalancerException {
crate::error::TooManyUniqueTargetGroupsPerLoadBalancerException {
message: self.message,
}
}
}
}
impl TooManyUniqueTargetGroupsPerLoadBalancerException {
pub fn builder(
) -> crate::error::too_many_unique_target_groups_per_load_balancer_exception::Builder {
crate::error::too_many_unique_target_groups_per_load_balancer_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyActionsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyActionsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyActionsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyActionsException")?;
if let Some(inner_19) = &self.message {
{
write!(f, ": {}", inner_19)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyActionsException {}
pub mod too_many_actions_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyActionsException {
crate::error::TooManyActionsException {
message: self.message,
}
}
}
}
impl TooManyActionsException {
pub fn builder() -> crate::error::too_many_actions_exception::Builder {
crate::error::too_many_actions_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TargetGroupAssociationLimitException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TargetGroupAssociationLimitException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TargetGroupAssociationLimitException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TargetGroupAssociationLimitException")?;
if let Some(inner_20) = &self.message {
{
write!(f, ": {}", inner_20)?;
}
}
Ok(())
}
}
impl std::error::Error for TargetGroupAssociationLimitException {}
pub mod target_group_association_limit_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TargetGroupAssociationLimitException {
crate::error::TargetGroupAssociationLimitException {
message: self.message,
}
}
}
}
impl TargetGroupAssociationLimitException {
pub fn builder() -> crate::error::target_group_association_limit_exception::Builder {
crate::error::target_group_association_limit_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidLoadBalancerActionException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidLoadBalancerActionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidLoadBalancerActionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidLoadBalancerActionException")?;
if let Some(inner_21) = &self.message {
{
write!(f, ": {}", inner_21)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidLoadBalancerActionException {}
pub mod invalid_load_balancer_action_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidLoadBalancerActionException {
crate::error::InvalidLoadBalancerActionException {
message: self.message,
}
}
}
}
impl InvalidLoadBalancerActionException {
pub fn builder() -> crate::error::invalid_load_balancer_action_exception::Builder {
crate::error::invalid_load_balancer_action_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IncompatibleProtocolsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IncompatibleProtocolsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IncompatibleProtocolsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IncompatibleProtocolsException")?;
if let Some(inner_22) = &self.message {
{
write!(f, ": {}", inner_22)?;
}
}
Ok(())
}
}
impl std::error::Error for IncompatibleProtocolsException {}
pub mod incompatible_protocols_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::IncompatibleProtocolsException {
crate::error::IncompatibleProtocolsException {
message: self.message,
}
}
}
}
impl IncompatibleProtocolsException {
pub fn builder() -> crate::error::incompatible_protocols_exception::Builder {
crate::error::incompatible_protocols_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyLoadBalancerAttributesError {
pub kind: ModifyLoadBalancerAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyLoadBalancerAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyLoadBalancerAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyLoadBalancerAttributesErrorKind {
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyLoadBalancerAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyLoadBalancerAttributesErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
ModifyLoadBalancerAttributesErrorKind::LoadBalancerNotFoundException(_inner) => {
_inner.fmt(f)
}
ModifyLoadBalancerAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyLoadBalancerAttributesError {
fn code(&self) -> Option<&str> {
ModifyLoadBalancerAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyLoadBalancerAttributesError {
pub fn new(kind: ModifyLoadBalancerAttributesErrorKind, 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: ModifyLoadBalancerAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyLoadBalancerAttributesErrorKind::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_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
ModifyLoadBalancerAttributesErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyLoadBalancerAttributesErrorKind::LoadBalancerNotFoundException(_)
)
}
}
impl std::error::Error for ModifyLoadBalancerAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyLoadBalancerAttributesErrorKind::InvalidConfigurationRequestException(_inner) => {
Some(_inner)
}
ModifyLoadBalancerAttributesErrorKind::LoadBalancerNotFoundException(_inner) => {
Some(_inner)
}
ModifyLoadBalancerAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ModifyListenerError {
pub kind: ModifyListenerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ModifyListenerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ModifyListenerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ModifyListenerErrorKind {
AlpnPolicyNotSupportedException(crate::error::AlpnPolicyNotSupportedException),
CertificateNotFoundException(crate::error::CertificateNotFoundException),
DuplicateListenerException(crate::error::DuplicateListenerException),
IncompatibleProtocolsException(crate::error::IncompatibleProtocolsException),
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidLoadBalancerActionException(crate::error::InvalidLoadBalancerActionException),
ListenerNotFoundException(crate::error::ListenerNotFoundException),
SslPolicyNotFoundException(crate::error::SslPolicyNotFoundException),
TargetGroupAssociationLimitException(crate::error::TargetGroupAssociationLimitException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyActionsException(crate::error::TooManyActionsException),
TooManyCertificatesException(crate::error::TooManyCertificatesException),
TooManyListenersException(crate::error::TooManyListenersException),
TooManyRegistrationsForTargetIdException(
crate::error::TooManyRegistrationsForTargetIdException,
),
TooManyTargetsException(crate::error::TooManyTargetsException),
TooManyUniqueTargetGroupsPerLoadBalancerException(
crate::error::TooManyUniqueTargetGroupsPerLoadBalancerException,
),
UnsupportedProtocolException(crate::error::UnsupportedProtocolException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ModifyListenerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ModifyListenerErrorKind::AlpnPolicyNotSupportedException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::CertificateNotFoundException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::DuplicateListenerException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::IncompatibleProtocolsException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::InvalidConfigurationRequestException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::InvalidLoadBalancerActionException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::SslPolicyNotFoundException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TargetGroupAssociationLimitException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TooManyActionsException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TooManyCertificatesException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TooManyListenersException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TooManyRegistrationsForTargetIdException(_inner) => {
_inner.fmt(f)
}
ModifyListenerErrorKind::TooManyTargetsException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
_inner.fmt(f)
}
ModifyListenerErrorKind::UnsupportedProtocolException(_inner) => _inner.fmt(f),
ModifyListenerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ModifyListenerError {
fn code(&self) -> Option<&str> {
ModifyListenerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ModifyListenerError {
pub fn new(kind: ModifyListenerErrorKind, 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: ModifyListenerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ModifyListenerErrorKind::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_alpn_policy_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::AlpnPolicyNotSupportedException(_)
)
}
pub fn is_certificate_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::CertificateNotFoundException(_)
)
}
pub fn is_duplicate_listener_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::DuplicateListenerException(_)
)
}
pub fn is_incompatible_protocols_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::IncompatibleProtocolsException(_)
)
}
pub fn is_invalid_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_load_balancer_action_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::InvalidLoadBalancerActionException(_)
)
}
pub fn is_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_ssl_policy_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::SslPolicyNotFoundException(_)
)
}
pub fn is_target_group_association_limit_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TargetGroupAssociationLimitException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_actions_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TooManyActionsException(_)
)
}
pub fn is_too_many_certificates_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TooManyCertificatesException(_)
)
}
pub fn is_too_many_listeners_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TooManyListenersException(_)
)
}
pub fn is_too_many_registrations_for_target_id_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TooManyRegistrationsForTargetIdException(_)
)
}
pub fn is_too_many_targets_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TooManyTargetsException(_)
)
}
pub fn is_too_many_unique_target_groups_per_load_balancer_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_)
)
}
pub fn is_unsupported_protocol_exception(&self) -> bool {
matches!(
&self.kind,
ModifyListenerErrorKind::UnsupportedProtocolException(_)
)
}
}
impl std::error::Error for ModifyListenerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ModifyListenerErrorKind::AlpnPolicyNotSupportedException(_inner) => Some(_inner),
ModifyListenerErrorKind::CertificateNotFoundException(_inner) => Some(_inner),
ModifyListenerErrorKind::DuplicateListenerException(_inner) => Some(_inner),
ModifyListenerErrorKind::IncompatibleProtocolsException(_inner) => Some(_inner),
ModifyListenerErrorKind::InvalidConfigurationRequestException(_inner) => Some(_inner),
ModifyListenerErrorKind::InvalidLoadBalancerActionException(_inner) => Some(_inner),
ModifyListenerErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
ModifyListenerErrorKind::SslPolicyNotFoundException(_inner) => Some(_inner),
ModifyListenerErrorKind::TargetGroupAssociationLimitException(_inner) => Some(_inner),
ModifyListenerErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
ModifyListenerErrorKind::TooManyActionsException(_inner) => Some(_inner),
ModifyListenerErrorKind::TooManyCertificatesException(_inner) => Some(_inner),
ModifyListenerErrorKind::TooManyListenersException(_inner) => Some(_inner),
ModifyListenerErrorKind::TooManyRegistrationsForTargetIdException(_inner) => {
Some(_inner)
}
ModifyListenerErrorKind::TooManyTargetsException(_inner) => Some(_inner),
ModifyListenerErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
Some(_inner)
}
ModifyListenerErrorKind::UnsupportedProtocolException(_inner) => Some(_inner),
ModifyListenerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyListenersException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyListenersException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyListenersException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyListenersException")?;
if let Some(inner_23) = &self.message {
{
write!(f, ": {}", inner_23)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyListenersException {}
pub mod too_many_listeners_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyListenersException {
crate::error::TooManyListenersException {
message: self.message,
}
}
}
}
impl TooManyListenersException {
pub fn builder() -> crate::error::too_many_listeners_exception::Builder {
crate::error::too_many_listeners_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyCertificatesException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyCertificatesException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyCertificatesException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyCertificatesException")?;
if let Some(inner_24) = &self.message {
{
write!(f, ": {}", inner_24)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyCertificatesException {}
pub mod too_many_certificates_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyCertificatesException {
crate::error::TooManyCertificatesException {
message: self.message,
}
}
}
}
impl TooManyCertificatesException {
pub fn builder() -> crate::error::too_many_certificates_exception::Builder {
crate::error::too_many_certificates_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct SslPolicyNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl SslPolicyNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for SslPolicyNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "SslPolicyNotFoundException [SSLPolicyNotFoundException]")?;
if let Some(inner_25) = &self.message {
{
write!(f, ": {}", inner_25)?;
}
}
Ok(())
}
}
impl std::error::Error for SslPolicyNotFoundException {}
pub mod ssl_policy_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::SslPolicyNotFoundException {
crate::error::SslPolicyNotFoundException {
message: self.message,
}
}
}
}
impl SslPolicyNotFoundException {
pub fn builder() -> crate::error::ssl_policy_not_found_exception::Builder {
crate::error::ssl_policy_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicateListenerException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicateListenerException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicateListenerException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicateListenerException")?;
if let Some(inner_26) = &self.message {
{
write!(f, ": {}", inner_26)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicateListenerException {}
pub mod duplicate_listener_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DuplicateListenerException {
crate::error::DuplicateListenerException {
message: self.message,
}
}
}
}
impl DuplicateListenerException {
pub fn builder() -> crate::error::duplicate_listener_exception::Builder {
crate::error::duplicate_listener_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct CertificateNotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl CertificateNotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for CertificateNotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "CertificateNotFoundException")?;
if let Some(inner_27) = &self.message {
{
write!(f, ": {}", inner_27)?;
}
}
Ok(())
}
}
impl std::error::Error for CertificateNotFoundException {}
pub mod certificate_not_found_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::CertificateNotFoundException {
crate::error::CertificateNotFoundException {
message: self.message,
}
}
}
}
impl CertificateNotFoundException {
pub fn builder() -> crate::error::certificate_not_found_exception::Builder {
crate::error::certificate_not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct AlpnPolicyNotSupportedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl AlpnPolicyNotSupportedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for AlpnPolicyNotSupportedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(
f,
"AlpnPolicyNotSupportedException [ALPNPolicyNotSupportedException]"
)?;
if let Some(inner_28) = &self.message {
{
write!(f, ": {}", inner_28)?;
}
}
Ok(())
}
}
impl std::error::Error for AlpnPolicyNotSupportedException {}
pub mod alpn_policy_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::AlpnPolicyNotSupportedException {
crate::error::AlpnPolicyNotSupportedException {
message: self.message,
}
}
}
}
impl AlpnPolicyNotSupportedException {
pub fn builder() -> crate::error::alpn_policy_not_supported_exception::Builder {
crate::error::alpn_policy_not_supported_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTargetHealthError {
pub kind: DescribeTargetHealthErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTargetHealthError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTargetHealthErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTargetHealthErrorKind {
HealthUnavailableException(crate::error::HealthUnavailableException),
InvalidTargetException(crate::error::InvalidTargetException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTargetHealthError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTargetHealthErrorKind::HealthUnavailableException(_inner) => _inner.fmt(f),
DescribeTargetHealthErrorKind::InvalidTargetException(_inner) => _inner.fmt(f),
DescribeTargetHealthErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
DescribeTargetHealthErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTargetHealthError {
fn code(&self) -> Option<&str> {
DescribeTargetHealthError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTargetHealthError {
pub fn new(kind: DescribeTargetHealthErrorKind, 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: DescribeTargetHealthErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTargetHealthErrorKind::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_health_unavailable_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTargetHealthErrorKind::HealthUnavailableException(_)
)
}
pub fn is_invalid_target_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTargetHealthErrorKind::InvalidTargetException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTargetHealthErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for DescribeTargetHealthError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTargetHealthErrorKind::HealthUnavailableException(_inner) => Some(_inner),
DescribeTargetHealthErrorKind::InvalidTargetException(_inner) => Some(_inner),
DescribeTargetHealthErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
DescribeTargetHealthErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct HealthUnavailableException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl HealthUnavailableException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for HealthUnavailableException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "HealthUnavailableException")?;
if let Some(inner_29) = &self.message {
{
write!(f, ": {}", inner_29)?;
}
}
Ok(())
}
}
impl std::error::Error for HealthUnavailableException {}
pub mod health_unavailable_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::HealthUnavailableException {
crate::error::HealthUnavailableException {
message: self.message,
}
}
}
}
impl HealthUnavailableException {
pub fn builder() -> crate::error::health_unavailable_exception::Builder {
crate::error::health_unavailable_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTargetGroupsError {
pub kind: DescribeTargetGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTargetGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTargetGroupsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTargetGroupsErrorKind {
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTargetGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTargetGroupsErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
DescribeTargetGroupsErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
DescribeTargetGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTargetGroupsError {
fn code(&self) -> Option<&str> {
DescribeTargetGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTargetGroupsError {
pub fn new(kind: DescribeTargetGroupsErrorKind, 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: DescribeTargetGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTargetGroupsErrorKind::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_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTargetGroupsErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTargetGroupsErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for DescribeTargetGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTargetGroupsErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
DescribeTargetGroupsErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
DescribeTargetGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTargetGroupAttributesError {
pub kind: DescribeTargetGroupAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTargetGroupAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTargetGroupAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTargetGroupAttributesErrorKind {
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTargetGroupAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTargetGroupAttributesErrorKind::TargetGroupNotFoundException(_inner) => {
_inner.fmt(f)
}
DescribeTargetGroupAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTargetGroupAttributesError {
fn code(&self) -> Option<&str> {
DescribeTargetGroupAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTargetGroupAttributesError {
pub fn new(
kind: DescribeTargetGroupAttributesErrorKind,
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: DescribeTargetGroupAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTargetGroupAttributesErrorKind::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_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTargetGroupAttributesErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for DescribeTargetGroupAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTargetGroupAttributesErrorKind::TargetGroupNotFoundException(_inner) => {
Some(_inner)
}
DescribeTargetGroupAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeTagsError {
pub kind: DescribeTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeTagsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeTagsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeTagsErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
RuleNotFoundException(crate::error::RuleNotFoundException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeTagsErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
DescribeTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeTagsError {
fn code(&self) -> Option<&str> {
DescribeTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeTagsError {
pub fn new(kind: DescribeTagsErrorKind, 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: DescribeTagsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeTagsErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeTagsErrorKind::RuleNotFoundException(_))
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeTagsErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for DescribeTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeTagsErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
DescribeTagsErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
DescribeTagsErrorKind::RuleNotFoundException(_inner) => Some(_inner),
DescribeTagsErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
DescribeTagsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeSSLPoliciesError {
pub kind: DescribeSSLPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeSSLPoliciesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeSSLPoliciesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeSSLPoliciesErrorKind {
SslPolicyNotFoundException(crate::error::SslPolicyNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeSSLPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeSSLPoliciesErrorKind::SslPolicyNotFoundException(_inner) => _inner.fmt(f),
DescribeSSLPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeSSLPoliciesError {
fn code(&self) -> Option<&str> {
DescribeSSLPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeSSLPoliciesError {
pub fn new(kind: DescribeSSLPoliciesErrorKind, 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: DescribeSSLPoliciesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeSSLPoliciesErrorKind::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_ssl_policy_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeSSLPoliciesErrorKind::SslPolicyNotFoundException(_)
)
}
}
impl std::error::Error for DescribeSSLPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeSSLPoliciesErrorKind::SslPolicyNotFoundException(_inner) => Some(_inner),
DescribeSSLPoliciesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeRulesError {
pub kind: DescribeRulesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeRulesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeRulesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeRulesErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
RuleNotFoundException(crate::error::RuleNotFoundException),
UnsupportedProtocolException(crate::error::UnsupportedProtocolException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeRulesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeRulesErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
DescribeRulesErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
DescribeRulesErrorKind::UnsupportedProtocolException(_inner) => _inner.fmt(f),
DescribeRulesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeRulesError {
fn code(&self) -> Option<&str> {
DescribeRulesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeRulesError {
pub fn new(kind: DescribeRulesErrorKind, 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: DescribeRulesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeRulesErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRulesErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeRulesErrorKind::RuleNotFoundException(_))
}
pub fn is_unsupported_protocol_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRulesErrorKind::UnsupportedProtocolException(_)
)
}
}
impl std::error::Error for DescribeRulesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeRulesErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
DescribeRulesErrorKind::RuleNotFoundException(_inner) => Some(_inner),
DescribeRulesErrorKind::UnsupportedProtocolException(_inner) => Some(_inner),
DescribeRulesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeLoadBalancersError {
pub kind: DescribeLoadBalancersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeLoadBalancersError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeLoadBalancersErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeLoadBalancersErrorKind {
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeLoadBalancersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeLoadBalancersErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
DescribeLoadBalancersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeLoadBalancersError {
fn code(&self) -> Option<&str> {
DescribeLoadBalancersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeLoadBalancersError {
pub fn new(kind: DescribeLoadBalancersErrorKind, 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: DescribeLoadBalancersErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeLoadBalancersErrorKind::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_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeLoadBalancersErrorKind::LoadBalancerNotFoundException(_)
)
}
}
impl std::error::Error for DescribeLoadBalancersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeLoadBalancersErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
DescribeLoadBalancersErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeLoadBalancerAttributesError {
pub kind: DescribeLoadBalancerAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeLoadBalancerAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeLoadBalancerAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeLoadBalancerAttributesErrorKind {
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeLoadBalancerAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeLoadBalancerAttributesErrorKind::LoadBalancerNotFoundException(_inner) => {
_inner.fmt(f)
}
DescribeLoadBalancerAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeLoadBalancerAttributesError {
fn code(&self) -> Option<&str> {
DescribeLoadBalancerAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeLoadBalancerAttributesError {
pub fn new(
kind: DescribeLoadBalancerAttributesErrorKind,
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: DescribeLoadBalancerAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeLoadBalancerAttributesErrorKind::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_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeLoadBalancerAttributesErrorKind::LoadBalancerNotFoundException(_)
)
}
}
impl std::error::Error for DescribeLoadBalancerAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeLoadBalancerAttributesErrorKind::LoadBalancerNotFoundException(_inner) => {
Some(_inner)
}
DescribeLoadBalancerAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeListenersError {
pub kind: DescribeListenersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeListenersError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeListenersErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeListenersErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
UnsupportedProtocolException(crate::error::UnsupportedProtocolException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeListenersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeListenersErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
DescribeListenersErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
DescribeListenersErrorKind::UnsupportedProtocolException(_inner) => _inner.fmt(f),
DescribeListenersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeListenersError {
fn code(&self) -> Option<&str> {
DescribeListenersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeListenersError {
pub fn new(kind: DescribeListenersErrorKind, 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: DescribeListenersErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeListenersErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeListenersErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeListenersErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_unsupported_protocol_exception(&self) -> bool {
matches!(
&self.kind,
DescribeListenersErrorKind::UnsupportedProtocolException(_)
)
}
}
impl std::error::Error for DescribeListenersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeListenersErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
DescribeListenersErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
DescribeListenersErrorKind::UnsupportedProtocolException(_inner) => Some(_inner),
DescribeListenersErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeListenerCertificatesError {
pub kind: DescribeListenerCertificatesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeListenerCertificatesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeListenerCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeListenerCertificatesErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeListenerCertificatesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeListenerCertificatesErrorKind::ListenerNotFoundException(_inner) => {
_inner.fmt(f)
}
DescribeListenerCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeListenerCertificatesError {
fn code(&self) -> Option<&str> {
DescribeListenerCertificatesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeListenerCertificatesError {
pub fn new(kind: DescribeListenerCertificatesErrorKind, 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: DescribeListenerCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeListenerCertificatesErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeListenerCertificatesErrorKind::ListenerNotFoundException(_)
)
}
}
impl std::error::Error for DescribeListenerCertificatesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeListenerCertificatesErrorKind::ListenerNotFoundException(_inner) => {
Some(_inner)
}
DescribeListenerCertificatesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAccountLimitsError {
pub kind: DescribeAccountLimitsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeAccountLimitsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeAccountLimitsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAccountLimitsErrorKind {
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeAccountLimitsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAccountLimitsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAccountLimitsError {
fn code(&self) -> Option<&str> {
DescribeAccountLimitsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAccountLimitsError {
pub fn new(kind: DescribeAccountLimitsErrorKind, 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: DescribeAccountLimitsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAccountLimitsErrorKind::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 DescribeAccountLimitsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAccountLimitsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeregisterTargetsError {
pub kind: DeregisterTargetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeregisterTargetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeregisterTargetsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeregisterTargetsErrorKind {
InvalidTargetException(crate::error::InvalidTargetException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeregisterTargetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeregisterTargetsErrorKind::InvalidTargetException(_inner) => _inner.fmt(f),
DeregisterTargetsErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
DeregisterTargetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeregisterTargetsError {
fn code(&self) -> Option<&str> {
DeregisterTargetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeregisterTargetsError {
pub fn new(kind: DeregisterTargetsErrorKind, 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: DeregisterTargetsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeregisterTargetsErrorKind::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_target_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterTargetsErrorKind::InvalidTargetException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterTargetsErrorKind::TargetGroupNotFoundException(_)
)
}
}
impl std::error::Error for DeregisterTargetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeregisterTargetsErrorKind::InvalidTargetException(_inner) => Some(_inner),
DeregisterTargetsErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
DeregisterTargetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteTargetGroupError {
pub kind: DeleteTargetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteTargetGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteTargetGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteTargetGroupErrorKind {
ResourceInUseException(crate::error::ResourceInUseException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteTargetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteTargetGroupErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
DeleteTargetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteTargetGroupError {
fn code(&self) -> Option<&str> {
DeleteTargetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteTargetGroupError {
pub fn new(kind: DeleteTargetGroupErrorKind, 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: DeleteTargetGroupErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteTargetGroupErrorKind::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_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
DeleteTargetGroupErrorKind::ResourceInUseException(_)
)
}
}
impl std::error::Error for DeleteTargetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteTargetGroupErrorKind::ResourceInUseException(_inner) => Some(_inner),
DeleteTargetGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ResourceInUseException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ResourceInUseException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ResourceInUseException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ResourceInUseException")?;
if let Some(inner_30) = &self.message {
{
write!(f, ": {}", inner_30)?;
}
}
Ok(())
}
}
impl std::error::Error for ResourceInUseException {}
pub mod resource_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::ResourceInUseException {
crate::error::ResourceInUseException {
message: self.message,
}
}
}
}
impl ResourceInUseException {
pub fn builder() -> crate::error::resource_in_use_exception::Builder {
crate::error::resource_in_use_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteRuleError {
pub kind: DeleteRuleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteRuleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteRuleErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteRuleErrorKind {
OperationNotPermittedException(crate::error::OperationNotPermittedException),
RuleNotFoundException(crate::error::RuleNotFoundException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteRuleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteRuleErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
DeleteRuleErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
DeleteRuleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteRuleError {
fn code(&self) -> Option<&str> {
DeleteRuleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteRuleError {
pub fn new(kind: DeleteRuleErrorKind, 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: DeleteRuleErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteRuleErrorKind::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_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteRuleErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteRuleErrorKind::RuleNotFoundException(_))
}
}
impl std::error::Error for DeleteRuleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteRuleErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
DeleteRuleErrorKind::RuleNotFoundException(_inner) => Some(_inner),
DeleteRuleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteLoadBalancerError {
pub kind: DeleteLoadBalancerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteLoadBalancerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteLoadBalancerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteLoadBalancerErrorKind {
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ResourceInUseException(crate::error::ResourceInUseException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteLoadBalancerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteLoadBalancerErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
DeleteLoadBalancerErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
DeleteLoadBalancerErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
DeleteLoadBalancerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteLoadBalancerError {
fn code(&self) -> Option<&str> {
DeleteLoadBalancerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteLoadBalancerError {
pub fn new(kind: DeleteLoadBalancerErrorKind, 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: DeleteLoadBalancerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteLoadBalancerErrorKind::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_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLoadBalancerErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLoadBalancerErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLoadBalancerErrorKind::ResourceInUseException(_)
)
}
}
impl std::error::Error for DeleteLoadBalancerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteLoadBalancerErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
DeleteLoadBalancerErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
DeleteLoadBalancerErrorKind::ResourceInUseException(_inner) => Some(_inner),
DeleteLoadBalancerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteListenerError {
pub kind: DeleteListenerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteListenerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteListenerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteListenerErrorKind {
ListenerNotFoundException(crate::error::ListenerNotFoundException),
ResourceInUseException(crate::error::ResourceInUseException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteListenerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteListenerErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
DeleteListenerErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
DeleteListenerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteListenerError {
fn code(&self) -> Option<&str> {
DeleteListenerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteListenerError {
pub fn new(kind: DeleteListenerErrorKind, 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: DeleteListenerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteListenerErrorKind::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_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteListenerErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
DeleteListenerErrorKind::ResourceInUseException(_)
)
}
}
impl std::error::Error for DeleteListenerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteListenerErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
DeleteListenerErrorKind::ResourceInUseException(_inner) => Some(_inner),
DeleteListenerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateTargetGroupError {
pub kind: CreateTargetGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateTargetGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateTargetGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateTargetGroupErrorKind {
DuplicateTargetGroupNameException(crate::error::DuplicateTargetGroupNameException),
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
TooManyTagsException(crate::error::TooManyTagsException),
TooManyTargetGroupsException(crate::error::TooManyTargetGroupsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateTargetGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateTargetGroupErrorKind::DuplicateTargetGroupNameException(_inner) => _inner.fmt(f),
CreateTargetGroupErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
CreateTargetGroupErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateTargetGroupErrorKind::TooManyTargetGroupsException(_inner) => _inner.fmt(f),
CreateTargetGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateTargetGroupError {
fn code(&self) -> Option<&str> {
CreateTargetGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateTargetGroupError {
pub fn new(kind: CreateTargetGroupErrorKind, 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: CreateTargetGroupErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateTargetGroupErrorKind::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_duplicate_target_group_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateTargetGroupErrorKind::DuplicateTargetGroupNameException(_)
)
}
pub fn is_invalid_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateTargetGroupErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(
&self.kind,
CreateTargetGroupErrorKind::TooManyTagsException(_)
)
}
pub fn is_too_many_target_groups_exception(&self) -> bool {
matches!(
&self.kind,
CreateTargetGroupErrorKind::TooManyTargetGroupsException(_)
)
}
}
impl std::error::Error for CreateTargetGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateTargetGroupErrorKind::DuplicateTargetGroupNameException(_inner) => Some(_inner),
CreateTargetGroupErrorKind::InvalidConfigurationRequestException(_inner) => {
Some(_inner)
}
CreateTargetGroupErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateTargetGroupErrorKind::TooManyTargetGroupsException(_inner) => Some(_inner),
CreateTargetGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyTargetGroupsException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyTargetGroupsException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyTargetGroupsException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyTargetGroupsException")?;
if let Some(inner_31) = &self.message {
{
write!(f, ": {}", inner_31)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyTargetGroupsException {}
pub mod too_many_target_groups_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyTargetGroupsException {
crate::error::TooManyTargetGroupsException {
message: self.message,
}
}
}
}
impl TooManyTargetGroupsException {
pub fn builder() -> crate::error::too_many_target_groups_exception::Builder {
crate::error::too_many_target_groups_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicateTargetGroupNameException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicateTargetGroupNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicateTargetGroupNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicateTargetGroupNameException")?;
if let Some(inner_32) = &self.message {
{
write!(f, ": {}", inner_32)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicateTargetGroupNameException {}
pub mod duplicate_target_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DuplicateTargetGroupNameException {
crate::error::DuplicateTargetGroupNameException {
message: self.message,
}
}
}
}
impl DuplicateTargetGroupNameException {
pub fn builder() -> crate::error::duplicate_target_group_name_exception::Builder {
crate::error::duplicate_target_group_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateRuleError {
pub kind: CreateRuleErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateRuleError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateRuleErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateRuleErrorKind {
IncompatibleProtocolsException(crate::error::IncompatibleProtocolsException),
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidLoadBalancerActionException(crate::error::InvalidLoadBalancerActionException),
ListenerNotFoundException(crate::error::ListenerNotFoundException),
PriorityInUseException(crate::error::PriorityInUseException),
TargetGroupAssociationLimitException(crate::error::TargetGroupAssociationLimitException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyActionsException(crate::error::TooManyActionsException),
TooManyRegistrationsForTargetIdException(
crate::error::TooManyRegistrationsForTargetIdException,
),
TooManyRulesException(crate::error::TooManyRulesException),
TooManyTagsException(crate::error::TooManyTagsException),
TooManyTargetGroupsException(crate::error::TooManyTargetGroupsException),
TooManyTargetsException(crate::error::TooManyTargetsException),
TooManyUniqueTargetGroupsPerLoadBalancerException(
crate::error::TooManyUniqueTargetGroupsPerLoadBalancerException,
),
UnsupportedProtocolException(crate::error::UnsupportedProtocolException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateRuleError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateRuleErrorKind::IncompatibleProtocolsException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::InvalidConfigurationRequestException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::InvalidLoadBalancerActionException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::PriorityInUseException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TargetGroupAssociationLimitException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyActionsException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyRegistrationsForTargetIdException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyRulesException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyTargetGroupsException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyTargetsException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
_inner.fmt(f)
}
CreateRuleErrorKind::UnsupportedProtocolException(_inner) => _inner.fmt(f),
CreateRuleErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateRuleError {
fn code(&self) -> Option<&str> {
CreateRuleError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateRuleError {
pub fn new(kind: CreateRuleErrorKind, 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: CreateRuleErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateRuleErrorKind::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_incompatible_protocols_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::IncompatibleProtocolsException(_)
)
}
pub fn is_invalid_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_load_balancer_action_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::InvalidLoadBalancerActionException(_)
)
}
pub fn is_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_priority_in_use_exception(&self) -> bool {
matches!(&self.kind, CreateRuleErrorKind::PriorityInUseException(_))
}
pub fn is_target_group_association_limit_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::TargetGroupAssociationLimitException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_actions_exception(&self) -> bool {
matches!(&self.kind, CreateRuleErrorKind::TooManyActionsException(_))
}
pub fn is_too_many_registrations_for_target_id_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::TooManyRegistrationsForTargetIdException(_)
)
}
pub fn is_too_many_rules_exception(&self) -> bool {
matches!(&self.kind, CreateRuleErrorKind::TooManyRulesException(_))
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreateRuleErrorKind::TooManyTagsException(_))
}
pub fn is_too_many_target_groups_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::TooManyTargetGroupsException(_)
)
}
pub fn is_too_many_targets_exception(&self) -> bool {
matches!(&self.kind, CreateRuleErrorKind::TooManyTargetsException(_))
}
pub fn is_too_many_unique_target_groups_per_load_balancer_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_)
)
}
pub fn is_unsupported_protocol_exception(&self) -> bool {
matches!(
&self.kind,
CreateRuleErrorKind::UnsupportedProtocolException(_)
)
}
}
impl std::error::Error for CreateRuleError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateRuleErrorKind::IncompatibleProtocolsException(_inner) => Some(_inner),
CreateRuleErrorKind::InvalidConfigurationRequestException(_inner) => Some(_inner),
CreateRuleErrorKind::InvalidLoadBalancerActionException(_inner) => Some(_inner),
CreateRuleErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
CreateRuleErrorKind::PriorityInUseException(_inner) => Some(_inner),
CreateRuleErrorKind::TargetGroupAssociationLimitException(_inner) => Some(_inner),
CreateRuleErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyActionsException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyRegistrationsForTargetIdException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyRulesException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyTargetGroupsException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyTargetsException(_inner) => Some(_inner),
CreateRuleErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
Some(_inner)
}
CreateRuleErrorKind::UnsupportedProtocolException(_inner) => Some(_inner),
CreateRuleErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyRulesException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyRulesException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyRulesException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyRulesException")?;
if let Some(inner_33) = &self.message {
{
write!(f, ": {}", inner_33)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyRulesException {}
pub mod too_many_rules_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyRulesException {
crate::error::TooManyRulesException {
message: self.message,
}
}
}
}
impl TooManyRulesException {
pub fn builder() -> crate::error::too_many_rules_exception::Builder {
crate::error::too_many_rules_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateLoadBalancerError {
pub kind: CreateLoadBalancerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateLoadBalancerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateLoadBalancerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateLoadBalancerErrorKind {
AllocationIdNotFoundException(crate::error::AllocationIdNotFoundException),
AvailabilityZoneNotSupportedException(crate::error::AvailabilityZoneNotSupportedException),
DuplicateLoadBalancerNameException(crate::error::DuplicateLoadBalancerNameException),
DuplicateTagKeysException(crate::error::DuplicateTagKeysException),
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidSchemeException(crate::error::InvalidSchemeException),
InvalidSecurityGroupException(crate::error::InvalidSecurityGroupException),
InvalidSubnetException(crate::error::InvalidSubnetException),
OperationNotPermittedException(crate::error::OperationNotPermittedException),
ResourceInUseException(crate::error::ResourceInUseException),
SubnetNotFoundException(crate::error::SubnetNotFoundException),
TooManyLoadBalancersException(crate::error::TooManyLoadBalancersException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateLoadBalancerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateLoadBalancerErrorKind::AllocationIdNotFoundException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::AvailabilityZoneNotSupportedException(_inner) => {
_inner.fmt(f)
}
CreateLoadBalancerErrorKind::DuplicateLoadBalancerNameException(_inner) => {
_inner.fmt(f)
}
CreateLoadBalancerErrorKind::DuplicateTagKeysException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::InvalidConfigurationRequestException(_inner) => {
_inner.fmt(f)
}
CreateLoadBalancerErrorKind::InvalidSchemeException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::InvalidSecurityGroupException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::InvalidSubnetException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::OperationNotPermittedException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::ResourceInUseException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::SubnetNotFoundException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::TooManyLoadBalancersException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateLoadBalancerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateLoadBalancerError {
fn code(&self) -> Option<&str> {
CreateLoadBalancerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateLoadBalancerError {
pub fn new(kind: CreateLoadBalancerErrorKind, 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: CreateLoadBalancerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateLoadBalancerErrorKind::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_allocation_id_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::AllocationIdNotFoundException(_)
)
}
pub fn is_availability_zone_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::AvailabilityZoneNotSupportedException(_)
)
}
pub fn is_duplicate_load_balancer_name_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::DuplicateLoadBalancerNameException(_)
)
}
pub fn is_duplicate_tag_keys_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::DuplicateTagKeysException(_)
)
}
pub fn is_invalid_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_scheme_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::InvalidSchemeException(_)
)
}
pub fn is_invalid_security_group_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::InvalidSecurityGroupException(_)
)
}
pub fn is_invalid_subnet_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::InvalidSubnetException(_)
)
}
pub fn is_operation_not_permitted_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::OperationNotPermittedException(_)
)
}
pub fn is_resource_in_use_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::ResourceInUseException(_)
)
}
pub fn is_subnet_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::SubnetNotFoundException(_)
)
}
pub fn is_too_many_load_balancers_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::TooManyLoadBalancersException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(
&self.kind,
CreateLoadBalancerErrorKind::TooManyTagsException(_)
)
}
}
impl std::error::Error for CreateLoadBalancerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateLoadBalancerErrorKind::AllocationIdNotFoundException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::AvailabilityZoneNotSupportedException(_inner) => {
Some(_inner)
}
CreateLoadBalancerErrorKind::DuplicateLoadBalancerNameException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::DuplicateTagKeysException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::InvalidConfigurationRequestException(_inner) => {
Some(_inner)
}
CreateLoadBalancerErrorKind::InvalidSchemeException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::InvalidSecurityGroupException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::InvalidSubnetException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::OperationNotPermittedException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::ResourceInUseException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::SubnetNotFoundException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::TooManyLoadBalancersException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateLoadBalancerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TooManyLoadBalancersException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TooManyLoadBalancersException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TooManyLoadBalancersException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TooManyLoadBalancersException")?;
if let Some(inner_34) = &self.message {
{
write!(f, ": {}", inner_34)?;
}
}
Ok(())
}
}
impl std::error::Error for TooManyLoadBalancersException {}
pub mod too_many_load_balancers_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::TooManyLoadBalancersException {
crate::error::TooManyLoadBalancersException {
message: self.message,
}
}
}
}
impl TooManyLoadBalancersException {
pub fn builder() -> crate::error::too_many_load_balancers_exception::Builder {
crate::error::too_many_load_balancers_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidSchemeException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidSchemeException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidSchemeException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidSchemeException")?;
if let Some(inner_35) = &self.message {
{
write!(f, ": {}", inner_35)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidSchemeException {}
pub mod invalid_scheme_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::InvalidSchemeException {
crate::error::InvalidSchemeException {
message: self.message,
}
}
}
}
impl InvalidSchemeException {
pub fn builder() -> crate::error::invalid_scheme_exception::Builder {
crate::error::invalid_scheme_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicateTagKeysException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicateTagKeysException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicateTagKeysException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicateTagKeysException")?;
if let Some(inner_36) = &self.message {
{
write!(f, ": {}", inner_36)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicateTagKeysException {}
pub mod duplicate_tag_keys_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DuplicateTagKeysException {
crate::error::DuplicateTagKeysException {
message: self.message,
}
}
}
}
impl DuplicateTagKeysException {
pub fn builder() -> crate::error::duplicate_tag_keys_exception::Builder {
crate::error::duplicate_tag_keys_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct DuplicateLoadBalancerNameException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl DuplicateLoadBalancerNameException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for DuplicateLoadBalancerNameException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "DuplicateLoadBalancerNameException")?;
if let Some(inner_37) = &self.message {
{
write!(f, ": {}", inner_37)?;
}
}
Ok(())
}
}
impl std::error::Error for DuplicateLoadBalancerNameException {}
pub mod duplicate_load_balancer_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 {
#[allow(missing_docs)] pub fn message(mut self, input: impl Into<std::string::String>) -> Self {
self.message = Some(input.into());
self
}
#[allow(missing_docs)] pub fn set_message(mut self, input: std::option::Option<std::string::String>) -> Self {
self.message = input;
self
}
pub fn build(self) -> crate::error::DuplicateLoadBalancerNameException {
crate::error::DuplicateLoadBalancerNameException {
message: self.message,
}
}
}
}
impl DuplicateLoadBalancerNameException {
pub fn builder() -> crate::error::duplicate_load_balancer_name_exception::Builder {
crate::error::duplicate_load_balancer_name_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateListenerError {
pub kind: CreateListenerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateListenerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateListenerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateListenerErrorKind {
AlpnPolicyNotSupportedException(crate::error::AlpnPolicyNotSupportedException),
CertificateNotFoundException(crate::error::CertificateNotFoundException),
DuplicateListenerException(crate::error::DuplicateListenerException),
IncompatibleProtocolsException(crate::error::IncompatibleProtocolsException),
InvalidConfigurationRequestException(crate::error::InvalidConfigurationRequestException),
InvalidLoadBalancerActionException(crate::error::InvalidLoadBalancerActionException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
SslPolicyNotFoundException(crate::error::SslPolicyNotFoundException),
TargetGroupAssociationLimitException(crate::error::TargetGroupAssociationLimitException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyActionsException(crate::error::TooManyActionsException),
TooManyCertificatesException(crate::error::TooManyCertificatesException),
TooManyListenersException(crate::error::TooManyListenersException),
TooManyRegistrationsForTargetIdException(
crate::error::TooManyRegistrationsForTargetIdException,
),
TooManyTagsException(crate::error::TooManyTagsException),
TooManyTargetsException(crate::error::TooManyTargetsException),
TooManyUniqueTargetGroupsPerLoadBalancerException(
crate::error::TooManyUniqueTargetGroupsPerLoadBalancerException,
),
UnsupportedProtocolException(crate::error::UnsupportedProtocolException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateListenerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateListenerErrorKind::AlpnPolicyNotSupportedException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::CertificateNotFoundException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::DuplicateListenerException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::IncompatibleProtocolsException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::InvalidConfigurationRequestException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::InvalidLoadBalancerActionException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::SslPolicyNotFoundException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TargetGroupAssociationLimitException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TooManyActionsException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TooManyCertificatesException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TooManyListenersException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TooManyRegistrationsForTargetIdException(_inner) => {
_inner.fmt(f)
}
CreateListenerErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TooManyTargetsException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
_inner.fmt(f)
}
CreateListenerErrorKind::UnsupportedProtocolException(_inner) => _inner.fmt(f),
CreateListenerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateListenerError {
fn code(&self) -> Option<&str> {
CreateListenerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateListenerError {
pub fn new(kind: CreateListenerErrorKind, 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: CreateListenerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateListenerErrorKind::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_alpn_policy_not_supported_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::AlpnPolicyNotSupportedException(_)
)
}
pub fn is_certificate_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::CertificateNotFoundException(_)
)
}
pub fn is_duplicate_listener_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::DuplicateListenerException(_)
)
}
pub fn is_incompatible_protocols_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::IncompatibleProtocolsException(_)
)
}
pub fn is_invalid_configuration_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::InvalidConfigurationRequestException(_)
)
}
pub fn is_invalid_load_balancer_action_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::InvalidLoadBalancerActionException(_)
)
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_ssl_policy_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::SslPolicyNotFoundException(_)
)
}
pub fn is_target_group_association_limit_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TargetGroupAssociationLimitException(_)
)
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_actions_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TooManyActionsException(_)
)
}
pub fn is_too_many_certificates_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TooManyCertificatesException(_)
)
}
pub fn is_too_many_listeners_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TooManyListenersException(_)
)
}
pub fn is_too_many_registrations_for_target_id_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TooManyRegistrationsForTargetIdException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, CreateListenerErrorKind::TooManyTagsException(_))
}
pub fn is_too_many_targets_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TooManyTargetsException(_)
)
}
pub fn is_too_many_unique_target_groups_per_load_balancer_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_)
)
}
pub fn is_unsupported_protocol_exception(&self) -> bool {
matches!(
&self.kind,
CreateListenerErrorKind::UnsupportedProtocolException(_)
)
}
}
impl std::error::Error for CreateListenerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateListenerErrorKind::AlpnPolicyNotSupportedException(_inner) => Some(_inner),
CreateListenerErrorKind::CertificateNotFoundException(_inner) => Some(_inner),
CreateListenerErrorKind::DuplicateListenerException(_inner) => Some(_inner),
CreateListenerErrorKind::IncompatibleProtocolsException(_inner) => Some(_inner),
CreateListenerErrorKind::InvalidConfigurationRequestException(_inner) => Some(_inner),
CreateListenerErrorKind::InvalidLoadBalancerActionException(_inner) => Some(_inner),
CreateListenerErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
CreateListenerErrorKind::SslPolicyNotFoundException(_inner) => Some(_inner),
CreateListenerErrorKind::TargetGroupAssociationLimitException(_inner) => Some(_inner),
CreateListenerErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
CreateListenerErrorKind::TooManyActionsException(_inner) => Some(_inner),
CreateListenerErrorKind::TooManyCertificatesException(_inner) => Some(_inner),
CreateListenerErrorKind::TooManyListenersException(_inner) => Some(_inner),
CreateListenerErrorKind::TooManyRegistrationsForTargetIdException(_inner) => {
Some(_inner)
}
CreateListenerErrorKind::TooManyTagsException(_inner) => Some(_inner),
CreateListenerErrorKind::TooManyTargetsException(_inner) => Some(_inner),
CreateListenerErrorKind::TooManyUniqueTargetGroupsPerLoadBalancerException(_inner) => {
Some(_inner)
}
CreateListenerErrorKind::UnsupportedProtocolException(_inner) => Some(_inner),
CreateListenerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddTagsError {
pub kind: AddTagsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddTagsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddTagsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddTagsErrorKind {
DuplicateTagKeysException(crate::error::DuplicateTagKeysException),
ListenerNotFoundException(crate::error::ListenerNotFoundException),
LoadBalancerNotFoundException(crate::error::LoadBalancerNotFoundException),
RuleNotFoundException(crate::error::RuleNotFoundException),
TargetGroupNotFoundException(crate::error::TargetGroupNotFoundException),
TooManyTagsException(crate::error::TooManyTagsException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddTagsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddTagsErrorKind::DuplicateTagKeysException(_inner) => _inner.fmt(f),
AddTagsErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
AddTagsErrorKind::LoadBalancerNotFoundException(_inner) => _inner.fmt(f),
AddTagsErrorKind::RuleNotFoundException(_inner) => _inner.fmt(f),
AddTagsErrorKind::TargetGroupNotFoundException(_inner) => _inner.fmt(f),
AddTagsErrorKind::TooManyTagsException(_inner) => _inner.fmt(f),
AddTagsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddTagsError {
fn code(&self) -> Option<&str> {
AddTagsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddTagsError {
pub fn new(kind: AddTagsErrorKind, 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: AddTagsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddTagsErrorKind::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_duplicate_tag_keys_exception(&self) -> bool {
matches!(&self.kind, AddTagsErrorKind::DuplicateTagKeysException(_))
}
pub fn is_listener_not_found_exception(&self) -> bool {
matches!(&self.kind, AddTagsErrorKind::ListenerNotFoundException(_))
}
pub fn is_load_balancer_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsErrorKind::LoadBalancerNotFoundException(_)
)
}
pub fn is_rule_not_found_exception(&self) -> bool {
matches!(&self.kind, AddTagsErrorKind::RuleNotFoundException(_))
}
pub fn is_target_group_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AddTagsErrorKind::TargetGroupNotFoundException(_)
)
}
pub fn is_too_many_tags_exception(&self) -> bool {
matches!(&self.kind, AddTagsErrorKind::TooManyTagsException(_))
}
}
impl std::error::Error for AddTagsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddTagsErrorKind::DuplicateTagKeysException(_inner) => Some(_inner),
AddTagsErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
AddTagsErrorKind::LoadBalancerNotFoundException(_inner) => Some(_inner),
AddTagsErrorKind::RuleNotFoundException(_inner) => Some(_inner),
AddTagsErrorKind::TargetGroupNotFoundException(_inner) => Some(_inner),
AddTagsErrorKind::TooManyTagsException(_inner) => Some(_inner),
AddTagsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AddListenerCertificatesError {
pub kind: AddListenerCertificatesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AddListenerCertificatesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AddListenerCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AddListenerCertificatesErrorKind {
CertificateNotFoundException(crate::error::CertificateNotFoundException),
ListenerNotFoundException(crate::error::ListenerNotFoundException),
TooManyCertificatesException(crate::error::TooManyCertificatesException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AddListenerCertificatesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AddListenerCertificatesErrorKind::CertificateNotFoundException(_inner) => _inner.fmt(f),
AddListenerCertificatesErrorKind::ListenerNotFoundException(_inner) => _inner.fmt(f),
AddListenerCertificatesErrorKind::TooManyCertificatesException(_inner) => _inner.fmt(f),
AddListenerCertificatesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AddListenerCertificatesError {
fn code(&self) -> Option<&str> {
AddListenerCertificatesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AddListenerCertificatesError {
pub fn new(kind: AddListenerCertificatesErrorKind, 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: AddListenerCertificatesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AddListenerCertificatesErrorKind::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_certificate_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AddListenerCertificatesErrorKind::CertificateNotFoundException(_)
)
}
pub fn is_listener_not_found_exception(&self) -> bool {
matches!(
&self.kind,
AddListenerCertificatesErrorKind::ListenerNotFoundException(_)
)
}
pub fn is_too_many_certificates_exception(&self) -> bool {
matches!(
&self.kind,
AddListenerCertificatesErrorKind::TooManyCertificatesException(_)
)
}
}
impl std::error::Error for AddListenerCertificatesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AddListenerCertificatesErrorKind::CertificateNotFoundException(_inner) => Some(_inner),
AddListenerCertificatesErrorKind::ListenerNotFoundException(_inner) => Some(_inner),
AddListenerCertificatesErrorKind::TooManyCertificatesException(_inner) => Some(_inner),
AddListenerCertificatesErrorKind::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 _)
}
}