| 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 |
Amazonka.EFS.ModifyMountTargetSecurityGroups
Description
Modifies the set of security groups in effect for a mount target.
When you create a mount target, Amazon EFS also creates a new network
interface. For more information, see CreateMountTarget. This operation
replaces the security groups in effect for the network interface
associated with a mount target, with the SecurityGroups provided in
the request. This operation requires that the network interface of the
mount target has been created and the lifecycle state of the mount
target is not deleted.
The operation requires permissions for the following actions:
elasticfilesystem:ModifyMountTargetSecurityGroupsaction on the mount target's file system.ec2:ModifyNetworkInterfaceAttributeaction on the mount target's network interface.
Synopsis
- data ModifyMountTargetSecurityGroups = ModifyMountTargetSecurityGroups' {
- securityGroups :: Maybe [Text]
- mountTargetId :: Text
- newModifyMountTargetSecurityGroups :: Text -> ModifyMountTargetSecurityGroups
- modifyMountTargetSecurityGroups_securityGroups :: Lens' ModifyMountTargetSecurityGroups (Maybe [Text])
- modifyMountTargetSecurityGroups_mountTargetId :: Lens' ModifyMountTargetSecurityGroups Text
- data ModifyMountTargetSecurityGroupsResponse = ModifyMountTargetSecurityGroupsResponse' {
- newModifyMountTargetSecurityGroupsResponse :: ModifyMountTargetSecurityGroupsResponse
Creating a Request
data ModifyMountTargetSecurityGroups Source #
See: newModifyMountTargetSecurityGroups smart constructor.
Constructors
| ModifyMountTargetSecurityGroups' | |
Fields
| |
Instances
newModifyMountTargetSecurityGroups Source #
Create a value of ModifyMountTargetSecurityGroups 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:
$sel:securityGroups:ModifyMountTargetSecurityGroups', modifyMountTargetSecurityGroups_securityGroups - An array of up to five VPC security group IDs.
ModifyMountTargetSecurityGroups, modifyMountTargetSecurityGroups_mountTargetId - The ID of the mount target whose security groups you want to modify.
Request Lenses
modifyMountTargetSecurityGroups_securityGroups :: Lens' ModifyMountTargetSecurityGroups (Maybe [Text]) Source #
An array of up to five VPC security group IDs.
modifyMountTargetSecurityGroups_mountTargetId :: Lens' ModifyMountTargetSecurityGroups Text Source #
The ID of the mount target whose security groups you want to modify.
Destructuring the Response
data ModifyMountTargetSecurityGroupsResponse Source #
See: newModifyMountTargetSecurityGroupsResponse smart constructor.
Constructors
| ModifyMountTargetSecurityGroupsResponse' | |
Instances
newModifyMountTargetSecurityGroupsResponse :: ModifyMountTargetSecurityGroupsResponse Source #
Create a value of ModifyMountTargetSecurityGroupsResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.