You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: generator/ServiceClientGeneratorLib/Generators/Marshallers/BaseMarshaller.tt
+5-4Lines changed: 5 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -37,6 +37,11 @@ using Amazon.Runtime.Internal.Util;
37
37
{
38
38
if (structure != null && this.Config.ServiceModel.Customizations.ShapeModifiers.TryGetValue(structure.Name, out var modifier) && modifier.ExcludedMarshallingProperties.Contains(member.ModeledName))
39
39
continue;
40
+
else if (this.Config.ServiceModel.Customizations.TryGetPropertyModifier(member.OwningShape.Name, member.ModeledName, out var headerPropertyModifier) && headerPropertyModifier.InjectXmlMarshallCode.Count > 0)
else if (this.Config.ServiceModel.Customizations.TryGetPropertyModifier(member.OwningShape.Name, member.ModeledName, out var headerPropertyModifier) && headerPropertyModifier.InjectXmlMarshallCode.Count > 0)
/// The bucket name of the bucket containing the object.
164
-
/// </para>
165
-
/// <para>
166
-
/// <b>Directory buckets</b> - When you use this operation with a directory bucket, you must use virtual-hosted-style
167
-
/// requests in the format <c> <i>Bucket-name</i>.s3express-<i>zone-id</i>.<i>region-code</i>.amazonaws.com</c>. Path-style
168
-
/// requests are not supported. Directory bucket names must be unique in the chosen Zone (Availability Zone or Local Zone). Bucket
169
-
/// names must follow the format <c> <i>bucket-base-name</i>--<i>zone-id</i>--x-s3</c> (for example, <c> <i>amzn-s3-demo-bucket</i>--<i>usw2-az1</i>--x-s3</c>). For
170
-
/// information about bucket naming restrictions, see
171
-
/// <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/directory-bucket-naming-rules.html">Directory bucket naming rules</a> in
172
-
/// the <i>Amazon S3 User Guide</i>.
173
-
/// </para>
174
-
/// <para>
175
-
/// <b>Access points</b> - When you use this action with an access point for general purpose buckets, you must provide the alias of
176
-
/// the access point in place of the bucket name or specify the access point ARN. When you use this action with an access point for
177
-
/// directory buckets, you must provide the access point name in place of the bucket name. When using the access point ARN, you must
178
-
/// direct requests to the access point hostname. The access point hostname takes the form <i>AccessPointName</i>-<i>AccountId</i>.s3-accesspoint.<i>Region</i>.amazonaws.com. When
179
-
/// using this action with an access point through the Amazon Web Services SDKs, you provide the access point ARN in place of the
180
-
/// bucket name. For more information about access point ARNs, see
181
-
/// <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/using-access-points.html">Using access points</a> in the <i>Amazon S3 User Guide</i>.
182
-
/// </para>
183
-
/// <note>
184
-
/// <para>
185
-
/// Object Lambda access points are not supported by directory buckets.
186
-
/// </para>
187
-
/// </note>
188
-
/// <para>
189
-
/// <b>S3 on Outposts</b> - When you use this action with S3 on Outposts, you must direct requests to the S3 on Outposts hostname. The S3 on Outposts
190
-
/// hostname takes the form <c> <i>AccessPointName</i>-<i>AccountId</i>.<i>outpostID</i>.s3-outposts.<i>Region</i>.amazonaws.com</c>. When you use
191
-
/// this action with S3 on Outposts, the destination bucket must be the Outposts access point ARN or the access point alias. For more information
192
-
/// about S3 on Outposts, see
193
-
/// <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/S3onOutposts.html">What is S3 on Outposts?</a> in the <i>Amazon S3 User Guide</i>.
194
-
/// </para>
195
-
/// </summary>
196
-
publicstringBucketName
197
-
{
198
-
get{returnthis.bucketName;}
199
-
set{this.bucketName=value;}
200
-
}
201
-
202
-
// Check to see if BucketName property is set
203
-
internalboolIsSetBucketName()
204
-
{
205
-
returnthis.bucketName!=null;
206
-
}
207
-
208
-
/// <summary>
209
-
/// Gets and sets the property BypassGovernanceRetention.
210
-
/// <para>
211
-
/// Indicates whether S3 Object Lock should bypass Governance-mode restrictions to process
212
-
/// this operation. To use this header, you must have the <c>s3:BypassGovernanceRetention</c>
213
-
/// permission.
214
-
/// </para>
215
-
/// <note>
216
-
/// <para>
217
-
/// This functionality is not supported for directory buckets.
218
-
/// </para>
219
-
/// </note>
220
-
/// </summary>
221
-
publicbool?BypassGovernanceRetention
222
-
{
223
-
get{returnthis.bypassGovernanceRetention;}
224
-
set{this.bypassGovernanceRetention=value;}
225
-
}
226
-
227
-
// Check to see if BypassGovernanceRetention property is set
228
-
internalboolIsSetBypassGovernanceRetention()
229
-
{
230
-
returnthis.bypassGovernanceRetention.HasValue;
231
-
}
232
-
233
-
/// <summary>
234
-
/// Gets and sets the property ExpectedBucketOwner.
235
-
/// <para>
236
-
/// The account ID of the expected bucket owner. If the account ID that you provide does
237
-
/// not match the actual owner of the bucket, the request fails with the HTTP status code
238
-
/// <c>403 Forbidden</c> (access denied).
239
-
/// </para>
240
-
/// </summary>
241
-
publicstringExpectedBucketOwner
242
-
{
243
-
get{returnthis.expectedBucketOwner;}
244
-
set{this.expectedBucketOwner=value;}
245
-
}
246
-
247
-
// Check to see if ExpectedBucketOwner property is set
/// <para>The <c>If-Match</c> header field makes the request method conditional on ETags. If the ETag value does not match, the operation returns
349
-
/// a <c>412 Precondition Failed</c> error. If the ETag matches or if the object doesn't exist, the operation will return a <c>204 Success (No Content) response</c>.</para>
350
-
/// <para>For more information about conditional requests, see <a href="https://docs.aws.amazon.com/https:/tools.ietf.org/html/rfc7232">RFC 7232</a>.</para>
351
-
/// <note>
352
-
/// <para>This functionality is only supported for directory buckets.</para>
353
-
/// </note>
354
-
/// </summary>
355
-
publicstringIfMatch
356
-
{
357
-
get{returnthis.ifMatch;}
358
-
set{this.ifMatch=value;}
359
-
}
360
-
361
-
// Check to see if IfMatch property is set
362
-
internalboolIsSetIfMatch()
363
-
{
364
-
return!String.IsNullOrEmpty(this.ifMatch);
365
-
}
366
-
367
-
/// <summary>
368
-
/// Gets and sets the property IfMatchLastModifiedTime.
369
-
/// <para>If present, the object is deleted only if its modification times matches the provided
370
-
/// <c>Timestamp</c>. If the <c>Timestamp</c> values do not match, the operation
371
-
/// returns a <c>412 Precondition Failed</c> error. If the <c>Timestamp</c> matches
372
-
/// or if the object doesn’t exist, the operation returns a <c>204 Success (No Content)</c> response.</para>
373
-
/// <note>
374
-
/// <para>This functionality is only supported for directory buckets.</para>
375
-
/// </note>
376
-
/// </summary>
377
-
publicDateTime?IfMatchLastModifiedTime
378
-
{
379
-
get{returnthis.ifMatchLastModifiedTime;}
380
-
set{this.ifMatchLastModifiedTime=value;}
381
-
}
382
-
383
-
// Check to see if IfMatchLastModifiedTime property is set
384
-
internalboolIsSetIfMatchLastModifiedTime()
385
-
{
386
-
returnthis.ifMatchLastModifiedTime.HasValue;
387
-
}
388
-
389
-
/// <summary>
390
-
/// Gets and sets the property IfMatchSize.
391
-
/// <para>If present, the object is deleted only if its size matches the provided size in bytes. If the <c>Size</c> value does not match, the operation returns a <c>412 Precondition Failed</c> error. If the <c>Size</c> matches or if the object doesn’t exist,
392
-
/// the operation returns a <c>204 Success (No Content)</c> response.</para>
393
-
/// <note>
394
-
/// <para>This functionality is only supported for directory buckets.</para>
395
-
/// </note>
396
-
/// <important>
397
-
/// <para>You can use the <c>If-Match</c>, <c>x-amz-if-match-last-modified-time</c> and <c>x-amz-if-match-size</c>
398
-
/// conditional headers in conjunction with each-other or individually.</para>
0 commit comments