Skip to content

Commit d029624

Browse files
authored
Import from smithy-rs (#282)
1 parent 6e7349a commit d029624

File tree

1,811 files changed

+832197
-159059
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,811 files changed

+832197
-159059
lines changed

sdk/accessanalyzer/src/error.rs

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4030,6 +4030,16 @@ pub struct ValidationException {
40304030
/// <p>A list of fields that didn't validate.</p>
40314031
pub field_list: std::option::Option<std::vec::Vec<crate::model::ValidationExceptionField>>,
40324032
}
4033+
impl ValidationException {
4034+
/// <p>The reason for the exception.</p>
4035+
pub fn reason(&self) -> std::option::Option<&crate::model::ValidationExceptionReason> {
4036+
self.reason.as_ref()
4037+
}
4038+
/// <p>A list of fields that didn't validate.</p>
4039+
pub fn field_list(&self) -> std::option::Option<&[crate::model::ValidationExceptionField]> {
4040+
self.field_list.as_deref()
4041+
}
4042+
}
40334043
impl std::fmt::Debug for ValidationException {
40344044
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
40354045
let mut formatter = f.debug_struct("ValidationException");
@@ -4138,6 +4148,12 @@ pub struct ThrottlingException {
41384148
/// <p>The seconds to wait to retry.</p>
41394149
pub retry_after_seconds: std::option::Option<i32>,
41404150
}
4151+
impl ThrottlingException {
4152+
/// <p>The seconds to wait to retry.</p>
4153+
pub fn retry_after_seconds(&self) -> std::option::Option<i32> {
4154+
self.retry_after_seconds
4155+
}
4156+
}
41414157
impl std::fmt::Debug for ThrottlingException {
41424158
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41434159
let mut formatter = f.debug_struct("ThrottlingException");
@@ -4221,6 +4237,12 @@ pub struct InternalServerException {
42214237
/// <p>The seconds to wait to retry.</p>
42224238
pub retry_after_seconds: std::option::Option<i32>,
42234239
}
4240+
impl InternalServerException {
4241+
/// <p>The seconds to wait to retry.</p>
4242+
pub fn retry_after_seconds(&self) -> std::option::Option<i32> {
4243+
self.retry_after_seconds
4244+
}
4245+
}
42244246
impl std::fmt::Debug for InternalServerException {
42254247
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
42264248
let mut formatter = f.debug_struct("InternalServerException");
@@ -4370,6 +4392,16 @@ pub struct ServiceQuotaExceededException {
43704392
/// <p>The resource type.</p>
43714393
pub resource_type: std::option::Option<std::string::String>,
43724394
}
4395+
impl ServiceQuotaExceededException {
4396+
/// <p>The resource ID.</p>
4397+
pub fn resource_id(&self) -> std::option::Option<&str> {
4398+
self.resource_id.as_deref()
4399+
}
4400+
/// <p>The resource type.</p>
4401+
pub fn resource_type(&self) -> std::option::Option<&str> {
4402+
self.resource_type.as_deref()
4403+
}
4404+
}
43734405
impl std::fmt::Debug for ServiceQuotaExceededException {
43744406
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
43754407
let mut formatter = f.debug_struct("ServiceQuotaExceededException");
@@ -4467,6 +4499,16 @@ pub struct ConflictException {
44674499
/// <p>The resource type.</p>
44684500
pub resource_type: std::option::Option<std::string::String>,
44694501
}
4502+
impl ConflictException {
4503+
/// <p>The ID of the resource.</p>
4504+
pub fn resource_id(&self) -> std::option::Option<&str> {
4505+
self.resource_id.as_deref()
4506+
}
4507+
/// <p>The resource type.</p>
4508+
pub fn resource_type(&self) -> std::option::Option<&str> {
4509+
self.resource_type.as_deref()
4510+
}
4511+
}
44704512
impl std::fmt::Debug for ConflictException {
44714513
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
44724514
let mut formatter = f.debug_struct("ConflictException");
@@ -4564,6 +4606,16 @@ pub struct ResourceNotFoundException {
45644606
/// <p>The type of the resource.</p>
45654607
pub resource_type: std::option::Option<std::string::String>,
45664608
}
4609+
impl ResourceNotFoundException {
4610+
/// <p>The ID of the resource.</p>
4611+
pub fn resource_id(&self) -> std::option::Option<&str> {
4612+
self.resource_id.as_deref()
4613+
}
4614+
/// <p>The type of the resource.</p>
4615+
pub fn resource_type(&self) -> std::option::Option<&str> {
4616+
self.resource_type.as_deref()
4617+
}
4618+
}
45674619
impl std::fmt::Debug for ResourceNotFoundException {
45684620
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
45694621
let mut formatter = f.debug_struct("ResourceNotFoundException");

0 commit comments

Comments
 (0)