pub struct CreateNetworkInterfacePermission { /* 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 CreateNetworkInterfacePermission
impl CreateNetworkInterfacePermission
sourcepub async fn customize(
self
) -> Result<CustomizableOperation<CreateNetworkInterfacePermission, AwsResponseRetryClassifier>, SdkError<CreateNetworkInterfacePermissionError>>
pub async fn customize(
self
) -> Result<CustomizableOperation<CreateNetworkInterfacePermission, AwsResponseRetryClassifier>, SdkError<CreateNetworkInterfacePermissionError>>
Consume this builder, creating a customizable operation that can be modified before being sent. The operation’s inner http::Request can be modified as well.
sourcepub async fn send(
self
) -> Result<CreateNetworkInterfacePermissionOutput, SdkError<CreateNetworkInterfacePermissionError>>
pub async fn send(
self
) -> Result<CreateNetworkInterfacePermissionOutput, SdkError<CreateNetworkInterfacePermissionError>>
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 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 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 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 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 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
.
Trait Implementations§
source§impl Clone for CreateNetworkInterfacePermission
impl Clone for CreateNetworkInterfacePermission
source§fn clone(&self) -> CreateNetworkInterfacePermission
fn clone(&self) -> CreateNetworkInterfacePermission
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more