Struct aws_sdk_ec2::input::ModifyNetworkInterfaceAttributeInput [−][src]
#[non_exhaustive]pub struct ModifyNetworkInterfaceAttributeInput {
pub attachment: Option<NetworkInterfaceAttachmentChanges>,
pub description: Option<AttributeValue>,
pub dry_run: Option<bool>,
pub groups: Option<Vec<String>>,
pub network_interface_id: Option<String>,
pub source_dest_check: Option<AttributeBooleanValue>,
}
Expand description
Contains the parameters for ModifyNetworkInterfaceAttribute.
Fields (Non-exhaustive)
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.attachment: Option<NetworkInterfaceAttachmentChanges>
Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
description: Option<AttributeValue>
A description for the network interface.
dry_run: 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
.
groups: Option<Vec<String>>
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
network_interface_id: Option<String>
The ID of the network interface.
source_dest_check: Option<AttributeBooleanValue>
Enable or disable source/destination checks, which ensure that the instance
is either the source or the destination of any traffic that it receives.
If the value is true
, source/destination checks are enabled;
otherwise, they are disabled. The default value is true
.
You must disable source/destination checks if the instance runs services
such as network address translation, routing, or firewalls.
Implementations
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyNetworkInterfaceAttribute, AwsErrorRetryPolicy>, BuildError>
pub async fn make_operation(
&self,
_config: &Config
) -> Result<Operation<ModifyNetworkInterfaceAttribute, AwsErrorRetryPolicy>, BuildError>
Consumes the builder and constructs an Operation<ModifyNetworkInterfaceAttribute
>
Creates a new builder-style object to manufacture ModifyNetworkInterfaceAttributeInput
Information about the interface attachment. If modifying the 'delete on termination' attribute, you must specify the ID of the interface attachment.
A description for the network interface.
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
.
Changes the security groups for the network interface. The new set of groups you specify replaces the current set. You must specify at least one group, even if it's just the default security group in the VPC. You must specify the ID of the security group, not the name.
The ID of the network interface.
Enable or disable source/destination checks, which ensure that the instance
is either the source or the destination of any traffic that it receives.
If the value is true
, source/destination checks are enabled;
otherwise, they are disabled. The default value is true
.
You must disable source/destination checks if the instance runs services
such as network address translation, routing, or firewalls.
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl Send for ModifyNetworkInterfaceAttributeInput
impl Sync for ModifyNetworkInterfaceAttributeInput
Blanket Implementations
Mutably borrows from an owned value. Read more
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more