1 1 | // Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
|
2 - |
|
3 - | /// <p>Represents the input of a <code>CreateTable</code> operation.</p>
|
2 + | /* StructureGenerator.kt:197 */
|
3 + | /// /* StructureGenerator.kt:197 */<p>Represents the input of a <code>CreateTable</code> operation.</p>
|
4 + | /* RustType.kt:516 */
|
4 5 | #[non_exhaustive]
|
6 + | /* RustType.kt:516 */
|
5 7 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
|
6 - | pub struct CreateTableInput {
|
7 - | /// <p>An array of attributes that describe the key schema for the table and indexes.</p>
|
8 + | pub /* StructureGenerator.kt:201 */ struct CreateTableInput {
|
9 + | /// /* StructureGenerator.kt:231 */<p>An array of attributes that describe the key schema for the table and indexes.</p>
|
8 10 | pub attribute_definitions: ::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>>,
|
9 - | /// <p>The name of the table to create.</p>
|
11 + | /// /* StructureGenerator.kt:231 */<p>The name of the table to create.</p>
|
10 12 | pub table_name: ::std::option::Option<::std::string::String>,
|
11 - | /// <p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
13 + | /// /* StructureGenerator.kt:231 */<p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
12 14 | /// <p>Each <code>KeySchemaElement</code> in the array is composed of:</p>
|
13 15 | /// <ul>
|
14 16 | /// <li>
|
15 17 | /// <p><code>AttributeName</code> - The name of this key attribute.</p></li>
|
16 18 | /// <li>
|
17 19 | /// <p><code>KeyType</code> - The role that the key attribute will assume:</p>
|
18 20 | /// <ul>
|
19 21 | /// <li>
|
20 22 | /// <p><code>HASH</code> - partition key</p></li>
|
21 23 | /// <li>
|
22 24 | /// <p><code>RANGE</code> - sort key</p></li>
|
23 25 | /// </ul></li>
|
24 26 | /// </ul><note>
|
25 27 | /// <p>The partition key of an item is also known as its <i>hash attribute</i>. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p>
|
26 28 | /// <p>The sort key of an item is also known as its <i>range attribute</i>. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p>
|
27 29 | /// </note>
|
28 30 | /// <p>For a simple primary key (partition key), you must provide exactly one element with a <code>KeyType</code> of <code>HASH</code>.</p>
|
29 31 | /// <p>For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a <code>KeyType</code> of <code>HASH</code>, and the second element must have a <code>KeyType</code> of <code>RANGE</code>.</p>
|
30 32 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key">Working with Tables</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
31 33 | pub key_schema: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>,
|
32 - | /// <p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
34 + | /// /* StructureGenerator.kt:231 */<p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
33 35 | /// <p>Each local secondary index in the array includes the following:</p>
|
34 36 | /// <ul>
|
35 37 | /// <li>
|
36 38 | /// <p><code>IndexName</code> - The name of the local secondary index. Must be unique only for this table.</p>
|
37 39 | /// <p></p></li>
|
38 40 | /// <li>
|
39 41 | /// <p><code>KeySchema</code> - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.</p></li>
|
40 42 | /// <li>
|
41 43 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
42 44 | /// <ul>
|
43 45 | /// <li>
|
44 46 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
45 47 | /// <ul>
|
46 48 | /// <li>
|
47 49 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
48 50 | /// <li>
|
49 51 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
50 52 | /// <li>
|
51 53 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
52 54 | /// </ul></li>
|
53 55 | /// <li>
|
54 56 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
55 57 | /// </ul></li>
|
56 58 | /// </ul>
|
57 59 | pub local_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::LocalSecondaryIndex>>,
|
58 - | /// <p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
60 + | /// /* StructureGenerator.kt:231 */<p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
59 61 | /// <ul>
|
60 62 | /// <li>
|
61 63 | /// <p><code>IndexName</code> - The name of the global secondary index. Must be unique only for this table.</p>
|
62 64 | /// <p></p></li>
|
63 65 | /// <li>
|
64 66 | /// <p><code>KeySchema</code> - Specifies the key schema for the global secondary index.</p></li>
|
65 67 | /// <li>
|
66 68 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
67 69 | /// <ul>
|
68 70 | /// <li>
|
69 71 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
70 72 | /// <ul>
|
71 73 | /// <li>
|
72 74 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
73 75 | /// <li>
|
74 76 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
75 77 | /// <li>
|
76 78 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
77 79 | /// </ul></li>
|
78 80 | /// <li>
|
79 81 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
80 82 | /// </ul></li>
|
81 83 | /// <li>
|
82 84 | /// <p><code>ProvisionedThroughput</code> - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.</p></li>
|
83 85 | /// </ul>
|
84 86 | pub global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndex>>,
|
85 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
87 + | /// /* StructureGenerator.kt:231 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
86 88 | /// <ul>
|
87 89 | /// <li>
|
88 90 | /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for predictable workloads. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual">Provisioned Mode</a>.</p></li>
|
89 91 | /// <li>
|
90 92 | /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand">On-Demand Mode</a>.</p></li>
|
91 93 | /// </ul>
|
92 94 | pub billing_mode: ::std::option::Option<crate::types::BillingMode>,
|
93 - | /// <p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
95 + | /// /* StructureGenerator.kt:231 */<p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
94 96 | /// <p>If you set BillingMode as <code>PROVISIONED</code>, you must specify this property. If you set BillingMode as <code>PAY_PER_REQUEST</code>, you cannot specify this property.</p>
|
95 97 | /// <p>For current minimum and maximum provisioned throughput values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Service, Account, and Table Quotas</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
96 98 | pub provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
|
97 - | /// <p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
99 + | /// /* StructureGenerator.kt:231 */<p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
98 100 | /// <ul>
|
99 101 | /// <li>
|
100 102 | /// <p><code>StreamEnabled</code> - Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false).</p></li>
|
101 103 | /// <li>
|
102 104 | /// <p><code>StreamViewType</code> - When an item in the table is modified, <code>StreamViewType</code> determines what information is written to the table's stream. Valid values for <code>StreamViewType</code> are:</p>
|
103 105 | /// <ul>
|
104 106 | /// <li>
|
105 107 | /// <p><code>KEYS_ONLY</code> - Only the key attributes of the modified item are written to the stream.</p></li>
|
106 108 | /// <li>
|
107 109 | /// <p><code>NEW_IMAGE</code> - The entire item, as it appears after it was modified, is written to the stream.</p></li>
|
108 110 | /// <li>
|
109 111 | /// <p><code>OLD_IMAGE</code> - The entire item, as it appeared before it was modified, is written to the stream.</p></li>
|
110 112 | /// <li>
|
111 113 | /// <p><code>NEW_AND_OLD_IMAGES</code> - Both the new and the old item images of the item are written to the stream.</p></li>
|
112 114 | /// </ul></li>
|
113 115 | /// </ul>
|
114 116 | pub stream_specification: ::std::option::Option<crate::types::StreamSpecification>,
|
115 - | /// <p>Represents the settings used to enable server-side encryption.</p>
|
117 + | /// /* StructureGenerator.kt:231 */<p>Represents the settings used to enable server-side encryption.</p>
|
116 118 | pub sse_specification: ::std::option::Option<crate::types::SseSpecification>,
|
117 - | /// <p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
119 + | /// /* StructureGenerator.kt:231 */<p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
118 120 | pub tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
121 + | /* StructureGenerator.kt:201 */
|
119 122 | }
|
123 + | /* StructureGenerator.kt:135 */
|
120 124 | impl CreateTableInput {
|
121 - | /// <p>An array of attributes that describe the key schema for the table and indexes.</p>
|
122 - | ///
|
123 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.attribute_definitions.is_none()`.
|
125 + | /// /* StructureGenerator.kt:231 */<p>An array of attributes that describe the key schema for the table and indexes.</p>
|
126 + | /// /* StructureGenerator.kt:162 */
|
127 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.attribute_definitions.is_none()`.
|
128 + | /* StructureGenerator.kt:166 */
|
124 129 | pub fn attribute_definitions(&self) -> &[crate::types::AttributeDefinition] {
|
125 - | self.attribute_definitions.as_deref().unwrap_or_default()
|
126 - | }
|
127 - | /// <p>The name of the table to create.</p>
|
130 + | /* StructureGenerator.kt:169 */
|
131 + | self.attribute_definitions
|
132 + | .as_deref()
|
133 + | /* StructureGenerator.kt:175 */
|
134 + | .unwrap_or_default()
|
135 + | /* StructureGenerator.kt:166 */
|
136 + | }
|
137 + | /// /* StructureGenerator.kt:231 */<p>The name of the table to create.</p>
|
138 + | /* StructureGenerator.kt:166 */
|
128 139 | pub fn table_name(&self) -> ::std::option::Option<&str> {
|
140 + | /* StructureGenerator.kt:169 */
|
129 141 | self.table_name.as_deref()
|
142 + | /* StructureGenerator.kt:166 */
|
130 143 | }
|
131 - | /// <p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
144 + | /// /* StructureGenerator.kt:231 */<p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
132 145 | /// <p>Each <code>KeySchemaElement</code> in the array is composed of:</p>
|
133 146 | /// <ul>
|
134 147 | /// <li>
|
135 148 | /// <p><code>AttributeName</code> - The name of this key attribute.</p></li>
|
136 149 | /// <li>
|
137 150 | /// <p><code>KeyType</code> - The role that the key attribute will assume:</p>
|
138 151 | /// <ul>
|
139 152 | /// <li>
|
140 153 | /// <p><code>HASH</code> - partition key</p></li>
|
141 154 | /// <li>
|
142 155 | /// <p><code>RANGE</code> - sort key</p></li>
|
143 156 | /// </ul></li>
|
144 157 | /// </ul><note>
|
145 158 | /// <p>The partition key of an item is also known as its <i>hash attribute</i>. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p>
|
146 159 | /// <p>The sort key of an item is also known as its <i>range attribute</i>. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p>
|
147 160 | /// </note>
|
148 161 | /// <p>For a simple primary key (partition key), you must provide exactly one element with a <code>KeyType</code> of <code>HASH</code>.</p>
|
149 162 | /// <p>For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a <code>KeyType</code> of <code>HASH</code>, and the second element must have a <code>KeyType</code> of <code>RANGE</code>.</p>
|
150 163 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key">Working with Tables</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
151 - | ///
|
152 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.key_schema.is_none()`.
|
164 + | /// /* StructureGenerator.kt:162 */
|
165 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.key_schema.is_none()`.
|
166 + | /* StructureGenerator.kt:166 */
|
153 167 | pub fn key_schema(&self) -> &[crate::types::KeySchemaElement] {
|
154 - | self.key_schema.as_deref().unwrap_or_default()
|
155 - | }
|
156 - | /// <p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
168 + | /* StructureGenerator.kt:169 */
|
169 + | self.key_schema
|
170 + | .as_deref()
|
171 + | /* StructureGenerator.kt:175 */
|
172 + | .unwrap_or_default()
|
173 + | /* StructureGenerator.kt:166 */
|
174 + | }
|
175 + | /// /* StructureGenerator.kt:231 */<p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
157 176 | /// <p>Each local secondary index in the array includes the following:</p>
|
158 177 | /// <ul>
|
159 178 | /// <li>
|
160 179 | /// <p><code>IndexName</code> - The name of the local secondary index. Must be unique only for this table.</p>
|
161 180 | /// <p></p></li>
|
162 181 | /// <li>
|
163 182 | /// <p><code>KeySchema</code> - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.</p></li>
|
164 183 | /// <li>
|
165 184 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
166 185 | /// <ul>
|
167 186 | /// <li>
|
168 187 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
169 188 | /// <ul>
|
170 189 | /// <li>
|
171 190 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
172 191 | /// <li>
|
173 192 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
174 193 | /// <li>
|
175 194 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
176 195 | /// </ul></li>
|
177 196 | /// <li>
|
178 197 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
179 198 | /// </ul></li>
|
180 199 | /// </ul>
|
181 - | ///
|
182 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.local_secondary_indexes.is_none()`.
|
200 + | /// /* StructureGenerator.kt:162 */
|
201 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.local_secondary_indexes.is_none()`.
|
202 + | /* StructureGenerator.kt:166 */
|
183 203 | pub fn local_secondary_indexes(&self) -> &[crate::types::LocalSecondaryIndex] {
|
184 - | self.local_secondary_indexes.as_deref().unwrap_or_default()
|
204 + | /* StructureGenerator.kt:169 */
|
205 + | self.local_secondary_indexes
|
206 + | .as_deref()
|
207 + | /* StructureGenerator.kt:175 */
|
208 + | .unwrap_or_default()
|
209 + | /* StructureGenerator.kt:166 */
|
185 210 | }
|
186 - | /// <p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
211 + | /// /* StructureGenerator.kt:231 */<p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
187 212 | /// <ul>
|
188 213 | /// <li>
|
189 214 | /// <p><code>IndexName</code> - The name of the global secondary index. Must be unique only for this table.</p>
|
190 215 | /// <p></p></li>
|
191 216 | /// <li>
|
192 217 | /// <p><code>KeySchema</code> - Specifies the key schema for the global secondary index.</p></li>
|
193 218 | /// <li>
|
194 219 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
195 220 | /// <ul>
|
196 221 | /// <li>
|
197 222 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
198 223 | /// <ul>
|
199 224 | /// <li>
|
200 225 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
201 226 | /// <li>
|
202 227 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
203 228 | /// <li>
|
204 229 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
205 230 | /// </ul></li>
|
206 231 | /// <li>
|
207 232 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
208 233 | /// </ul></li>
|
209 234 | /// <li>
|
210 235 | /// <p><code>ProvisionedThroughput</code> - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.</p></li>
|
211 236 | /// </ul>
|
212 - | ///
|
213 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
|
237 + | /// /* StructureGenerator.kt:162 */
|
238 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.global_secondary_indexes.is_none()`.
|
239 + | /* StructureGenerator.kt:166 */
|
214 240 | pub fn global_secondary_indexes(&self) -> &[crate::types::GlobalSecondaryIndex] {
|
215 - | self.global_secondary_indexes.as_deref().unwrap_or_default()
|
241 + | /* StructureGenerator.kt:169 */
|
242 + | self.global_secondary_indexes
|
243 + | .as_deref()
|
244 + | /* StructureGenerator.kt:175 */
|
245 + | .unwrap_or_default()
|
246 + | /* StructureGenerator.kt:166 */
|
216 247 | }
|
217 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
248 + | /// /* StructureGenerator.kt:231 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
218 249 | /// <ul>
|
219 250 | /// <li>
|
220 251 | /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for predictable workloads. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual">Provisioned Mode</a>.</p></li>
|
221 252 | /// <li>
|
222 253 | /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand">On-Demand Mode</a>.</p></li>
|
223 254 | /// </ul>
|
255 + | /* StructureGenerator.kt:166 */
|
224 256 | pub fn billing_mode(&self) -> ::std::option::Option<&crate::types::BillingMode> {
|
257 + | /* StructureGenerator.kt:170 */
|
225 258 | self.billing_mode.as_ref()
|
259 + | /* StructureGenerator.kt:166 */
|
226 260 | }
|
227 - | /// <p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
261 + | /// /* StructureGenerator.kt:231 */<p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
228 262 | /// <p>If you set BillingMode as <code>PROVISIONED</code>, you must specify this property. If you set BillingMode as <code>PAY_PER_REQUEST</code>, you cannot specify this property.</p>
|
229 263 | /// <p>For current minimum and maximum provisioned throughput values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Service, Account, and Table Quotas</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
264 + | /* StructureGenerator.kt:166 */
|
230 265 | pub fn provisioned_throughput(&self) -> ::std::option::Option<&crate::types::ProvisionedThroughput> {
|
266 + | /* StructureGenerator.kt:170 */
|
231 267 | self.provisioned_throughput.as_ref()
|
268 + | /* StructureGenerator.kt:166 */
|
232 269 | }
|
233 - | /// <p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
270 + | /// /* StructureGenerator.kt:231 */<p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
234 271 | /// <ul>
|
235 272 | /// <li>
|
236 273 | /// <p><code>StreamEnabled</code> - Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false).</p></li>
|
237 274 | /// <li>
|
238 275 | /// <p><code>StreamViewType</code> - When an item in the table is modified, <code>StreamViewType</code> determines what information is written to the table's stream. Valid values for <code>StreamViewType</code> are:</p>
|
239 276 | /// <ul>
|
240 277 | /// <li>
|
241 278 | /// <p><code>KEYS_ONLY</code> - Only the key attributes of the modified item are written to the stream.</p></li>
|
242 279 | /// <li>
|
243 280 | /// <p><code>NEW_IMAGE</code> - The entire item, as it appears after it was modified, is written to the stream.</p></li>
|
244 281 | /// <li>
|
245 282 | /// <p><code>OLD_IMAGE</code> - The entire item, as it appeared before it was modified, is written to the stream.</p></li>
|
246 283 | /// <li>
|
247 284 | /// <p><code>NEW_AND_OLD_IMAGES</code> - Both the new and the old item images of the item are written to the stream.</p></li>
|
248 285 | /// </ul></li>
|
249 286 | /// </ul>
|
287 + | /* StructureGenerator.kt:166 */
|
250 288 | pub fn stream_specification(&self) -> ::std::option::Option<&crate::types::StreamSpecification> {
|
289 + | /* StructureGenerator.kt:170 */
|
251 290 | self.stream_specification.as_ref()
|
291 + | /* StructureGenerator.kt:166 */
|
252 292 | }
|
253 - | /// <p>Represents the settings used to enable server-side encryption.</p>
|
293 + | /// /* StructureGenerator.kt:231 */<p>Represents the settings used to enable server-side encryption.</p>
|
294 + | /* StructureGenerator.kt:166 */
|
254 295 | pub fn sse_specification(&self) -> ::std::option::Option<&crate::types::SseSpecification> {
|
296 + | /* StructureGenerator.kt:170 */
|
255 297 | self.sse_specification.as_ref()
|
298 + | /* StructureGenerator.kt:166 */
|
256 299 | }
|
257 - | /// <p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
258 - | ///
|
259 - | /// If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
|
300 + | /// /* StructureGenerator.kt:231 */<p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
301 + | /// /* StructureGenerator.kt:162 */
|
302 + | /// /* StructureGenerator.kt:163 */If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use `.tags.is_none()`.
|
303 + | /* StructureGenerator.kt:166 */
|
260 304 | pub fn tags(&self) -> &[crate::types::Tag] {
|
261 - | self.tags.as_deref().unwrap_or_default()
|
262 - | }
|
305 + | /* StructureGenerator.kt:169 */
|
306 + | self.tags
|
307 + | .as_deref()
|
308 + | /* StructureGenerator.kt:175 */
|
309 + | .unwrap_or_default()
|
310 + | /* StructureGenerator.kt:166 */
|
311 + | }
|
312 + | /* StructureGenerator.kt:135 */
|
263 313 | }
|
314 + | /* ClientCodegenVisitor.kt:237 */
|
264 315 | impl CreateTableInput {
|
265 - | /// Creates a new builder-style object to manufacture [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
|
316 + | /// /* BuilderGenerator.kt:173 */Creates a new builder-style object to manufacture [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
|
317 + | /* BuilderGenerator.kt:175 */
|
266 318 | pub fn builder() -> crate::operation::create_table::builders::CreateTableInputBuilder {
|
319 + | /* BuilderGenerator.kt:176 */
|
267 320 | crate::operation::create_table::builders::CreateTableInputBuilder::default()
|
321 + | /* BuilderGenerator.kt:175 */
|
268 322 | }
|
323 + | /* ClientCodegenVisitor.kt:237 */
|
269 324 | }
|
270 325 |
|
271 - | /// A builder for [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
|
326 + | /// /* BuilderGenerator.kt:342 */A builder for [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
|
327 + | /* RustType.kt:516 */
|
272 328 | #[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
|
329 + | /* RustType.kt:516 */
|
273 330 | #[non_exhaustive]
|
331 + | /* BuilderGenerator.kt:345 */
|
274 332 | pub struct CreateTableInputBuilder {
|
275 - | pub(crate) attribute_definitions: ::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>>,
|
276 - | pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
277 - | pub(crate) key_schema: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>,
|
333 + | /* BuilderGenerator.kt:275 */ pub(crate) attribute_definitions: ::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>>,
|
334 + | /* BuilderGenerator.kt:275 */ pub(crate) table_name: ::std::option::Option<::std::string::String>,
|
335 + | /* BuilderGenerator.kt:275 */ pub(crate) key_schema: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>,
|
336 + | /* BuilderGenerator.kt:275 */
|
278 337 | pub(crate) local_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::LocalSecondaryIndex>>,
|
338 + | /* BuilderGenerator.kt:275 */
|
279 339 | pub(crate) global_secondary_indexes: ::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndex>>,
|
280 - | pub(crate) billing_mode: ::std::option::Option<crate::types::BillingMode>,
|
281 - | pub(crate) provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
|
282 - | pub(crate) stream_specification: ::std::option::Option<crate::types::StreamSpecification>,
|
283 - | pub(crate) sse_specification: ::std::option::Option<crate::types::SseSpecification>,
|
340 + | /* BuilderGenerator.kt:275 */ pub(crate) billing_mode: ::std::option::Option<crate::types::BillingMode>,
|
341 + | /* BuilderGenerator.kt:275 */ pub(crate) provisioned_throughput: ::std::option::Option<crate::types::ProvisionedThroughput>,
|
342 + | /* BuilderGenerator.kt:275 */ pub(crate) stream_specification: ::std::option::Option<crate::types::StreamSpecification>,
|
343 + | /* BuilderGenerator.kt:275 */ pub(crate) sse_specification: ::std::option::Option<crate::types::SseSpecification>,
|
344 + | /* BuilderGenerator.kt:275 */
|
284 345 | pub(crate) tags: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>,
|
346 + | /* BuilderGenerator.kt:345 */
|
285 347 | }
|
348 + | /* BuilderGenerator.kt:355 */
|
286 349 | impl CreateTableInputBuilder {
|
287 - | /// Appends an item to `attribute_definitions`.
|
350 + | /// /* BuilderGenerator.kt:410 */Appends an item to `attribute_definitions`.
|
351 + | /* BuilderGenerator.kt:411 */
|
288 352 | ///
|
289 - | /// To override the contents of this collection use [`set_attribute_definitions`](Self::set_attribute_definitions).
|
353 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_attribute_definitions`](Self::set_attribute_definitions).
|
354 + | /* BuilderGenerator.kt:413 */
|
290 355 | ///
|
291 - | /// <p>An array of attributes that describe the key schema for the table and indexes.</p>
|
356 + | /// /* BuilderGenerator.kt:414 */<p>An array of attributes that describe the key schema for the table and indexes.</p>
|
357 + | /* BuilderGenerator.kt:418 */
|
292 358 | pub fn attribute_definitions(mut self, input: crate::types::AttributeDefinition) -> Self {
|
359 + | /* BuilderGenerator.kt:419 */
|
293 360 | let mut v = self.attribute_definitions.unwrap_or_default();
|
294 361 | v.push(input);
|
295 362 | self.attribute_definitions = ::std::option::Option::Some(v);
|
296 363 | self
|
364 + | /* BuilderGenerator.kt:418 */
|
297 365 | }
|
298 - | /// <p>An array of attributes that describe the key schema for the table and indexes.</p>
|
366 + | /// /* BuilderGenerator.kt:312 */<p>An array of attributes that describe the key schema for the table and indexes.</p>
|
367 + | /* BuilderGenerator.kt:314 */
|
299 368 | pub fn set_attribute_definitions(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>>) -> Self {
|
369 + | /* BuilderGenerator.kt:315 */
|
300 370 | self.attribute_definitions = input;
|
301 371 | self
|
372 + | /* BuilderGenerator.kt:314 */
|
302 373 | }
|
303 - | /// <p>An array of attributes that describe the key schema for the table and indexes.</p>
|
374 + | /// /* BuilderGenerator.kt:334 */<p>An array of attributes that describe the key schema for the table and indexes.</p>
|
375 + | /* BuilderGenerator.kt:336 */
|
304 376 | pub fn get_attribute_definitions(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AttributeDefinition>> {
|
377 + | /* BuilderGenerator.kt:337 */
|
305 378 | &self.attribute_definitions
|
379 + | /* BuilderGenerator.kt:336 */
|
306 380 | }
|
307 - | /// <p>The name of the table to create.</p>
|
308 - | /// This field is required.
|
381 + | /// /* BuilderGenerator.kt:286 */<p>The name of the table to create.</p>
|
382 + | /// /* BuilderGenerator.kt:288 */This field is required.
|
383 + | /* BuilderGenerator.kt:291 */
|
309 384 | pub fn table_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
|
385 + | /* BuilderGenerator.kt:292 */
|
310 386 | self.table_name = ::std::option::Option::Some(input.into());
|
387 + | /* BuilderGenerator.kt:293 */
|
311 388 | self
|
389 + | /* BuilderGenerator.kt:291 */
|
312 390 | }
|
313 - | /// <p>The name of the table to create.</p>
|
391 + | /// /* BuilderGenerator.kt:312 */<p>The name of the table to create.</p>
|
392 + | /* BuilderGenerator.kt:314 */
|
314 393 | pub fn set_table_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
|
394 + | /* BuilderGenerator.kt:315 */
|
315 395 | self.table_name = input;
|
316 396 | self
|
397 + | /* BuilderGenerator.kt:314 */
|
317 398 | }
|
318 - | /// <p>The name of the table to create.</p>
|
399 + | /// /* BuilderGenerator.kt:334 */<p>The name of the table to create.</p>
|
400 + | /* BuilderGenerator.kt:336 */
|
319 401 | pub fn get_table_name(&self) -> &::std::option::Option<::std::string::String> {
|
402 + | /* BuilderGenerator.kt:337 */
|
320 403 | &self.table_name
|
404 + | /* BuilderGenerator.kt:336 */
|
321 405 | }
|
322 - | /// Appends an item to `key_schema`.
|
406 + | /// /* BuilderGenerator.kt:410 */Appends an item to `key_schema`.
|
407 + | /* BuilderGenerator.kt:411 */
|
323 408 | ///
|
324 - | /// To override the contents of this collection use [`set_key_schema`](Self::set_key_schema).
|
409 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_key_schema`](Self::set_key_schema).
|
410 + | /* BuilderGenerator.kt:413 */
|
325 411 | ///
|
326 - | /// <p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
412 + | /// /* BuilderGenerator.kt:414 */<p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
327 413 | /// <p>Each <code>KeySchemaElement</code> in the array is composed of:</p>
|
328 414 | /// <ul>
|
329 415 | /// <li>
|
330 416 | /// <p><code>AttributeName</code> - The name of this key attribute.</p></li>
|
331 417 | /// <li>
|
332 418 | /// <p><code>KeyType</code> - The role that the key attribute will assume:</p>
|
333 419 | /// <ul>
|
334 420 | /// <li>
|
335 421 | /// <p><code>HASH</code> - partition key</p></li>
|
336 422 | /// <li>
|
337 423 | /// <p><code>RANGE</code> - sort key</p></li>
|
338 424 | /// </ul></li>
|
339 425 | /// </ul><note>
|
340 426 | /// <p>The partition key of an item is also known as its <i>hash attribute</i>. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p>
|
341 427 | /// <p>The sort key of an item is also known as its <i>range attribute</i>. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p>
|
342 428 | /// </note>
|
343 429 | /// <p>For a simple primary key (partition key), you must provide exactly one element with a <code>KeyType</code> of <code>HASH</code>.</p>
|
344 430 | /// <p>For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a <code>KeyType</code> of <code>HASH</code>, and the second element must have a <code>KeyType</code> of <code>RANGE</code>.</p>
|
345 431 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key">Working with Tables</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
432 + | /* BuilderGenerator.kt:418 */
|
346 433 | pub fn key_schema(mut self, input: crate::types::KeySchemaElement) -> Self {
|
434 + | /* BuilderGenerator.kt:419 */
|
347 435 | let mut v = self.key_schema.unwrap_or_default();
|
348 436 | v.push(input);
|
349 437 | self.key_schema = ::std::option::Option::Some(v);
|
350 438 | self
|
439 + | /* BuilderGenerator.kt:418 */
|
351 440 | }
|
352 - | /// <p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
441 + | /// /* BuilderGenerator.kt:312 */<p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
353 442 | /// <p>Each <code>KeySchemaElement</code> in the array is composed of:</p>
|
354 443 | /// <ul>
|
355 444 | /// <li>
|
356 445 | /// <p><code>AttributeName</code> - The name of this key attribute.</p></li>
|
357 446 | /// <li>
|
358 447 | /// <p><code>KeyType</code> - The role that the key attribute will assume:</p>
|
359 448 | /// <ul>
|
360 449 | /// <li>
|
361 450 | /// <p><code>HASH</code> - partition key</p></li>
|
362 451 | /// <li>
|
363 452 | /// <p><code>RANGE</code> - sort key</p></li>
|
364 453 | /// </ul></li>
|
365 454 | /// </ul><note>
|
366 455 | /// <p>The partition key of an item is also known as its <i>hash attribute</i>. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p>
|
367 456 | /// <p>The sort key of an item is also known as its <i>range attribute</i>. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p>
|
368 457 | /// </note>
|
369 458 | /// <p>For a simple primary key (partition key), you must provide exactly one element with a <code>KeyType</code> of <code>HASH</code>.</p>
|
370 459 | /// <p>For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a <code>KeyType</code> of <code>HASH</code>, and the second element must have a <code>KeyType</code> of <code>RANGE</code>.</p>
|
371 460 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key">Working with Tables</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
461 + | /* BuilderGenerator.kt:314 */
|
372 462 | pub fn set_key_schema(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>>) -> Self {
|
463 + | /* BuilderGenerator.kt:315 */
|
373 464 | self.key_schema = input;
|
374 465 | self
|
466 + | /* BuilderGenerator.kt:314 */
|
375 467 | }
|
376 - | /// <p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
468 + | /// /* BuilderGenerator.kt:334 */<p>Specifies the attributes that make up the primary key for a table or an index. The attributes in <code>KeySchema</code> must also be defined in the <code>AttributeDefinitions</code> array. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DataModel.html">Data Model</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
377 469 | /// <p>Each <code>KeySchemaElement</code> in the array is composed of:</p>
|
378 470 | /// <ul>
|
379 471 | /// <li>
|
380 472 | /// <p><code>AttributeName</code> - The name of this key attribute.</p></li>
|
381 473 | /// <li>
|
382 474 | /// <p><code>KeyType</code> - The role that the key attribute will assume:</p>
|
383 475 | /// <ul>
|
384 476 | /// <li>
|
385 477 | /// <p><code>HASH</code> - partition key</p></li>
|
386 478 | /// <li>
|
387 479 | /// <p><code>RANGE</code> - sort key</p></li>
|
388 480 | /// </ul></li>
|
389 481 | /// </ul><note>
|
390 482 | /// <p>The partition key of an item is also known as its <i>hash attribute</i>. The term "hash attribute" derives from the DynamoDB usage of an internal hash function to evenly distribute data items across partitions, based on their partition key values.</p>
|
391 483 | /// <p>The sort key of an item is also known as its <i>range attribute</i>. The term "range attribute" derives from the way DynamoDB stores items with the same partition key physically close together, in sorted order by the sort key value.</p>
|
392 484 | /// </note>
|
393 485 | /// <p>For a simple primary key (partition key), you must provide exactly one element with a <code>KeyType</code> of <code>HASH</code>.</p>
|
394 486 | /// <p>For a composite primary key (partition key and sort key), you must provide exactly two elements, in this order: The first element must have a <code>KeyType</code> of <code>HASH</code>, and the second element must have a <code>KeyType</code> of <code>RANGE</code>.</p>
|
395 487 | /// <p>For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/WorkingWithTables.html#WorkingWithTables.primary.key">Working with Tables</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
488 + | /* BuilderGenerator.kt:336 */
|
396 489 | pub fn get_key_schema(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::KeySchemaElement>> {
|
490 + | /* BuilderGenerator.kt:337 */
|
397 491 | &self.key_schema
|
492 + | /* BuilderGenerator.kt:336 */
|
398 493 | }
|
399 - | /// Appends an item to `local_secondary_indexes`.
|
494 + | /// /* BuilderGenerator.kt:410 */Appends an item to `local_secondary_indexes`.
|
495 + | /* BuilderGenerator.kt:411 */
|
400 496 | ///
|
401 - | /// To override the contents of this collection use [`set_local_secondary_indexes`](Self::set_local_secondary_indexes).
|
497 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_local_secondary_indexes`](Self::set_local_secondary_indexes).
|
498 + | /* BuilderGenerator.kt:413 */
|
402 499 | ///
|
403 - | /// <p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
500 + | /// /* BuilderGenerator.kt:414 */<p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
404 501 | /// <p>Each local secondary index in the array includes the following:</p>
|
405 502 | /// <ul>
|
406 503 | /// <li>
|
407 504 | /// <p><code>IndexName</code> - The name of the local secondary index. Must be unique only for this table.</p>
|
408 505 | /// <p></p></li>
|
409 506 | /// <li>
|
410 507 | /// <p><code>KeySchema</code> - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.</p></li>
|
411 508 | /// <li>
|
412 509 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
413 510 | /// <ul>
|
414 511 | /// <li>
|
415 512 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
416 513 | /// <ul>
|
417 514 | /// <li>
|
418 515 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
419 516 | /// <li>
|
420 517 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
421 518 | /// <li>
|
422 519 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
423 520 | /// </ul></li>
|
424 521 | /// <li>
|
425 522 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
426 523 | /// </ul></li>
|
427 524 | /// </ul>
|
525 + | /* BuilderGenerator.kt:418 */
|
428 526 | pub fn local_secondary_indexes(mut self, input: crate::types::LocalSecondaryIndex) -> Self {
|
527 + | /* BuilderGenerator.kt:419 */
|
429 528 | let mut v = self.local_secondary_indexes.unwrap_or_default();
|
430 529 | v.push(input);
|
431 530 | self.local_secondary_indexes = ::std::option::Option::Some(v);
|
432 531 | self
|
532 + | /* BuilderGenerator.kt:418 */
|
433 533 | }
|
434 - | /// <p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
534 + | /// /* BuilderGenerator.kt:312 */<p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
435 535 | /// <p>Each local secondary index in the array includes the following:</p>
|
436 536 | /// <ul>
|
437 537 | /// <li>
|
438 538 | /// <p><code>IndexName</code> - The name of the local secondary index. Must be unique only for this table.</p>
|
439 539 | /// <p></p></li>
|
440 540 | /// <li>
|
441 541 | /// <p><code>KeySchema</code> - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.</p></li>
|
442 542 | /// <li>
|
443 543 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
444 544 | /// <ul>
|
445 545 | /// <li>
|
446 546 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
447 547 | /// <ul>
|
448 548 | /// <li>
|
449 549 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
450 550 | /// <li>
|
451 551 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
452 552 | /// <li>
|
453 553 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
454 554 | /// </ul></li>
|
455 555 | /// <li>
|
456 556 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
457 557 | /// </ul></li>
|
458 558 | /// </ul>
|
559 + | /* BuilderGenerator.kt:314 */
|
459 560 | pub fn set_local_secondary_indexes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::LocalSecondaryIndex>>) -> Self {
|
561 + | /* BuilderGenerator.kt:315 */
|
460 562 | self.local_secondary_indexes = input;
|
461 563 | self
|
564 + | /* BuilderGenerator.kt:314 */
|
462 565 | }
|
463 - | /// <p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
566 + | /// /* BuilderGenerator.kt:334 */<p>One or more local secondary indexes (the maximum is 5) to be created on the table. Each index is scoped to a given partition key value. There is a 10 GB size limit per partition key value; otherwise, the size of a local secondary index is unconstrained.</p>
|
464 567 | /// <p>Each local secondary index in the array includes the following:</p>
|
465 568 | /// <ul>
|
466 569 | /// <li>
|
467 570 | /// <p><code>IndexName</code> - The name of the local secondary index. Must be unique only for this table.</p>
|
468 571 | /// <p></p></li>
|
469 572 | /// <li>
|
470 573 | /// <p><code>KeySchema</code> - Specifies the key schema for the local secondary index. The key schema must begin with the same partition key as the table.</p></li>
|
471 574 | /// <li>
|
472 575 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
473 576 | /// <ul>
|
474 577 | /// <li>
|
475 578 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
476 579 | /// <ul>
|
477 580 | /// <li>
|
478 581 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
479 582 | /// <li>
|
480 583 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
481 584 | /// <li>
|
482 585 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
483 586 | /// </ul></li>
|
484 587 | /// <li>
|
485 588 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
486 589 | /// </ul></li>
|
487 590 | /// </ul>
|
591 + | /* BuilderGenerator.kt:336 */
|
488 592 | pub fn get_local_secondary_indexes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::LocalSecondaryIndex>> {
|
593 + | /* BuilderGenerator.kt:337 */
|
489 594 | &self.local_secondary_indexes
|
595 + | /* BuilderGenerator.kt:336 */
|
490 596 | }
|
491 - | /// Appends an item to `global_secondary_indexes`.
|
597 + | /// /* BuilderGenerator.kt:410 */Appends an item to `global_secondary_indexes`.
|
598 + | /* BuilderGenerator.kt:411 */
|
492 599 | ///
|
493 - | /// To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
|
600 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_global_secondary_indexes`](Self::set_global_secondary_indexes).
|
601 + | /* BuilderGenerator.kt:413 */
|
494 602 | ///
|
495 - | /// <p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
603 + | /// /* BuilderGenerator.kt:414 */<p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
496 604 | /// <ul>
|
497 605 | /// <li>
|
498 606 | /// <p><code>IndexName</code> - The name of the global secondary index. Must be unique only for this table.</p>
|
499 607 | /// <p></p></li>
|
500 608 | /// <li>
|
501 609 | /// <p><code>KeySchema</code> - Specifies the key schema for the global secondary index.</p></li>
|
502 610 | /// <li>
|
503 611 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
504 612 | /// <ul>
|
505 613 | /// <li>
|
506 614 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
507 615 | /// <ul>
|
508 616 | /// <li>
|
509 617 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
510 618 | /// <li>
|
511 619 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
512 620 | /// <li>
|
513 621 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
514 622 | /// </ul></li>
|
515 623 | /// <li>
|
516 624 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
517 625 | /// </ul></li>
|
518 626 | /// <li>
|
519 627 | /// <p><code>ProvisionedThroughput</code> - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.</p></li>
|
520 628 | /// </ul>
|
629 + | /* BuilderGenerator.kt:418 */
|
521 630 | pub fn global_secondary_indexes(mut self, input: crate::types::GlobalSecondaryIndex) -> Self {
|
631 + | /* BuilderGenerator.kt:419 */
|
522 632 | let mut v = self.global_secondary_indexes.unwrap_or_default();
|
523 633 | v.push(input);
|
524 634 | self.global_secondary_indexes = ::std::option::Option::Some(v);
|
525 635 | self
|
636 + | /* BuilderGenerator.kt:418 */
|
526 637 | }
|
527 - | /// <p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
638 + | /// /* BuilderGenerator.kt:312 */<p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
528 639 | /// <ul>
|
529 640 | /// <li>
|
530 641 | /// <p><code>IndexName</code> - The name of the global secondary index. Must be unique only for this table.</p>
|
531 642 | /// <p></p></li>
|
532 643 | /// <li>
|
533 644 | /// <p><code>KeySchema</code> - Specifies the key schema for the global secondary index.</p></li>
|
534 645 | /// <li>
|
535 646 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
536 647 | /// <ul>
|
537 648 | /// <li>
|
538 649 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
539 650 | /// <ul>
|
540 651 | /// <li>
|
541 652 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
542 653 | /// <li>
|
543 654 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
544 655 | /// <li>
|
545 656 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
546 657 | /// </ul></li>
|
547 658 | /// <li>
|
548 659 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
549 660 | /// </ul></li>
|
550 661 | /// <li>
|
551 662 | /// <p><code>ProvisionedThroughput</code> - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.</p></li>
|
552 663 | /// </ul>
|
664 + | /* BuilderGenerator.kt:314 */
|
553 665 | pub fn set_global_secondary_indexes(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndex>>) -> Self {
|
666 + | /* BuilderGenerator.kt:315 */
|
554 667 | self.global_secondary_indexes = input;
|
555 668 | self
|
669 + | /* BuilderGenerator.kt:314 */
|
556 670 | }
|
557 - | /// <p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
671 + | /// /* BuilderGenerator.kt:334 */<p>One or more global secondary indexes (the maximum is 20) to be created on the table. Each global secondary index in the array includes the following:</p>
|
558 672 | /// <ul>
|
559 673 | /// <li>
|
560 674 | /// <p><code>IndexName</code> - The name of the global secondary index. Must be unique only for this table.</p>
|
561 675 | /// <p></p></li>
|
562 676 | /// <li>
|
563 677 | /// <p><code>KeySchema</code> - Specifies the key schema for the global secondary index.</p></li>
|
564 678 | /// <li>
|
565 679 | /// <p><code>Projection</code> - Specifies attributes that are copied (projected) from the table into the index. These are in addition to the primary key attributes and index key attributes, which are automatically projected. Each attribute specification is composed of:</p>
|
566 680 | /// <ul>
|
567 681 | /// <li>
|
568 682 | /// <p><code>ProjectionType</code> - One of the following:</p>
|
569 683 | /// <ul>
|
570 684 | /// <li>
|
571 685 | /// <p><code>KEYS_ONLY</code> - Only the index and primary keys are projected into the index.</p></li>
|
572 686 | /// <li>
|
573 687 | /// <p><code>INCLUDE</code> - Only the specified table attributes are projected into the index. The list of projected attributes is in <code>NonKeyAttributes</code>.</p></li>
|
574 688 | /// <li>
|
575 689 | /// <p><code>ALL</code> - All of the table attributes are projected into the index.</p></li>
|
576 690 | /// </ul></li>
|
577 691 | /// <li>
|
578 692 | /// <p><code>NonKeyAttributes</code> - A list of one or more non-key attribute names that are projected into the secondary index. The total count of attributes provided in <code>NonKeyAttributes</code>, summed across all of the secondary indexes, must not exceed 100. If you project the same attribute into two different indexes, this counts as two distinct attributes when determining the total.</p></li>
|
579 693 | /// </ul></li>
|
580 694 | /// <li>
|
581 695 | /// <p><code>ProvisionedThroughput</code> - The provisioned throughput settings for the global secondary index, consisting of read and write capacity units.</p></li>
|
582 696 | /// </ul>
|
697 + | /* BuilderGenerator.kt:336 */
|
583 698 | pub fn get_global_secondary_indexes(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::GlobalSecondaryIndex>> {
|
699 + | /* BuilderGenerator.kt:337 */
|
584 700 | &self.global_secondary_indexes
|
701 + | /* BuilderGenerator.kt:336 */
|
585 702 | }
|
586 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
703 + | /// /* BuilderGenerator.kt:286 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
587 704 | /// <ul>
|
588 705 | /// <li>
|
589 706 | /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for predictable workloads. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual">Provisioned Mode</a>.</p></li>
|
590 707 | /// <li>
|
591 708 | /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand">On-Demand Mode</a>.</p></li>
|
592 709 | /// </ul>
|
710 + | /* BuilderGenerator.kt:291 */
|
593 711 | pub fn billing_mode(mut self, input: crate::types::BillingMode) -> Self {
|
712 + | /* BuilderGenerator.kt:292 */
|
594 713 | self.billing_mode = ::std::option::Option::Some(input);
|
714 + | /* BuilderGenerator.kt:293 */
|
595 715 | self
|
716 + | /* BuilderGenerator.kt:291 */
|
596 717 | }
|
597 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
718 + | /// /* BuilderGenerator.kt:312 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
598 719 | /// <ul>
|
599 720 | /// <li>
|
600 721 | /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for predictable workloads. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual">Provisioned Mode</a>.</p></li>
|
601 722 | /// <li>
|
602 723 | /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand">On-Demand Mode</a>.</p></li>
|
603 724 | /// </ul>
|
725 + | /* BuilderGenerator.kt:314 */
|
604 726 | pub fn set_billing_mode(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
|
727 + | /* BuilderGenerator.kt:315 */
|
605 728 | self.billing_mode = input;
|
606 729 | self
|
730 + | /* BuilderGenerator.kt:314 */
|
607 731 | }
|
608 - | /// <p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
732 + | /// /* BuilderGenerator.kt:334 */<p>Controls how you are charged for read and write throughput and how you manage capacity. This setting can be changed later.</p>
|
609 733 | /// <ul>
|
610 734 | /// <li>
|
611 735 | /// <p><code>PROVISIONED</code> - We recommend using <code>PROVISIONED</code> for predictable workloads. <code>PROVISIONED</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.ProvisionedThroughput.Manual">Provisioned Mode</a>.</p></li>
|
612 736 | /// <li>
|
613 737 | /// <p><code>PAY_PER_REQUEST</code> - We recommend using <code>PAY_PER_REQUEST</code> for unpredictable workloads. <code>PAY_PER_REQUEST</code> sets the billing mode to <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/HowItWorks.ReadWriteCapacityMode.html#HowItWorks.OnDemand">On-Demand Mode</a>.</p></li>
|
614 738 | /// </ul>
|
739 + | /* BuilderGenerator.kt:336 */
|
615 740 | pub fn get_billing_mode(&self) -> &::std::option::Option<crate::types::BillingMode> {
|
741 + | /* BuilderGenerator.kt:337 */
|
616 742 | &self.billing_mode
|
743 + | /* BuilderGenerator.kt:336 */
|
617 744 | }
|
618 - | /// <p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
745 + | /// /* BuilderGenerator.kt:286 */<p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
619 746 | /// <p>If you set BillingMode as <code>PROVISIONED</code>, you must specify this property. If you set BillingMode as <code>PAY_PER_REQUEST</code>, you cannot specify this property.</p>
|
620 747 | /// <p>For current minimum and maximum provisioned throughput values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Service, Account, and Table Quotas</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
748 + | /* BuilderGenerator.kt:291 */
|
621 749 | pub fn provisioned_throughput(mut self, input: crate::types::ProvisionedThroughput) -> Self {
|
750 + | /* BuilderGenerator.kt:292 */
|
622 751 | self.provisioned_throughput = ::std::option::Option::Some(input);
|
752 + | /* BuilderGenerator.kt:293 */
|
623 753 | self
|
754 + | /* BuilderGenerator.kt:291 */
|
624 755 | }
|
625 - | /// <p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
756 + | /// /* BuilderGenerator.kt:312 */<p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
626 757 | /// <p>If you set BillingMode as <code>PROVISIONED</code>, you must specify this property. If you set BillingMode as <code>PAY_PER_REQUEST</code>, you cannot specify this property.</p>
|
627 758 | /// <p>For current minimum and maximum provisioned throughput values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Service, Account, and Table Quotas</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
759 + | /* BuilderGenerator.kt:314 */
|
628 760 | pub fn set_provisioned_throughput(mut self, input: ::std::option::Option<crate::types::ProvisionedThroughput>) -> Self {
|
761 + | /* BuilderGenerator.kt:315 */
|
629 762 | self.provisioned_throughput = input;
|
630 763 | self
|
764 + | /* BuilderGenerator.kt:314 */
|
631 765 | }
|
632 - | /// <p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
766 + | /// /* BuilderGenerator.kt:334 */<p>Represents the provisioned throughput settings for a specified table or index. The settings can be modified using the <code>UpdateTable</code> operation.</p>
|
633 767 | /// <p>If you set BillingMode as <code>PROVISIONED</code>, you must specify this property. If you set BillingMode as <code>PAY_PER_REQUEST</code>, you cannot specify this property.</p>
|
634 768 | /// <p>For current minimum and maximum provisioned throughput values, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Limits.html">Service, Account, and Table Quotas</a> in the <i>Amazon DynamoDB Developer Guide</i>.</p>
|
769 + | /* BuilderGenerator.kt:336 */
|
635 770 | pub fn get_provisioned_throughput(&self) -> &::std::option::Option<crate::types::ProvisionedThroughput> {
|
771 + | /* BuilderGenerator.kt:337 */
|
636 772 | &self.provisioned_throughput
|
773 + | /* BuilderGenerator.kt:336 */
|
637 774 | }
|
638 - | /// <p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
775 + | /// /* BuilderGenerator.kt:286 */<p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
639 776 | /// <ul>
|
640 777 | /// <li>
|
641 778 | /// <p><code>StreamEnabled</code> - Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false).</p></li>
|
642 779 | /// <li>
|
643 780 | /// <p><code>StreamViewType</code> - When an item in the table is modified, <code>StreamViewType</code> determines what information is written to the table's stream. Valid values for <code>StreamViewType</code> are:</p>
|
644 781 | /// <ul>
|
645 782 | /// <li>
|
646 783 | /// <p><code>KEYS_ONLY</code> - Only the key attributes of the modified item are written to the stream.</p></li>
|
647 784 | /// <li>
|
648 785 | /// <p><code>NEW_IMAGE</code> - The entire item, as it appears after it was modified, is written to the stream.</p></li>
|
649 786 | /// <li>
|
650 787 | /// <p><code>OLD_IMAGE</code> - The entire item, as it appeared before it was modified, is written to the stream.</p></li>
|
651 788 | /// <li>
|
652 789 | /// <p><code>NEW_AND_OLD_IMAGES</code> - Both the new and the old item images of the item are written to the stream.</p></li>
|
653 790 | /// </ul></li>
|
654 791 | /// </ul>
|
792 + | /* BuilderGenerator.kt:291 */
|
655 793 | pub fn stream_specification(mut self, input: crate::types::StreamSpecification) -> Self {
|
794 + | /* BuilderGenerator.kt:292 */
|
656 795 | self.stream_specification = ::std::option::Option::Some(input);
|
796 + | /* BuilderGenerator.kt:293 */
|
657 797 | self
|
798 + | /* BuilderGenerator.kt:291 */
|
658 799 | }
|
659 - | /// <p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
800 + | /// /* BuilderGenerator.kt:312 */<p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
660 801 | /// <ul>
|
661 802 | /// <li>
|
662 803 | /// <p><code>StreamEnabled</code> - Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false).</p></li>
|
663 804 | /// <li>
|
664 805 | /// <p><code>StreamViewType</code> - When an item in the table is modified, <code>StreamViewType</code> determines what information is written to the table's stream. Valid values for <code>StreamViewType</code> are:</p>
|
665 806 | /// <ul>
|
666 807 | /// <li>
|
667 808 | /// <p><code>KEYS_ONLY</code> - Only the key attributes of the modified item are written to the stream.</p></li>
|
668 809 | /// <li>
|
669 810 | /// <p><code>NEW_IMAGE</code> - The entire item, as it appears after it was modified, is written to the stream.</p></li>
|
670 811 | /// <li>
|
671 812 | /// <p><code>OLD_IMAGE</code> - The entire item, as it appeared before it was modified, is written to the stream.</p></li>
|
672 813 | /// <li>
|
673 814 | /// <p><code>NEW_AND_OLD_IMAGES</code> - Both the new and the old item images of the item are written to the stream.</p></li>
|
674 815 | /// </ul></li>
|
675 816 | /// </ul>
|
817 + | /* BuilderGenerator.kt:314 */
|
676 818 | pub fn set_stream_specification(mut self, input: ::std::option::Option<crate::types::StreamSpecification>) -> Self {
|
819 + | /* BuilderGenerator.kt:315 */
|
677 820 | self.stream_specification = input;
|
678 821 | self
|
822 + | /* BuilderGenerator.kt:314 */
|
679 823 | }
|
680 - | /// <p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
824 + | /// /* BuilderGenerator.kt:334 */<p>The settings for DynamoDB Streams on the table. These settings consist of:</p>
|
681 825 | /// <ul>
|
682 826 | /// <li>
|
683 827 | /// <p><code>StreamEnabled</code> - Indicates whether DynamoDB Streams is to be enabled (true) or disabled (false).</p></li>
|
684 828 | /// <li>
|
685 829 | /// <p><code>StreamViewType</code> - When an item in the table is modified, <code>StreamViewType</code> determines what information is written to the table's stream. Valid values for <code>StreamViewType</code> are:</p>
|
686 830 | /// <ul>
|
687 831 | /// <li>
|
688 832 | /// <p><code>KEYS_ONLY</code> - Only the key attributes of the modified item are written to the stream.</p></li>
|
689 833 | /// <li>
|
690 834 | /// <p><code>NEW_IMAGE</code> - The entire item, as it appears after it was modified, is written to the stream.</p></li>
|
691 835 | /// <li>
|
692 836 | /// <p><code>OLD_IMAGE</code> - The entire item, as it appeared before it was modified, is written to the stream.</p></li>
|
693 837 | /// <li>
|
694 838 | /// <p><code>NEW_AND_OLD_IMAGES</code> - Both the new and the old item images of the item are written to the stream.</p></li>
|
695 839 | /// </ul></li>
|
696 840 | /// </ul>
|
841 + | /* BuilderGenerator.kt:336 */
|
697 842 | pub fn get_stream_specification(&self) -> &::std::option::Option<crate::types::StreamSpecification> {
|
843 + | /* BuilderGenerator.kt:337 */
|
698 844 | &self.stream_specification
|
845 + | /* BuilderGenerator.kt:336 */
|
699 846 | }
|
700 - | /// <p>Represents the settings used to enable server-side encryption.</p>
|
847 + | /// /* BuilderGenerator.kt:286 */<p>Represents the settings used to enable server-side encryption.</p>
|
848 + | /* BuilderGenerator.kt:291 */
|
701 849 | pub fn sse_specification(mut self, input: crate::types::SseSpecification) -> Self {
|
850 + | /* BuilderGenerator.kt:292 */
|
702 851 | self.sse_specification = ::std::option::Option::Some(input);
|
852 + | /* BuilderGenerator.kt:293 */
|
703 853 | self
|
854 + | /* BuilderGenerator.kt:291 */
|
704 855 | }
|
705 - | /// <p>Represents the settings used to enable server-side encryption.</p>
|
856 + | /// /* BuilderGenerator.kt:312 */<p>Represents the settings used to enable server-side encryption.</p>
|
857 + | /* BuilderGenerator.kt:314 */
|
706 858 | pub fn set_sse_specification(mut self, input: ::std::option::Option<crate::types::SseSpecification>) -> Self {
|
859 + | /* BuilderGenerator.kt:315 */
|
707 860 | self.sse_specification = input;
|
708 861 | self
|
862 + | /* BuilderGenerator.kt:314 */
|
709 863 | }
|
710 - | /// <p>Represents the settings used to enable server-side encryption.</p>
|
864 + | /// /* BuilderGenerator.kt:334 */<p>Represents the settings used to enable server-side encryption.</p>
|
865 + | /* BuilderGenerator.kt:336 */
|
711 866 | pub fn get_sse_specification(&self) -> &::std::option::Option<crate::types::SseSpecification> {
|
867 + | /* BuilderGenerator.kt:337 */
|
712 868 | &self.sse_specification
|
869 + | /* BuilderGenerator.kt:336 */
|
713 870 | }
|
714 - | /// Appends an item to `tags`.
|
871 + | /// /* BuilderGenerator.kt:410 */Appends an item to `tags`.
|
872 + | /* BuilderGenerator.kt:411 */
|
715 873 | ///
|
716 - | /// To override the contents of this collection use [`set_tags`](Self::set_tags).
|
874 + | /// /* BuilderGenerator.kt:412 */To override the contents of this collection use [`set_tags`](Self::set_tags).
|
875 + | /* BuilderGenerator.kt:413 */
|
717 876 | ///
|
718 - | /// <p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
877 + | /// /* BuilderGenerator.kt:414 */<p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
878 + | /* BuilderGenerator.kt:418 */
|
719 879 | pub fn tags(mut self, input: crate::types::Tag) -> Self {
|
880 + | /* BuilderGenerator.kt:419 */
|
720 881 | let mut v = self.tags.unwrap_or_default();
|
721 882 | v.push(input);
|
722 883 | self.tags = ::std::option::Option::Some(v);
|
723 884 | self
|
885 + | /* BuilderGenerator.kt:418 */
|
724 886 | }
|
725 - | /// <p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
887 + | /// /* BuilderGenerator.kt:312 */<p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
888 + | /* BuilderGenerator.kt:314 */
|
726 889 | pub fn set_tags(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
|
890 + | /* BuilderGenerator.kt:315 */
|
727 891 | self.tags = input;
|
728 892 | self
|
893 + | /* BuilderGenerator.kt:314 */
|
729 894 | }
|
730 - | /// <p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
895 + | /// /* BuilderGenerator.kt:334 */<p>A list of key-value pairs to label the table. For more information, see <a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Tagging.html">Tagging for DynamoDB</a>.</p>
|
896 + | /* BuilderGenerator.kt:336 */
|
731 897 | pub fn get_tags(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
|
898 + | /* BuilderGenerator.kt:337 */
|
732 899 | &self.tags
|
900 + | /* BuilderGenerator.kt:336 */
|
733 901 | }
|
734 - | /// Consumes the builder and constructs a [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
|
902 + | /// /* BuilderGenerator.kt:240 */Consumes the builder and constructs a [`CreateTableInput`](crate::operation::create_table::CreateTableInput).
|
903 + | /* BuilderGenerator.kt:253 */
|
735 904 | pub fn build(self) -> ::std::result::Result<crate::operation::create_table::CreateTableInput, ::aws_smithy_types::error::operation::BuildError> {
|
736 - | ::std::result::Result::Ok(crate::operation::create_table::CreateTableInput {
|
737 - | attribute_definitions: self.attribute_definitions,
|
738 - | table_name: self.table_name,
|
739 - | key_schema: self.key_schema,
|
740 - | local_secondary_indexes: self.local_secondary_indexes,
|
741 - | global_secondary_indexes: self.global_secondary_indexes,
|
742 - | billing_mode: self.billing_mode,
|
743 - | provisioned_throughput: self.provisioned_throughput,
|
744 - | stream_specification: self.stream_specification,
|
745 - | sse_specification: self.sse_specification,
|
746 - | tags: self.tags,
|
747 - | })
|
748 - | }
|
905 + | /* BuilderGenerator.kt:254 */
|
906 + | ::std::result::Result::Ok(
|
907 + | /* BuilderGenerator.kt:477 */
|
908 + | crate::operation::create_table::CreateTableInput {
|
909 + | /* BuilderGenerator.kt:481 */ attribute_definitions: self.attribute_definitions,
|
910 + | /* BuilderGenerator.kt:481 */
|
911 + | table_name: self.table_name,
|
912 + | /* BuilderGenerator.kt:481 */
|
913 + | key_schema: self.key_schema,
|
914 + | /* BuilderGenerator.kt:481 */
|
915 + | local_secondary_indexes: self.local_secondary_indexes,
|
916 + | /* BuilderGenerator.kt:481 */
|
917 + | global_secondary_indexes: self.global_secondary_indexes,
|
918 + | /* BuilderGenerator.kt:481 */
|
919 + | billing_mode: self.billing_mode,
|
920 + | /* BuilderGenerator.kt:481 */
|
921 + | provisioned_throughput: self.provisioned_throughput,
|
922 + | /* BuilderGenerator.kt:481 */
|
923 + | stream_specification: self.stream_specification,
|
924 + | /* BuilderGenerator.kt:481 */
|
925 + | sse_specification: self.sse_specification,
|
926 + | /* BuilderGenerator.kt:481 */
|
927 + | tags: self.tags,
|
928 + | /* BuilderGenerator.kt:477 */
|
929 + | }, /* BuilderGenerator.kt:254 */
|
930 + | )
|
931 + | /* BuilderGenerator.kt:253 */
|
932 + | }
|
933 + | /* BuilderGenerator.kt:355 */
|
749 934 | }
|