1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
impl super::Client {
    /// Constructs a fluent builder for the [`DeleteNetworkInterfacePermission`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder) operation.
    ///
    /// - The fluent builder is configurable:
    ///   - [`network_interface_permission_id(impl Into<String>)`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::network_interface_permission_id) / [`set_network_interface_permission_id(Option<String>)`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::set_network_interface_permission_id):<br>required: **true**<br><p>The ID of the network interface permission.</p><br>
    ///   - [`force(bool)`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::force) / [`set_force(Option<bool>)`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::set_force):<br>required: **false**<br><p>Specify <code>true</code> to remove the permission even if the network interface is attached to an instance.</p><br>
    ///   - [`dry_run(bool)`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::set_dry_run):<br>required: **false**<br><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><br>
    /// - On success, responds with [`DeleteNetworkInterfacePermissionOutput`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionOutput) with field(s):
    ///   - [`r#return(Option<bool>)`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionOutput::return): <p>Returns <code>true</code> if the request succeeds, otherwise returns an error.</p>
    /// - On failure, responds with [`SdkError<DeleteNetworkInterfacePermissionError>`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError)
    pub fn delete_network_interface_permission(
        &self,
    ) -> crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder {
        crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::new(self.handle.clone())
    }
}