Copyright | (c) 2013-2023 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | Safe-Inferred |
Language | Haskell2010 |
Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.
Synopsis
- data ModifyNetworkInterfaceAttribute = ModifyNetworkInterfaceAttribute' {}
- newModifyNetworkInterfaceAttribute :: Text -> ModifyNetworkInterfaceAttribute
- modifyNetworkInterfaceAttribute_attachment :: Lens' ModifyNetworkInterfaceAttribute (Maybe NetworkInterfaceAttachmentChanges)
- modifyNetworkInterfaceAttribute_description :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeValue)
- modifyNetworkInterfaceAttribute_dryRun :: Lens' ModifyNetworkInterfaceAttribute (Maybe Bool)
- modifyNetworkInterfaceAttribute_enaSrdSpecification :: Lens' ModifyNetworkInterfaceAttribute (Maybe EnaSrdSpecification)
- modifyNetworkInterfaceAttribute_groups :: Lens' ModifyNetworkInterfaceAttribute (Maybe [Text])
- modifyNetworkInterfaceAttribute_sourceDestCheck :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeBooleanValue)
- modifyNetworkInterfaceAttribute_networkInterfaceId :: Lens' ModifyNetworkInterfaceAttribute Text
- data ModifyNetworkInterfaceAttributeResponse = ModifyNetworkInterfaceAttributeResponse' {
- newModifyNetworkInterfaceAttributeResponse :: ModifyNetworkInterfaceAttributeResponse
Creating a Request
data ModifyNetworkInterfaceAttribute Source #
Contains the parameters for ModifyNetworkInterfaceAttribute.
See: newModifyNetworkInterfaceAttribute
smart constructor.
ModifyNetworkInterfaceAttribute' | |
|
Instances
newModifyNetworkInterfaceAttribute Source #
Create a value of ModifyNetworkInterfaceAttribute
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
ModifyNetworkInterfaceAttribute
, modifyNetworkInterfaceAttribute_attachment
- Information about the interface attachment. If modifying the
delete on termination
attribute, you must specify the ID of the
interface attachment.
ModifyNetworkInterfaceAttribute
, modifyNetworkInterfaceAttribute_description
- A description for the network interface.
$sel:dryRun:ModifyNetworkInterfaceAttribute'
, modifyNetworkInterfaceAttribute_dryRun
- 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
.
ModifyNetworkInterfaceAttribute
, modifyNetworkInterfaceAttribute_enaSrdSpecification
- Updates the ENA Express configuration for the network interface that’s
attached to the instance.
ModifyNetworkInterfaceAttribute
, modifyNetworkInterfaceAttribute_groups
- 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.
ModifyNetworkInterfaceAttribute
, modifyNetworkInterfaceAttribute_sourceDestCheck
- 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.
ModifyNetworkInterfaceAttribute
, modifyNetworkInterfaceAttribute_networkInterfaceId
- The ID of the network interface.
Request Lenses
modifyNetworkInterfaceAttribute_attachment :: Lens' ModifyNetworkInterfaceAttribute (Maybe NetworkInterfaceAttachmentChanges) Source #
Information about the interface attachment. If modifying the
delete on termination
attribute, you must specify the ID of the
interface attachment.
modifyNetworkInterfaceAttribute_description :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeValue) Source #
A description for the network interface.
modifyNetworkInterfaceAttribute_dryRun :: Lens' ModifyNetworkInterfaceAttribute (Maybe Bool) Source #
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
.
modifyNetworkInterfaceAttribute_enaSrdSpecification :: Lens' ModifyNetworkInterfaceAttribute (Maybe EnaSrdSpecification) Source #
Updates the ENA Express configuration for the network interface that’s attached to the instance.
modifyNetworkInterfaceAttribute_groups :: Lens' ModifyNetworkInterfaceAttribute (Maybe [Text]) Source #
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.
modifyNetworkInterfaceAttribute_sourceDestCheck :: Lens' ModifyNetworkInterfaceAttribute (Maybe AttributeBooleanValue) Source #
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.
modifyNetworkInterfaceAttribute_networkInterfaceId :: Lens' ModifyNetworkInterfaceAttribute Text Source #
The ID of the network interface.
Destructuring the Response
data ModifyNetworkInterfaceAttributeResponse Source #
See: newModifyNetworkInterfaceAttributeResponse
smart constructor.
Instances
Generic ModifyNetworkInterfaceAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute type Rep ModifyNetworkInterfaceAttributeResponse :: Type -> Type # | |
Read ModifyNetworkInterfaceAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute | |
Show ModifyNetworkInterfaceAttributeResponse Source # | |
NFData ModifyNetworkInterfaceAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute rnf :: ModifyNetworkInterfaceAttributeResponse -> () # | |
Eq ModifyNetworkInterfaceAttributeResponse Source # | |
type Rep ModifyNetworkInterfaceAttributeResponse Source # | |
Defined in Amazonka.EC2.ModifyNetworkInterfaceAttribute type Rep ModifyNetworkInterfaceAttributeResponse = D1 ('MetaData "ModifyNetworkInterfaceAttributeResponse" "Amazonka.EC2.ModifyNetworkInterfaceAttribute" "amazonka-ec2-2.0-48L9RAJvmvzAdBkRegqWCL" 'False) (C1 ('MetaCons "ModifyNetworkInterfaceAttributeResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newModifyNetworkInterfaceAttributeResponse :: ModifyNetworkInterfaceAttributeResponse Source #
Create a value of ModifyNetworkInterfaceAttributeResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.