#[non_exhaustive]pub struct CreateNetworkInterfacePermissionInput { /* private fields */ }
Expand description
Contains the parameters for CreateNetworkInterfacePermission.
Implementations§
source§impl CreateNetworkInterfacePermissionInput
impl CreateNetworkInterfacePermissionInput
sourcepub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateNetworkInterfacePermission, AwsResponseRetryClassifier>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<CreateNetworkInterfacePermission, AwsResponseRetryClassifier>, BuildError>
Consumes the builder and constructs an Operation<CreateNetworkInterfacePermission
>
Examples found in repository?
src/client.rs (line 19829)
19815 19816 19817 19818 19819 19820 19821 19822 19823 19824 19825 19826 19827 19828 19829 19830 19831 19832 19833 19834 19835 19836 19837 19838 19839 19840 19841 19842 19843 19844 19845 19846 19847 19848 19849 19850 19851 19852 19853 19854 19855 19856 19857
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateNetworkInterfacePermission,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateNetworkInterfacePermissionError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// 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](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateNetworkInterfacePermissionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateNetworkInterfacePermissionError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}
sourcepub fn builder() -> Builder
pub fn builder() -> Builder
Creates a new builder-style object to manufacture CreateNetworkInterfacePermissionInput
.
source§impl CreateNetworkInterfacePermissionInput
impl CreateNetworkInterfacePermissionInput
sourcepub fn network_interface_id(&self) -> Option<&str>
pub fn network_interface_id(&self) -> Option<&str>
The ID of the network interface.
sourcepub fn aws_account_id(&self) -> Option<&str>
pub fn aws_account_id(&self) -> Option<&str>
The Amazon Web Services account ID.
sourcepub fn aws_service(&self) -> Option<&str>
pub fn aws_service(&self) -> Option<&str>
The Amazon Web Service. Currently not supported.
sourcepub fn permission(&self) -> Option<&InterfacePermissionType>
pub fn permission(&self) -> Option<&InterfacePermissionType>
The type of permission to grant.
Trait Implementations§
source§impl Clone for CreateNetworkInterfacePermissionInput
impl Clone for CreateNetworkInterfacePermissionInput
source§fn clone(&self) -> CreateNetworkInterfacePermissionInput
fn clone(&self) -> CreateNetworkInterfacePermissionInput
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more