36 36 | "com.amazonaws.s3control.synthetic",
|
37 37 | "GetAccessPointForObjectLambdaOutput",
|
38 38 | );
|
39 39 | static GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_NAME: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
40 40 | ::aws_smithy_schema::ShapeId::from_static(
|
41 41 | "com.amazonaws.s3control.synthetic#GetAccessPointForObjectLambdaOutput$Name",
|
42 42 | "com.amazonaws.s3control.synthetic",
|
43 43 | "GetAccessPointForObjectLambdaOutput",
|
44 44 | ),
|
45 45 | ::aws_smithy_schema::ShapeType::String,
|
46 - | "name",
|
46 + | "Name",
|
47 47 | 0,
|
48 48 | );
|
49 49 | static GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION: ::aws_smithy_schema::Schema =
|
50 50 | ::aws_smithy_schema::Schema::new_member(
|
51 51 | ::aws_smithy_schema::ShapeId::from_static(
|
52 52 | "com.amazonaws.s3control.synthetic#GetAccessPointForObjectLambdaOutput$PublicAccessBlockConfiguration",
|
53 53 | "com.amazonaws.s3control.synthetic",
|
54 54 | "GetAccessPointForObjectLambdaOutput",
|
55 55 | ),
|
56 56 | ::aws_smithy_schema::ShapeType::Structure,
|
57 - | "public_access_block_configuration",
|
57 + | "PublicAccessBlockConfiguration",
|
58 58 | 1,
|
59 59 | );
|
60 60 | static GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_CREATION_DATE: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
61 61 | ::aws_smithy_schema::ShapeId::from_static(
|
62 62 | "com.amazonaws.s3control.synthetic#GetAccessPointForObjectLambdaOutput$CreationDate",
|
63 63 | "com.amazonaws.s3control.synthetic",
|
64 64 | "GetAccessPointForObjectLambdaOutput",
|
65 65 | ),
|
66 66 | ::aws_smithy_schema::ShapeType::Timestamp,
|
67 - | "creation_date",
|
67 + | "CreationDate",
|
68 68 | 2,
|
69 69 | );
|
70 70 | static GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_ALIAS: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
71 71 | ::aws_smithy_schema::ShapeId::from_static(
|
72 72 | "com.amazonaws.s3control.synthetic#GetAccessPointForObjectLambdaOutput$Alias",
|
73 73 | "com.amazonaws.s3control.synthetic",
|
74 74 | "GetAccessPointForObjectLambdaOutput",
|
75 75 | ),
|
76 76 | ::aws_smithy_schema::ShapeType::Structure,
|
77 - | "alias",
|
77 + | "Alias",
|
78 78 | 3,
|
79 79 | );
|
80 + | static GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER__REQUEST_ID: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_member(
|
81 + | ::aws_smithy_schema::ShapeId::from_static("synthetic#request_id", "synthetic", "request_id"),
|
82 + | ::aws_smithy_schema::ShapeType::String,
|
83 + | "request_id",
|
84 + | 4,
|
85 + | )
|
86 + | .with_http_header("x-amzn-requestid");
|
80 87 | static GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_SCHEMA: ::aws_smithy_schema::Schema = ::aws_smithy_schema::Schema::new_struct(
|
81 88 | GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_SCHEMA_ID,
|
82 89 | ::aws_smithy_schema::ShapeType::Structure,
|
83 90 | &[
|
84 91 | &GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_NAME,
|
85 92 | &GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION,
|
86 93 | &GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_CREATION_DATE,
|
87 94 | &GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_ALIAS,
|
95 + | &GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER__REQUEST_ID,
|
88 96 | ],
|
89 97 | );
|
90 98 | impl GetAccessPointForObjectLambdaOutput {
|
91 99 | /// The schema for this shape.
|
92 100 | pub const SCHEMA: &'static ::aws_smithy_schema::Schema = &GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_SCHEMA;
|
93 101 | }
|
94 102 | impl ::aws_smithy_schema::serde::SerializableStruct for GetAccessPointForObjectLambdaOutput {
|
95 103 | #[allow(unused_variables, clippy::diverging_sub_expression)]
|
96 104 | fn serialize_members(
|
97 105 | &self,
|
98 106 | ser: &mut dyn ::aws_smithy_schema::serde::ShapeSerializer,
|
99 107 | ) -> ::std::result::Result<(), ::aws_smithy_schema::serde::SerdeError> {
|
100 108 | if let Some(ref val) = self.name {
|
101 109 | ser.write_string(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_NAME, val)?;
|
102 110 | }
|
103 111 | if let Some(ref val) = self.public_access_block_configuration {
|
104 112 | ser.write_struct(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_PUBLIC_ACCESS_BLOCK_CONFIGURATION, val)?;
|
105 113 | }
|
106 114 | if let Some(ref val) = self.creation_date {
|
107 115 | ser.write_timestamp(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_CREATION_DATE, val)?;
|
108 116 | }
|
109 117 | if let Some(ref val) = self.alias {
|
110 118 | ser.write_struct(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_MEMBER_ALIAS, val)?;
|
111 119 | }
|
112 120 | Ok(())
|
113 121 | }
|
114 122 | }
|
115 123 | impl GetAccessPointForObjectLambdaOutput {
|
116 124 | /// Deserializes this structure from a [`ShapeDeserializer`].
|
117 - | pub fn deserialize<D: ::aws_smithy_schema::serde::ShapeDeserializer>(
|
118 - | deserializer: &mut D,
|
125 + | pub fn deserialize(
|
126 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
127 + | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
128 + | #[allow(unused_variables, unused_mut)]
|
129 + | let mut builder = Self::builder();
|
130 + | #[allow(
|
131 + | unused_variables,
|
132 + | unreachable_code,
|
133 + | clippy::single_match,
|
134 + | clippy::match_single_binding,
|
135 + | clippy::diverging_sub_expression
|
136 + | )]
|
137 + | deserializer.read_struct(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_SCHEMA, &mut |member, deser| {
|
138 + | match member.member_index() {
|
139 + | Some(0) => {
|
140 + | builder.name = Some(deser.read_string(member)?);
|
141 + | }
|
142 + | Some(1) => {
|
143 + | builder.public_access_block_configuration = Some(crate::types::PublicAccessBlockConfiguration::deserialize(deser)?);
|
144 + | }
|
145 + | Some(2) => {
|
146 + | builder.creation_date = Some(deser.read_timestamp(member)?);
|
147 + | }
|
148 + | Some(3) => {
|
149 + | builder.alias = Some(crate::types::ObjectLambdaAccessPointAlias::deserialize(deser)?);
|
150 + | }
|
151 + | Some(4) => {
|
152 + | builder._request_id = Some(deser.read_string(member)?);
|
153 + | }
|
154 + | _ => {}
|
155 + | }
|
156 + | Ok(())
|
157 + | })?;
|
158 + | Ok(builder.build())
|
159 + | }
|
160 + | }
|
161 + | impl GetAccessPointForObjectLambdaOutput {
|
162 + | /// Deserializes this structure from a body deserializer and HTTP response headers.
|
163 + | /// Header-bound members are read directly from headers, avoiding runtime
|
164 + | /// member iteration overhead. Body members are read via the deserializer.
|
165 + | pub fn deserialize_with_response(
|
166 + | deserializer: &mut dyn ::aws_smithy_schema::serde::ShapeDeserializer,
|
167 + | headers: &::aws_smithy_runtime_api::http::Headers,
|
168 + | _status: u16,
|
169 + | _body: &[u8],
|
119 170 | ) -> ::std::result::Result<Self, ::aws_smithy_schema::serde::SerdeError> {
|
120 171 | #[allow(unused_variables, unused_mut)]
|
121 172 | let mut builder = Self::builder();
|
173 + | if let Some(val) = headers.get("x-amzn-requestid") {
|
174 + | builder._request_id = Some(val.to_string());
|
175 + | }
|
122 176 | #[allow(
|
123 177 | unused_variables,
|
124 178 | unreachable_code,
|
125 179 | clippy::single_match,
|
126 180 | clippy::match_single_binding,
|
127 181 | clippy::diverging_sub_expression
|
128 182 | )]
|
129 - | deserializer.read_struct(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_SCHEMA, (), |_, member, deser| {
|
183 + | deserializer.read_struct(&GETACCESSPOINTFOROBJECTLAMBDAOUTPUT_SCHEMA, &mut |member, deser| {
|
130 184 | match member.member_index() {
|
131 185 | Some(0) => {
|
132 186 | builder.name = Some(deser.read_string(member)?);
|
133 187 | }
|
134 188 | Some(1) => {
|
135 189 | builder.public_access_block_configuration = Some(crate::types::PublicAccessBlockConfiguration::deserialize(deser)?);
|
136 190 | }
|
137 191 | Some(2) => {
|
138 192 | builder.creation_date = Some(deser.read_timestamp(member)?);
|
139 193 | }
|