aws_sdk_ec2/client/describe_network_interface_permissions.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 [`DescribeNetworkInterfacePermissions`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder) operation.
4 /// This operation supports pagination; See [`into_paginator()`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::into_paginator).
5 ///
6 /// - The fluent builder is configurable:
7 /// - [`network_interface_permission_ids(impl Into<String>)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::network_interface_permission_ids) / [`set_network_interface_permission_ids(Option<Vec::<String>>)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::set_network_interface_permission_ids):<br>required: **false**<br><p>The network interface permission IDs.</p><br>
8 /// - [`filters(Filter)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::filters) / [`set_filters(Option<Vec::<Filter>>)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::set_filters):<br>required: **false**<br><p>One or more filters.</p> <ul> <li> <p><code>network-interface-permission.network-interface-permission-id</code> - The ID of the permission.</p></li> <li> <p><code>network-interface-permission.network-interface-id</code> - The ID of the network interface.</p></li> <li> <p><code>network-interface-permission.aws-account-id</code> - The Amazon Web Services account ID.</p></li> <li> <p><code>network-interface-permission.aws-service</code> - The Amazon Web Services service.</p></li> <li> <p><code>network-interface-permission.permission</code> - The type of permission (<code>INSTANCE-ATTACH</code> | <code>EIP-ASSOCIATE</code>).</p></li> </ul><br>
9 /// - [`next_token(impl Into<String>)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::next_token) / [`set_next_token(Option<String>)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::set_next_token):<br>required: **false**<br><p>The token returned from a previous paginated request. Pagination continues from the end of the items returned by the previous request.</p><br>
10 /// - [`max_results(i32)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::max_results) / [`set_max_results(Option<i32>)`](crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::set_max_results):<br>required: **false**<br><p>The maximum number of items to return for this request. To get the next page of items, make another request with the token returned in the output. If this parameter is not specified, up to 50 results are returned by default. For more information, see <a href="https://docs.aws.amazon.com/AWSEC2/latest/APIReference/Query-Requests.html#api-pagination">Pagination</a>.</p><br>
11 /// - On success, responds with [`DescribeNetworkInterfacePermissionsOutput`](crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsOutput) with field(s):
12 /// - [`network_interface_permissions(Option<Vec::<NetworkInterfacePermission>>)`](crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsOutput::network_interface_permissions): <p>The network interface permissions.</p>
13 /// - [`next_token(Option<String>)`](crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsOutput::next_token): <p>The token to include in another request to get the next page of items. This value is <code>null</code> when there are no more items to return.</p>
14 /// - On failure, responds with [`SdkError<DescribeNetworkInterfacePermissionsError>`](crate::operation::describe_network_interface_permissions::DescribeNetworkInterfacePermissionsError)
15 pub fn describe_network_interface_permissions(
16 &self,
17 ) -> crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder {
18 crate::operation::describe_network_interface_permissions::builders::DescribeNetworkInterfacePermissionsFluentBuilder::new(self.handle.clone())
19 }
20}