15 15 | impl GetAccountAuthorizationDetailsInput {
|
16 16 | /// <p>A list of entity types used to filter the results. Only the entities that match the types you specify are included in the output. Use the value <code>LocalManagedPolicy</code> to include customer managed policies.</p>
|
17 17 | /// <p>The format for this parameter is a comma-separated (if more than one) list of strings. Each string value in the list must be one of the valid values listed below.</p>
|
18 18 | ///
|
19 19 | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.filter.is_none()`.
|
20 20 | pub fn filter(&self) -> &[crate::types::EntityType] {
|
21 21 | self.filter.as_deref().unwrap_or_default()
|
22 22 | }
|
23 23 | /// <p>Use this only when paginating results to indicate the maximum number of items you want in the response. If additional items exist beyond the maximum you specify, the <code>IsTruncated</code> response element is <code>true</code>.</p>
|
24 24 | /// <p>If you do not include this parameter, the number of items defaults to 100. Note that IAM might return fewer results, even when there are more results available. In that case, the <code>IsTruncated</code> response element returns <code>true</code>, and <code>Marker</code> contains a value to include in the subsequent call that tells the service where to continue from.</p>
|
25 25 | pub fn max_items(&self) -> ::std::option::Option<i32> {
|
26 26 | self.max_items
|
27 27 | }
|
28 28 | /// <p>Use this parameter only when paginating results and only after you receive a response indicating that the results are truncated. Set it to the value of the <code>Marker</code> element in the response that you received to indicate where the next call should start.</p>
|
29 29 | pub fn marker(&self) -> ::std::option::Option<&str> {
|
30 30 | self.marker.as_deref()
|
31 31 | }
|
32 32 | }
|
33 33 | static GETACCOUNTAUTHORIZATIONDETAILSINPUT_SCHEMA_ID: ::aws_smithy_schema::ShapeId = ::aws_smithy_schema::ShapeId::from_static(
|
34 34 | "com.amazonaws.iam.synthetic#GetAccountAuthorizationDetailsInput",
|
35 35 | "com.amazonaws.iam.synthetic",
|
36 36 | "GetAccountAuthorizationDetailsInput",
|
37 37 | );
|
38 38 | static GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_FILTER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
39 39 | ::aws_smithy_schema::ShapeId::from_static(
|
40 40 | "com.amazonaws.iam.synthetic#GetAccountAuthorizationDetailsInput$Filter",
|
41 41 | "com.amazonaws.iam.synthetic",
|
42 42 | "GetAccountAuthorizationDetailsInput",
|
43 43 | ),
|
44 44 | ::aws_smithy_schema::ShapeType::List,
|
45 - | "filter",
|
45 + | "Filter",
|
46 46 | 0,
|
47 47 | );
|
48 48 | static GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_MAX_ITEMS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
49 49 | ::aws_smithy_schema::ShapeId::from_static(
|
50 50 | "com.amazonaws.iam.synthetic#GetAccountAuthorizationDetailsInput$MaxItems",
|
51 51 | "com.amazonaws.iam.synthetic",
|
52 52 | "GetAccountAuthorizationDetailsInput",
|
53 53 | ),
|
54 54 | ::aws_smithy_schema::ShapeType::Integer,
|
55 - | "max_items",
|
55 + | "MaxItems",
|
56 56 | 1,
|
57 57 | );
|
58 58 | static GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_MARKER: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
59 59 | ::aws_smithy_schema::ShapeId::from_static(
|
60 60 | "com.amazonaws.iam.synthetic#GetAccountAuthorizationDetailsInput$Marker",
|
61 61 | "com.amazonaws.iam.synthetic",
|
62 62 | "GetAccountAuthorizationDetailsInput",
|
63 63 | ),
|
64 64 | ::aws_smithy_schema::ShapeType::String,
|
65 - | "marker",
|
65 + | "Marker",
|
66 66 | 2,
|
67 67 | );
|
68 68 | static GETACCOUNTAUTHORIZATIONDETAILSINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
69 69 | GETACCOUNTAUTHORIZATIONDETAILSINPUT_SCHEMA_ID,
|
70 70 | ::aws_smithy_schema::ShapeType::Structure,
|
71 71 | &[
|
72 72 | &GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_FILTER,
|
73 73 | &GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_MAX_ITEMS,
|
74 74 | &GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_MARKER,
|
75 75 | ],
|
76 76 | );
|
77 77 | impl GetAccountAuthorizationDetailsInput {
|
78 78 | /// The schema for this shape.
|
79 79 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCOUNTAUTHORIZATIONDETAILSINPUT_SCHEMA;
|
80 80 | }
|
81 81 | impl ::aws_smithy_schema::serde::SerializableStruct for GetAccountAuthorizationDetailsInput {
|
82 82 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
83 83 | fn serialize_members(
|
84 84 | &self,
|
85 85 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
86 86 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
87 87 | if let Some(ref val) = self.filter {
|
88 88 | ser.write_list(
|
89 89 | &GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_FILTER,
|
90 90 | &|ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer| {
|
91 91 | for item in val {
|
92 92 | ser.write_string(&aws_smithy_schema::prelude::STRING, item.as_str())?;
|
93 93 | }
|
94 94 | Ok(())
|
95 95 | },
|
96 96 | )?;
|
97 97 | }
|
98 98 | if let Some(ref val) = self.max_items {
|
99 99 | ser.write_integer(&GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_MAX_ITEMS, *val)?;
|
100 100 | }
|
101 101 | if let Some(ref val) = self.marker {
|
102 102 | ser.write_string(&GETACCOUNTAUTHORIZATIONDETAILSINPUT_MEMBER_MARKER, val)?;
|
103 103 | }
|
104 104 | Ok(())
|
105 105 | }
|
106 106 | }
|
107 107 | impl GetAccountAuthorizationDetailsInput {
|
108 108 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
109 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
110 - | deserializer: &mut D,
|
109 + | pub fn deserialize(
|
110 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
111 111 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
112 112 | #[allow(unused_variables, unused_mut)]
|
113 113 | let mut builder = Self::builder();
|
114 114 | #[allow(
|
115 115 | unused_variables,
|
116 116 | unreachable_code,
|
117 117 | clippy::single_match,
|
118 118 | clippy::match_single_binding,
|
119 119 | clippy::diverging_sub_expression
|
120 120 | )]
|
121 - | deserializer.read_struct(&GETACCOUNTAUTHORIZATIONDETAILSINPUT_SCHEMA, (), |_, member, deser| {
|
121 + | deserializer.read_struct(&GETACCOUNTAUTHORIZATIONDETAILSINPUT_SCHEMA, &mut |member, deser| {
|
122 122 | match member.member_index() {
|
123 123 | Some(0) => {
|
124 124 | builder.filter = Some({
|
125 - | let container = if let Some(cap) = deser.container_size() {
|
126 - | Vec::with_capacity(cap)
|
127 - | } else {
|
128 - | Vec::new()
|
129 - | };
|
130 - | deser.read_list(member, container, |mut list, deser| {
|
131 - | list.push(crate::types::EntityType::from(deser.read_string(member)?.as_str()));
|
132 - | Ok(list)
|
133 - | })?
|
125 + | let mut container = Vec::new();
|
126 + | deser.read_list(member, &mut |deser| {
|
127 + | container.push(crate::types::EntityType::from(deser.read_string(member)?.as_str()));
|
128 + | Ok(())
|
129 + | })?;
|
130 + | container
|
134 131 | });
|
135 132 | }
|
136 133 | Some(1) => {
|
137 134 | builder.max_items = Some(deser.read_integer(member)?);
|
138 135 | }
|
139 136 | Some(2) => {
|
140 137 | builder.marker = Some(deser.read_string(member)?);
|
141 138 | }
|
142 139 | _ => {}
|
143 140 | }
|
144 141 | Ok(())
|
145 142 | })?;
|
146 143 | builder
|
147 144 | .build()
|
148 145 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
149 146 | }
|
150 147 | }
|
148 + | impl GetAccountAuthorizationDetailsInput {
|
149 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
150 + | pub fn deserialize_with_response(
|
151 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
152 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
153 + | _status: u16,
|
154 + | _body: &[u8],
|
155 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
156 + | Self::deserialize(deserializer)
|
157 + | }
|
158 + | }
|
151 159 | impl GetAccountAuthorizationDetailsInput {
|
152 160 | /// Creates a new builder-style object to manufacture [`GetAccountAuthorizationDetailsInput`](crate::operation::get_account_authorization_details::GetAccountAuthorizationDetailsInput).
|
153 161 | pub fn builder() -> crate::operation::get_account_authorization_details::builders::GetAccountAuthorizationDetailsInputBuilder {
|
154 162 | crate::operation::get_account_authorization_details::builders::GetAccountAuthorizationDetailsInputBuilder::default()
|
155 163 | }
|
156 164 | }
|
157 165 |
|
158 166 | /// A builder for [`GetAccountAuthorizationDetailsInput`](crate::operation::get_account_authorization_details::GetAccountAuthorizationDetailsInput).
|
159 167 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
160 168 | #[non_exhaustive]
|