54 54 | "com.amazonaws.lambda",
|
55 55 | "ProvisionedConcurrencyConfigListItem",
|
56 56 | );
|
57 57 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_FUNCTION_ARN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
58 58 | ::aws_smithy_schema::ShapeId::from_static(
|
59 59 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$FunctionArn",
|
60 60 | "com.amazonaws.lambda",
|
61 61 | "ProvisionedConcurrencyConfigListItem",
|
62 62 | ),
|
63 63 | ::aws_smithy_schema::ShapeType::String,
|
64 - | "function_arn",
|
64 + | "FunctionArn",
|
65 65 | 0,
|
66 66 | );
|
67 67 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_REQUESTED_PROVISIONED_CONCURRENT_EXECUTIONS: ::aws_smithy_schema::Schema =
|
68 68 | ::aws_smithy_schema::Schema::new_member(
|
69 69 | ::aws_smithy_schema::ShapeId::from_static(
|
70 70 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$RequestedProvisionedConcurrentExecutions",
|
71 71 | "com.amazonaws.lambda",
|
72 72 | "ProvisionedConcurrencyConfigListItem",
|
73 73 | ),
|
74 74 | ::aws_smithy_schema::ShapeType::Integer,
|
75 - | "requested_provisioned_concurrent_executions",
|
75 + | "RequestedProvisionedConcurrentExecutions",
|
76 76 | 1,
|
77 77 | );
|
78 78 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_AVAILABLE_PROVISIONED_CONCURRENT_EXECUTIONS: ::aws_smithy_schema::Schema =
|
79 79 | ::aws_smithy_schema::Schema::new_member(
|
80 80 | ::aws_smithy_schema::ShapeId::from_static(
|
81 81 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$AvailableProvisionedConcurrentExecutions",
|
82 82 | "com.amazonaws.lambda",
|
83 83 | "ProvisionedConcurrencyConfigListItem",
|
84 84 | ),
|
85 85 | ::aws_smithy_schema::ShapeType::Integer,
|
86 - | "available_provisioned_concurrent_executions",
|
86 + | "AvailableProvisionedConcurrentExecutions",
|
87 87 | 2,
|
88 88 | );
|
89 89 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_ALLOCATED_PROVISIONED_CONCURRENT_EXECUTIONS: ::aws_smithy_schema::Schema =
|
90 90 | ::aws_smithy_schema::Schema::new_member(
|
91 91 | ::aws_smithy_schema::ShapeId::from_static(
|
92 92 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$AllocatedProvisionedConcurrentExecutions",
|
93 93 | "com.amazonaws.lambda",
|
94 94 | "ProvisionedConcurrencyConfigListItem",
|
95 95 | ),
|
96 96 | ::aws_smithy_schema::ShapeType::Integer,
|
97 - | "allocated_provisioned_concurrent_executions",
|
97 + | "AllocatedProvisionedConcurrentExecutions",
|
98 98 | 3,
|
99 99 | );
|
100 100 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
101 101 | ::aws_smithy_schema::ShapeId::from_static(
|
102 102 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$Status",
|
103 103 | "com.amazonaws.lambda",
|
104 104 | "ProvisionedConcurrencyConfigListItem",
|
105 105 | ),
|
106 106 | ::aws_smithy_schema::ShapeType::String,
|
107 - | "status",
|
107 + | "Status",
|
108 108 | 4,
|
109 109 | );
|
110 110 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_STATUS_REASON: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
111 111 | ::aws_smithy_schema::ShapeId::from_static(
|
112 112 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$StatusReason",
|
113 113 | "com.amazonaws.lambda",
|
114 114 | "ProvisionedConcurrencyConfigListItem",
|
115 115 | ),
|
116 116 | ::aws_smithy_schema::ShapeType::String,
|
117 - | "status_reason",
|
117 + | "StatusReason",
|
118 118 | 5,
|
119 119 | );
|
120 120 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_LAST_MODIFIED: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
121 121 | ::aws_smithy_schema::ShapeId::from_static(
|
122 122 | "com.amazonaws.lambda#ProvisionedConcurrencyConfigListItem$LastModified",
|
123 123 | "com.amazonaws.lambda",
|
124 124 | "ProvisionedConcurrencyConfigListItem",
|
125 125 | ),
|
126 126 | ::aws_smithy_schema::ShapeType::String,
|
127 - | "last_modified",
|
127 + | "LastModified",
|
128 128 | 6,
|
129 129 | );
|
130 130 | static PROVISIONEDCONCURRENCYCONFIGLISTITEM_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
131 131 | PROVISIONEDCONCURRENCYCONFIGLISTITEM_SCHEMA_ID,
|
132 132 | ::aws_smithy_schema::ShapeType::Structure,
|
133 133 | &[
|
134 134 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_FUNCTION_ARN,
|
135 135 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_REQUESTED_PROVISIONED_CONCURRENT_EXECUTIONS,
|
136 136 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_AVAILABLE_PROVISIONED_CONCURRENT_EXECUTIONS,
|
137 137 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_ALLOCATED_PROVISIONED_CONCURRENT_EXECUTIONS,
|
138 138 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_STATUS,
|
139 139 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_STATUS_REASON,
|
140 140 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_LAST_MODIFIED,
|
141 141 | ],
|
142 142 | );
|
143 143 | impl ProvisionedConcurrencyConfigListItem {
|
144 144 | /// The schema for this shape.
|
145 145 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &PROVISIONEDCONCURRENCYCONFIGLISTITEM_SCHEMA;
|
146 146 | }
|
147 147 | impl ::aws_smithy_schema::serde::SerializableStruct for ProvisionedConcurrencyConfigListItem {
|
148 148 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
149 149 | fn serialize_members(
|
150 150 | &self,
|
151 151 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
152 152 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
153 153 | if let Some(ref val) = self.function_arn {
|
154 154 | ser.write_string(&PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_FUNCTION_ARN, val)?;
|
155 155 | }
|
156 156 | if let Some(ref val) = self.requested_provisioned_concurrent_executions {
|
157 157 | ser.write_integer(
|
158 158 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_REQUESTED_PROVISIONED_CONCURRENT_EXECUTIONS,
|
159 159 | *val,
|
160 160 | )?;
|
161 161 | }
|
162 162 | if let Some(ref val) = self.available_provisioned_concurrent_executions {
|
163 163 | ser.write_integer(
|
164 164 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_AVAILABLE_PROVISIONED_CONCURRENT_EXECUTIONS,
|
165 165 | *val,
|
166 166 | )?;
|
167 167 | }
|
168 168 | if let Some(ref val) = self.allocated_provisioned_concurrent_executions {
|
169 169 | ser.write_integer(
|
170 170 | &PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_ALLOCATED_PROVISIONED_CONCURRENT_EXECUTIONS,
|
171 171 | *val,
|
172 172 | )?;
|
173 173 | }
|
174 174 | if let Some(ref val) = self.status {
|
175 175 | ser.write_string(&PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_STATUS, val.as_str())?;
|
176 176 | }
|
177 177 | if let Some(ref val) = self.status_reason {
|
178 178 | ser.write_string(&PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_STATUS_REASON, val)?;
|
179 179 | }
|
180 180 | if let Some(ref val) = self.last_modified {
|
181 181 | ser.write_string(&PROVISIONEDCONCURRENCYCONFIGLISTITEM_MEMBER_LAST_MODIFIED, val)?;
|
182 182 | }
|
183 183 | Ok(())
|
184 184 | }
|
185 185 | }
|
186 186 | impl ProvisionedConcurrencyConfigListItem {
|
187 187 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
188 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
189 - | deserializer: &mut D,
|
188 + | pub fn deserialize(
|
189 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
190 190 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
191 191 | #[allow(unused_variables, unused_mut)]
|
192 192 | let mut builder = Self::builder();
|
193 193 | #[allow(
|
194 194 | unused_variables,
|
195 195 | unreachable_code,
|
196 196 | clippy::single_match,
|
197 197 | clippy::match_single_binding,
|
198 198 | clippy::diverging_sub_expression
|
199 199 | )]
|
200 - | deserializer.read_struct(&PROVISIONEDCONCURRENCYCONFIGLISTITEM_SCHEMA, (), |_, member, deser| {
|
200 + | deserializer.read_struct(&PROVISIONEDCONCURRENCYCONFIGLISTITEM_SCHEMA, &mut |member, deser| {
|
201 201 | match member.member_index() {
|
202 202 | Some(0) => {
|
203 203 | builder.function_arn = Some(deser.read_string(member)?);
|
204 204 | }
|
205 205 | Some(1) => {
|
206 206 | builder.requested_provisioned_concurrent_executions = Some(deser.read_integer(member)?);
|
207 207 | }
|
208 208 | Some(2) => {
|
209 209 | builder.available_provisioned_concurrent_executions = Some(deser.read_integer(member)?);
|
210 210 | }
|
211 211 | Some(3) => {
|
212 212 | builder.allocated_provisioned_concurrent_executions = Some(deser.read_integer(member)?);
|
213 213 | }
|
214 214 | Some(4) => {
|
215 215 | builder.status = Some(crate::types::ProvisionedConcurrencyStatusEnum::from(deser.read_string(member)?.as_str()));
|
216 216 | }
|
217 217 | Some(5) => {
|
218 218 | builder.status_reason = Some(deser.read_string(member)?);
|
219 219 | }
|
220 220 | Some(6) => {
|
221 221 | builder.last_modified = Some(deser.read_string(member)?);
|
222 222 | }
|
223 223 | _ => {}
|
224 224 | }
|
225 225 | Ok(())
|
226 226 | })?;
|
227 227 | Ok(builder.build())
|
228 228 | }
|
229 229 | }
|
230 + | impl ProvisionedConcurrencyConfigListItem {
|
231 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
232 + | pub fn deserialize_with_response(
|
233 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
234 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
235 + | _status: u16,
|
236 + | _body: &[u8],
|
237 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
238 + | Self::deserialize(deserializer)
|
239 + | }
|
240 + | }
|
230 241 | impl ProvisionedConcurrencyConfigListItem {
|
231 242 | /// Creates a new builder-style object to manufacture [`ProvisionedConcurrencyConfigListItem`](crate::types::ProvisionedConcurrencyConfigListItem).
|
232 243 | pub fn builder() -> crate::types::builders::ProvisionedConcurrencyConfigListItemBuilder {
|
233 244 | crate::types::builders::ProvisionedConcurrencyConfigListItemBuilder::default()
|
234 245 | }
|
235 246 | }
|
236 247 |
|
237 248 | /// A builder for [`ProvisionedConcurrencyConfigListItem`](crate::types::ProvisionedConcurrencyConfigListItem).
|
238 249 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
239 250 | #[non_exhaustive]
|