aws_sdk_cloudtrail/operation/create_event_data_store/builders.rs
1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_event_data_store::_create_event_data_store_output::CreateEventDataStoreOutputBuilder;
3
4pub use crate::operation::create_event_data_store::_create_event_data_store_input::CreateEventDataStoreInputBuilder;
5
6impl crate::operation::create_event_data_store::builders::CreateEventDataStoreInputBuilder {
7 /// Sends a request with this input using the given client.
8 pub async fn send_with(
9 self,
10 client: &crate::Client,
11 ) -> ::std::result::Result<
12 crate::operation::create_event_data_store::CreateEventDataStoreOutput,
13 ::aws_smithy_runtime_api::client::result::SdkError<
14 crate::operation::create_event_data_store::CreateEventDataStoreError,
15 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16 >,
17 > {
18 let mut fluent_builder = client.create_event_data_store();
19 fluent_builder.inner = self;
20 fluent_builder.send().await
21 }
22}
23/// Fluent builder constructing a request to `CreateEventDataStore`.
24///
25/// <p>Creates a new event data store.</p>
26#[derive(::std::clone::Clone, ::std::fmt::Debug)]
27pub struct CreateEventDataStoreFluentBuilder {
28 handle: ::std::sync::Arc<crate::client::Handle>,
29 inner: crate::operation::create_event_data_store::builders::CreateEventDataStoreInputBuilder,
30 config_override: ::std::option::Option<crate::config::Builder>,
31}
32impl
33 crate::client::customize::internal::CustomizableSend<
34 crate::operation::create_event_data_store::CreateEventDataStoreOutput,
35 crate::operation::create_event_data_store::CreateEventDataStoreError,
36 > for CreateEventDataStoreFluentBuilder
37{
38 fn send(
39 self,
40 config_override: crate::config::Builder,
41 ) -> crate::client::customize::internal::BoxFuture<
42 crate::client::customize::internal::SendResult<
43 crate::operation::create_event_data_store::CreateEventDataStoreOutput,
44 crate::operation::create_event_data_store::CreateEventDataStoreError,
45 >,
46 > {
47 ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
48 }
49}
50impl CreateEventDataStoreFluentBuilder {
51 /// Creates a new `CreateEventDataStoreFluentBuilder`.
52 pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
53 Self {
54 handle,
55 inner: ::std::default::Default::default(),
56 config_override: ::std::option::Option::None,
57 }
58 }
59 /// Access the CreateEventDataStore as a reference.
60 pub fn as_input(&self) -> &crate::operation::create_event_data_store::builders::CreateEventDataStoreInputBuilder {
61 &self.inner
62 }
63 /// Sends the request and returns the response.
64 ///
65 /// If an error occurs, an `SdkError` will be returned with additional details that
66 /// can be matched against.
67 ///
68 /// By default, any retryable failures will be retried twice. Retry behavior
69 /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
70 /// set when configuring the client.
71 pub async fn send(
72 self,
73 ) -> ::std::result::Result<
74 crate::operation::create_event_data_store::CreateEventDataStoreOutput,
75 ::aws_smithy_runtime_api::client::result::SdkError<
76 crate::operation::create_event_data_store::CreateEventDataStoreError,
77 ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
78 >,
79 > {
80 let input = self
81 .inner
82 .build()
83 .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
84 let runtime_plugins = crate::operation::create_event_data_store::CreateEventDataStore::operation_runtime_plugins(
85 self.handle.runtime_plugins.clone(),
86 &self.handle.conf,
87 self.config_override,
88 );
89 crate::operation::create_event_data_store::CreateEventDataStore::orchestrate(&runtime_plugins, input).await
90 }
91
92 /// Consumes this builder, creating a customizable operation that can be modified before being sent.
93 pub fn customize(
94 self,
95 ) -> crate::client::customize::CustomizableOperation<
96 crate::operation::create_event_data_store::CreateEventDataStoreOutput,
97 crate::operation::create_event_data_store::CreateEventDataStoreError,
98 Self,
99 > {
100 crate::client::customize::CustomizableOperation::new(self)
101 }
102 pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
103 self.set_config_override(::std::option::Option::Some(config_override.into()));
104 self
105 }
106
107 pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
108 self.config_override = config_override;
109 self
110 }
111 /// <p>The name of the event data store.</p>
112 pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
113 self.inner = self.inner.name(input.into());
114 self
115 }
116 /// <p>The name of the event data store.</p>
117 pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
118 self.inner = self.inner.set_name(input);
119 self
120 }
121 /// <p>The name of the event data store.</p>
122 pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
123 self.inner.get_name()
124 }
125 ///
126 /// Appends an item to `AdvancedEventSelectors`.
127 ///
128 /// To override the contents of this collection use [`set_advanced_event_selectors`](Self::set_advanced_event_selectors).
129 ///
130 /// <p>The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store.</p>
131 /// <p>For more information about how to use advanced event selectors to log CloudTrail events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">Log events by using advanced event selectors</a> in the CloudTrail User Guide.</p>
132 /// <p>For more information about how to use advanced event selectors to include Config configuration items in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-eds-cli.html#lake-cli-create-eds-config">Create an event data store for Config configuration items</a> in the CloudTrail User Guide.</p>
133 /// <p>For more information about how to use advanced event selectors to include events outside of Amazon Web Services events in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-integrations-cli.html#lake-cli-create-integration">Create an integration to log events from outside Amazon Web Services</a> in the CloudTrail User Guide.</p>
134 pub fn advanced_event_selectors(mut self, input: crate::types::AdvancedEventSelector) -> Self {
135 self.inner = self.inner.advanced_event_selectors(input);
136 self
137 }
138 /// <p>The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store.</p>
139 /// <p>For more information about how to use advanced event selectors to log CloudTrail events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">Log events by using advanced event selectors</a> in the CloudTrail User Guide.</p>
140 /// <p>For more information about how to use advanced event selectors to include Config configuration items in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-eds-cli.html#lake-cli-create-eds-config">Create an event data store for Config configuration items</a> in the CloudTrail User Guide.</p>
141 /// <p>For more information about how to use advanced event selectors to include events outside of Amazon Web Services events in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-integrations-cli.html#lake-cli-create-integration">Create an integration to log events from outside Amazon Web Services</a> in the CloudTrail User Guide.</p>
142 pub fn set_advanced_event_selectors(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::AdvancedEventSelector>>) -> Self {
143 self.inner = self.inner.set_advanced_event_selectors(input);
144 self
145 }
146 /// <p>The advanced event selectors to use to select the events for the data store. You can configure up to five advanced event selectors for each event data store.</p>
147 /// <p>For more information about how to use advanced event selectors to log CloudTrail events, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/logging-data-events-with-cloudtrail.html#creating-data-event-selectors-advanced">Log events by using advanced event selectors</a> in the CloudTrail User Guide.</p>
148 /// <p>For more information about how to use advanced event selectors to include Config configuration items in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-eds-cli.html#lake-cli-create-eds-config">Create an event data store for Config configuration items</a> in the CloudTrail User Guide.</p>
149 /// <p>For more information about how to use advanced event selectors to include events outside of Amazon Web Services events in your event data store, see <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/lake-integrations-cli.html#lake-cli-create-integration">Create an integration to log events from outside Amazon Web Services</a> in the CloudTrail User Guide.</p>
150 pub fn get_advanced_event_selectors(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::AdvancedEventSelector>> {
151 self.inner.get_advanced_event_selectors()
152 }
153 /// <p>Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created.</p>
154 pub fn multi_region_enabled(mut self, input: bool) -> Self {
155 self.inner = self.inner.multi_region_enabled(input);
156 self
157 }
158 /// <p>Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created.</p>
159 pub fn set_multi_region_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
160 self.inner = self.inner.set_multi_region_enabled(input);
161 self
162 }
163 /// <p>Specifies whether the event data store includes events from all Regions, or only from the Region in which the event data store is created.</p>
164 pub fn get_multi_region_enabled(&self) -> &::std::option::Option<bool> {
165 self.inner.get_multi_region_enabled()
166 }
167 /// <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
168 pub fn organization_enabled(mut self, input: bool) -> Self {
169 self.inner = self.inner.organization_enabled(input);
170 self
171 }
172 /// <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
173 pub fn set_organization_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
174 self.inner = self.inner.set_organization_enabled(input);
175 self
176 }
177 /// <p>Specifies whether an event data store collects events logged for an organization in Organizations.</p>
178 pub fn get_organization_enabled(&self) -> &::std::option::Option<bool> {
179 self.inner.get_organization_enabled()
180 }
181 /// <p>The retention period of the event data store, in days. If <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of up to 3653 days, the equivalent of 10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you can set a retention period of up to 2557 days, the equivalent of seven years.</p>
182 /// <p>CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code> of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the <code>eventTime</code> is older than 90 days.</p><note>
183 /// <p>If you plan to copy trail events to this event data store, we recommend that you consider both the age of the events that you want to copy as well as how long you want to keep the copied events in your event data store. For example, if you copy trail events that are 5 years old and specify a retention period of 7 years, the event data store will retain those events for two years.</p>
184 /// </note>
185 pub fn retention_period(mut self, input: i32) -> Self {
186 self.inner = self.inner.retention_period(input);
187 self
188 }
189 /// <p>The retention period of the event data store, in days. If <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of up to 3653 days, the equivalent of 10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you can set a retention period of up to 2557 days, the equivalent of seven years.</p>
190 /// <p>CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code> of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the <code>eventTime</code> is older than 90 days.</p><note>
191 /// <p>If you plan to copy trail events to this event data store, we recommend that you consider both the age of the events that you want to copy as well as how long you want to keep the copied events in your event data store. For example, if you copy trail events that are 5 years old and specify a retention period of 7 years, the event data store will retain those events for two years.</p>
192 /// </note>
193 pub fn set_retention_period(mut self, input: ::std::option::Option<i32>) -> Self {
194 self.inner = self.inner.set_retention_period(input);
195 self
196 }
197 /// <p>The retention period of the event data store, in days. If <code>BillingMode</code> is set to <code>EXTENDABLE_RETENTION_PRICING</code>, you can set a retention period of up to 3653 days, the equivalent of 10 years. If <code>BillingMode</code> is set to <code>FIXED_RETENTION_PRICING</code>, you can set a retention period of up to 2557 days, the equivalent of seven years.</p>
198 /// <p>CloudTrail Lake determines whether to retain an event by checking if the <code>eventTime</code> of the event is within the specified retention period. For example, if you set a retention period of 90 days, CloudTrail will remove events when the <code>eventTime</code> is older than 90 days.</p><note>
199 /// <p>If you plan to copy trail events to this event data store, we recommend that you consider both the age of the events that you want to copy as well as how long you want to keep the copied events in your event data store. For example, if you copy trail events that are 5 years old and specify a retention period of 7 years, the event data store will retain those events for two years.</p>
200 /// </note>
201 pub fn get_retention_period(&self) -> &::std::option::Option<i32> {
202 self.inner.get_retention_period()
203 }
204 /// <p>Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.</p>
205 pub fn termination_protection_enabled(mut self, input: bool) -> Self {
206 self.inner = self.inner.termination_protection_enabled(input);
207 self
208 }
209 /// <p>Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.</p>
210 pub fn set_termination_protection_enabled(mut self, input: ::std::option::Option<bool>) -> Self {
211 self.inner = self.inner.set_termination_protection_enabled(input);
212 self
213 }
214 /// <p>Specifies whether termination protection is enabled for the event data store. If termination protection is enabled, you cannot delete the event data store until termination protection is disabled.</p>
215 pub fn get_termination_protection_enabled(&self) -> &::std::option::Option<bool> {
216 self.inner.get_termination_protection_enabled()
217 }
218 ///
219 /// Appends an item to `TagsList`.
220 ///
221 /// To override the contents of this collection use [`set_tags_list`](Self::set_tags_list).
222 ///
223 /// <p>A list of tags.</p>
224 pub fn tags_list(mut self, input: crate::types::Tag) -> Self {
225 self.inner = self.inner.tags_list(input);
226 self
227 }
228 /// <p>A list of tags.</p>
229 pub fn set_tags_list(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::Tag>>) -> Self {
230 self.inner = self.inner.set_tags_list(input);
231 self
232 }
233 /// <p>A list of tags.</p>
234 pub fn get_tags_list(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::Tag>> {
235 self.inner.get_tags_list()
236 }
237 /// <p>Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by <code>alias/</code>, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.</p><important>
238 /// <p>Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store.</p>
239 /// </important>
240 /// <p>CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
241 /// <p>Examples:</p>
242 /// <ul>
243 /// <li>
244 /// <p><code>alias/MyAliasName</code></p></li>
245 /// <li>
246 /// <p><code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code></p></li>
247 /// <li>
248 /// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p></li>
249 /// <li>
250 /// <p><code>12345678-1234-1234-1234-123456789012</code></p></li>
251 /// </ul>
252 pub fn kms_key_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
253 self.inner = self.inner.kms_key_id(input.into());
254 self
255 }
256 /// <p>Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by <code>alias/</code>, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.</p><important>
257 /// <p>Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store.</p>
258 /// </important>
259 /// <p>CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
260 /// <p>Examples:</p>
261 /// <ul>
262 /// <li>
263 /// <p><code>alias/MyAliasName</code></p></li>
264 /// <li>
265 /// <p><code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code></p></li>
266 /// <li>
267 /// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p></li>
268 /// <li>
269 /// <p><code>12345678-1234-1234-1234-123456789012</code></p></li>
270 /// </ul>
271 pub fn set_kms_key_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
272 self.inner = self.inner.set_kms_key_id(input);
273 self
274 }
275 /// <p>Specifies the KMS key ID to use to encrypt the events delivered by CloudTrail. The value can be an alias name prefixed by <code>alias/</code>, a fully specified ARN to an alias, a fully specified ARN to a key, or a globally unique identifier.</p><important>
276 /// <p>Disabling or deleting the KMS key, or removing CloudTrail permissions on the key, prevents CloudTrail from logging events to the event data store, and prevents users from querying the data in the event data store that was encrypted with the key. After you associate an event data store with a KMS key, the KMS key cannot be removed or changed. Before you disable or delete a KMS key that you are using with an event data store, delete or back up your event data store.</p>
277 /// </important>
278 /// <p>CloudTrail also supports KMS multi-Region keys. For more information about multi-Region keys, see <a href="https://docs.aws.amazon.com/kms/latest/developerguide/multi-region-keys-overview.html">Using multi-Region keys</a> in the <i>Key Management Service Developer Guide</i>.</p>
279 /// <p>Examples:</p>
280 /// <ul>
281 /// <li>
282 /// <p><code>alias/MyAliasName</code></p></li>
283 /// <li>
284 /// <p><code>arn:aws:kms:us-east-2:123456789012:alias/MyAliasName</code></p></li>
285 /// <li>
286 /// <p><code>arn:aws:kms:us-east-2:123456789012:key/12345678-1234-1234-1234-123456789012</code></p></li>
287 /// <li>
288 /// <p><code>12345678-1234-1234-1234-123456789012</code></p></li>
289 /// </ul>
290 pub fn get_kms_key_id(&self) -> &::std::option::Option<::std::string::String> {
291 self.inner.get_kms_key_id()
292 }
293 /// <p>Specifies whether the event data store should start ingesting live events. The default is true.</p>
294 pub fn start_ingestion(mut self, input: bool) -> Self {
295 self.inner = self.inner.start_ingestion(input);
296 self
297 }
298 /// <p>Specifies whether the event data store should start ingesting live events. The default is true.</p>
299 pub fn set_start_ingestion(mut self, input: ::std::option::Option<bool>) -> Self {
300 self.inner = self.inner.set_start_ingestion(input);
301 self
302 }
303 /// <p>Specifies whether the event data store should start ingesting live events. The default is true.</p>
304 pub fn get_start_ingestion(&self) -> &::std::option::Option<bool> {
305 self.inner.get_start_ingestion()
306 }
307 /// <p>The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store.</p>
308 /// <p>The following are the possible values:</p>
309 /// <ul>
310 /// <li>
311 /// <p><code>EXTENDABLE_RETENTION_PRICING</code> - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days.</p></li>
312 /// <li>
313 /// <p><code>FIXED_RETENTION_PRICING</code> - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days.</p></li>
314 /// </ul>
315 /// <p>The default value is <code>EXTENDABLE_RETENTION_PRICING</code>.</p>
316 /// <p>For more information about CloudTrail pricing, see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail Pricing</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html">Managing CloudTrail Lake costs</a>.</p>
317 pub fn billing_mode(mut self, input: crate::types::BillingMode) -> Self {
318 self.inner = self.inner.billing_mode(input);
319 self
320 }
321 /// <p>The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store.</p>
322 /// <p>The following are the possible values:</p>
323 /// <ul>
324 /// <li>
325 /// <p><code>EXTENDABLE_RETENTION_PRICING</code> - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days.</p></li>
326 /// <li>
327 /// <p><code>FIXED_RETENTION_PRICING</code> - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days.</p></li>
328 /// </ul>
329 /// <p>The default value is <code>EXTENDABLE_RETENTION_PRICING</code>.</p>
330 /// <p>For more information about CloudTrail pricing, see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail Pricing</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html">Managing CloudTrail Lake costs</a>.</p>
331 pub fn set_billing_mode(mut self, input: ::std::option::Option<crate::types::BillingMode>) -> Self {
332 self.inner = self.inner.set_billing_mode(input);
333 self
334 }
335 /// <p>The billing mode for the event data store determines the cost for ingesting events and the default and maximum retention period for the event data store.</p>
336 /// <p>The following are the possible values:</p>
337 /// <ul>
338 /// <li>
339 /// <p><code>EXTENDABLE_RETENTION_PRICING</code> - This billing mode is generally recommended if you want a flexible retention period of up to 3653 days (about 10 years). The default retention period for this billing mode is 366 days.</p></li>
340 /// <li>
341 /// <p><code>FIXED_RETENTION_PRICING</code> - This billing mode is recommended if you expect to ingest more than 25 TB of event data per month and need a retention period of up to 2557 days (about 7 years). The default retention period for this billing mode is 2557 days.</p></li>
342 /// </ul>
343 /// <p>The default value is <code>EXTENDABLE_RETENTION_PRICING</code>.</p>
344 /// <p>For more information about CloudTrail pricing, see <a href="http://aws.amazon.com/cloudtrail/pricing/">CloudTrail Pricing</a> and <a href="https://docs.aws.amazon.com/awscloudtrail/latest/userguide/cloudtrail-lake-manage-costs.html">Managing CloudTrail Lake costs</a>.</p>
345 pub fn get_billing_mode(&self) -> &::std::option::Option<crate::types::BillingMode> {
346 self.inner.get_billing_mode()
347 }
348}