aws_sdk_ec2/client/
create_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 [`CreateNetworkInterfacePermission`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder) operation.
4    ///
5    /// - The fluent builder is configurable:
6    ///   - [`network_interface_id(impl Into<String>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::network_interface_id) / [`set_network_interface_id(Option<String>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::set_network_interface_id):<br>required: **true**<br><p>The ID of the network interface.</p><br>
7    ///   - [`aws_account_id(impl Into<String>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::aws_account_id) / [`set_aws_account_id(Option<String>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::set_aws_account_id):<br>required: **false**<br><p>The Amazon Web Services account ID.</p><br>
8    ///   - [`aws_service(impl Into<String>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::aws_service) / [`set_aws_service(Option<String>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::set_aws_service):<br>required: **false**<br><p>The Amazon Web Services service. Currently not supported.</p><br>
9    ///   - [`permission(InterfacePermissionType)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::permission) / [`set_permission(Option<InterfacePermissionType>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::set_permission):<br>required: **true**<br><p>The type of permission to grant.</p><br>
10    ///   - [`dry_run(bool)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::dry_run) / [`set_dry_run(Option<bool>)`](crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::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>
11    /// - On success, responds with [`CreateNetworkInterfacePermissionOutput`](crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionOutput) with field(s):
12    ///   - [`interface_permission(Option<NetworkInterfacePermission>)`](crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionOutput::interface_permission): <p>Information about the permission for the network interface.</p>
13    /// - On failure, responds with [`SdkError<CreateNetworkInterfacePermissionError>`](crate::operation::create_network_interface_permission::CreateNetworkInterfacePermissionError)
14    pub fn create_network_interface_permission(
15        &self,
16    ) -> crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder {
17        crate::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder::new(self.handle.clone())
18    }
19}