60 60 | "com.amazonaws.ec2",
|
61 61 | "MacSystemIntegrityProtectionConfiguration",
|
62 62 | );
|
63 63 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_APPLE_INTERNAL: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
64 64 | ::aws_smithy_schema::ShapeId::from_static(
|
65 65 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$AppleInternal",
|
66 66 | "com.amazonaws.ec2",
|
67 67 | "MacSystemIntegrityProtectionConfiguration",
|
68 68 | ),
|
69 69 | ::aws_smithy_schema::ShapeType::String,
|
70 - | "apple_internal",
|
70 + | "AppleInternal",
|
71 71 | 0,
|
72 72 | )
|
73 73 | .with_xml_name("appleInternal");
|
74 74 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_BASE_SYSTEM: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
75 75 | ::aws_smithy_schema::ShapeId::from_static(
|
76 76 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$BaseSystem",
|
77 77 | "com.amazonaws.ec2",
|
78 78 | "MacSystemIntegrityProtectionConfiguration",
|
79 79 | ),
|
80 80 | ::aws_smithy_schema::ShapeType::String,
|
81 - | "base_system",
|
81 + | "BaseSystem",
|
82 82 | 1,
|
83 83 | )
|
84 84 | .with_xml_name("baseSystem");
|
85 85 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_DEBUGGING_RESTRICTIONS: ::aws_smithy_schema::Schema =
|
86 86 | ::aws_smithy_schema::Schema::new_member(
|
87 87 | ::aws_smithy_schema::ShapeId::from_static(
|
88 88 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$DebuggingRestrictions",
|
89 89 | "com.amazonaws.ec2",
|
90 90 | "MacSystemIntegrityProtectionConfiguration",
|
91 91 | ),
|
92 92 | ::aws_smithy_schema::ShapeType::String,
|
93 - | "debugging_restrictions",
|
93 + | "DebuggingRestrictions",
|
94 94 | 2,
|
95 95 | )
|
96 96 | .with_xml_name("debuggingRestrictions");
|
97 97 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_D_TRACE_RESTRICTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
98 98 | ::aws_smithy_schema::ShapeId::from_static(
|
99 99 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$DTraceRestrictions",
|
100 100 | "com.amazonaws.ec2",
|
101 101 | "MacSystemIntegrityProtectionConfiguration",
|
102 102 | ),
|
103 103 | ::aws_smithy_schema::ShapeType::String,
|
104 - | "d_trace_restrictions",
|
104 + | "DTraceRestrictions",
|
105 105 | 3,
|
106 106 | )
|
107 107 | .with_xml_name("dTraceRestrictions");
|
108 108 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_FILESYSTEM_PROTECTIONS: ::aws_smithy_schema::Schema =
|
109 109 | ::aws_smithy_schema::Schema::new_member(
|
110 110 | ::aws_smithy_schema::ShapeId::from_static(
|
111 111 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$FilesystemProtections",
|
112 112 | "com.amazonaws.ec2",
|
113 113 | "MacSystemIntegrityProtectionConfiguration",
|
114 114 | ),
|
115 115 | ::aws_smithy_schema::ShapeType::String,
|
116 - | "filesystem_protections",
|
116 + | "FilesystemProtections",
|
117 117 | 4,
|
118 118 | )
|
119 119 | .with_xml_name("filesystemProtections");
|
120 120 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_KEXT_SIGNING: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
121 121 | ::aws_smithy_schema::ShapeId::from_static(
|
122 122 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$KextSigning",
|
123 123 | "com.amazonaws.ec2",
|
124 124 | "MacSystemIntegrityProtectionConfiguration",
|
125 125 | ),
|
126 126 | ::aws_smithy_schema::ShapeType::String,
|
127 - | "kext_signing",
|
127 + | "KextSigning",
|
128 128 | 5,
|
129 129 | )
|
130 130 | .with_xml_name("kextSigning");
|
131 131 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_NVRAM_PROTECTIONS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
132 132 | ::aws_smithy_schema::ShapeId::from_static(
|
133 133 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$NvramProtections",
|
134 134 | "com.amazonaws.ec2",
|
135 135 | "MacSystemIntegrityProtectionConfiguration",
|
136 136 | ),
|
137 137 | ::aws_smithy_schema::ShapeType::String,
|
138 - | "nvram_protections",
|
138 + | "NvramProtections",
|
139 139 | 6,
|
140 140 | )
|
141 141 | .with_xml_name("nvramProtections");
|
142 142 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_STATUS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
143 143 | ::aws_smithy_schema::ShapeId::from_static(
|
144 144 | "com.amazonaws.ec2#MacSystemIntegrityProtectionConfiguration$Status",
|
145 145 | "com.amazonaws.ec2",
|
146 146 | "MacSystemIntegrityProtectionConfiguration",
|
147 147 | ),
|
148 148 | ::aws_smithy_schema::ShapeType::String,
|
149 - | "status",
|
149 + | "Status",
|
150 150 | 7,
|
151 151 | )
|
152 152 | .with_xml_name("status");
|
153 153 | static MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
154 154 | MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_SCHEMA_ID,
|
155 155 | ::aws_smithy_schema::ShapeType::Structure,
|
156 156 | &[
|
157 157 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_APPLE_INTERNAL,
|
158 158 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_BASE_SYSTEM,
|
159 159 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_DEBUGGING_RESTRICTIONS,
|
160 160 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_D_TRACE_RESTRICTIONS,
|
161 161 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_FILESYSTEM_PROTECTIONS,
|
162 162 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_KEXT_SIGNING,
|
163 163 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_NVRAM_PROTECTIONS,
|
164 164 | &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_STATUS,
|
165 165 | ],
|
166 166 | );
|
167 167 | impl MacSystemIntegrityProtectionConfiguration {
|
168 168 | /// The schema for this shape.
|
169 169 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_SCHEMA;
|
170 170 | }
|
171 171 | impl ::aws_smithy_schema::serde::SerializableStruct for MacSystemIntegrityProtectionConfiguration {
|
172 172 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
173 173 | fn serialize_members(
|
174 174 | &self,
|
175 175 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
176 176 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
177 177 | if let Some(ref val) = self.apple_internal {
|
178 178 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_APPLE_INTERNAL, val.as_str())?;
|
179 179 | }
|
180 180 | if let Some(ref val) = self.base_system {
|
181 181 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_BASE_SYSTEM, val.as_str())?;
|
182 182 | }
|
183 183 | if let Some(ref val) = self.debugging_restrictions {
|
184 184 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_DEBUGGING_RESTRICTIONS, val.as_str())?;
|
185 185 | }
|
186 186 | if let Some(ref val) = self.d_trace_restrictions {
|
187 187 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_D_TRACE_RESTRICTIONS, val.as_str())?;
|
188 188 | }
|
189 189 | if let Some(ref val) = self.filesystem_protections {
|
190 190 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_FILESYSTEM_PROTECTIONS, val.as_str())?;
|
191 191 | }
|
192 192 | if let Some(ref val) = self.kext_signing {
|
193 193 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_KEXT_SIGNING, val.as_str())?;
|
194 194 | }
|
195 195 | if let Some(ref val) = self.nvram_protections {
|
196 196 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_NVRAM_PROTECTIONS, val.as_str())?;
|
197 197 | }
|
198 198 | if let Some(ref val) = self.status {
|
199 199 | ser.write_string(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_MEMBER_STATUS, val.as_str())?;
|
200 200 | }
|
201 201 | Ok(())
|
202 202 | }
|
203 203 | }
|
204 204 | impl MacSystemIntegrityProtectionConfiguration {
|
205 205 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
206 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
207 - | deserializer: &mut D,
|
206 + | pub fn deserialize(
|
207 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
208 208 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
209 209 | #[allow(unused_variables, unused_mut)]
|
210 210 | let mut builder = Self::builder();
|
211 211 | #[allow(
|
212 212 | unused_variables,
|
213 213 | unreachable_code,
|
214 214 | clippy::single_match,
|
215 215 | clippy::match_single_binding,
|
216 216 | clippy::diverging_sub_expression
|
217 217 | )]
|
218 - | deserializer.read_struct(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_SCHEMA, (), |_, member, deser| {
|
218 + | deserializer.read_struct(&MACSYSTEMINTEGRITYPROTECTIONCONFIGURATION_SCHEMA, &mut |member, deser| {
|
219 219 | match member.member_index() {
|
220 220 | Some(0) => {
|
221 221 | builder.apple_internal = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
222 222 | deser.read_string(member)?.as_str(),
|
223 223 | ));
|
224 224 | }
|
225 225 | Some(1) => {
|
226 226 | builder.base_system = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
227 227 | deser.read_string(member)?.as_str(),
|
228 228 | ));
|
229 229 | }
|
230 230 | Some(2) => {
|
231 231 | builder.debugging_restrictions = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
232 232 | deser.read_string(member)?.as_str(),
|
233 233 | ));
|
234 234 | }
|
235 235 | Some(3) => {
|
236 236 | builder.d_trace_restrictions = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
237 237 | deser.read_string(member)?.as_str(),
|
238 238 | ));
|
239 239 | }
|
240 240 | Some(4) => {
|
241 241 | builder.filesystem_protections = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
242 242 | deser.read_string(member)?.as_str(),
|
243 243 | ));
|
244 244 | }
|
245 245 | Some(5) => {
|
246 246 | builder.kext_signing = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
247 247 | deser.read_string(member)?.as_str(),
|
248 248 | ));
|
249 249 | }
|
250 250 | Some(6) => {
|
251 251 | builder.nvram_protections = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
252 252 | deser.read_string(member)?.as_str(),
|
253 253 | ));
|
254 254 | }
|
255 255 | Some(7) => {
|
256 256 | builder.status = Some(crate::types::MacSystemIntegrityProtectionSettingStatus::from(
|
257 257 | deser.read_string(member)?.as_str(),
|
258 258 | ));
|
259 259 | }
|
260 260 | _ => {}
|
261 261 | }
|
262 262 | Ok(())
|
263 263 | })?;
|
264 264 | Ok(builder.build())
|
265 265 | }
|
266 266 | }
|
267 + | impl MacSystemIntegrityProtectionConfiguration {
|
268 + | /// Deserializes this structure from a body deserializer and HTTP response.
|
269 + | pub fn deserialize_with_response(
|
270 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
271 + | _headers: &::aws_smithy_runtime_api::http::Headers,
|
272 + | _status: u16,
|
273 + | _body: &[u8],
|
274 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
275 + | Self::deserialize(deserializer)
|
276 + | }
|
277 + | }
|
267 278 | impl MacSystemIntegrityProtectionConfiguration {
|
268 279 | /// Creates a new builder-style object to manufacture [`MacSystemIntegrityProtectionConfiguration`](crate::types::MacSystemIntegrityProtectionConfiguration).
|
269 280 | pub fn builder() -> crate::types::builders::MacSystemIntegrityProtectionConfigurationBuilder {
|
270 281 | crate::types::builders::MacSystemIntegrityProtectionConfigurationBuilder::default()
|
271 282 | }
|
272 283 | }
|
273 284 |
|
274 285 | /// A builder for [`MacSystemIntegrityProtectionConfiguration`](crate::types::MacSystemIntegrityProtectionConfiguration).
|
275 286 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
276 287 | #[non_exhaustive]
|