aws_sdk_ec2/client/delete_network_interface_permission.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 [`DeleteNetworkInterfacePermission`](crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder) operation.
4 ///
5 /// - The fluent builder is configurable:
6 /// - [`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>
7 /// - [`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>
8 /// - [`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>
9 /// - On success, responds with [`DeleteNetworkInterfacePermissionOutput`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionOutput) with field(s):
10 /// - [`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>
11 /// - On failure, responds with [`SdkError<DeleteNetworkInterfacePermissionError>`](crate::operation::delete_network_interface_permission::DeleteNetworkInterfacePermissionError)
12 pub fn delete_network_interface_permission(
13 &self,
14 ) -> crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder {
15 crate::operation::delete_network_interface_permission::builders::DeleteNetworkInterfacePermissionFluentBuilder::new(self.handle.clone())
16 }
17}