#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ValidateMatchmakingRuleSetError {
pub kind: ValidateMatchmakingRuleSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ValidateMatchmakingRuleSetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ValidateMatchmakingRuleSetErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ValidateMatchmakingRuleSetErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ValidateMatchmakingRuleSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ValidateMatchmakingRuleSetErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ValidateMatchmakingRuleSetErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ValidateMatchmakingRuleSetErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
ValidateMatchmakingRuleSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ValidateMatchmakingRuleSetError {
fn code(&self) -> Option<&str> {
ValidateMatchmakingRuleSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ValidateMatchmakingRuleSetError {
pub fn new(kind: ValidateMatchmakingRuleSetErrorKind, 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: ValidateMatchmakingRuleSetErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ValidateMatchmakingRuleSetErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ValidateMatchmakingRuleSetErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ValidateMatchmakingRuleSetErrorKind::InvalidRequestException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
ValidateMatchmakingRuleSetErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for ValidateMatchmakingRuleSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ValidateMatchmakingRuleSetErrorKind::InternalServiceException(_inner) => Some(_inner),
ValidateMatchmakingRuleSetErrorKind::InvalidRequestException(_inner) => Some(_inner),
ValidateMatchmakingRuleSetErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
ValidateMatchmakingRuleSetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnsupportedRegionException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnsupportedRegionException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnsupportedRegionException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnsupportedRegionException")?;
if let Some(inner_1) = &self.message {
{
write!(f, ": {}", inner_1)?;
}
}
Ok(())
}
}
impl std::error::Error for UnsupportedRegionException {}
pub mod unsupported_region_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::UnsupportedRegionException {
crate::error::UnsupportedRegionException {
message: self.message,
}
}
}
}
impl UnsupportedRegionException {
pub fn builder() -> crate::error::unsupported_region_exception::Builder {
crate::error::unsupported_region_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidRequestException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidRequestException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidRequestException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidRequestException")?;
if let Some(inner_2) = &self.message {
{
write!(f, ": {}", inner_2)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidRequestException {}
pub mod invalid_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::InvalidRequestException {
crate::error::InvalidRequestException {
message: self.message,
}
}
}
}
impl InvalidRequestException {
pub fn builder() -> crate::error::invalid_request_exception::Builder {
crate::error::invalid_request_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InternalServiceException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InternalServiceException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InternalServiceException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InternalServiceException")?;
if let Some(inner_3) = &self.message {
{
write!(f, ": {}", inner_3)?;
}
}
Ok(())
}
}
impl std::error::Error for InternalServiceException {}
pub mod internal_service_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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::InternalServiceException {
crate::error::InternalServiceException {
message: self.message,
}
}
}
}
impl InternalServiceException {
pub fn builder() -> crate::error::internal_service_exception::Builder {
crate::error::internal_service_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateScriptError {
pub kind: UpdateScriptErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateScriptError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateScriptErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateScriptErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateScriptError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateScriptErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateScriptErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateScriptErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateScriptErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateScriptErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateScriptError {
fn code(&self) -> Option<&str> {
UpdateScriptError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateScriptError {
pub fn new(kind: UpdateScriptErrorKind, 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: UpdateScriptErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateScriptErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateScriptErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateScriptErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateScriptErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, UpdateScriptErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for UpdateScriptError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateScriptErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateScriptErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateScriptErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateScriptErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateScriptErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UnauthorizedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl UnauthorizedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for UnauthorizedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "UnauthorizedException")?;
if let Some(inner_4) = &self.message {
{
write!(f, ": {}", inner_4)?;
}
}
Ok(())
}
}
impl std::error::Error for UnauthorizedException {}
pub mod unauthorized_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::UnauthorizedException {
crate::error::UnauthorizedException {
message: self.message,
}
}
}
}
impl UnauthorizedException {
pub fn builder() -> crate::error::unauthorized_exception::Builder {
crate::error::unauthorized_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct NotFoundException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl NotFoundException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for NotFoundException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "NotFoundException")?;
if let Some(inner_5) = &self.message {
{
write!(f, ": {}", inner_5)?;
}
}
Ok(())
}
}
impl std::error::Error for NotFoundException {}
pub mod 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::NotFoundException {
crate::error::NotFoundException {
message: self.message,
}
}
}
}
impl NotFoundException {
pub fn builder() -> crate::error::not_found_exception::Builder {
crate::error::not_found_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateRuntimeConfigurationError {
pub kind: UpdateRuntimeConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateRuntimeConfigurationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateRuntimeConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateRuntimeConfigurationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateRuntimeConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateRuntimeConfigurationErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateRuntimeConfigurationErrorKind::InvalidFleetStatusException(_inner) => {
_inner.fmt(f)
}
UpdateRuntimeConfigurationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateRuntimeConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateRuntimeConfigurationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateRuntimeConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateRuntimeConfigurationError {
fn code(&self) -> Option<&str> {
UpdateRuntimeConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateRuntimeConfigurationError {
pub fn new(kind: UpdateRuntimeConfigurationErrorKind, 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: UpdateRuntimeConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateRuntimeConfigurationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateRuntimeConfigurationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
UpdateRuntimeConfigurationErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateRuntimeConfigurationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateRuntimeConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateRuntimeConfigurationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateRuntimeConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateRuntimeConfigurationErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateRuntimeConfigurationErrorKind::InvalidFleetStatusException(_inner) => {
Some(_inner)
}
UpdateRuntimeConfigurationErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateRuntimeConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateRuntimeConfigurationErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateRuntimeConfigurationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidFleetStatusException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidFleetStatusException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidFleetStatusException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidFleetStatusException")?;
if let Some(inner_6) = &self.message {
{
write!(f, ": {}", inner_6)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidFleetStatusException {}
pub mod invalid_fleet_status_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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::InvalidFleetStatusException {
crate::error::InvalidFleetStatusException {
message: self.message,
}
}
}
}
impl InvalidFleetStatusException {
pub fn builder() -> crate::error::invalid_fleet_status_exception::Builder {
crate::error::invalid_fleet_status_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateMatchmakingConfigurationError {
pub kind: UpdateMatchmakingConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateMatchmakingConfigurationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateMatchmakingConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateMatchmakingConfigurationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateMatchmakingConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateMatchmakingConfigurationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
UpdateMatchmakingConfigurationErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
UpdateMatchmakingConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateMatchmakingConfigurationErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
UpdateMatchmakingConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateMatchmakingConfigurationError {
fn code(&self) -> Option<&str> {
UpdateMatchmakingConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateMatchmakingConfigurationError {
pub fn new(
kind: UpdateMatchmakingConfigurationErrorKind,
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: UpdateMatchmakingConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateMatchmakingConfigurationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMatchmakingConfigurationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMatchmakingConfigurationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMatchmakingConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
UpdateMatchmakingConfigurationErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for UpdateMatchmakingConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateMatchmakingConfigurationErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
UpdateMatchmakingConfigurationErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
UpdateMatchmakingConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateMatchmakingConfigurationErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
UpdateMatchmakingConfigurationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGameSessionQueueError {
pub kind: UpdateGameSessionQueueErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateGameSessionQueueError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateGameSessionQueueErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGameSessionQueueErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateGameSessionQueueError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGameSessionQueueErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateGameSessionQueueErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateGameSessionQueueErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateGameSessionQueueErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateGameSessionQueueErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGameSessionQueueError {
fn code(&self) -> Option<&str> {
UpdateGameSessionQueueError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGameSessionQueueError {
pub fn new(kind: UpdateGameSessionQueueErrorKind, 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: UpdateGameSessionQueueErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGameSessionQueueErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionQueueErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionQueueErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionQueueErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionQueueErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateGameSessionQueueError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGameSessionQueueErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateGameSessionQueueErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateGameSessionQueueErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateGameSessionQueueErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateGameSessionQueueErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGameSessionError {
pub kind: UpdateGameSessionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateGameSessionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateGameSessionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGameSessionErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidGameSessionStatusException(crate::error::InvalidGameSessionStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateGameSessionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGameSessionErrorKind::ConflictException(_inner) => _inner.fmt(f),
UpdateGameSessionErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateGameSessionErrorKind::InvalidGameSessionStatusException(_inner) => _inner.fmt(f),
UpdateGameSessionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateGameSessionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateGameSessionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateGameSessionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGameSessionError {
fn code(&self) -> Option<&str> {
UpdateGameSessionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGameSessionError {
pub fn new(kind: UpdateGameSessionErrorKind, 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: UpdateGameSessionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGameSessionErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, UpdateGameSessionErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_game_session_status_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionErrorKind::InvalidGameSessionStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateGameSessionErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameSessionErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateGameSessionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGameSessionErrorKind::ConflictException(_inner) => Some(_inner),
UpdateGameSessionErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateGameSessionErrorKind::InvalidGameSessionStatusException(_inner) => Some(_inner),
UpdateGameSessionErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateGameSessionErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateGameSessionErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateGameSessionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct InvalidGameSessionStatusException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl InvalidGameSessionStatusException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for InvalidGameSessionStatusException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "InvalidGameSessionStatusException")?;
if let Some(inner_7) = &self.message {
{
write!(f, ": {}", inner_7)?;
}
}
Ok(())
}
}
impl std::error::Error for InvalidGameSessionStatusException {}
pub mod invalid_game_session_status_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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::InvalidGameSessionStatusException {
crate::error::InvalidGameSessionStatusException {
message: self.message,
}
}
}
}
impl InvalidGameSessionStatusException {
pub fn builder() -> crate::error::invalid_game_session_status_exception::Builder {
crate::error::invalid_game_session_status_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct ConflictException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl ConflictException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for ConflictException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "ConflictException")?;
if let Some(inner_8) = &self.message {
{
write!(f, ": {}", inner_8)?;
}
}
Ok(())
}
}
impl std::error::Error for ConflictException {}
pub mod conflict_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::ConflictException {
crate::error::ConflictException {
message: self.message,
}
}
}
}
impl ConflictException {
pub fn builder() -> crate::error::conflict_exception::Builder {
crate::error::conflict_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGameServerGroupError {
pub kind: UpdateGameServerGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateGameServerGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGameServerGroupErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateGameServerGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGameServerGroupErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateGameServerGroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateGameServerGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateGameServerGroupErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateGameServerGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGameServerGroupError {
fn code(&self) -> Option<&str> {
UpdateGameServerGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGameServerGroupError {
pub fn new(kind: UpdateGameServerGroupErrorKind, 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: UpdateGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGameServerGroupErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerGroupErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerGroupErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerGroupErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerGroupErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateGameServerGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGameServerGroupErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateGameServerGroupErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateGameServerGroupErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateGameServerGroupErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateGameServerGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateGameServerError {
pub kind: UpdateGameServerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateGameServerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateGameServerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateGameServerErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateGameServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateGameServerErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateGameServerErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateGameServerErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateGameServerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateGameServerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateGameServerError {
fn code(&self) -> Option<&str> {
UpdateGameServerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateGameServerError {
pub fn new(kind: UpdateGameServerErrorKind, 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: UpdateGameServerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateGameServerErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateGameServerErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateGameServerErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateGameServerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateGameServerErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateGameServerErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateGameServerErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateGameServerErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateGameServerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFleetPortSettingsError {
pub kind: UpdateFleetPortSettingsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateFleetPortSettingsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateFleetPortSettingsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFleetPortSettingsErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateFleetPortSettingsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFleetPortSettingsErrorKind::ConflictException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::InvalidFleetStatusException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateFleetPortSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFleetPortSettingsError {
fn code(&self) -> Option<&str> {
UpdateFleetPortSettingsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFleetPortSettingsError {
pub fn new(kind: UpdateFleetPortSettingsErrorKind, 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: UpdateFleetPortSettingsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFleetPortSettingsErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::ConflictException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetPortSettingsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateFleetPortSettingsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFleetPortSettingsErrorKind::ConflictException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::InvalidFleetStatusException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateFleetPortSettingsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct LimitExceededException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl LimitExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for LimitExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "LimitExceededException")?;
if let Some(inner_9) = &self.message {
{
write!(f, ": {}", inner_9)?;
}
}
Ok(())
}
}
impl std::error::Error for LimitExceededException {}
pub mod limit_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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::LimitExceededException {
crate::error::LimitExceededException {
message: self.message,
}
}
}
}
impl LimitExceededException {
pub fn builder() -> crate::error::limit_exceeded_exception::Builder {
crate::error::limit_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFleetCapacityError {
pub kind: UpdateFleetCapacityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateFleetCapacityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateFleetCapacityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFleetCapacityErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateFleetCapacityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFleetCapacityErrorKind::ConflictException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::InvalidFleetStatusException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
UpdateFleetCapacityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFleetCapacityError {
fn code(&self) -> Option<&str> {
UpdateFleetCapacityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFleetCapacityError {
pub fn new(kind: UpdateFleetCapacityErrorKind, 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: UpdateFleetCapacityErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFleetCapacityErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::ConflictException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetCapacityErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for UpdateFleetCapacityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFleetCapacityErrorKind::ConflictException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::InvalidFleetStatusException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
UpdateFleetCapacityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateFleetAttributesError {
pub kind: UpdateFleetAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateFleetAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateFleetAttributesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateFleetAttributesErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateFleetAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateFleetAttributesErrorKind::ConflictException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::InvalidFleetStatusException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateFleetAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateFleetAttributesError {
fn code(&self) -> Option<&str> {
UpdateFleetAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateFleetAttributesError {
pub fn new(kind: UpdateFleetAttributesErrorKind, 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: UpdateFleetAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateFleetAttributesErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::ConflictException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
UpdateFleetAttributesErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for UpdateFleetAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateFleetAttributesErrorKind::ConflictException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::InvalidFleetStatusException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::LimitExceededException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateFleetAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateBuildError {
pub kind: UpdateBuildErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateBuildError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateBuildErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateBuildErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateBuildError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateBuildErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateBuildErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateBuildErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateBuildErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateBuildErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateBuildError {
fn code(&self) -> Option<&str> {
UpdateBuildError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateBuildError {
pub fn new(kind: UpdateBuildErrorKind, 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: UpdateBuildErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateBuildErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateBuildErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, UpdateBuildErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateBuildErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, UpdateBuildErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for UpdateBuildError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateBuildErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateBuildErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateBuildErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateBuildErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateBuildErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UpdateAliasError {
pub kind: UpdateAliasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UpdateAliasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UpdateAliasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UpdateAliasErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UpdateAliasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UpdateAliasErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UpdateAliasErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UpdateAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UpdateAliasErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
UpdateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UpdateAliasError {
fn code(&self) -> Option<&str> {
UpdateAliasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UpdateAliasError {
pub fn new(kind: UpdateAliasErrorKind, 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: UpdateAliasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UpdateAliasErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UpdateAliasErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, UpdateAliasErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UpdateAliasErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, UpdateAliasErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for UpdateAliasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UpdateAliasErrorKind::InternalServiceException(_inner) => Some(_inner),
UpdateAliasErrorKind::InvalidRequestException(_inner) => Some(_inner),
UpdateAliasErrorKind::NotFoundException(_inner) => Some(_inner),
UpdateAliasErrorKind::UnauthorizedException(_inner) => Some(_inner),
UpdateAliasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct UntagResourceError {
pub kind: UntagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for UntagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum UntagResourceErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for UntagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
UntagResourceErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
UntagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for UntagResourceError {
fn code(&self) -> Option<&str> {
UntagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl UntagResourceError {
pub fn new(kind: UntagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: UntagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, UntagResourceErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
UntagResourceErrorKind::TaggingFailedException(_)
)
}
}
impl std::error::Error for UntagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
UntagResourceErrorKind::InternalServiceException(_inner) => Some(_inner),
UntagResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
UntagResourceErrorKind::NotFoundException(_inner) => Some(_inner),
UntagResourceErrorKind::TaggingFailedException(_inner) => Some(_inner),
UntagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TaggingFailedException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TaggingFailedException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TaggingFailedException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TaggingFailedException")?;
if let Some(inner_10) = &self.message {
{
write!(f, ": {}", inner_10)?;
}
}
Ok(())
}
}
impl std::error::Error for TaggingFailedException {}
pub mod tagging_failed_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::TaggingFailedException {
crate::error::TaggingFailedException {
message: self.message,
}
}
}
}
impl TaggingFailedException {
pub fn builder() -> crate::error::tagging_failed_exception::Builder {
crate::error::tagging_failed_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct TagResourceError {
pub kind: TagResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for TagResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum TagResourceErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for TagResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
TagResourceErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
TagResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
TagResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f),
TagResourceErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
TagResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for TagResourceError {
fn code(&self) -> Option<&str> {
TagResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl TagResourceError {
pub fn new(kind: TagResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: TagResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
TagResourceErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, TagResourceErrorKind::TaggingFailedException(_))
}
}
impl std::error::Error for TagResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
TagResourceErrorKind::InternalServiceException(_inner) => Some(_inner),
TagResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
TagResourceErrorKind::NotFoundException(_inner) => Some(_inner),
TagResourceErrorKind::TaggingFailedException(_inner) => Some(_inner),
TagResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SuspendGameServerGroupError {
pub kind: SuspendGameServerGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SuspendGameServerGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SuspendGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SuspendGameServerGroupErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SuspendGameServerGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SuspendGameServerGroupErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
SuspendGameServerGroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
SuspendGameServerGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
SuspendGameServerGroupErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
SuspendGameServerGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SuspendGameServerGroupError {
fn code(&self) -> Option<&str> {
SuspendGameServerGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SuspendGameServerGroupError {
pub fn new(kind: SuspendGameServerGroupErrorKind, 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: SuspendGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SuspendGameServerGroupErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
SuspendGameServerGroupErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
SuspendGameServerGroupErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SuspendGameServerGroupErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
SuspendGameServerGroupErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for SuspendGameServerGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SuspendGameServerGroupErrorKind::InternalServiceException(_inner) => Some(_inner),
SuspendGameServerGroupErrorKind::InvalidRequestException(_inner) => Some(_inner),
SuspendGameServerGroupErrorKind::NotFoundException(_inner) => Some(_inner),
SuspendGameServerGroupErrorKind::UnauthorizedException(_inner) => Some(_inner),
SuspendGameServerGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopMatchmakingError {
pub kind: StopMatchmakingErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopMatchmakingError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopMatchmakingErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopMatchmakingErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopMatchmakingError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopMatchmakingErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StopMatchmakingErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StopMatchmakingErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StopMatchmakingErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
StopMatchmakingErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopMatchmakingError {
fn code(&self) -> Option<&str> {
StopMatchmakingError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopMatchmakingError {
pub fn new(kind: StopMatchmakingErrorKind, 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: StopMatchmakingErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopMatchmakingErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StopMatchmakingErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StopMatchmakingErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StopMatchmakingErrorKind::NotFoundException(_))
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
StopMatchmakingErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for StopMatchmakingError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopMatchmakingErrorKind::InternalServiceException(_inner) => Some(_inner),
StopMatchmakingErrorKind::InvalidRequestException(_inner) => Some(_inner),
StopMatchmakingErrorKind::NotFoundException(_inner) => Some(_inner),
StopMatchmakingErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
StopMatchmakingErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopGameSessionPlacementError {
pub kind: StopGameSessionPlacementErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopGameSessionPlacementError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopGameSessionPlacementErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopGameSessionPlacementErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopGameSessionPlacementError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopGameSessionPlacementErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StopGameSessionPlacementErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StopGameSessionPlacementErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StopGameSessionPlacementErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StopGameSessionPlacementErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopGameSessionPlacementError {
fn code(&self) -> Option<&str> {
StopGameSessionPlacementError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopGameSessionPlacementError {
pub fn new(kind: StopGameSessionPlacementErrorKind, 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: StopGameSessionPlacementErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopGameSessionPlacementErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StopGameSessionPlacementErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StopGameSessionPlacementErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
StopGameSessionPlacementErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
StopGameSessionPlacementErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for StopGameSessionPlacementError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopGameSessionPlacementErrorKind::InternalServiceException(_inner) => Some(_inner),
StopGameSessionPlacementErrorKind::InvalidRequestException(_inner) => Some(_inner),
StopGameSessionPlacementErrorKind::NotFoundException(_inner) => Some(_inner),
StopGameSessionPlacementErrorKind::UnauthorizedException(_inner) => Some(_inner),
StopGameSessionPlacementErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StopFleetActionsError {
pub kind: StopFleetActionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StopFleetActionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StopFleetActionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StopFleetActionsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StopFleetActionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StopFleetActionsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StopFleetActionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StopFleetActionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StopFleetActionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StopFleetActionsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
StopFleetActionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StopFleetActionsError {
fn code(&self) -> Option<&str> {
StopFleetActionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StopFleetActionsError {
pub fn new(kind: StopFleetActionsErrorKind, 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: StopFleetActionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StopFleetActionsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StopFleetActionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StopFleetActionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StopFleetActionsErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
StopFleetActionsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
StopFleetActionsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for StopFleetActionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StopFleetActionsErrorKind::InternalServiceException(_inner) => Some(_inner),
StopFleetActionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
StopFleetActionsErrorKind::NotFoundException(_inner) => Some(_inner),
StopFleetActionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
StopFleetActionsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
StopFleetActionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartMatchmakingError {
pub kind: StartMatchmakingErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartMatchmakingError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartMatchmakingErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartMatchmakingErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartMatchmakingError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartMatchmakingErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StartMatchmakingErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StartMatchmakingErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StartMatchmakingErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
StartMatchmakingErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartMatchmakingError {
fn code(&self) -> Option<&str> {
StartMatchmakingError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartMatchmakingError {
pub fn new(kind: StartMatchmakingErrorKind, 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: StartMatchmakingErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartMatchmakingErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchmakingErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchmakingErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StartMatchmakingErrorKind::NotFoundException(_))
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchmakingErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for StartMatchmakingError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartMatchmakingErrorKind::InternalServiceException(_inner) => Some(_inner),
StartMatchmakingErrorKind::InvalidRequestException(_inner) => Some(_inner),
StartMatchmakingErrorKind::NotFoundException(_inner) => Some(_inner),
StartMatchmakingErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
StartMatchmakingErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartMatchBackfillError {
pub kind: StartMatchBackfillErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartMatchBackfillError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartMatchBackfillErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartMatchBackfillErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartMatchBackfillError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartMatchBackfillErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StartMatchBackfillErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StartMatchBackfillErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StartMatchBackfillErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
StartMatchBackfillErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartMatchBackfillError {
fn code(&self) -> Option<&str> {
StartMatchBackfillError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartMatchBackfillError {
pub fn new(kind: StartMatchBackfillErrorKind, 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: StartMatchBackfillErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartMatchBackfillErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchBackfillErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchBackfillErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchBackfillErrorKind::NotFoundException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
StartMatchBackfillErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for StartMatchBackfillError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartMatchBackfillErrorKind::InternalServiceException(_inner) => Some(_inner),
StartMatchBackfillErrorKind::InvalidRequestException(_inner) => Some(_inner),
StartMatchBackfillErrorKind::NotFoundException(_inner) => Some(_inner),
StartMatchBackfillErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
StartMatchBackfillErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartGameSessionPlacementError {
pub kind: StartGameSessionPlacementErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartGameSessionPlacementError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartGameSessionPlacementErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartGameSessionPlacementErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartGameSessionPlacementError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartGameSessionPlacementErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StartGameSessionPlacementErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StartGameSessionPlacementErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StartGameSessionPlacementErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StartGameSessionPlacementErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartGameSessionPlacementError {
fn code(&self) -> Option<&str> {
StartGameSessionPlacementError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartGameSessionPlacementError {
pub fn new(kind: StartGameSessionPlacementErrorKind, 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: StartGameSessionPlacementErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartGameSessionPlacementErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StartGameSessionPlacementErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StartGameSessionPlacementErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
StartGameSessionPlacementErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
StartGameSessionPlacementErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for StartGameSessionPlacementError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartGameSessionPlacementErrorKind::InternalServiceException(_inner) => Some(_inner),
StartGameSessionPlacementErrorKind::InvalidRequestException(_inner) => Some(_inner),
StartGameSessionPlacementErrorKind::NotFoundException(_inner) => Some(_inner),
StartGameSessionPlacementErrorKind::UnauthorizedException(_inner) => Some(_inner),
StartGameSessionPlacementErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct StartFleetActionsError {
pub kind: StartFleetActionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for StartFleetActionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: StartFleetActionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum StartFleetActionsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for StartFleetActionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
StartFleetActionsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
StartFleetActionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
StartFleetActionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
StartFleetActionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
StartFleetActionsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
StartFleetActionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for StartFleetActionsError {
fn code(&self) -> Option<&str> {
StartFleetActionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl StartFleetActionsError {
pub fn new(kind: StartFleetActionsErrorKind, 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: StartFleetActionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: StartFleetActionsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
StartFleetActionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
StartFleetActionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, StartFleetActionsErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
StartFleetActionsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
StartFleetActionsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for StartFleetActionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
StartFleetActionsErrorKind::InternalServiceException(_inner) => Some(_inner),
StartFleetActionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
StartFleetActionsErrorKind::NotFoundException(_inner) => Some(_inner),
StartFleetActionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
StartFleetActionsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
StartFleetActionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct SearchGameSessionsError {
pub kind: SearchGameSessionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for SearchGameSessionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: SearchGameSessionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum SearchGameSessionsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for SearchGameSessionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
SearchGameSessionsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
SearchGameSessionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
SearchGameSessionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
SearchGameSessionsErrorKind::TerminalRoutingStrategyException(_inner) => _inner.fmt(f),
SearchGameSessionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
SearchGameSessionsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
SearchGameSessionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for SearchGameSessionsError {
fn code(&self) -> Option<&str> {
SearchGameSessionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl SearchGameSessionsError {
pub fn new(kind: SearchGameSessionsErrorKind, 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: SearchGameSessionsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: SearchGameSessionsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
SearchGameSessionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
SearchGameSessionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
SearchGameSessionsErrorKind::NotFoundException(_)
)
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
SearchGameSessionsErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
SearchGameSessionsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
SearchGameSessionsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for SearchGameSessionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
SearchGameSessionsErrorKind::InternalServiceException(_inner) => Some(_inner),
SearchGameSessionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
SearchGameSessionsErrorKind::NotFoundException(_inner) => Some(_inner),
SearchGameSessionsErrorKind::TerminalRoutingStrategyException(_inner) => Some(_inner),
SearchGameSessionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
SearchGameSessionsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
SearchGameSessionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct TerminalRoutingStrategyException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl TerminalRoutingStrategyException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for TerminalRoutingStrategyException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "TerminalRoutingStrategyException")?;
if let Some(inner_11) = &self.message {
{
write!(f, ": {}", inner_11)?;
}
}
Ok(())
}
}
impl std::error::Error for TerminalRoutingStrategyException {}
pub mod terminal_routing_strategy_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::TerminalRoutingStrategyException {
crate::error::TerminalRoutingStrategyException {
message: self.message,
}
}
}
}
impl TerminalRoutingStrategyException {
pub fn builder() -> crate::error::terminal_routing_strategy_exception::Builder {
crate::error::terminal_routing_strategy_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResumeGameServerGroupError {
pub kind: ResumeGameServerGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ResumeGameServerGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ResumeGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResumeGameServerGroupErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ResumeGameServerGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResumeGameServerGroupErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ResumeGameServerGroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ResumeGameServerGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
ResumeGameServerGroupErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ResumeGameServerGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResumeGameServerGroupError {
fn code(&self) -> Option<&str> {
ResumeGameServerGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResumeGameServerGroupError {
pub fn new(kind: ResumeGameServerGroupErrorKind, 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: ResumeGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResumeGameServerGroupErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ResumeGameServerGroupErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ResumeGameServerGroupErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ResumeGameServerGroupErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ResumeGameServerGroupErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ResumeGameServerGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResumeGameServerGroupErrorKind::InternalServiceException(_inner) => Some(_inner),
ResumeGameServerGroupErrorKind::InvalidRequestException(_inner) => Some(_inner),
ResumeGameServerGroupErrorKind::NotFoundException(_inner) => Some(_inner),
ResumeGameServerGroupErrorKind::UnauthorizedException(_inner) => Some(_inner),
ResumeGameServerGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ResolveAliasError {
pub kind: ResolveAliasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ResolveAliasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ResolveAliasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ResolveAliasErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ResolveAliasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ResolveAliasErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ResolveAliasErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ResolveAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f),
ResolveAliasErrorKind::TerminalRoutingStrategyException(_inner) => _inner.fmt(f),
ResolveAliasErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ResolveAliasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ResolveAliasError {
fn code(&self) -> Option<&str> {
ResolveAliasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ResolveAliasError {
pub fn new(kind: ResolveAliasErrorKind, 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: ResolveAliasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ResolveAliasErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ResolveAliasErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ResolveAliasErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, ResolveAliasErrorKind::NotFoundException(_))
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
ResolveAliasErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ResolveAliasErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ResolveAliasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ResolveAliasErrorKind::InternalServiceException(_inner) => Some(_inner),
ResolveAliasErrorKind::InvalidRequestException(_inner) => Some(_inner),
ResolveAliasErrorKind::NotFoundException(_inner) => Some(_inner),
ResolveAliasErrorKind::TerminalRoutingStrategyException(_inner) => Some(_inner),
ResolveAliasErrorKind::UnauthorizedException(_inner) => Some(_inner),
ResolveAliasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RequestUploadCredentialsError {
pub kind: RequestUploadCredentialsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RequestUploadCredentialsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RequestUploadCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RequestUploadCredentialsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RequestUploadCredentialsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RequestUploadCredentialsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
RequestUploadCredentialsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
RequestUploadCredentialsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
RequestUploadCredentialsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
RequestUploadCredentialsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RequestUploadCredentialsError {
fn code(&self) -> Option<&str> {
RequestUploadCredentialsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RequestUploadCredentialsError {
pub fn new(kind: RequestUploadCredentialsErrorKind, 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: RequestUploadCredentialsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RequestUploadCredentialsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
RequestUploadCredentialsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
RequestUploadCredentialsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
RequestUploadCredentialsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
RequestUploadCredentialsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for RequestUploadCredentialsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RequestUploadCredentialsErrorKind::InternalServiceException(_inner) => Some(_inner),
RequestUploadCredentialsErrorKind::InvalidRequestException(_inner) => Some(_inner),
RequestUploadCredentialsErrorKind::NotFoundException(_inner) => Some(_inner),
RequestUploadCredentialsErrorKind::UnauthorizedException(_inner) => Some(_inner),
RequestUploadCredentialsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterGameServerError {
pub kind: RegisterGameServerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterGameServerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterGameServerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterGameServerErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterGameServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterGameServerErrorKind::ConflictException(_inner) => _inner.fmt(f),
RegisterGameServerErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
RegisterGameServerErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
RegisterGameServerErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
RegisterGameServerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
RegisterGameServerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterGameServerError {
fn code(&self) -> Option<&str> {
RegisterGameServerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterGameServerError {
pub fn new(kind: RegisterGameServerErrorKind, 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: RegisterGameServerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterGameServerErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
RegisterGameServerErrorKind::ConflictException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
RegisterGameServerErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
RegisterGameServerErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
RegisterGameServerErrorKind::LimitExceededException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
RegisterGameServerErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for RegisterGameServerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterGameServerErrorKind::ConflictException(_inner) => Some(_inner),
RegisterGameServerErrorKind::InternalServiceException(_inner) => Some(_inner),
RegisterGameServerErrorKind::InvalidRequestException(_inner) => Some(_inner),
RegisterGameServerErrorKind::LimitExceededException(_inner) => Some(_inner),
RegisterGameServerErrorKind::UnauthorizedException(_inner) => Some(_inner),
RegisterGameServerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct RegisterComputeError {
pub kind: RegisterComputeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for RegisterComputeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: RegisterComputeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum RegisterComputeErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for RegisterComputeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
RegisterComputeErrorKind::ConflictException(_inner) => _inner.fmt(f),
RegisterComputeErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
RegisterComputeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
RegisterComputeErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
RegisterComputeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for RegisterComputeError {
fn code(&self) -> Option<&str> {
RegisterComputeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl RegisterComputeError {
pub fn new(kind: RegisterComputeErrorKind, 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: RegisterComputeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: RegisterComputeErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, RegisterComputeErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
RegisterComputeErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
RegisterComputeErrorKind::InvalidRequestException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
RegisterComputeErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for RegisterComputeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
RegisterComputeErrorKind::ConflictException(_inner) => Some(_inner),
RegisterComputeErrorKind::InternalServiceException(_inner) => Some(_inner),
RegisterComputeErrorKind::InvalidRequestException(_inner) => Some(_inner),
RegisterComputeErrorKind::UnauthorizedException(_inner) => Some(_inner),
RegisterComputeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct PutScalingPolicyError {
pub kind: PutScalingPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for PutScalingPolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: PutScalingPolicyErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum PutScalingPolicyErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for PutScalingPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
PutScalingPolicyErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
PutScalingPolicyErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
PutScalingPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f),
PutScalingPolicyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
PutScalingPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for PutScalingPolicyError {
fn code(&self) -> Option<&str> {
PutScalingPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl PutScalingPolicyError {
pub fn new(kind: PutScalingPolicyErrorKind, 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: PutScalingPolicyErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: PutScalingPolicyErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
PutScalingPolicyErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
PutScalingPolicyErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, PutScalingPolicyErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
PutScalingPolicyErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for PutScalingPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
PutScalingPolicyErrorKind::InternalServiceException(_inner) => Some(_inner),
PutScalingPolicyErrorKind::InvalidRequestException(_inner) => Some(_inner),
PutScalingPolicyErrorKind::NotFoundException(_inner) => Some(_inner),
PutScalingPolicyErrorKind::UnauthorizedException(_inner) => Some(_inner),
PutScalingPolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListTagsForResourceError {
pub kind: ListTagsForResourceErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListTagsForResourceError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListTagsForResourceErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListTagsForResourceError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListTagsForResourceErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::NotFoundException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
ListTagsForResourceErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListTagsForResourceError {
fn code(&self) -> Option<&str> {
ListTagsForResourceError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListTagsForResourceError {
pub fn new(kind: ListTagsForResourceErrorKind, meta: aws_smithy_types::Error) -> Self {
Self { kind, meta }
}
pub fn unhandled(err: impl Into<Box<dyn std::error::Error + Send + Sync + 'static>>) -> Self {
Self {
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListTagsForResourceErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
}
}
pub fn message(&self) -> Option<&str> {
self.meta.message()
}
pub fn meta(&self) -> &aws_smithy_types::Error {
&self.meta
}
pub fn request_id(&self) -> Option<&str> {
self.meta.request_id()
}
pub fn code(&self) -> Option<&str> {
self.meta.code()
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::NotFoundException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
ListTagsForResourceErrorKind::TaggingFailedException(_)
)
}
}
impl std::error::Error for ListTagsForResourceError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListTagsForResourceErrorKind::InternalServiceException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::NotFoundException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::TaggingFailedException(_inner) => Some(_inner),
ListTagsForResourceErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListScriptsError {
pub kind: ListScriptsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListScriptsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListScriptsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListScriptsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListScriptsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListScriptsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListScriptsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListScriptsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListScriptsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListScriptsError {
fn code(&self) -> Option<&str> {
ListScriptsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListScriptsError {
pub fn new(kind: ListScriptsErrorKind, 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: ListScriptsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListScriptsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListScriptsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListScriptsErrorKind::InvalidRequestException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListScriptsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListScriptsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListScriptsErrorKind::InternalServiceException(_inner) => Some(_inner),
ListScriptsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListScriptsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListScriptsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListLocationsError {
pub kind: ListLocationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListLocationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListLocationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListLocationsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListLocationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListLocationsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListLocationsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListLocationsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListLocationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListLocationsError {
fn code(&self) -> Option<&str> {
ListLocationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListLocationsError {
pub fn new(kind: ListLocationsErrorKind, 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: ListLocationsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListLocationsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListLocationsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListLocationsErrorKind::InvalidRequestException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListLocationsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListLocationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListLocationsErrorKind::InternalServiceException(_inner) => Some(_inner),
ListLocationsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListLocationsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListLocationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListGameServersError {
pub kind: ListGameServersErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListGameServersError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListGameServersErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListGameServersErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListGameServersError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListGameServersErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListGameServersErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListGameServersErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListGameServersErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListGameServersError {
fn code(&self) -> Option<&str> {
ListGameServersError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListGameServersError {
pub fn new(kind: ListGameServersErrorKind, 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: ListGameServersErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListGameServersErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListGameServersErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListGameServersErrorKind::InvalidRequestException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ListGameServersErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ListGameServersError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListGameServersErrorKind::InternalServiceException(_inner) => Some(_inner),
ListGameServersErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListGameServersErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListGameServersErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListGameServerGroupsError {
pub kind: ListGameServerGroupsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListGameServerGroupsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListGameServerGroupsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListGameServerGroupsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListGameServerGroupsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListGameServerGroupsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListGameServerGroupsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListGameServerGroupsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListGameServerGroupsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListGameServerGroupsError {
fn code(&self) -> Option<&str> {
ListGameServerGroupsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListGameServerGroupsError {
pub fn new(kind: ListGameServerGroupsErrorKind, 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: ListGameServerGroupsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListGameServerGroupsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListGameServerGroupsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ListGameServerGroupsErrorKind::InvalidRequestException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ListGameServerGroupsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ListGameServerGroupsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListGameServerGroupsErrorKind::InternalServiceException(_inner) => Some(_inner),
ListGameServerGroupsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListGameServerGroupsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListGameServerGroupsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListFleetsError {
pub kind: ListFleetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListFleetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListFleetsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListFleetsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListFleetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListFleetsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListFleetsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListFleetsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
ListFleetsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListFleetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListFleetsError {
fn code(&self) -> Option<&str> {
ListFleetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListFleetsError {
pub fn new(kind: ListFleetsErrorKind, 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: ListFleetsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListFleetsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(&self.kind, ListFleetsErrorKind::InternalServiceException(_))
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListFleetsErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, ListFleetsErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListFleetsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListFleetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListFleetsErrorKind::InternalServiceException(_inner) => Some(_inner),
ListFleetsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListFleetsErrorKind::NotFoundException(_inner) => Some(_inner),
ListFleetsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListFleetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListComputeError {
pub kind: ListComputeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListComputeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListComputeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListComputeErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListComputeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListComputeErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListComputeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListComputeErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListComputeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListComputeError {
fn code(&self) -> Option<&str> {
ListComputeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListComputeError {
pub fn new(kind: ListComputeErrorKind, 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: ListComputeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListComputeErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListComputeErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListComputeErrorKind::InvalidRequestException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListComputeErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListComputeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListComputeErrorKind::InternalServiceException(_inner) => Some(_inner),
ListComputeErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListComputeErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListComputeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListBuildsError {
pub kind: ListBuildsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListBuildsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListBuildsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListBuildsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListBuildsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListBuildsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListBuildsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListBuildsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListBuildsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListBuildsError {
fn code(&self) -> Option<&str> {
ListBuildsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListBuildsError {
pub fn new(kind: ListBuildsErrorKind, 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: ListBuildsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListBuildsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(&self.kind, ListBuildsErrorKind::InternalServiceException(_))
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListBuildsErrorKind::InvalidRequestException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListBuildsErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListBuildsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListBuildsErrorKind::InternalServiceException(_inner) => Some(_inner),
ListBuildsErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListBuildsErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListBuildsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ListAliasesError {
pub kind: ListAliasesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ListAliasesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ListAliasesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ListAliasesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ListAliasesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ListAliasesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ListAliasesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ListAliasesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ListAliasesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ListAliasesError {
fn code(&self) -> Option<&str> {
ListAliasesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ListAliasesError {
pub fn new(kind: ListAliasesErrorKind, 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: ListAliasesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ListAliasesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ListAliasesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, ListAliasesErrorKind::InvalidRequestException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, ListAliasesErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for ListAliasesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ListAliasesErrorKind::InternalServiceException(_inner) => Some(_inner),
ListAliasesErrorKind::InvalidRequestException(_inner) => Some(_inner),
ListAliasesErrorKind::UnauthorizedException(_inner) => Some(_inner),
ListAliasesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetInstanceAccessError {
pub kind: GetInstanceAccessErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetInstanceAccessError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetInstanceAccessErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetInstanceAccessErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetInstanceAccessError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetInstanceAccessErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
GetInstanceAccessErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetInstanceAccessErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetInstanceAccessErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetInstanceAccessErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetInstanceAccessError {
fn code(&self) -> Option<&str> {
GetInstanceAccessError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetInstanceAccessError {
pub fn new(kind: GetInstanceAccessErrorKind, 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: GetInstanceAccessErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetInstanceAccessErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
GetInstanceAccessErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
GetInstanceAccessErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetInstanceAccessErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetInstanceAccessErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetInstanceAccessError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetInstanceAccessErrorKind::InternalServiceException(_inner) => Some(_inner),
GetInstanceAccessErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetInstanceAccessErrorKind::NotFoundException(_inner) => Some(_inner),
GetInstanceAccessErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetInstanceAccessErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetGameSessionLogUrlError {
pub kind: GetGameSessionLogUrlErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetGameSessionLogUrlError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetGameSessionLogUrlErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetGameSessionLogUrlErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetGameSessionLogUrlError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetGameSessionLogUrlErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
GetGameSessionLogUrlErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetGameSessionLogUrlErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetGameSessionLogUrlErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetGameSessionLogUrlErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetGameSessionLogUrlError {
fn code(&self) -> Option<&str> {
GetGameSessionLogUrlError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetGameSessionLogUrlError {
pub fn new(kind: GetGameSessionLogUrlErrorKind, 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: GetGameSessionLogUrlErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetGameSessionLogUrlErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
GetGameSessionLogUrlErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
GetGameSessionLogUrlErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetGameSessionLogUrlErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetGameSessionLogUrlErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetGameSessionLogUrlError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetGameSessionLogUrlErrorKind::InternalServiceException(_inner) => Some(_inner),
GetGameSessionLogUrlErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetGameSessionLogUrlErrorKind::NotFoundException(_inner) => Some(_inner),
GetGameSessionLogUrlErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetGameSessionLogUrlErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetComputeAuthTokenError {
pub kind: GetComputeAuthTokenErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetComputeAuthTokenError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetComputeAuthTokenErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetComputeAuthTokenErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetComputeAuthTokenError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetComputeAuthTokenErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
GetComputeAuthTokenErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetComputeAuthTokenErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetComputeAuthTokenErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetComputeAuthTokenErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetComputeAuthTokenError {
fn code(&self) -> Option<&str> {
GetComputeAuthTokenError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetComputeAuthTokenError {
pub fn new(kind: GetComputeAuthTokenErrorKind, 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: GetComputeAuthTokenErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetComputeAuthTokenErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAuthTokenErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAuthTokenErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAuthTokenErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAuthTokenErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetComputeAuthTokenError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetComputeAuthTokenErrorKind::InternalServiceException(_inner) => Some(_inner),
GetComputeAuthTokenErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetComputeAuthTokenErrorKind::NotFoundException(_inner) => Some(_inner),
GetComputeAuthTokenErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetComputeAuthTokenErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct GetComputeAccessError {
pub kind: GetComputeAccessErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for GetComputeAccessError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: GetComputeAccessErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum GetComputeAccessErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for GetComputeAccessError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
GetComputeAccessErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
GetComputeAccessErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
GetComputeAccessErrorKind::NotFoundException(_inner) => _inner.fmt(f),
GetComputeAccessErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
GetComputeAccessErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for GetComputeAccessError {
fn code(&self) -> Option<&str> {
GetComputeAccessError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl GetComputeAccessError {
pub fn new(kind: GetComputeAccessErrorKind, 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: GetComputeAccessErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: GetComputeAccessErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAccessErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAccessErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, GetComputeAccessErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
GetComputeAccessErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for GetComputeAccessError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
GetComputeAccessErrorKind::InternalServiceException(_inner) => Some(_inner),
GetComputeAccessErrorKind::InvalidRequestException(_inner) => Some(_inner),
GetComputeAccessErrorKind::NotFoundException(_inner) => Some(_inner),
GetComputeAccessErrorKind::UnauthorizedException(_inner) => Some(_inner),
GetComputeAccessErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeVpcPeeringConnectionsError {
pub kind: DescribeVpcPeeringConnectionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeVpcPeeringConnectionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeVpcPeeringConnectionsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeVpcPeeringConnectionsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeVpcPeeringConnectionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeVpcPeeringConnectionsErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeVpcPeeringConnectionsErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DescribeVpcPeeringConnectionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeVpcPeeringConnectionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeVpcPeeringConnectionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeVpcPeeringConnectionsError {
fn code(&self) -> Option<&str> {
DescribeVpcPeeringConnectionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeVpcPeeringConnectionsError {
pub fn new(
kind: DescribeVpcPeeringConnectionsErrorKind,
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: DescribeVpcPeeringConnectionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeVpcPeeringConnectionsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringConnectionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringConnectionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringConnectionsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringConnectionsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeVpcPeeringConnectionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeVpcPeeringConnectionsErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DescribeVpcPeeringConnectionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeVpcPeeringConnectionsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeVpcPeeringConnectionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeVpcPeeringConnectionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeVpcPeeringAuthorizationsError {
pub kind: DescribeVpcPeeringAuthorizationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeVpcPeeringAuthorizationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeVpcPeeringAuthorizationsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeVpcPeeringAuthorizationsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeVpcPeeringAuthorizationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeVpcPeeringAuthorizationsErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeVpcPeeringAuthorizationsErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DescribeVpcPeeringAuthorizationsErrorKind::UnauthorizedException(_inner) => {
_inner.fmt(f)
}
DescribeVpcPeeringAuthorizationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeVpcPeeringAuthorizationsError {
fn code(&self) -> Option<&str> {
DescribeVpcPeeringAuthorizationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeVpcPeeringAuthorizationsError {
pub fn new(
kind: DescribeVpcPeeringAuthorizationsErrorKind,
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: DescribeVpcPeeringAuthorizationsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeVpcPeeringAuthorizationsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringAuthorizationsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringAuthorizationsErrorKind::InvalidRequestException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeVpcPeeringAuthorizationsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeVpcPeeringAuthorizationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeVpcPeeringAuthorizationsErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DescribeVpcPeeringAuthorizationsErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
DescribeVpcPeeringAuthorizationsErrorKind::UnauthorizedException(_inner) => {
Some(_inner)
}
DescribeVpcPeeringAuthorizationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeScriptError {
pub kind: DescribeScriptErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeScriptError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeScriptErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeScriptErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeScriptError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeScriptErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeScriptErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeScriptErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeScriptErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeScriptErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeScriptError {
fn code(&self) -> Option<&str> {
DescribeScriptError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeScriptError {
pub fn new(kind: DescribeScriptErrorKind, 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: DescribeScriptErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeScriptErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScriptErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScriptErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeScriptErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScriptErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeScriptError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeScriptErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeScriptErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeScriptErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeScriptErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeScriptErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeScalingPoliciesError {
pub kind: DescribeScalingPoliciesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeScalingPoliciesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeScalingPoliciesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeScalingPoliciesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeScalingPoliciesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeScalingPoliciesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeScalingPoliciesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeScalingPoliciesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeScalingPoliciesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeScalingPoliciesErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DescribeScalingPoliciesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeScalingPoliciesError {
fn code(&self) -> Option<&str> {
DescribeScalingPoliciesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeScalingPoliciesError {
pub fn new(kind: DescribeScalingPoliciesErrorKind, 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: DescribeScalingPoliciesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeScalingPoliciesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScalingPoliciesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScalingPoliciesErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScalingPoliciesErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScalingPoliciesErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeScalingPoliciesErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeScalingPoliciesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeScalingPoliciesErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeScalingPoliciesErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeScalingPoliciesErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeScalingPoliciesErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeScalingPoliciesErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeScalingPoliciesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeRuntimeConfigurationError {
pub kind: DescribeRuntimeConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeRuntimeConfigurationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeRuntimeConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeRuntimeConfigurationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeRuntimeConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeRuntimeConfigurationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeRuntimeConfigurationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeRuntimeConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeRuntimeConfigurationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeRuntimeConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeRuntimeConfigurationError {
fn code(&self) -> Option<&str> {
DescribeRuntimeConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeRuntimeConfigurationError {
pub fn new(kind: DescribeRuntimeConfigurationErrorKind, 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: DescribeRuntimeConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeRuntimeConfigurationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRuntimeConfigurationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRuntimeConfigurationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRuntimeConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeRuntimeConfigurationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeRuntimeConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeRuntimeConfigurationErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeRuntimeConfigurationErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeRuntimeConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeRuntimeConfigurationErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeRuntimeConfigurationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribePlayerSessionsError {
pub kind: DescribePlayerSessionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribePlayerSessionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribePlayerSessionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribePlayerSessionsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribePlayerSessionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribePlayerSessionsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribePlayerSessionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribePlayerSessionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribePlayerSessionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribePlayerSessionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribePlayerSessionsError {
fn code(&self) -> Option<&str> {
DescribePlayerSessionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribePlayerSessionsError {
pub fn new(kind: DescribePlayerSessionsErrorKind, 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: DescribePlayerSessionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribePlayerSessionsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribePlayerSessionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribePlayerSessionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribePlayerSessionsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribePlayerSessionsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribePlayerSessionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribePlayerSessionsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribePlayerSessionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribePlayerSessionsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribePlayerSessionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribePlayerSessionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMatchmakingRuleSetsError {
pub kind: DescribeMatchmakingRuleSetsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeMatchmakingRuleSetsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeMatchmakingRuleSetsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMatchmakingRuleSetsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeMatchmakingRuleSetsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMatchmakingRuleSetsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeMatchmakingRuleSetsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeMatchmakingRuleSetsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeMatchmakingRuleSetsErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DescribeMatchmakingRuleSetsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMatchmakingRuleSetsError {
fn code(&self) -> Option<&str> {
DescribeMatchmakingRuleSetsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMatchmakingRuleSetsError {
pub fn new(kind: DescribeMatchmakingRuleSetsErrorKind, 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: DescribeMatchmakingRuleSetsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMatchmakingRuleSetsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingRuleSetsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingRuleSetsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingRuleSetsErrorKind::NotFoundException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingRuleSetsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeMatchmakingRuleSetsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMatchmakingRuleSetsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeMatchmakingRuleSetsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeMatchmakingRuleSetsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeMatchmakingRuleSetsErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
DescribeMatchmakingRuleSetsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMatchmakingConfigurationsError {
pub kind: DescribeMatchmakingConfigurationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeMatchmakingConfigurationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeMatchmakingConfigurationsErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMatchmakingConfigurationsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeMatchmakingConfigurationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMatchmakingConfigurationsErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeMatchmakingConfigurationsErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DescribeMatchmakingConfigurationsErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DescribeMatchmakingConfigurationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMatchmakingConfigurationsError {
fn code(&self) -> Option<&str> {
DescribeMatchmakingConfigurationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMatchmakingConfigurationsError {
pub fn new(
kind: DescribeMatchmakingConfigurationsErrorKind,
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: DescribeMatchmakingConfigurationsErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMatchmakingConfigurationsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingConfigurationsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingConfigurationsErrorKind::InvalidRequestException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingConfigurationsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeMatchmakingConfigurationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMatchmakingConfigurationsErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DescribeMatchmakingConfigurationsErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
DescribeMatchmakingConfigurationsErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
DescribeMatchmakingConfigurationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeMatchmakingError {
pub kind: DescribeMatchmakingErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeMatchmakingError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeMatchmakingErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeMatchmakingErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeMatchmakingError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeMatchmakingErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeMatchmakingErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeMatchmakingErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DescribeMatchmakingErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeMatchmakingError {
fn code(&self) -> Option<&str> {
DescribeMatchmakingError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeMatchmakingError {
pub fn new(kind: DescribeMatchmakingErrorKind, 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: DescribeMatchmakingErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeMatchmakingErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingErrorKind::InvalidRequestException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeMatchmakingErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeMatchmakingError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeMatchmakingErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeMatchmakingErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeMatchmakingErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeMatchmakingErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeInstancesError {
pub kind: DescribeInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeInstancesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeInstancesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeInstancesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeInstancesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeInstancesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeInstancesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeInstancesErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DescribeInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeInstancesError {
fn code(&self) -> Option<&str> {
DescribeInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeInstancesError {
pub fn new(kind: DescribeInstancesErrorKind, 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: DescribeInstancesErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeInstancesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeInstancesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeInstancesErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeInstancesErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeInstancesErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeInstancesErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeInstancesErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeInstancesErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeInstancesErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeInstancesErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeInstancesErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameSessionsError {
pub kind: DescribeGameSessionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameSessionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameSessionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameSessionsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameSessionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameSessionsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeGameSessionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameSessionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameSessionsErrorKind::TerminalRoutingStrategyException(_inner) => {
_inner.fmt(f)
}
DescribeGameSessionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameSessionsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DescribeGameSessionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameSessionsError {
fn code(&self) -> Option<&str> {
DescribeGameSessionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameSessionsError {
pub fn new(kind: DescribeGameSessionsErrorKind, 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: DescribeGameSessionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameSessionsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionsErrorKind::NotFoundException(_)
)
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionsErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeGameSessionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameSessionsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameSessionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameSessionsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameSessionsErrorKind::TerminalRoutingStrategyException(_inner) => Some(_inner),
DescribeGameSessionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameSessionsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeGameSessionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameSessionQueuesError {
pub kind: DescribeGameSessionQueuesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameSessionQueuesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameSessionQueuesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameSessionQueuesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameSessionQueuesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameSessionQueuesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeGameSessionQueuesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameSessionQueuesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameSessionQueuesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameSessionQueuesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameSessionQueuesError {
fn code(&self) -> Option<&str> {
DescribeGameSessionQueuesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameSessionQueuesError {
pub fn new(kind: DescribeGameSessionQueuesErrorKind, 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: DescribeGameSessionQueuesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameSessionQueuesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionQueuesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionQueuesErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionQueuesErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionQueuesErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeGameSessionQueuesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameSessionQueuesErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameSessionQueuesErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameSessionQueuesErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameSessionQueuesErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameSessionQueuesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameSessionPlacementError {
pub kind: DescribeGameSessionPlacementErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameSessionPlacementError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameSessionPlacementErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameSessionPlacementErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameSessionPlacementError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameSessionPlacementErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeGameSessionPlacementErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameSessionPlacementErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameSessionPlacementErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameSessionPlacementErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameSessionPlacementError {
fn code(&self) -> Option<&str> {
DescribeGameSessionPlacementError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameSessionPlacementError {
pub fn new(kind: DescribeGameSessionPlacementErrorKind, 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: DescribeGameSessionPlacementErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameSessionPlacementErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionPlacementErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionPlacementErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionPlacementErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionPlacementErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeGameSessionPlacementError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameSessionPlacementErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameSessionPlacementErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameSessionPlacementErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameSessionPlacementErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameSessionPlacementErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameSessionDetailsError {
pub kind: DescribeGameSessionDetailsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameSessionDetailsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameSessionDetailsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameSessionDetailsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameSessionDetailsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameSessionDetailsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeGameSessionDetailsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameSessionDetailsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameSessionDetailsErrorKind::TerminalRoutingStrategyException(_inner) => {
_inner.fmt(f)
}
DescribeGameSessionDetailsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameSessionDetailsErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DescribeGameSessionDetailsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameSessionDetailsError {
fn code(&self) -> Option<&str> {
DescribeGameSessionDetailsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameSessionDetailsError {
pub fn new(kind: DescribeGameSessionDetailsErrorKind, 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: DescribeGameSessionDetailsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameSessionDetailsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionDetailsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionDetailsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionDetailsErrorKind::NotFoundException(_)
)
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionDetailsErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionDetailsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameSessionDetailsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeGameSessionDetailsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameSessionDetailsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameSessionDetailsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameSessionDetailsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameSessionDetailsErrorKind::TerminalRoutingStrategyException(_inner) => {
Some(_inner)
}
DescribeGameSessionDetailsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameSessionDetailsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeGameSessionDetailsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameServerInstancesError {
pub kind: DescribeGameServerInstancesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameServerInstancesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameServerInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameServerInstancesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameServerInstancesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameServerInstancesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeGameServerInstancesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameServerInstancesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameServerInstancesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameServerInstancesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameServerInstancesError {
fn code(&self) -> Option<&str> {
DescribeGameServerInstancesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameServerInstancesError {
pub fn new(kind: DescribeGameServerInstancesErrorKind, 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: DescribeGameServerInstancesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameServerInstancesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerInstancesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerInstancesErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerInstancesErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerInstancesErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeGameServerInstancesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameServerInstancesErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameServerInstancesErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameServerInstancesErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameServerInstancesErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameServerInstancesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameServerGroupError {
pub kind: DescribeGameServerGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameServerGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameServerGroupErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameServerGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameServerGroupErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeGameServerGroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameServerGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameServerGroupErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameServerGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameServerGroupError {
fn code(&self) -> Option<&str> {
DescribeGameServerGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameServerGroupError {
pub fn new(kind: DescribeGameServerGroupErrorKind, 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: DescribeGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameServerGroupErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerGroupErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerGroupErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerGroupErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerGroupErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeGameServerGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameServerGroupErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameServerGroupErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameServerGroupErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameServerGroupErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameServerGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeGameServerError {
pub kind: DescribeGameServerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeGameServerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeGameServerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeGameServerErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeGameServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeGameServerErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeGameServerErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeGameServerErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeGameServerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeGameServerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeGameServerError {
fn code(&self) -> Option<&str> {
DescribeGameServerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeGameServerError {
pub fn new(kind: DescribeGameServerErrorKind, 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: DescribeGameServerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeGameServerErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeGameServerErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeGameServerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeGameServerErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeGameServerErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeGameServerErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeGameServerErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeGameServerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetUtilizationError {
pub kind: DescribeFleetUtilizationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetUtilizationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetUtilizationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetUtilizationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetUtilizationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetUtilizationErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeFleetUtilizationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeFleetUtilizationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetUtilizationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeFleetUtilizationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetUtilizationError {
fn code(&self) -> Option<&str> {
DescribeFleetUtilizationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetUtilizationError {
pub fn new(kind: DescribeFleetUtilizationErrorKind, 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: DescribeFleetUtilizationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetUtilizationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetUtilizationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetUtilizationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetUtilizationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetUtilizationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeFleetUtilizationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetUtilizationErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeFleetUtilizationErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeFleetUtilizationErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetUtilizationErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetUtilizationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetPortSettingsError {
pub kind: DescribeFleetPortSettingsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetPortSettingsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetPortSettingsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetPortSettingsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetPortSettingsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetPortSettingsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeFleetPortSettingsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeFleetPortSettingsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetPortSettingsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeFleetPortSettingsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DescribeFleetPortSettingsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetPortSettingsError {
fn code(&self) -> Option<&str> {
DescribeFleetPortSettingsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetPortSettingsError {
pub fn new(kind: DescribeFleetPortSettingsErrorKind, 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: DescribeFleetPortSettingsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetPortSettingsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetPortSettingsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetPortSettingsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetPortSettingsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetPortSettingsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetPortSettingsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeFleetPortSettingsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetPortSettingsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeFleetPortSettingsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeFleetPortSettingsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetPortSettingsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetPortSettingsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeFleetPortSettingsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetLocationUtilizationError {
pub kind: DescribeFleetLocationUtilizationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetLocationUtilizationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetLocationUtilizationErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetLocationUtilizationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetLocationUtilizationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetLocationUtilizationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationUtilizationErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationUtilizationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetLocationUtilizationErrorKind::UnauthorizedException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationUtilizationErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationUtilizationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetLocationUtilizationError {
fn code(&self) -> Option<&str> {
DescribeFleetLocationUtilizationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetLocationUtilizationError {
pub fn new(
kind: DescribeFleetLocationUtilizationErrorKind,
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: DescribeFleetLocationUtilizationErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetLocationUtilizationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationUtilizationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationUtilizationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationUtilizationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationUtilizationErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationUtilizationErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeFleetLocationUtilizationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetLocationUtilizationErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DescribeFleetLocationUtilizationErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
DescribeFleetLocationUtilizationErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetLocationUtilizationErrorKind::UnauthorizedException(_inner) => {
Some(_inner)
}
DescribeFleetLocationUtilizationErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
DescribeFleetLocationUtilizationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetLocationCapacityError {
pub kind: DescribeFleetLocationCapacityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetLocationCapacityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetLocationCapacityErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetLocationCapacityErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetLocationCapacityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetLocationCapacityErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationCapacityErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationCapacityErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetLocationCapacityErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeFleetLocationCapacityErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationCapacityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetLocationCapacityError {
fn code(&self) -> Option<&str> {
DescribeFleetLocationCapacityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetLocationCapacityError {
pub fn new(
kind: DescribeFleetLocationCapacityErrorKind,
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: DescribeFleetLocationCapacityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetLocationCapacityErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationCapacityErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationCapacityErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationCapacityErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationCapacityErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationCapacityErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeFleetLocationCapacityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetLocationCapacityErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DescribeFleetLocationCapacityErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeFleetLocationCapacityErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetLocationCapacityErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetLocationCapacityErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
DescribeFleetLocationCapacityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetLocationAttributesError {
pub kind: DescribeFleetLocationAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetLocationAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetLocationAttributesErrorKind::Unhandled(
crate::error::Unhandled::new(source),
),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetLocationAttributesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetLocationAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetLocationAttributesErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationAttributesErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetLocationAttributesErrorKind::UnauthorizedException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationAttributesErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DescribeFleetLocationAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetLocationAttributesError {
fn code(&self) -> Option<&str> {
DescribeFleetLocationAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetLocationAttributesError {
pub fn new(
kind: DescribeFleetLocationAttributesErrorKind,
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: DescribeFleetLocationAttributesErrorKind::Unhandled(
crate::error::Unhandled::new(err.into()),
),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetLocationAttributesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationAttributesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationAttributesErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationAttributesErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationAttributesErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetLocationAttributesErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeFleetLocationAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetLocationAttributesErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DescribeFleetLocationAttributesErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
DescribeFleetLocationAttributesErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetLocationAttributesErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetLocationAttributesErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
DescribeFleetLocationAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetEventsError {
pub kind: DescribeFleetEventsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetEventsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetEventsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetEventsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetEventsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetEventsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeFleetEventsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeFleetEventsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetEventsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeFleetEventsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetEventsError {
fn code(&self) -> Option<&str> {
DescribeFleetEventsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetEventsError {
pub fn new(kind: DescribeFleetEventsErrorKind, 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: DescribeFleetEventsErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetEventsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetEventsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetEventsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetEventsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetEventsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeFleetEventsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetEventsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeFleetEventsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeFleetEventsErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetEventsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetEventsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetCapacityError {
pub kind: DescribeFleetCapacityErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetCapacityError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetCapacityErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetCapacityErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetCapacityError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetCapacityErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeFleetCapacityErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeFleetCapacityErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetCapacityErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeFleetCapacityErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetCapacityError {
fn code(&self) -> Option<&str> {
DescribeFleetCapacityError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetCapacityError {
pub fn new(kind: DescribeFleetCapacityErrorKind, 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: DescribeFleetCapacityErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetCapacityErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetCapacityErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetCapacityErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetCapacityErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetCapacityErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeFleetCapacityError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetCapacityErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeFleetCapacityErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeFleetCapacityErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetCapacityErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetCapacityErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeFleetAttributesError {
pub kind: DescribeFleetAttributesErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeFleetAttributesError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeFleetAttributesErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeFleetAttributesErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeFleetAttributesError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeFleetAttributesErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeFleetAttributesErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeFleetAttributesErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeFleetAttributesErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeFleetAttributesErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeFleetAttributesError {
fn code(&self) -> Option<&str> {
DescribeFleetAttributesError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeFleetAttributesError {
pub fn new(kind: DescribeFleetAttributesErrorKind, 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: DescribeFleetAttributesErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeFleetAttributesErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAttributesErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAttributesErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAttributesErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeFleetAttributesErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeFleetAttributesError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeFleetAttributesErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeFleetAttributesErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeFleetAttributesErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeFleetAttributesErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeFleetAttributesErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeEC2InstanceLimitsError {
pub kind: DescribeEC2InstanceLimitsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeEC2InstanceLimitsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeEC2InstanceLimitsErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeEC2InstanceLimitsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeEC2InstanceLimitsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeEC2InstanceLimitsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeEC2InstanceLimitsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeEC2InstanceLimitsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeEC2InstanceLimitsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DescribeEC2InstanceLimitsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeEC2InstanceLimitsError {
fn code(&self) -> Option<&str> {
DescribeEC2InstanceLimitsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeEC2InstanceLimitsError {
pub fn new(kind: DescribeEC2InstanceLimitsErrorKind, 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: DescribeEC2InstanceLimitsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeEC2InstanceLimitsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeEC2InstanceLimitsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeEC2InstanceLimitsErrorKind::InvalidRequestException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeEC2InstanceLimitsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DescribeEC2InstanceLimitsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DescribeEC2InstanceLimitsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeEC2InstanceLimitsErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeEC2InstanceLimitsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeEC2InstanceLimitsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeEC2InstanceLimitsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DescribeEC2InstanceLimitsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeComputeError {
pub kind: DescribeComputeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeComputeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeComputeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeComputeErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeComputeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeComputeErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeComputeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeComputeErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeComputeErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeComputeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeComputeError {
fn code(&self) -> Option<&str> {
DescribeComputeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeComputeError {
pub fn new(kind: DescribeComputeErrorKind, 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: DescribeComputeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeComputeErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeComputeErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeComputeErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeComputeErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DescribeComputeErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DescribeComputeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeComputeErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeComputeErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeComputeErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeComputeErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeComputeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeBuildError {
pub kind: DescribeBuildErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeBuildError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeBuildErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeBuildErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeBuildError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeBuildErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeBuildErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeBuildErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeBuildErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeBuildErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeBuildError {
fn code(&self) -> Option<&str> {
DescribeBuildError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeBuildError {
pub fn new(kind: DescribeBuildErrorKind, 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: DescribeBuildErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeBuildErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeBuildErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeBuildErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeBuildErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DescribeBuildErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DescribeBuildError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeBuildErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeBuildErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeBuildErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeBuildErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeBuildErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DescribeAliasError {
pub kind: DescribeAliasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DescribeAliasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DescribeAliasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DescribeAliasErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DescribeAliasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DescribeAliasErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DescribeAliasErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DescribeAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DescribeAliasErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DescribeAliasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DescribeAliasError {
fn code(&self) -> Option<&str> {
DescribeAliasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DescribeAliasError {
pub fn new(kind: DescribeAliasErrorKind, 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: DescribeAliasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DescribeAliasErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAliasErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DescribeAliasErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DescribeAliasErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DescribeAliasErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DescribeAliasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DescribeAliasErrorKind::InternalServiceException(_inner) => Some(_inner),
DescribeAliasErrorKind::InvalidRequestException(_inner) => Some(_inner),
DescribeAliasErrorKind::NotFoundException(_inner) => Some(_inner),
DescribeAliasErrorKind::UnauthorizedException(_inner) => Some(_inner),
DescribeAliasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeregisterGameServerError {
pub kind: DeregisterGameServerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeregisterGameServerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeregisterGameServerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeregisterGameServerErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeregisterGameServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeregisterGameServerErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeregisterGameServerErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeregisterGameServerErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeregisterGameServerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeregisterGameServerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeregisterGameServerError {
fn code(&self) -> Option<&str> {
DeregisterGameServerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeregisterGameServerError {
pub fn new(kind: DeregisterGameServerErrorKind, 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: DeregisterGameServerErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeregisterGameServerErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterGameServerErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterGameServerErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterGameServerErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterGameServerErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeregisterGameServerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeregisterGameServerErrorKind::InternalServiceException(_inner) => Some(_inner),
DeregisterGameServerErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeregisterGameServerErrorKind::NotFoundException(_inner) => Some(_inner),
DeregisterGameServerErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeregisterGameServerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeregisterComputeError {
pub kind: DeregisterComputeErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeregisterComputeError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeregisterComputeErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeregisterComputeErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeregisterComputeError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeregisterComputeErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeregisterComputeErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeregisterComputeErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeregisterComputeErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeregisterComputeErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeregisterComputeError {
fn code(&self) -> Option<&str> {
DeregisterComputeError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeregisterComputeError {
pub fn new(kind: DeregisterComputeErrorKind, 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: DeregisterComputeErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeregisterComputeErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterComputeErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterComputeErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeregisterComputeErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeregisterComputeErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeregisterComputeError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeregisterComputeErrorKind::InternalServiceException(_inner) => Some(_inner),
DeregisterComputeErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeregisterComputeErrorKind::NotFoundException(_inner) => Some(_inner),
DeregisterComputeErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeregisterComputeErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteVpcPeeringConnectionError {
pub kind: DeleteVpcPeeringConnectionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteVpcPeeringConnectionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteVpcPeeringConnectionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteVpcPeeringConnectionErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteVpcPeeringConnectionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteVpcPeeringConnectionErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteVpcPeeringConnectionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteVpcPeeringConnectionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteVpcPeeringConnectionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteVpcPeeringConnectionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteVpcPeeringConnectionError {
fn code(&self) -> Option<&str> {
DeleteVpcPeeringConnectionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteVpcPeeringConnectionError {
pub fn new(kind: DeleteVpcPeeringConnectionErrorKind, 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: DeleteVpcPeeringConnectionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteVpcPeeringConnectionErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringConnectionErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringConnectionErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringConnectionErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringConnectionErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteVpcPeeringConnectionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteVpcPeeringConnectionErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteVpcPeeringConnectionErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteVpcPeeringConnectionErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteVpcPeeringConnectionErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteVpcPeeringConnectionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteVpcPeeringAuthorizationError {
pub kind: DeleteVpcPeeringAuthorizationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteVpcPeeringAuthorizationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteVpcPeeringAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteVpcPeeringAuthorizationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteVpcPeeringAuthorizationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteVpcPeeringAuthorizationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DeleteVpcPeeringAuthorizationErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DeleteVpcPeeringAuthorizationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteVpcPeeringAuthorizationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteVpcPeeringAuthorizationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteVpcPeeringAuthorizationError {
fn code(&self) -> Option<&str> {
DeleteVpcPeeringAuthorizationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteVpcPeeringAuthorizationError {
pub fn new(
kind: DeleteVpcPeeringAuthorizationErrorKind,
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: DeleteVpcPeeringAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteVpcPeeringAuthorizationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringAuthorizationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringAuthorizationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringAuthorizationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteVpcPeeringAuthorizationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteVpcPeeringAuthorizationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteVpcPeeringAuthorizationErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DeleteVpcPeeringAuthorizationErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteVpcPeeringAuthorizationErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteVpcPeeringAuthorizationErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteVpcPeeringAuthorizationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteScriptError {
pub kind: DeleteScriptErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteScriptError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteScriptErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteScriptErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteScriptError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteScriptErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteScriptErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteScriptErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteScriptErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
DeleteScriptErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteScriptErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteScriptError {
fn code(&self) -> Option<&str> {
DeleteScriptError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteScriptError {
pub fn new(kind: DeleteScriptErrorKind, 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: DeleteScriptErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteScriptErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteScriptErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteScriptErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteScriptErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, DeleteScriptErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteScriptErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteScriptError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteScriptErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteScriptErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteScriptErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteScriptErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteScriptErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteScriptErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteScalingPolicyError {
pub kind: DeleteScalingPolicyErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteScalingPolicyError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteScalingPolicyErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteScalingPolicyErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteScalingPolicyError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteScalingPolicyErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteScalingPolicyErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteScalingPolicyErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteScalingPolicyErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteScalingPolicyErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteScalingPolicyError {
fn code(&self) -> Option<&str> {
DeleteScalingPolicyError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteScalingPolicyError {
pub fn new(kind: DeleteScalingPolicyErrorKind, 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: DeleteScalingPolicyErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteScalingPolicyErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteScalingPolicyErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteScalingPolicyErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteScalingPolicyErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteScalingPolicyErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteScalingPolicyError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteScalingPolicyErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteScalingPolicyErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteScalingPolicyErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteScalingPolicyErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteScalingPolicyErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteMatchmakingRuleSetError {
pub kind: DeleteMatchmakingRuleSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteMatchmakingRuleSetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteMatchmakingRuleSetErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteMatchmakingRuleSetErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteMatchmakingRuleSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteMatchmakingRuleSetErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteMatchmakingRuleSetErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteMatchmakingRuleSetErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteMatchmakingRuleSetErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
DeleteMatchmakingRuleSetErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DeleteMatchmakingRuleSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteMatchmakingRuleSetError {
fn code(&self) -> Option<&str> {
DeleteMatchmakingRuleSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteMatchmakingRuleSetError {
pub fn new(kind: DeleteMatchmakingRuleSetErrorKind, 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: DeleteMatchmakingRuleSetErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteMatchmakingRuleSetErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingRuleSetErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingRuleSetErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingRuleSetErrorKind::NotFoundException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingRuleSetErrorKind::TaggingFailedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingRuleSetErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DeleteMatchmakingRuleSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteMatchmakingRuleSetErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteMatchmakingRuleSetErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteMatchmakingRuleSetErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteMatchmakingRuleSetErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteMatchmakingRuleSetErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DeleteMatchmakingRuleSetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteMatchmakingConfigurationError {
pub kind: DeleteMatchmakingConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteMatchmakingConfigurationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteMatchmakingConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteMatchmakingConfigurationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteMatchmakingConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteMatchmakingConfigurationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
DeleteMatchmakingConfigurationErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
DeleteMatchmakingConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteMatchmakingConfigurationErrorKind::TaggingFailedException(_inner) => {
_inner.fmt(f)
}
DeleteMatchmakingConfigurationErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
DeleteMatchmakingConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteMatchmakingConfigurationError {
fn code(&self) -> Option<&str> {
DeleteMatchmakingConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteMatchmakingConfigurationError {
pub fn new(
kind: DeleteMatchmakingConfigurationErrorKind,
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: DeleteMatchmakingConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteMatchmakingConfigurationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingConfigurationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingConfigurationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingConfigurationErrorKind::TaggingFailedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DeleteMatchmakingConfigurationErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DeleteMatchmakingConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteMatchmakingConfigurationErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
DeleteMatchmakingConfigurationErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
DeleteMatchmakingConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteMatchmakingConfigurationErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteMatchmakingConfigurationErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
DeleteMatchmakingConfigurationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteLocationError {
pub kind: DeleteLocationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteLocationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteLocationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteLocationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteLocationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteLocationErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteLocationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteLocationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteLocationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteLocationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteLocationError {
fn code(&self) -> Option<&str> {
DeleteLocationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteLocationError {
pub fn new(kind: DeleteLocationErrorKind, 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: DeleteLocationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteLocationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLocationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLocationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteLocationErrorKind::NotFoundException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteLocationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteLocationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteLocationErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteLocationErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteLocationErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteLocationErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteLocationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteGameSessionQueueError {
pub kind: DeleteGameSessionQueueErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteGameSessionQueueError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteGameSessionQueueErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteGameSessionQueueErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteGameSessionQueueError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteGameSessionQueueErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteGameSessionQueueErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteGameSessionQueueErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteGameSessionQueueErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
DeleteGameSessionQueueErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteGameSessionQueueErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteGameSessionQueueError {
fn code(&self) -> Option<&str> {
DeleteGameSessionQueueError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteGameSessionQueueError {
pub fn new(kind: DeleteGameSessionQueueErrorKind, 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: DeleteGameSessionQueueErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteGameSessionQueueErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameSessionQueueErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameSessionQueueErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameSessionQueueErrorKind::NotFoundException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameSessionQueueErrorKind::TaggingFailedException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameSessionQueueErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteGameSessionQueueError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteGameSessionQueueErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteGameSessionQueueErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteGameSessionQueueErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteGameSessionQueueErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteGameSessionQueueErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteGameSessionQueueErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteGameServerGroupError {
pub kind: DeleteGameServerGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteGameServerGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteGameServerGroupErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteGameServerGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteGameServerGroupErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteGameServerGroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteGameServerGroupErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteGameServerGroupErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteGameServerGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteGameServerGroupError {
fn code(&self) -> Option<&str> {
DeleteGameServerGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteGameServerGroupError {
pub fn new(kind: DeleteGameServerGroupErrorKind, 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: DeleteGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteGameServerGroupErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameServerGroupErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameServerGroupErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameServerGroupErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteGameServerGroupErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for DeleteGameServerGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteGameServerGroupErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteGameServerGroupErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteGameServerGroupErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteGameServerGroupErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteGameServerGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFleetLocationsError {
pub kind: DeleteFleetLocationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFleetLocationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFleetLocationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFleetLocationsErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFleetLocationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFleetLocationsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteFleetLocationsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteFleetLocationsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteFleetLocationsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteFleetLocationsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
DeleteFleetLocationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFleetLocationsError {
fn code(&self) -> Option<&str> {
DeleteFleetLocationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFleetLocationsError {
pub fn new(kind: DeleteFleetLocationsErrorKind, 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: DeleteFleetLocationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFleetLocationsErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetLocationsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetLocationsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetLocationsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetLocationsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetLocationsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for DeleteFleetLocationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFleetLocationsErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteFleetLocationsErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteFleetLocationsErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteFleetLocationsErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteFleetLocationsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
DeleteFleetLocationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteFleetError {
pub kind: DeleteFleetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteFleetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteFleetErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteFleetErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteFleetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteFleetErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteFleetErrorKind::InvalidFleetStatusException(_inner) => _inner.fmt(f),
DeleteFleetErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteFleetErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteFleetErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
DeleteFleetErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteFleetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteFleetError {
fn code(&self) -> Option<&str> {
DeleteFleetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteFleetError {
pub fn new(kind: DeleteFleetErrorKind, 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: DeleteFleetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteFleetErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
DeleteFleetErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, DeleteFleetErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteFleetErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, DeleteFleetErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteFleetErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteFleetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteFleetErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteFleetErrorKind::InvalidFleetStatusException(_inner) => Some(_inner),
DeleteFleetErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteFleetErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteFleetErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteFleetErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteFleetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteBuildError {
pub kind: DeleteBuildErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteBuildError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteBuildErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteBuildErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteBuildError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteBuildErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteBuildErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteBuildErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteBuildErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
DeleteBuildErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteBuildErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteBuildError {
fn code(&self) -> Option<&str> {
DeleteBuildError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteBuildError {
pub fn new(kind: DeleteBuildErrorKind, 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: DeleteBuildErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteBuildErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteBuildErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, DeleteBuildErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteBuildErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, DeleteBuildErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteBuildErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteBuildError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteBuildErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteBuildErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteBuildErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteBuildErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteBuildErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteBuildErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct DeleteAliasError {
pub kind: DeleteAliasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for DeleteAliasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: DeleteAliasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum DeleteAliasErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for DeleteAliasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
DeleteAliasErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
DeleteAliasErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
DeleteAliasErrorKind::NotFoundException(_inner) => _inner.fmt(f),
DeleteAliasErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
DeleteAliasErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
DeleteAliasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for DeleteAliasError {
fn code(&self) -> Option<&str> {
DeleteAliasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl DeleteAliasError {
pub fn new(kind: DeleteAliasErrorKind, 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: DeleteAliasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: DeleteAliasErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
DeleteAliasErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, DeleteAliasErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, DeleteAliasErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, DeleteAliasErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, DeleteAliasErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for DeleteAliasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
DeleteAliasErrorKind::InternalServiceException(_inner) => Some(_inner),
DeleteAliasErrorKind::InvalidRequestException(_inner) => Some(_inner),
DeleteAliasErrorKind::NotFoundException(_inner) => Some(_inner),
DeleteAliasErrorKind::TaggingFailedException(_inner) => Some(_inner),
DeleteAliasErrorKind::UnauthorizedException(_inner) => Some(_inner),
DeleteAliasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateVpcPeeringConnectionError {
pub kind: CreateVpcPeeringConnectionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateVpcPeeringConnectionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateVpcPeeringConnectionErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateVpcPeeringConnectionErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateVpcPeeringConnectionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateVpcPeeringConnectionErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateVpcPeeringConnectionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateVpcPeeringConnectionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateVpcPeeringConnectionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateVpcPeeringConnectionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateVpcPeeringConnectionError {
fn code(&self) -> Option<&str> {
CreateVpcPeeringConnectionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateVpcPeeringConnectionError {
pub fn new(kind: CreateVpcPeeringConnectionErrorKind, 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: CreateVpcPeeringConnectionErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateVpcPeeringConnectionErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringConnectionErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringConnectionErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringConnectionErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringConnectionErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateVpcPeeringConnectionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateVpcPeeringConnectionErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateVpcPeeringConnectionErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateVpcPeeringConnectionErrorKind::NotFoundException(_inner) => Some(_inner),
CreateVpcPeeringConnectionErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateVpcPeeringConnectionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateVpcPeeringAuthorizationError {
pub kind: CreateVpcPeeringAuthorizationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateVpcPeeringAuthorizationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateVpcPeeringAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateVpcPeeringAuthorizationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateVpcPeeringAuthorizationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateVpcPeeringAuthorizationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
CreateVpcPeeringAuthorizationErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
CreateVpcPeeringAuthorizationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateVpcPeeringAuthorizationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateVpcPeeringAuthorizationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateVpcPeeringAuthorizationError {
fn code(&self) -> Option<&str> {
CreateVpcPeeringAuthorizationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateVpcPeeringAuthorizationError {
pub fn new(
kind: CreateVpcPeeringAuthorizationErrorKind,
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: CreateVpcPeeringAuthorizationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateVpcPeeringAuthorizationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringAuthorizationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringAuthorizationErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringAuthorizationErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateVpcPeeringAuthorizationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateVpcPeeringAuthorizationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateVpcPeeringAuthorizationErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
CreateVpcPeeringAuthorizationErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateVpcPeeringAuthorizationErrorKind::NotFoundException(_inner) => Some(_inner),
CreateVpcPeeringAuthorizationErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateVpcPeeringAuthorizationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateScriptError {
pub kind: CreateScriptErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateScriptError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateScriptErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateScriptErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateScriptError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateScriptErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateScriptErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateScriptErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateScriptErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateScriptErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateScriptErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateScriptError {
fn code(&self) -> Option<&str> {
CreateScriptError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateScriptError {
pub fn new(kind: CreateScriptErrorKind, 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: CreateScriptErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateScriptErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, CreateScriptErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateScriptErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateScriptErrorKind::InvalidRequestException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, CreateScriptErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateScriptErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for CreateScriptError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateScriptErrorKind::ConflictException(_inner) => Some(_inner),
CreateScriptErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateScriptErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateScriptErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateScriptErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateScriptErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreatePlayerSessionsError {
pub kind: CreatePlayerSessionsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreatePlayerSessionsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreatePlayerSessionsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreatePlayerSessionsErrorKind {
GameSessionFullException(crate::error::GameSessionFullException),
InternalServiceException(crate::error::InternalServiceException),
InvalidGameSessionStatusException(crate::error::InvalidGameSessionStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreatePlayerSessionsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreatePlayerSessionsErrorKind::GameSessionFullException(_inner) => _inner.fmt(f),
CreatePlayerSessionsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreatePlayerSessionsErrorKind::InvalidGameSessionStatusException(_inner) => {
_inner.fmt(f)
}
CreatePlayerSessionsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreatePlayerSessionsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreatePlayerSessionsErrorKind::TerminalRoutingStrategyException(_inner) => {
_inner.fmt(f)
}
CreatePlayerSessionsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreatePlayerSessionsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreatePlayerSessionsError {
fn code(&self) -> Option<&str> {
CreatePlayerSessionsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreatePlayerSessionsError {
pub fn new(kind: CreatePlayerSessionsErrorKind, 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: CreatePlayerSessionsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreatePlayerSessionsErrorKind::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_game_session_full_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::GameSessionFullException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_game_session_status_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::InvalidGameSessionStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::NotFoundException(_)
)
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionsErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreatePlayerSessionsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreatePlayerSessionsErrorKind::GameSessionFullException(_inner) => Some(_inner),
CreatePlayerSessionsErrorKind::InternalServiceException(_inner) => Some(_inner),
CreatePlayerSessionsErrorKind::InvalidGameSessionStatusException(_inner) => {
Some(_inner)
}
CreatePlayerSessionsErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreatePlayerSessionsErrorKind::NotFoundException(_inner) => Some(_inner),
CreatePlayerSessionsErrorKind::TerminalRoutingStrategyException(_inner) => Some(_inner),
CreatePlayerSessionsErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreatePlayerSessionsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GameSessionFullException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl GameSessionFullException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for GameSessionFullException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "GameSessionFullException")?;
if let Some(inner_12) = &self.message {
{
write!(f, ": {}", inner_12)?;
}
}
Ok(())
}
}
impl std::error::Error for GameSessionFullException {}
pub mod game_session_full_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::GameSessionFullException {
crate::error::GameSessionFullException {
message: self.message,
}
}
}
}
impl GameSessionFullException {
pub fn builder() -> crate::error::game_session_full_exception::Builder {
crate::error::game_session_full_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreatePlayerSessionError {
pub kind: CreatePlayerSessionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreatePlayerSessionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreatePlayerSessionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreatePlayerSessionErrorKind {
GameSessionFullException(crate::error::GameSessionFullException),
InternalServiceException(crate::error::InternalServiceException),
InvalidGameSessionStatusException(crate::error::InvalidGameSessionStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreatePlayerSessionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreatePlayerSessionErrorKind::GameSessionFullException(_inner) => _inner.fmt(f),
CreatePlayerSessionErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreatePlayerSessionErrorKind::InvalidGameSessionStatusException(_inner) => {
_inner.fmt(f)
}
CreatePlayerSessionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreatePlayerSessionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreatePlayerSessionErrorKind::TerminalRoutingStrategyException(_inner) => _inner.fmt(f),
CreatePlayerSessionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreatePlayerSessionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreatePlayerSessionError {
fn code(&self) -> Option<&str> {
CreatePlayerSessionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreatePlayerSessionError {
pub fn new(kind: CreatePlayerSessionErrorKind, 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: CreatePlayerSessionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreatePlayerSessionErrorKind::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_game_session_full_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::GameSessionFullException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_game_session_status_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::InvalidGameSessionStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::NotFoundException(_)
)
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreatePlayerSessionErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreatePlayerSessionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreatePlayerSessionErrorKind::GameSessionFullException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::InternalServiceException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::InvalidGameSessionStatusException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::NotFoundException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::TerminalRoutingStrategyException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreatePlayerSessionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateMatchmakingRuleSetError {
pub kind: CreateMatchmakingRuleSetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateMatchmakingRuleSetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateMatchmakingRuleSetErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateMatchmakingRuleSetErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
TaggingFailedException(crate::error::TaggingFailedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateMatchmakingRuleSetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateMatchmakingRuleSetErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateMatchmakingRuleSetErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateMatchmakingRuleSetErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateMatchmakingRuleSetErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateMatchmakingRuleSetErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
CreateMatchmakingRuleSetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateMatchmakingRuleSetError {
fn code(&self) -> Option<&str> {
CreateMatchmakingRuleSetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateMatchmakingRuleSetError {
pub fn new(kind: CreateMatchmakingRuleSetErrorKind, 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: CreateMatchmakingRuleSetErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateMatchmakingRuleSetErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingRuleSetErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingRuleSetErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingRuleSetErrorKind::LimitExceededException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingRuleSetErrorKind::TaggingFailedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingRuleSetErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for CreateMatchmakingRuleSetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateMatchmakingRuleSetErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateMatchmakingRuleSetErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateMatchmakingRuleSetErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateMatchmakingRuleSetErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateMatchmakingRuleSetErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
CreateMatchmakingRuleSetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateMatchmakingConfigurationError {
pub kind: CreateMatchmakingConfigurationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateMatchmakingConfigurationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateMatchmakingConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
source,
)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateMatchmakingConfigurationErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateMatchmakingConfigurationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateMatchmakingConfigurationErrorKind::InternalServiceException(_inner) => {
_inner.fmt(f)
}
CreateMatchmakingConfigurationErrorKind::InvalidRequestException(_inner) => {
_inner.fmt(f)
}
CreateMatchmakingConfigurationErrorKind::LimitExceededException(_inner) => {
_inner.fmt(f)
}
CreateMatchmakingConfigurationErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateMatchmakingConfigurationErrorKind::TaggingFailedException(_inner) => {
_inner.fmt(f)
}
CreateMatchmakingConfigurationErrorKind::UnsupportedRegionException(_inner) => {
_inner.fmt(f)
}
CreateMatchmakingConfigurationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateMatchmakingConfigurationError {
fn code(&self) -> Option<&str> {
CreateMatchmakingConfigurationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateMatchmakingConfigurationError {
pub fn new(
kind: CreateMatchmakingConfigurationErrorKind,
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: CreateMatchmakingConfigurationErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateMatchmakingConfigurationErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingConfigurationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingConfigurationErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingConfigurationErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingConfigurationErrorKind::NotFoundException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingConfigurationErrorKind::TaggingFailedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
CreateMatchmakingConfigurationErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for CreateMatchmakingConfigurationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateMatchmakingConfigurationErrorKind::InternalServiceException(_inner) => {
Some(_inner)
}
CreateMatchmakingConfigurationErrorKind::InvalidRequestException(_inner) => {
Some(_inner)
}
CreateMatchmakingConfigurationErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateMatchmakingConfigurationErrorKind::NotFoundException(_inner) => Some(_inner),
CreateMatchmakingConfigurationErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateMatchmakingConfigurationErrorKind::UnsupportedRegionException(_inner) => {
Some(_inner)
}
CreateMatchmakingConfigurationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateLocationError {
pub kind: CreateLocationErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateLocationError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateLocationErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateLocationErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateLocationError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateLocationErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateLocationErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateLocationErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateLocationErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateLocationErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateLocationErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateLocationErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateLocationError {
fn code(&self) -> Option<&str> {
CreateLocationError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateLocationError {
pub fn new(kind: CreateLocationErrorKind, 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: CreateLocationErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateLocationErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, CreateLocationErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateLocationErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateLocationErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateLocationErrorKind::LimitExceededException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
CreateLocationErrorKind::TaggingFailedException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateLocationErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateLocationError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateLocationErrorKind::ConflictException(_inner) => Some(_inner),
CreateLocationErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateLocationErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateLocationErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateLocationErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateLocationErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateLocationErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateGameSessionQueueError {
pub kind: CreateGameSessionQueueErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateGameSessionQueueError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateGameSessionQueueErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateGameSessionQueueErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateGameSessionQueueError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateGameSessionQueueErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateGameSessionQueueErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateGameSessionQueueErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateGameSessionQueueErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateGameSessionQueueErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateGameSessionQueueErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateGameSessionQueueErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateGameSessionQueueError {
fn code(&self) -> Option<&str> {
CreateGameSessionQueueError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateGameSessionQueueError {
pub fn new(kind: CreateGameSessionQueueErrorKind, 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: CreateGameSessionQueueErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateGameSessionQueueErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionQueueErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionQueueErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionQueueErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionQueueErrorKind::NotFoundException(_)
)
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionQueueErrorKind::TaggingFailedException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionQueueErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateGameSessionQueueError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateGameSessionQueueErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateGameSessionQueueErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateGameSessionQueueErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateGameSessionQueueErrorKind::NotFoundException(_inner) => Some(_inner),
CreateGameSessionQueueErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateGameSessionQueueErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateGameSessionQueueErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateGameSessionError {
pub kind: CreateGameSessionErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateGameSessionError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateGameSessionErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateGameSessionErrorKind {
ConflictException(crate::error::ConflictException),
FleetCapacityExceededException(crate::error::FleetCapacityExceededException),
IdempotentParameterMismatchException(crate::error::IdempotentParameterMismatchException),
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
TerminalRoutingStrategyException(crate::error::TerminalRoutingStrategyException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateGameSessionError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateGameSessionErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::FleetCapacityExceededException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::IdempotentParameterMismatchException(_inner) => {
_inner.fmt(f)
}
CreateGameSessionErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::InvalidFleetStatusException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::TerminalRoutingStrategyException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
CreateGameSessionErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateGameSessionError {
fn code(&self) -> Option<&str> {
CreateGameSessionError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateGameSessionError {
pub fn new(kind: CreateGameSessionErrorKind, 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: CreateGameSessionErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateGameSessionErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, CreateGameSessionErrorKind::ConflictException(_))
}
pub fn is_fleet_capacity_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::FleetCapacityExceededException(_)
)
}
pub fn is_idempotent_parameter_mismatch_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::IdempotentParameterMismatchException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::LimitExceededException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, CreateGameSessionErrorKind::NotFoundException(_))
}
pub fn is_terminal_routing_strategy_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::TerminalRoutingStrategyException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameSessionErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for CreateGameSessionError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateGameSessionErrorKind::ConflictException(_inner) => Some(_inner),
CreateGameSessionErrorKind::FleetCapacityExceededException(_inner) => Some(_inner),
CreateGameSessionErrorKind::IdempotentParameterMismatchException(_inner) => {
Some(_inner)
}
CreateGameSessionErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateGameSessionErrorKind::InvalidFleetStatusException(_inner) => Some(_inner),
CreateGameSessionErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateGameSessionErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateGameSessionErrorKind::NotFoundException(_inner) => Some(_inner),
CreateGameSessionErrorKind::TerminalRoutingStrategyException(_inner) => Some(_inner),
CreateGameSessionErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateGameSessionErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
CreateGameSessionErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct IdempotentParameterMismatchException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl IdempotentParameterMismatchException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for IdempotentParameterMismatchException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "IdempotentParameterMismatchException")?;
if let Some(inner_13) = &self.message {
{
write!(f, ": {}", inner_13)?;
}
}
Ok(())
}
}
impl std::error::Error for IdempotentParameterMismatchException {}
pub mod idempotent_parameter_mismatch_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::IdempotentParameterMismatchException {
crate::error::IdempotentParameterMismatchException {
message: self.message,
}
}
}
}
impl IdempotentParameterMismatchException {
pub fn builder() -> crate::error::idempotent_parameter_mismatch_exception::Builder {
crate::error::idempotent_parameter_mismatch_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct FleetCapacityExceededException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl FleetCapacityExceededException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for FleetCapacityExceededException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "FleetCapacityExceededException")?;
if let Some(inner_14) = &self.message {
{
write!(f, ": {}", inner_14)?;
}
}
Ok(())
}
}
impl std::error::Error for FleetCapacityExceededException {}
pub mod fleet_capacity_exceeded_exception {
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct Builder {
pub(crate) message: std::option::Option<std::string::String>,
}
impl Builder {
#[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::FleetCapacityExceededException {
crate::error::FleetCapacityExceededException {
message: self.message,
}
}
}
}
impl FleetCapacityExceededException {
pub fn builder() -> crate::error::fleet_capacity_exceeded_exception::Builder {
crate::error::fleet_capacity_exceeded_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateGameServerGroupError {
pub kind: CreateGameServerGroupErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateGameServerGroupError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateGameServerGroupErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateGameServerGroupError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateGameServerGroupErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateGameServerGroupErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateGameServerGroupErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateGameServerGroupErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateGameServerGroupErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateGameServerGroupErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateGameServerGroupError {
fn code(&self) -> Option<&str> {
CreateGameServerGroupError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateGameServerGroupError {
pub fn new(kind: CreateGameServerGroupErrorKind, 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: CreateGameServerGroupErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateGameServerGroupErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameServerGroupErrorKind::ConflictException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameServerGroupErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameServerGroupErrorKind::InvalidRequestException(_)
)
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameServerGroupErrorKind::LimitExceededException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateGameServerGroupErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for CreateGameServerGroupError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateGameServerGroupErrorKind::ConflictException(_inner) => Some(_inner),
CreateGameServerGroupErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateGameServerGroupErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateGameServerGroupErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateGameServerGroupErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateGameServerGroupErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFleetLocationsError {
pub kind: CreateFleetLocationsErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateFleetLocationsError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateFleetLocationsErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFleetLocationsErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidFleetStatusException(crate::error::InvalidFleetStatusException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateFleetLocationsError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFleetLocationsErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::InvalidFleetStatusException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
CreateFleetLocationsErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFleetLocationsError {
fn code(&self) -> Option<&str> {
CreateFleetLocationsError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFleetLocationsError {
pub fn new(kind: CreateFleetLocationsErrorKind, 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: CreateFleetLocationsErrorKind::Unhandled(crate::error::Unhandled::new(
err.into(),
)),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFleetLocationsErrorKind::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_conflict_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::ConflictException(_)
)
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_fleet_status_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::InvalidFleetStatusException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::NotFoundException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::UnauthorizedException(_)
)
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetLocationsErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for CreateFleetLocationsError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFleetLocationsErrorKind::ConflictException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::InvalidFleetStatusException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::NotFoundException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
CreateFleetLocationsErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateFleetError {
pub kind: CreateFleetErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateFleetError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateFleetErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateFleetErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
NotFoundException(crate::error::NotFoundException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateFleetError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateFleetErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::NotFoundException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
CreateFleetErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateFleetError {
fn code(&self) -> Option<&str> {
CreateFleetError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateFleetError {
pub fn new(kind: CreateFleetErrorKind, 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: CreateFleetErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateFleetErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, CreateFleetErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, CreateFleetErrorKind::InvalidRequestException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, CreateFleetErrorKind::LimitExceededException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, CreateFleetErrorKind::NotFoundException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, CreateFleetErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateFleetErrorKind::UnauthorizedException(_))
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
CreateFleetErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for CreateFleetError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateFleetErrorKind::ConflictException(_inner) => Some(_inner),
CreateFleetErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateFleetErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateFleetErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateFleetErrorKind::NotFoundException(_inner) => Some(_inner),
CreateFleetErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateFleetErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateFleetErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
CreateFleetErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateBuildError {
pub kind: CreateBuildErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateBuildError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateBuildErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateBuildErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateBuildError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateBuildErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateBuildErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateBuildErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateBuildErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateBuildErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateBuildErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateBuildError {
fn code(&self) -> Option<&str> {
CreateBuildError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateBuildError {
pub fn new(kind: CreateBuildErrorKind, 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: CreateBuildErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateBuildErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, CreateBuildErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateBuildErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, CreateBuildErrorKind::InvalidRequestException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, CreateBuildErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateBuildErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for CreateBuildError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateBuildErrorKind::ConflictException(_inner) => Some(_inner),
CreateBuildErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateBuildErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateBuildErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateBuildErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateBuildErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct CreateAliasError {
pub kind: CreateAliasErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for CreateAliasError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: CreateAliasErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum CreateAliasErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
LimitExceededException(crate::error::LimitExceededException),
TaggingFailedException(crate::error::TaggingFailedException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for CreateAliasError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
CreateAliasErrorKind::ConflictException(_inner) => _inner.fmt(f),
CreateAliasErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
CreateAliasErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
CreateAliasErrorKind::LimitExceededException(_inner) => _inner.fmt(f),
CreateAliasErrorKind::TaggingFailedException(_inner) => _inner.fmt(f),
CreateAliasErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
CreateAliasErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for CreateAliasError {
fn code(&self) -> Option<&str> {
CreateAliasError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl CreateAliasError {
pub fn new(kind: CreateAliasErrorKind, 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: CreateAliasErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: CreateAliasErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, CreateAliasErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
CreateAliasErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, CreateAliasErrorKind::InvalidRequestException(_))
}
pub fn is_limit_exceeded_exception(&self) -> bool {
matches!(&self.kind, CreateAliasErrorKind::LimitExceededException(_))
}
pub fn is_tagging_failed_exception(&self) -> bool {
matches!(&self.kind, CreateAliasErrorKind::TaggingFailedException(_))
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(&self.kind, CreateAliasErrorKind::UnauthorizedException(_))
}
}
impl std::error::Error for CreateAliasError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
CreateAliasErrorKind::ConflictException(_inner) => Some(_inner),
CreateAliasErrorKind::InternalServiceException(_inner) => Some(_inner),
CreateAliasErrorKind::InvalidRequestException(_inner) => Some(_inner),
CreateAliasErrorKind::LimitExceededException(_inner) => Some(_inner),
CreateAliasErrorKind::TaggingFailedException(_inner) => Some(_inner),
CreateAliasErrorKind::UnauthorizedException(_inner) => Some(_inner),
CreateAliasErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct ClaimGameServerError {
pub kind: ClaimGameServerErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for ClaimGameServerError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: ClaimGameServerErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum ClaimGameServerErrorKind {
ConflictException(crate::error::ConflictException),
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
OutOfCapacityException(crate::error::OutOfCapacityException),
UnauthorizedException(crate::error::UnauthorizedException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for ClaimGameServerError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
ClaimGameServerErrorKind::ConflictException(_inner) => _inner.fmt(f),
ClaimGameServerErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
ClaimGameServerErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
ClaimGameServerErrorKind::NotFoundException(_inner) => _inner.fmt(f),
ClaimGameServerErrorKind::OutOfCapacityException(_inner) => _inner.fmt(f),
ClaimGameServerErrorKind::UnauthorizedException(_inner) => _inner.fmt(f),
ClaimGameServerErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for ClaimGameServerError {
fn code(&self) -> Option<&str> {
ClaimGameServerError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl ClaimGameServerError {
pub fn new(kind: ClaimGameServerErrorKind, 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: ClaimGameServerErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: ClaimGameServerErrorKind::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_conflict_exception(&self) -> bool {
matches!(&self.kind, ClaimGameServerErrorKind::ConflictException(_))
}
pub fn is_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
ClaimGameServerErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(
&self.kind,
ClaimGameServerErrorKind::InvalidRequestException(_)
)
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, ClaimGameServerErrorKind::NotFoundException(_))
}
pub fn is_out_of_capacity_exception(&self) -> bool {
matches!(
&self.kind,
ClaimGameServerErrorKind::OutOfCapacityException(_)
)
}
pub fn is_unauthorized_exception(&self) -> bool {
matches!(
&self.kind,
ClaimGameServerErrorKind::UnauthorizedException(_)
)
}
}
impl std::error::Error for ClaimGameServerError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
ClaimGameServerErrorKind::ConflictException(_inner) => Some(_inner),
ClaimGameServerErrorKind::InternalServiceException(_inner) => Some(_inner),
ClaimGameServerErrorKind::InvalidRequestException(_inner) => Some(_inner),
ClaimGameServerErrorKind::NotFoundException(_inner) => Some(_inner),
ClaimGameServerErrorKind::OutOfCapacityException(_inner) => Some(_inner),
ClaimGameServerErrorKind::UnauthorizedException(_inner) => Some(_inner),
ClaimGameServerErrorKind::Unhandled(_inner) => Some(_inner),
}
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct OutOfCapacityException {
#[allow(missing_docs)] #[doc(hidden)]
pub message: std::option::Option<std::string::String>,
}
impl OutOfCapacityException {
pub fn message(&self) -> std::option::Option<&str> {
self.message.as_deref()
}
}
impl std::fmt::Display for OutOfCapacityException {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "OutOfCapacityException")?;
if let Some(inner_15) = &self.message {
{
write!(f, ": {}", inner_15)?;
}
}
Ok(())
}
}
impl std::error::Error for OutOfCapacityException {}
pub mod out_of_capacity_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::OutOfCapacityException {
crate::error::OutOfCapacityException {
message: self.message,
}
}
}
}
impl OutOfCapacityException {
pub fn builder() -> crate::error::out_of_capacity_exception::Builder {
crate::error::out_of_capacity_exception::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub struct AcceptMatchError {
pub kind: AcceptMatchErrorKind,
pub(crate) meta: aws_smithy_types::Error,
}
impl aws_smithy_http::result::CreateUnhandledError for AcceptMatchError {
fn create_unhandled_error(source: Box<dyn std::error::Error + Send + Sync + 'static>) -> Self {
Self {
kind: AcceptMatchErrorKind::Unhandled(crate::error::Unhandled::new(source)),
meta: Default::default(),
}
}
}
#[non_exhaustive]
#[derive(std::fmt::Debug)]
pub enum AcceptMatchErrorKind {
InternalServiceException(crate::error::InternalServiceException),
InvalidRequestException(crate::error::InvalidRequestException),
NotFoundException(crate::error::NotFoundException),
UnsupportedRegionException(crate::error::UnsupportedRegionException),
Unhandled(crate::error::Unhandled),
}
impl std::fmt::Display for AcceptMatchError {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
match &self.kind {
AcceptMatchErrorKind::InternalServiceException(_inner) => _inner.fmt(f),
AcceptMatchErrorKind::InvalidRequestException(_inner) => _inner.fmt(f),
AcceptMatchErrorKind::NotFoundException(_inner) => _inner.fmt(f),
AcceptMatchErrorKind::UnsupportedRegionException(_inner) => _inner.fmt(f),
AcceptMatchErrorKind::Unhandled(_inner) => _inner.fmt(f),
}
}
}
impl aws_smithy_types::retry::ProvideErrorKind for AcceptMatchError {
fn code(&self) -> Option<&str> {
AcceptMatchError::code(self)
}
fn retryable_error_kind(&self) -> Option<aws_smithy_types::retry::ErrorKind> {
None
}
}
impl AcceptMatchError {
pub fn new(kind: AcceptMatchErrorKind, 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: AcceptMatchErrorKind::Unhandled(crate::error::Unhandled::new(err.into())),
meta: Default::default(),
}
}
pub fn generic(err: aws_smithy_types::Error) -> Self {
Self {
meta: err.clone(),
kind: AcceptMatchErrorKind::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_internal_service_exception(&self) -> bool {
matches!(
&self.kind,
AcceptMatchErrorKind::InternalServiceException(_)
)
}
pub fn is_invalid_request_exception(&self) -> bool {
matches!(&self.kind, AcceptMatchErrorKind::InvalidRequestException(_))
}
pub fn is_not_found_exception(&self) -> bool {
matches!(&self.kind, AcceptMatchErrorKind::NotFoundException(_))
}
pub fn is_unsupported_region_exception(&self) -> bool {
matches!(
&self.kind,
AcceptMatchErrorKind::UnsupportedRegionException(_)
)
}
}
impl std::error::Error for AcceptMatchError {
fn source(&self) -> Option<&(dyn std::error::Error + 'static)> {
match &self.kind {
AcceptMatchErrorKind::InternalServiceException(_inner) => Some(_inner),
AcceptMatchErrorKind::InvalidRequestException(_inner) => Some(_inner),
AcceptMatchErrorKind::NotFoundException(_inner) => Some(_inner),
AcceptMatchErrorKind::UnsupportedRegionException(_inner) => Some(_inner),
AcceptMatchErrorKind::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 _)
}
}