Struct aws_sdk_ec2::operation::create_network_interface_permission::builders::CreateNetworkInterfacePermissionFluentBuilder
source · pub struct CreateNetworkInterfacePermissionFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to CreateNetworkInterfacePermission
.
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single Amazon Web Services account only, and only one account at a time.
Implementations§
source§impl CreateNetworkInterfacePermissionFluentBuilder
impl CreateNetworkInterfacePermissionFluentBuilder
sourcepub fn as_input(&self) -> &CreateNetworkInterfacePermissionInputBuilder
pub fn as_input(&self) -> &CreateNetworkInterfacePermissionInputBuilder
Access the CreateNetworkInterfacePermission as a reference.
sourcepub async fn send(
self
) -> Result<CreateNetworkInterfacePermissionOutput, SdkError<CreateNetworkInterfacePermissionError, HttpResponse>>
pub async fn send( self ) -> Result<CreateNetworkInterfacePermissionOutput, SdkError<CreateNetworkInterfacePermissionError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateNetworkInterfacePermissionOutput, CreateNetworkInterfacePermissionError>, SdkError<CreateNetworkInterfacePermissionError>>
pub async fn customize( self ) -> Result<CustomizableOperation<CreateNetworkInterfacePermissionOutput, CreateNetworkInterfacePermissionError>, SdkError<CreateNetworkInterfacePermissionError>>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn network_interface_id(self, input: impl Into<String>) -> Self
pub fn network_interface_id(self, input: impl Into<String>) -> Self
The ID of the network interface.
sourcepub fn set_network_interface_id(self, input: Option<String>) -> Self
pub fn set_network_interface_id(self, input: Option<String>) -> Self
The ID of the network interface.
sourcepub fn get_network_interface_id(&self) -> &Option<String>
pub fn get_network_interface_id(&self) -> &Option<String>
The ID of the network interface.
sourcepub fn aws_account_id(self, input: impl Into<String>) -> Self
pub fn aws_account_id(self, input: impl Into<String>) -> Self
The Amazon Web Services account ID.
sourcepub fn set_aws_account_id(self, input: Option<String>) -> Self
pub fn set_aws_account_id(self, input: Option<String>) -> Self
The Amazon Web Services account ID.
sourcepub fn get_aws_account_id(&self) -> &Option<String>
pub fn get_aws_account_id(&self) -> &Option<String>
The Amazon Web Services account ID.
sourcepub fn aws_service(self, input: impl Into<String>) -> Self
pub fn aws_service(self, input: impl Into<String>) -> Self
The Amazon Web Service. Currently not supported.
sourcepub fn set_aws_service(self, input: Option<String>) -> Self
pub fn set_aws_service(self, input: Option<String>) -> Self
The Amazon Web Service. Currently not supported.
sourcepub fn get_aws_service(&self) -> &Option<String>
pub fn get_aws_service(&self) -> &Option<String>
The Amazon Web Service. Currently not supported.
sourcepub fn permission(self, input: InterfacePermissionType) -> Self
pub fn permission(self, input: InterfacePermissionType) -> Self
The type of permission to grant.
sourcepub fn set_permission(self, input: Option<InterfacePermissionType>) -> Self
pub fn set_permission(self, input: Option<InterfacePermissionType>) -> Self
The type of permission to grant.
sourcepub fn get_permission(&self) -> &Option<InterfacePermissionType>
pub fn get_permission(&self) -> &Option<InterfacePermissionType>
The type of permission to grant.
sourcepub fn dry_run(self, input: bool) -> Self
pub fn dry_run(self, input: bool) -> Self
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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn set_dry_run(self, input: Option<bool>) -> Self
pub fn set_dry_run(self, input: Option<bool>) -> Self
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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
sourcepub fn get_dry_run(&self) -> &Option<bool>
pub fn get_dry_run(&self) -> &Option<bool>
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 DryRunOperation
. Otherwise, it is UnauthorizedOperation
.
Trait Implementations§
source§impl Clone for CreateNetworkInterfacePermissionFluentBuilder
impl Clone for CreateNetworkInterfacePermissionFluentBuilder
source§fn clone(&self) -> CreateNetworkInterfacePermissionFluentBuilder
fn clone(&self) -> CreateNetworkInterfacePermissionFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more