73 73 | "com.amazonaws.ec2.synthetic",
|
74 74 | "CreateLaunchTemplateVersionInput",
|
75 75 | );
|
76 76 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_DRY_RUN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
77 77 | ::aws_smithy_schema::ShapeId::from_static(
|
78 78 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$DryRun",
|
79 79 | "com.amazonaws.ec2.synthetic",
|
80 80 | "CreateLaunchTemplateVersionInput",
|
81 81 | ),
|
82 82 | ::aws_smithy_schema::ShapeType::Boolean,
|
83 - | "dry_run",
|
83 + | "DryRun",
|
84 84 | 0,
|
85 85 | );
|
86 86 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_CLIENT_TOKEN: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
87 87 | ::aws_smithy_schema::ShapeId::from_static(
|
88 88 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$ClientToken",
|
89 89 | "com.amazonaws.ec2.synthetic",
|
90 90 | "CreateLaunchTemplateVersionInput",
|
91 91 | ),
|
92 92 | ::aws_smithy_schema::ShapeType::String,
|
93 - | "client_token",
|
93 + | "ClientToken",
|
94 94 | 1,
|
95 95 | );
|
96 96 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
97 97 | ::aws_smithy_schema::ShapeId::from_static(
|
98 98 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$LaunchTemplateId",
|
99 99 | "com.amazonaws.ec2.synthetic",
|
100 100 | "CreateLaunchTemplateVersionInput",
|
101 101 | ),
|
102 102 | ::aws_smithy_schema::ShapeType::String,
|
103 - | "launch_template_id",
|
103 + | "LaunchTemplateId",
|
104 104 | 2,
|
105 105 | );
|
106 106 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
107 107 | ::aws_smithy_schema::ShapeId::from_static(
|
108 108 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$LaunchTemplateName",
|
109 109 | "com.amazonaws.ec2.synthetic",
|
110 110 | "CreateLaunchTemplateVersionInput",
|
111 111 | ),
|
112 112 | ::aws_smithy_schema::ShapeType::String,
|
113 - | "launch_template_name",
|
113 + | "LaunchTemplateName",
|
114 114 | 3,
|
115 115 | );
|
116 116 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_SOURCE_VERSION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
117 117 | ::aws_smithy_schema::ShapeId::from_static(
|
118 118 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$SourceVersion",
|
119 119 | "com.amazonaws.ec2.synthetic",
|
120 120 | "CreateLaunchTemplateVersionInput",
|
121 121 | ),
|
122 122 | ::aws_smithy_schema::ShapeType::String,
|
123 - | "source_version",
|
123 + | "SourceVersion",
|
124 124 | 4,
|
125 125 | );
|
126 126 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_VERSION_DESCRIPTION: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
127 127 | ::aws_smithy_schema::ShapeId::from_static(
|
128 128 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$VersionDescription",
|
129 129 | "com.amazonaws.ec2.synthetic",
|
130 130 | "CreateLaunchTemplateVersionInput",
|
131 131 | ),
|
132 132 | ::aws_smithy_schema::ShapeType::String,
|
133 - | "version_description",
|
133 + | "VersionDescription",
|
134 134 | 5,
|
135 135 | );
|
136 136 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_DATA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
137 137 | ::aws_smithy_schema::ShapeId::from_static(
|
138 138 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$LaunchTemplateData",
|
139 139 | "com.amazonaws.ec2.synthetic",
|
140 140 | "CreateLaunchTemplateVersionInput",
|
141 141 | ),
|
142 142 | ::aws_smithy_schema::ShapeType::Structure,
|
143 - | "launch_template_data",
|
143 + | "LaunchTemplateData",
|
144 144 | 6,
|
145 145 | );
|
146 146 | static CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_RESOLVE_ALIAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
147 147 | ::aws_smithy_schema::ShapeId::from_static(
|
148 148 | "com.amazonaws.ec2.synthetic#CreateLaunchTemplateVersionInput$ResolveAlias",
|
149 149 | "com.amazonaws.ec2.synthetic",
|
150 150 | "CreateLaunchTemplateVersionInput",
|
151 151 | ),
|
152 152 | ::aws_smithy_schema::ShapeType::Boolean,
|
153 - | "resolve_alias",
|
153 + | "ResolveAlias",
|
154 154 | 7,
|
155 155 | );
|
156 156 | static CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
157 157 | CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA_ID,
|
158 158 | ::aws_smithy_schema::ShapeType::Structure,
|
159 159 | &[
|
160 160 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_DRY_RUN,
|
161 161 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_CLIENT_TOKEN,
|
162 162 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_ID,
|
163 163 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_NAME,
|
164 164 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_SOURCE_VERSION,
|
165 165 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_VERSION_DESCRIPTION,
|
166 166 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_DATA,
|
167 167 | &CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_RESOLVE_ALIAS,
|
168 168 | ],
|
169 169 | );
|
170 170 | impl CreateLaunchTemplateVersionInput {
|
171 171 | /// The schema for this shape.
|
172 172 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA;
|
173 173 | }
|
174 174 | impl ::aws_smithy_schema::serde::SerializableStruct for CreateLaunchTemplateVersionInput {
|
175 175 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
176 176 | fn serialize_members(
|
177 177 | &self,
|
178 178 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
179 179 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
180 180 | if let Some(ref val) = self.dry_run {
|
181 181 | ser.write_boolean(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_DRY_RUN, *val)?;
|
182 182 | }
|
183 183 | if let Some(ref val) = self.client_token {
|
184 184 | ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_CLIENT_TOKEN, val)?;
|
185 185 | }
|
186 186 | if let Some(ref val) = self.launch_template_id {
|
187 187 | ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_ID, val)?;
|
188 188 | }
|
189 189 | if let Some(ref val) = self.launch_template_name {
|
190 190 | ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_NAME, val)?;
|
191 191 | }
|
192 192 | if let Some(ref val) = self.source_version {
|
193 193 | ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_SOURCE_VERSION, val)?;
|
194 194 | }
|
195 195 | if let Some(ref val) = self.version_description {
|
196 196 | ser.write_string(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_VERSION_DESCRIPTION, val)?;
|
197 197 | }
|
198 198 | if let Some(ref val) = self.launch_template_data {
|
199 199 | ser.write_struct(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_LAUNCH_TEMPLATE_DATA, val)?;
|
200 200 | }
|
201 201 | if let Some(ref val) = self.resolve_alias {
|
202 202 | ser.write_boolean(&CREATELAUNCHTEMPLATEVERSIONINPUT_MEMBER_RESOLVE_ALIAS, *val)?;
|
203 203 | }
|
204 204 | Ok(())
|
205 205 | }
|
206 206 | }
|
207 207 | impl CreateLaunchTemplateVersionInput {
|
208 208 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
209 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
210 - | deserializer: &mut D,
|
209 + | pub fn deserialize(
|
210 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
211 211 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
212 212 | #[allow(unused_variables, unused_mut)]
|
213 213 | let mut builder = Self::builder();
|
214 214 | #[allow(
|
215 215 | unused_variables,
|
216 216 | unreachable_code,
|
217 217 | clippy::single_match,
|
218 218 | clippy::match_single_binding,
|
219 219 | clippy::diverging_sub_expression
|
220 220 | )]
|
221 - | deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA, (), |_, member, deser| {
|
221 + | deserializer.read_struct(&CREATELAUNCHTEMPLATEVERSIONINPUT_SCHEMA, &mut |member, deser| {
|
222 222 | match member.member_index() {
|
223 223 | Some(0) => {
|
224 224 | builder.dry_run = Some(deser.read_boolean(member)?);
|
225 225 | }
|
226 226 | Some(1) => {
|
227 227 | builder.client_token = Some(deser.read_string(member)?);
|
228 228 | }
|
229 229 | Some(2) => {
|
230 230 | builder.launch_template_id = Some(deser.read_string(member)?);
|
231 231 | }
|
232 232 | Some(3) => {
|
233 233 | builder.launch_template_name = Some(deser.read_string(member)?);
|
234 234 | }
|
235 235 | Some(4) => {
|
236 236 | builder.source_version = Some(deser.read_string(member)?);
|
237 237 | }
|
238 238 | Some(5) => {
|
239 239 | builder.version_description = Some(deser.read_string(member)?);
|
240 240 | }
|
241 241 | Some(6) => {
|
242 242 | builder.launch_template_data = Some(crate::types::RequestLaunchTemplateData::deserialize(deser)?);
|
243 243 | }
|
244 244 | Some(7) => {
|
245 245 | builder.resolve_alias = Some(deser.read_boolean(member)?);
|
246 246 | }
|
247 247 | _ => {}
|
248 248 | }
|
249 249 | Ok(())
|
250 250 | })?;
|
251 251 | builder
|
252 252 | .build()
|
253 253 | .map_err(|e| aws_smithy_schema::serde::SerdeError::Custom { message: e.to_string() })
|
254 254 | }
|
255 255 | }
|
256 + | impl CreateLaunchTemplateVersionInput {
|
257 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
258 + | pub fn deserialize_with_response(
|
259 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
260 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
261 + | _status: u16,
|
262 + | _body: &[u8],
|
263 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
264 + | Self::deserialize(deserializer)
|
265 + | }
|
266 + | }
|
256 267 | impl CreateLaunchTemplateVersionInput {
|
257 268 | /// Creates a new builder-style object to manufacture [`CreateLaunchTemplateVersionInput`](crate::operation::create_launch_template_version::CreateLaunchTemplateVersionInput).
|
258 269 | pub fn builder() -> crate::operation::create_launch_template_version::builders::CreateLaunchTemplateVersionInputBuilder {
|
259 270 | crate::operation::create_launch_template_version::builders::CreateLaunchTemplateVersionInputBuilder::default()
|
260 271 | }
|
261 272 | }
|
262 273 |
|
263 274 | /// A builder for [`CreateLaunchTemplateVersionInput`](crate::operation::create_launch_template_version::CreateLaunchTemplateVersionInput).
|
264 275 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
265 276 | #[non_exhaustive]
|