#[non_exhaustive]pub struct CreateCacheClusterError {
pub kind: CreateCacheClusterErrorKind,
/* private fields */
}
Expand description
Error type for the CreateCacheCluster
operation.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.kind: CreateCacheClusterErrorKind
Kind of error that occurred.
Implementations§
source§impl CreateCacheClusterError
impl CreateCacheClusterError
sourcepub fn new(kind: CreateCacheClusterErrorKind, meta: Error) -> Self
pub fn new(kind: CreateCacheClusterErrorKind, meta: Error) -> Self
Creates a new CreateCacheClusterError
.
sourcepub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
pub fn unhandled(err: impl Into<Box<dyn Error + Send + Sync + 'static>>) -> Self
Creates the CreateCacheClusterError::Unhandled
variant from any error type.
Examples found in repository?
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
pub fn parse_create_cache_cluster_error(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateCacheClusterOutput,
crate::error::CreateCacheClusterError,
> {
let generic = crate::xml_deser::parse_http_generic_error(response)
.map_err(crate::error::CreateCacheClusterError::unhandled)?;
let error_code = match generic.code() {
Some(code) => code,
None => return Err(crate::error::CreateCacheClusterError::unhandled(generic)),
};
let _error_message = generic.message().map(|msg| msg.to_owned());
Err(match error_code {
"CacheClusterAlreadyExists" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheClusterAlreadyExistsFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_cluster_already_exists_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_cluster_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"CacheParameterGroupNotFound" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheParameterGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_parameter_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"CacheSecurityGroupNotFound" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheSecurityGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_security_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"CacheSubnetGroupNotFoundFault" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheSubnetGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_subnet_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"ClusterQuotaForCustomerExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::ClusterQuotaForCustomerExceededFault(
{
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]let mut output = crate::error::cluster_quota_for_customer_exceeded_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cluster_quota_for_customer_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
},
),
},
"InsufficientCacheClusterCapacity" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InsufficientCacheClusterCapacityFault(
{
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]let mut output = crate::error::insufficient_cache_cluster_capacity_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_insufficient_cache_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
},
),
},
"InvalidParameterCombination" => {
crate::error::CreateCacheClusterError {
meta: generic,
kind:
crate::error::CreateCacheClusterErrorKind::InvalidParameterCombinationException(
{
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]let mut output = crate::error::invalid_parameter_combination_exception::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_parameter_combination_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
},
),
}
}
"InvalidParameterValue" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InvalidParameterValueException({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::invalid_parameter_value_exception::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"InvalidReplicationGroupState" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InvalidReplicationGroupStateFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::invalid_replication_group_state_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_replication_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"InvalidVPCNetworkStateFault" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InvalidVpcNetworkStateFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::invalid_vpc_network_state_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"NodeQuotaForClusterExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::NodeQuotaForClusterExceededFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::node_quota_for_cluster_exceeded_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_node_quota_for_cluster_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"NodeQuotaForCustomerExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::NodeQuotaForCustomerExceededFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::node_quota_for_customer_exceeded_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_node_quota_for_customer_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"ReplicationGroupNotFoundFault" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::ReplicationGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::replication_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_replication_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"TagQuotaPerResourceExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::TagQuotaPerResourceExceeded({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::tag_quota_per_resource_exceeded::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_tag_quota_per_resource_exceeded_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
_ => crate::error::CreateCacheClusterError::generic(generic),
})
}
sourcepub fn generic(err: Error) -> Self
pub fn generic(err: Error) -> Self
Creates the CreateCacheClusterError::Unhandled
variant from a aws_smithy_types::Error
.
Examples found in repository?
768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040
pub fn parse_create_cache_cluster_error(
response: &http::Response<bytes::Bytes>,
) -> std::result::Result<
crate::output::CreateCacheClusterOutput,
crate::error::CreateCacheClusterError,
> {
let generic = crate::xml_deser::parse_http_generic_error(response)
.map_err(crate::error::CreateCacheClusterError::unhandled)?;
let error_code = match generic.code() {
Some(code) => code,
None => return Err(crate::error::CreateCacheClusterError::unhandled(generic)),
};
let _error_message = generic.message().map(|msg| msg.to_owned());
Err(match error_code {
"CacheClusterAlreadyExists" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheClusterAlreadyExistsFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_cluster_already_exists_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_cluster_already_exists_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"CacheParameterGroupNotFound" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheParameterGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_parameter_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_parameter_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"CacheSecurityGroupNotFound" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheSecurityGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_security_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_security_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"CacheSubnetGroupNotFoundFault" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::CacheSubnetGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::cache_subnet_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cache_subnet_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"ClusterQuotaForCustomerExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::ClusterQuotaForCustomerExceededFault(
{
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]let mut output = crate::error::cluster_quota_for_customer_exceeded_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_cluster_quota_for_customer_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
},
),
},
"InsufficientCacheClusterCapacity" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InsufficientCacheClusterCapacityFault(
{
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]let mut output = crate::error::insufficient_cache_cluster_capacity_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_insufficient_cache_cluster_capacity_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
},
),
},
"InvalidParameterCombination" => {
crate::error::CreateCacheClusterError {
meta: generic,
kind:
crate::error::CreateCacheClusterErrorKind::InvalidParameterCombinationException(
{
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]let mut output = crate::error::invalid_parameter_combination_exception::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_parameter_combination_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
},
),
}
}
"InvalidParameterValue" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InvalidParameterValueException({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::invalid_parameter_value_exception::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_parameter_value_exception_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"InvalidReplicationGroupState" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InvalidReplicationGroupStateFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::invalid_replication_group_state_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_replication_group_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"InvalidVPCNetworkStateFault" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::InvalidVpcNetworkStateFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::invalid_vpc_network_state_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_invalid_vpc_network_state_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"NodeQuotaForClusterExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::NodeQuotaForClusterExceededFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::node_quota_for_cluster_exceeded_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_node_quota_for_cluster_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"NodeQuotaForCustomerExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::NodeQuotaForCustomerExceededFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::node_quota_for_customer_exceeded_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_node_quota_for_customer_exceeded_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"ReplicationGroupNotFoundFault" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::ReplicationGroupNotFoundFault({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::replication_group_not_found_fault::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_replication_group_not_found_fault_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
"TagQuotaPerResourceExceeded" => crate::error::CreateCacheClusterError {
meta: generic,
kind: crate::error::CreateCacheClusterErrorKind::TagQuotaPerResourceExceeded({
#[allow(unused_mut)]
let mut tmp = {
#[allow(unused_mut)]
let mut output =
crate::error::tag_quota_per_resource_exceeded::Builder::default();
let _ = response;
output = crate::xml_deser::deser_structure_crate_error_tag_quota_per_resource_exceeded_xml_err(response.body().as_ref(), output).map_err(crate::error::CreateCacheClusterError::unhandled)?;
output.build()
};
if tmp.message.is_none() {
tmp.message = _error_message;
}
tmp
}),
},
_ => crate::error::CreateCacheClusterError::generic(generic),
})
}
sourcepub fn meta(&self) -> &Error
pub fn meta(&self) -> &Error
Returns error metadata, which includes the error code, message, request ID, and potentially additional information.
sourcepub fn request_id(&self) -> Option<&str>
pub fn request_id(&self) -> Option<&str>
Returns the request ID if it’s available.
sourcepub fn is_cache_cluster_already_exists_fault(&self) -> bool
pub fn is_cache_cluster_already_exists_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::CacheClusterAlreadyExistsFault
.
sourcepub fn is_cache_parameter_group_not_found_fault(&self) -> bool
pub fn is_cache_parameter_group_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::CacheParameterGroupNotFoundFault
.
sourcepub fn is_cache_security_group_not_found_fault(&self) -> bool
pub fn is_cache_security_group_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::CacheSecurityGroupNotFoundFault
.
sourcepub fn is_cache_subnet_group_not_found_fault(&self) -> bool
pub fn is_cache_subnet_group_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::CacheSubnetGroupNotFoundFault
.
sourcepub fn is_cluster_quota_for_customer_exceeded_fault(&self) -> bool
pub fn is_cluster_quota_for_customer_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::ClusterQuotaForCustomerExceededFault
.
sourcepub fn is_insufficient_cache_cluster_capacity_fault(&self) -> bool
pub fn is_insufficient_cache_cluster_capacity_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::InsufficientCacheClusterCapacityFault
.
sourcepub fn is_invalid_parameter_combination_exception(&self) -> bool
pub fn is_invalid_parameter_combination_exception(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::InvalidParameterCombinationException
.
sourcepub fn is_invalid_parameter_value_exception(&self) -> bool
pub fn is_invalid_parameter_value_exception(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::InvalidParameterValueException
.
sourcepub fn is_invalid_replication_group_state_fault(&self) -> bool
pub fn is_invalid_replication_group_state_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::InvalidReplicationGroupStateFault
.
sourcepub fn is_invalid_vpc_network_state_fault(&self) -> bool
pub fn is_invalid_vpc_network_state_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::InvalidVpcNetworkStateFault
.
sourcepub fn is_node_quota_for_cluster_exceeded_fault(&self) -> bool
pub fn is_node_quota_for_cluster_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::NodeQuotaForClusterExceededFault
.
sourcepub fn is_node_quota_for_customer_exceeded_fault(&self) -> bool
pub fn is_node_quota_for_customer_exceeded_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::NodeQuotaForCustomerExceededFault
.
sourcepub fn is_replication_group_not_found_fault(&self) -> bool
pub fn is_replication_group_not_found_fault(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::ReplicationGroupNotFoundFault
.
sourcepub fn is_tag_quota_per_resource_exceeded(&self) -> bool
pub fn is_tag_quota_per_resource_exceeded(&self) -> bool
Returns true
if the error kind is CreateCacheClusterErrorKind::TagQuotaPerResourceExceeded
.