aws_sdk_fms/client/
get_protocols_list.rs

1// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
2impl super::Client {
3    /// Constructs a fluent builder for the [`GetProtocolsList`](crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`list_id(impl Into<String>)`](crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder::list_id) / [`set_list_id(Option<String>)`](crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder::set_list_id):<br>required: **true**<br><p>The ID of the Firewall Manager protocols list that you want the details for.</p><br>
7    ///   - [`default_list(bool)`](crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder::default_list) / [`set_default_list(Option<bool>)`](crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder::set_default_list):<br>required: **false**<br><p>Specifies whether the list to retrieve is a default list owned by Firewall Manager.</p><br>
8    /// - On success, responds with [`GetProtocolsListOutput`](crate::operation::get_protocols_list::GetProtocolsListOutput) with field(s):
9    ///   - [`protocols_list(Option<ProtocolsListData>)`](crate::operation::get_protocols_list::GetProtocolsListOutput::protocols_list): <p>Information about the specified Firewall Manager protocols list.</p>
10    ///   - [`protocols_list_arn(Option<String>)`](crate::operation::get_protocols_list::GetProtocolsListOutput::protocols_list_arn): <p>The Amazon Resource Name (ARN) of the specified protocols list.</p>
11    /// - On failure, responds with [`SdkError<GetProtocolsListError>`](crate::operation::get_protocols_list::GetProtocolsListError)
12    pub fn get_protocols_list(&self) -> crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder {
13        crate::operation::get_protocols_list::builders::GetProtocolsListFluentBuilder::new(self.handle.clone())
14    }
15}