1+ /*
2+ * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
3+ *
4+ * Licensed under the Apache License, Version 2.0 (the "License").
5+ * You may not use this file except in compliance with the License.
6+ * A copy of the License is located at
7+ *
8+ * http://aws.amazon.com/apache2.0
9+ *
10+ * or in the "license" file accompanying this file. This file is distributed
11+ * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12+ * express or implied. See the License for the specific language governing
13+ * permissions and limitations under the License.
14+ */
15+
16+ /*
17+ * Do not modify this file. This file is generated from the s3-2006-03-01.normal.json service model.
18+ */
19+ using System ;
20+ using System . Collections . Generic ;
21+ using System . Xml . Serialization ;
22+ using System . Text ;
23+ using System . IO ;
24+ using System . Net ;
25+
26+ using Amazon . Runtime ;
27+ using Amazon . Runtime . Internal ;
28+
29+ #pragma warning disable CS0612 , CS0618 , CS1570
30+ namespace Amazon . S3 . Model
31+ {
32+ /// <summary>
33+ /// Container for the parameters to the DeleteBucketMetadataConfiguration operation.
34+ /// Deletes an S3 Metadata configuration from a general purpose bucket. For more information,
35+ /// see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-overview.html">Accelerating
36+ /// data discovery with S3 Metadata</a> in the <i>Amazon S3 User Guide</i>.
37+ ///
38+ /// <note>
39+ /// <para>
40+ /// You can use the V2 <c>DeleteBucketMetadataConfiguration</c> API operation with V1
41+ /// or V2 metadata configurations. However, if you try to use the V1 <c>DeleteBucketMetadataTableConfiguration</c>
42+ /// API operation with V2 configurations, you will receive an HTTP <c>405 Method Not Allowed</c>
43+ /// error.
44+ /// </para>
45+ /// </note> <dl> <dt>Permissions</dt> <dd>
46+ /// <para>
47+ /// To use this operation, you must have the <c>s3:DeleteBucketMetadataTableConfiguration</c>
48+ /// permission. For more information, see <a href="https://docs.aws.amazon.com/AmazonS3/latest/userguide/metadata-tables-permissions.html">Setting
49+ /// up permissions for configuring metadata tables</a> in the <i>Amazon S3 User Guide</i>.
50+ ///
51+ /// </para>
52+ /// <note>
53+ /// <para>
54+ /// The IAM policy action name is the same for the V1 and V2 API operations.
55+ /// </para>
56+ /// </note> </dd> </dl>
57+ /// <para>
58+ /// The following operations are related to <c>DeleteBucketMetadataConfiguration</c>:
59+ /// </para>
60+ /// <ul> <li>
61+ /// <para>
62+ /// <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_CreateBucketMetadataConfiguration.html">CreateBucketMetadataConfiguration</a>
63+ ///
64+ /// </para>
65+ /// </li> <li>
66+ /// <para>
67+ /// <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_GetBucketMetadataConfiguration.html">GetBucketMetadataConfiguration</a>
68+ ///
69+ /// </para>
70+ /// </li> <li>
71+ /// <para>
72+ /// <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataInventoryTableConfiguration.html">UpdateBucketMetadataInventoryTableConfiguration</a>
73+ ///
74+ /// </para>
75+ /// </li> <li>
76+ /// <para>
77+ /// <a href="https://docs.aws.amazon.com/AmazonS3/latest/API/API_UpdateBucketMetadataJournalTableConfiguration.html">UpdateBucketMetadataJournalTableConfiguration</a>
78+ ///
79+ /// </para>
80+ /// </li> </ul> <important>
81+ /// <para>
82+ /// You must URL encode any signed header values that contain spaces. For example, if
83+ /// your header value is <c>my file.txt</c>, containing two spaces after <c>my</c>, you
84+ /// must URL encode this value to <c>my%20%20file.txt</c>.
85+ /// </para>
86+ /// </important>
87+ /// </summary>
88+ public partial class DeleteBucketMetadataConfigurationRequest : AmazonWebServiceRequest
89+ {
90+ private string _bucketName ;
91+ private string _expectedBucketOwner ;
92+
93+ /// <summary>
94+ /// Gets and sets the property BucketName.
95+ /// <para>
96+ /// The general purpose bucket that you want to remove the metadata configuration from.
97+ ///
98+ /// </para>
99+ /// </summary>
100+ [ AWSProperty ( Required = true ) ]
101+ public string BucketName
102+ {
103+ get { return this . _bucketName ; }
104+ set { this . _bucketName = value ; }
105+ }
106+
107+ // Check to see if BucketName property is set
108+ internal bool IsSetBucketName ( )
109+ {
110+ return this . _bucketName != null ;
111+ }
112+
113+ /// <summary>
114+ /// Gets and sets the property ExpectedBucketOwner.
115+ /// <para>
116+ /// The expected bucket owner of the general purpose bucket that you want to remove the
117+ /// metadata table configuration from.
118+ /// </para>
119+ /// </summary>
120+ public string ExpectedBucketOwner
121+ {
122+ get { return this . _expectedBucketOwner ; }
123+ set { this . _expectedBucketOwner = value ; }
124+ }
125+
126+ // Check to see if ExpectedBucketOwner property is set
127+ internal bool IsSetExpectedBucketOwner ( )
128+ {
129+ return ! String . IsNullOrEmpty ( this . _expectedBucketOwner ) ;
130+ }
131+
132+ }
133+ }
0 commit comments