aws_sdk_ec2/operation/create_flow_logs/
builders.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2pub use crate::operation::create_flow_logs::_create_flow_logs_output::CreateFlowLogsOutputBuilder;
3
4pub use crate::operation::create_flow_logs::_create_flow_logs_input::CreateFlowLogsInputBuilder;
5
6impl crate::operation::create_flow_logs::builders::CreateFlowLogsInputBuilder {
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_flow_logs::CreateFlowLogsOutput,
13        ::aws_smithy_runtime_api::client::result::SdkError<
14            crate::operation::create_flow_logs::CreateFlowLogsError,
15            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
16        >,
17    > {
18        let mut fluent_builder = client.create_flow_logs();
19        fluent_builder.inner = self;
20        fluent_builder.send().await
21    }
22}
23/// Fluent builder constructing a request to `CreateFlowLogs`.
24///
25/// <p>Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.</p>
26/// <p>Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html">Flow log records</a> in the <i>Amazon VPC User Guide</i>.</p>
27/// <p>When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.</p>
28/// <p>For more information, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html">VPC Flow Logs</a> in the <i>Amazon VPC User Guide</i>.</p>
29#[derive(::std::clone::Clone, ::std::fmt::Debug)]
30pub struct CreateFlowLogsFluentBuilder {
31    handle: ::std::sync::Arc<crate::client::Handle>,
32    inner: crate::operation::create_flow_logs::builders::CreateFlowLogsInputBuilder,
33    config_override: ::std::option::Option<crate::config::Builder>,
34}
35impl
36    crate::client::customize::internal::CustomizableSend<
37        crate::operation::create_flow_logs::CreateFlowLogsOutput,
38        crate::operation::create_flow_logs::CreateFlowLogsError,
39    > for CreateFlowLogsFluentBuilder
40{
41    fn send(
42        self,
43        config_override: crate::config::Builder,
44    ) -> crate::client::customize::internal::BoxFuture<
45        crate::client::customize::internal::SendResult<
46            crate::operation::create_flow_logs::CreateFlowLogsOutput,
47            crate::operation::create_flow_logs::CreateFlowLogsError,
48        >,
49    > {
50        ::std::boxed::Box::pin(async move { self.config_override(config_override).send().await })
51    }
52}
53impl CreateFlowLogsFluentBuilder {
54    /// Creates a new `CreateFlowLogsFluentBuilder`.
55    pub(crate) fn new(handle: ::std::sync::Arc<crate::client::Handle>) -> Self {
56        Self {
57            handle,
58            inner: ::std::default::Default::default(),
59            config_override: ::std::option::Option::None,
60        }
61    }
62    /// Access the CreateFlowLogs as a reference.
63    pub fn as_input(&self) -> &crate::operation::create_flow_logs::builders::CreateFlowLogsInputBuilder {
64        &self.inner
65    }
66    /// Sends the request and returns the response.
67    ///
68    /// If an error occurs, an `SdkError` will be returned with additional details that
69    /// can be matched against.
70    ///
71    /// By default, any retryable failures will be retried twice. Retry behavior
72    /// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
73    /// set when configuring the client.
74    pub async fn send(
75        self,
76    ) -> ::std::result::Result<
77        crate::operation::create_flow_logs::CreateFlowLogsOutput,
78        ::aws_smithy_runtime_api::client::result::SdkError<
79            crate::operation::create_flow_logs::CreateFlowLogsError,
80            ::aws_smithy_runtime_api::client::orchestrator::HttpResponse,
81        >,
82    > {
83        let input = self
84            .inner
85            .build()
86            .map_err(::aws_smithy_runtime_api::client::result::SdkError::construction_failure)?;
87        let runtime_plugins = crate::operation::create_flow_logs::CreateFlowLogs::operation_runtime_plugins(
88            self.handle.runtime_plugins.clone(),
89            &self.handle.conf,
90            self.config_override,
91        );
92        crate::operation::create_flow_logs::CreateFlowLogs::orchestrate(&runtime_plugins, input).await
93    }
94
95    /// Consumes this builder, creating a customizable operation that can be modified before being sent.
96    pub fn customize(
97        self,
98    ) -> crate::client::customize::CustomizableOperation<
99        crate::operation::create_flow_logs::CreateFlowLogsOutput,
100        crate::operation::create_flow_logs::CreateFlowLogsError,
101        Self,
102    > {
103        crate::client::customize::CustomizableOperation::new(self)
104    }
105    pub(crate) fn config_override(mut self, config_override: impl ::std::convert::Into<crate::config::Builder>) -> Self {
106        self.set_config_override(::std::option::Option::Some(config_override.into()));
107        self
108    }
109
110    pub(crate) fn set_config_override(&mut self, config_override: ::std::option::Option<crate::config::Builder>) -> &mut Self {
111        self.config_override = config_override;
112        self
113    }
114    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
115    pub fn dry_run(mut self, input: bool) -> Self {
116        self.inner = self.inner.dry_run(input);
117        self
118    }
119    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
120    pub fn set_dry_run(mut self, input: ::std::option::Option<bool>) -> Self {
121        self.inner = self.inner.set_dry_run(input);
122        self
123    }
124    /// <p>Checks whether you have the required permissions for the action, without actually making the request, and provides an error response. If you have the required permissions, the error response is <code>DryRunOperation</code>. Otherwise, it is <code>UnauthorizedOperation</code>.</p>
125    pub fn get_dry_run(&self) -> &::std::option::Option<bool> {
126        self.inner.get_dry_run()
127    }
128    /// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">How to ensure idempotency</a>.</p>
129    pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
130        self.inner = self.inner.client_token(input.into());
131        self
132    }
133    /// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">How to ensure idempotency</a>.</p>
134    pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
135        self.inner = self.inner.set_client_token(input);
136        self
137    }
138    /// <p>Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. For more information, see <a href="https://docs.aws.amazon.com/ec2/latest/devguide/ec2-api-idempotency.html">How to ensure idempotency</a>.</p>
139    pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
140        self.inner.get_client_token()
141    }
142    /// <p>The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination.</p>
143    /// <p>This parameter is required if the destination type is <code>cloud-watch-logs</code>, or if the destination type is <code>kinesis-data-firehose</code> and the delivery stream and the resources to monitor are in different accounts.</p>
144    pub fn deliver_logs_permission_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
145        self.inner = self.inner.deliver_logs_permission_arn(input.into());
146        self
147    }
148    /// <p>The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination.</p>
149    /// <p>This parameter is required if the destination type is <code>cloud-watch-logs</code>, or if the destination type is <code>kinesis-data-firehose</code> and the delivery stream and the resources to monitor are in different accounts.</p>
150    pub fn set_deliver_logs_permission_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
151        self.inner = self.inner.set_deliver_logs_permission_arn(input);
152        self
153    }
154    /// <p>The ARN of the IAM role that allows Amazon EC2 to publish flow logs to the log destination.</p>
155    /// <p>This parameter is required if the destination type is <code>cloud-watch-logs</code>, or if the destination type is <code>kinesis-data-firehose</code> and the delivery stream and the resources to monitor are in different accounts.</p>
156    pub fn get_deliver_logs_permission_arn(&self) -> &::std::option::Option<::std::string::String> {
157        self.inner.get_deliver_logs_permission_arn()
158    }
159    /// <p>The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.</p>
160    pub fn deliver_cross_account_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
161        self.inner = self.inner.deliver_cross_account_role(input.into());
162        self
163    }
164    /// <p>The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.</p>
165    pub fn set_deliver_cross_account_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
166        self.inner = self.inner.set_deliver_cross_account_role(input);
167        self
168    }
169    /// <p>The ARN of the IAM role that allows Amazon EC2 to publish flow logs across accounts.</p>
170    pub fn get_deliver_cross_account_role(&self) -> &::std::option::Option<::std::string::String> {
171        self.inner.get_deliver_cross_account_role()
172    }
173    /// <p>The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.</p>
174    /// <p>This parameter is valid only if the destination type is <code>cloud-watch-logs</code>.</p>
175    pub fn log_group_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
176        self.inner = self.inner.log_group_name(input.into());
177        self
178    }
179    /// <p>The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.</p>
180    /// <p>This parameter is valid only if the destination type is <code>cloud-watch-logs</code>.</p>
181    pub fn set_log_group_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
182        self.inner = self.inner.set_log_group_name(input);
183        self
184    }
185    /// <p>The name of a new or existing CloudWatch Logs log group where Amazon EC2 publishes your flow logs.</p>
186    /// <p>This parameter is valid only if the destination type is <code>cloud-watch-logs</code>.</p>
187    pub fn get_log_group_name(&self) -> &::std::option::Option<::std::string::String> {
188        self.inner.get_log_group_name()
189    }
190    ///
191    /// Appends an item to `ResourceIds`.
192    ///
193    /// To override the contents of this collection use [`set_resource_ids`](Self::set_resource_ids).
194    ///
195    /// <p>The IDs of the resources to monitor. For example, if the resource type is <code>VPC</code>, specify the IDs of the VPCs.</p>
196    /// <p>Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the other resource types.</p>
197    pub fn resource_ids(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
198        self.inner = self.inner.resource_ids(input.into());
199        self
200    }
201    /// <p>The IDs of the resources to monitor. For example, if the resource type is <code>VPC</code>, specify the IDs of the VPCs.</p>
202    /// <p>Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the other resource types.</p>
203    pub fn set_resource_ids(mut self, input: ::std::option::Option<::std::vec::Vec<::std::string::String>>) -> Self {
204        self.inner = self.inner.set_resource_ids(input);
205        self
206    }
207    /// <p>The IDs of the resources to monitor. For example, if the resource type is <code>VPC</code>, specify the IDs of the VPCs.</p>
208    /// <p>Constraints: Maximum of 25 for transit gateway resource types. Maximum of 1000 for the other resource types.</p>
209    pub fn get_resource_ids(&self) -> &::std::option::Option<::std::vec::Vec<::std::string::String>> {
210        self.inner.get_resource_ids()
211    }
212    /// <p>The type of resource to monitor.</p>
213    pub fn resource_type(mut self, input: crate::types::FlowLogsResourceType) -> Self {
214        self.inner = self.inner.resource_type(input);
215        self
216    }
217    /// <p>The type of resource to monitor.</p>
218    pub fn set_resource_type(mut self, input: ::std::option::Option<crate::types::FlowLogsResourceType>) -> Self {
219        self.inner = self.inner.set_resource_type(input);
220        self
221    }
222    /// <p>The type of resource to monitor.</p>
223    pub fn get_resource_type(&self) -> &::std::option::Option<crate::types::FlowLogsResourceType> {
224        self.inner.get_resource_type()
225    }
226    /// <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not supported for transit gateway resource types. It is required for the other resource types.</p>
227    pub fn traffic_type(mut self, input: crate::types::TrafficType) -> Self {
228        self.inner = self.inner.traffic_type(input);
229        self
230    }
231    /// <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not supported for transit gateway resource types. It is required for the other resource types.</p>
232    pub fn set_traffic_type(mut self, input: ::std::option::Option<crate::types::TrafficType>) -> Self {
233        self.inner = self.inner.set_traffic_type(input);
234        self
235    }
236    /// <p>The type of traffic to monitor (accepted traffic, rejected traffic, or all traffic). This parameter is not supported for transit gateway resource types. It is required for the other resource types.</p>
237    pub fn get_traffic_type(&self) -> &::std::option::Option<crate::types::TrafficType> {
238        self.inner.get_traffic_type()
239    }
240    /// <p>The type of destination for the flow log data.</p>
241    /// <p>Default: <code>cloud-watch-logs</code></p>
242    pub fn log_destination_type(mut self, input: crate::types::LogDestinationType) -> Self {
243        self.inner = self.inner.log_destination_type(input);
244        self
245    }
246    /// <p>The type of destination for the flow log data.</p>
247    /// <p>Default: <code>cloud-watch-logs</code></p>
248    pub fn set_log_destination_type(mut self, input: ::std::option::Option<crate::types::LogDestinationType>) -> Self {
249        self.inner = self.inner.set_log_destination_type(input);
250        self
251    }
252    /// <p>The type of destination for the flow log data.</p>
253    /// <p>Default: <code>cloud-watch-logs</code></p>
254    pub fn get_log_destination_type(&self) -> &::std::option::Option<crate::types::LogDestinationType> {
255        self.inner.get_log_destination_type()
256    }
257    /// <p>The destination for the flow log data. The meaning of this parameter depends on the destination type.</p>
258    /// <ul>
259    /// <li>
260    /// <p>If the destination type is <code>cloud-watch-logs</code>, specify the ARN of a CloudWatch Logs log group. For example:</p>
261    /// <p>arn:aws:logs:<i>region</i>:<i>account_id</i>:log-group:<i>my_group</i></p>
262    /// <p>Alternatively, use the <code>LogGroupName</code> parameter.</p></li>
263    /// <li>
264    /// <p>If the destination type is <code>s3</code>, specify the ARN of an S3 bucket. For example:</p>
265    /// <p>arn:aws:s3:::<i>my_bucket</i>/<i>my_subfolder</i>/</p>
266    /// <p>The subfolder is optional. Note that you can't use <code>AWSLogs</code> as a subfolder name.</p></li>
267    /// <li>
268    /// <p>If the destination type is <code>kinesis-data-firehose</code>, specify the ARN of a Kinesis Data Firehose delivery stream. For example:</p>
269    /// <p>arn:aws:firehose:<i>region</i>:<i>account_id</i>:deliverystream:<i>my_stream</i></p></li>
270    /// </ul>
271    pub fn log_destination(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
272        self.inner = self.inner.log_destination(input.into());
273        self
274    }
275    /// <p>The destination for the flow log data. The meaning of this parameter depends on the destination type.</p>
276    /// <ul>
277    /// <li>
278    /// <p>If the destination type is <code>cloud-watch-logs</code>, specify the ARN of a CloudWatch Logs log group. For example:</p>
279    /// <p>arn:aws:logs:<i>region</i>:<i>account_id</i>:log-group:<i>my_group</i></p>
280    /// <p>Alternatively, use the <code>LogGroupName</code> parameter.</p></li>
281    /// <li>
282    /// <p>If the destination type is <code>s3</code>, specify the ARN of an S3 bucket. For example:</p>
283    /// <p>arn:aws:s3:::<i>my_bucket</i>/<i>my_subfolder</i>/</p>
284    /// <p>The subfolder is optional. Note that you can't use <code>AWSLogs</code> as a subfolder name.</p></li>
285    /// <li>
286    /// <p>If the destination type is <code>kinesis-data-firehose</code>, specify the ARN of a Kinesis Data Firehose delivery stream. For example:</p>
287    /// <p>arn:aws:firehose:<i>region</i>:<i>account_id</i>:deliverystream:<i>my_stream</i></p></li>
288    /// </ul>
289    pub fn set_log_destination(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
290        self.inner = self.inner.set_log_destination(input);
291        self
292    }
293    /// <p>The destination for the flow log data. The meaning of this parameter depends on the destination type.</p>
294    /// <ul>
295    /// <li>
296    /// <p>If the destination type is <code>cloud-watch-logs</code>, specify the ARN of a CloudWatch Logs log group. For example:</p>
297    /// <p>arn:aws:logs:<i>region</i>:<i>account_id</i>:log-group:<i>my_group</i></p>
298    /// <p>Alternatively, use the <code>LogGroupName</code> parameter.</p></li>
299    /// <li>
300    /// <p>If the destination type is <code>s3</code>, specify the ARN of an S3 bucket. For example:</p>
301    /// <p>arn:aws:s3:::<i>my_bucket</i>/<i>my_subfolder</i>/</p>
302    /// <p>The subfolder is optional. Note that you can't use <code>AWSLogs</code> as a subfolder name.</p></li>
303    /// <li>
304    /// <p>If the destination type is <code>kinesis-data-firehose</code>, specify the ARN of a Kinesis Data Firehose delivery stream. For example:</p>
305    /// <p>arn:aws:firehose:<i>region</i>:<i>account_id</i>:deliverystream:<i>my_stream</i></p></li>
306    /// </ul>
307    pub fn get_log_destination(&self) -> &::std::option::Option<::std::string::String> {
308        self.inner.get_log_destination()
309    }
310    /// <p>The fields to include in the flow log record. List the fields in the order in which they should appear. If you omit this parameter, the flow log is created using the default format. If you specify this parameter, you must include at least one field. For more information about the available fields, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html">Flow log records</a> in the <i>Amazon VPC User Guide</i> or <a href="https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records">Transit Gateway Flow Log records</a> in the <i>Amazon Web Services Transit Gateway Guide</i>.</p>
311    /// <p>Specify the fields using the <code>${field-id}</code> format, separated by spaces.</p>
312    pub fn log_format(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
313        self.inner = self.inner.log_format(input.into());
314        self
315    }
316    /// <p>The fields to include in the flow log record. List the fields in the order in which they should appear. If you omit this parameter, the flow log is created using the default format. If you specify this parameter, you must include at least one field. For more information about the available fields, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html">Flow log records</a> in the <i>Amazon VPC User Guide</i> or <a href="https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records">Transit Gateway Flow Log records</a> in the <i>Amazon Web Services Transit Gateway Guide</i>.</p>
317    /// <p>Specify the fields using the <code>${field-id}</code> format, separated by spaces.</p>
318    pub fn set_log_format(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
319        self.inner = self.inner.set_log_format(input);
320        self
321    }
322    /// <p>The fields to include in the flow log record. List the fields in the order in which they should appear. If you omit this parameter, the flow log is created using the default format. If you specify this parameter, you must include at least one field. For more information about the available fields, see <a href="https://docs.aws.amazon.com/vpc/latest/userguide/flow-log-records.html">Flow log records</a> in the <i>Amazon VPC User Guide</i> or <a href="https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records">Transit Gateway Flow Log records</a> in the <i>Amazon Web Services Transit Gateway Guide</i>.</p>
323    /// <p>Specify the fields using the <code>${field-id}</code> format, separated by spaces.</p>
324    pub fn get_log_format(&self) -> &::std::option::Option<::std::string::String> {
325        self.inner.get_log_format()
326    }
327    ///
328    /// Appends an item to `TagSpecifications`.
329    ///
330    /// To override the contents of this collection use [`set_tag_specifications`](Self::set_tag_specifications).
331    ///
332    /// <p>The tags to apply to the flow logs.</p>
333    pub fn tag_specifications(mut self, input: crate::types::TagSpecification) -> Self {
334        self.inner = self.inner.tag_specifications(input);
335        self
336    }
337    /// <p>The tags to apply to the flow logs.</p>
338    pub fn set_tag_specifications(mut self, input: ::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>>) -> Self {
339        self.inner = self.inner.set_tag_specifications(input);
340        self
341    }
342    /// <p>The tags to apply to the flow logs.</p>
343    pub fn get_tag_specifications(&self) -> &::std::option::Option<::std::vec::Vec<crate::types::TagSpecification>> {
344        self.inner.get_tag_specifications()
345    }
346    /// <p>The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for transit gateway resource types.</p>
347    /// <p>When a network interface is attached to a <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Nitro-based instance</a>, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.</p>
348    /// <p>Default: 600</p>
349    pub fn max_aggregation_interval(mut self, input: i32) -> Self {
350        self.inner = self.inner.max_aggregation_interval(input);
351        self
352    }
353    /// <p>The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for transit gateway resource types.</p>
354    /// <p>When a network interface is attached to a <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Nitro-based instance</a>, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.</p>
355    /// <p>Default: 600</p>
356    pub fn set_max_aggregation_interval(mut self, input: ::std::option::Option<i32>) -> Self {
357        self.inner = self.inner.set_max_aggregation_interval(input);
358        self
359    }
360    /// <p>The maximum interval of time during which a flow of packets is captured and aggregated into a flow log record. The possible values are 60 seconds (1 minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for transit gateway resource types.</p>
361    /// <p>When a network interface is attached to a <a href="https://docs.aws.amazon.com/ec2/latest/instancetypes/ec2-nitro-instances.html">Nitro-based instance</a>, the aggregation interval is always 60 seconds or less, regardless of the value that you specify.</p>
362    /// <p>Default: 600</p>
363    pub fn get_max_aggregation_interval(&self) -> &::std::option::Option<i32> {
364        self.inner.get_max_aggregation_interval()
365    }
366    /// <p>The destination options.</p>
367    pub fn destination_options(mut self, input: crate::types::DestinationOptionsRequest) -> Self {
368        self.inner = self.inner.destination_options(input);
369        self
370    }
371    /// <p>The destination options.</p>
372    pub fn set_destination_options(mut self, input: ::std::option::Option<crate::types::DestinationOptionsRequest>) -> Self {
373        self.inner = self.inner.set_destination_options(input);
374        self
375    }
376    /// <p>The destination options.</p>
377    pub fn get_destination_options(&self) -> &::std::option::Option<crate::types::DestinationOptionsRequest> {
378        self.inner.get_destination_options()
379    }
380}