Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
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:ModifyMountTargetSecurityGroups
action on the mount target's file system.ec2:ModifyNetworkInterfaceAttribute
action 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.
ModifyMountTargetSecurityGroups' | |
|
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.
$sel:mountTargetId: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.
Instances
Eq ModifyMountTargetSecurityGroupsResponse Source # | |
Read ModifyMountTargetSecurityGroupsResponse Source # | |
Defined in Amazonka.EFS.ModifyMountTargetSecurityGroups | |
Show ModifyMountTargetSecurityGroupsResponse Source # | |
Generic ModifyMountTargetSecurityGroupsResponse Source # | |
Defined in Amazonka.EFS.ModifyMountTargetSecurityGroups type Rep ModifyMountTargetSecurityGroupsResponse :: Type -> Type # | |
NFData ModifyMountTargetSecurityGroupsResponse Source # | |
Defined in Amazonka.EFS.ModifyMountTargetSecurityGroups rnf :: ModifyMountTargetSecurityGroupsResponse -> () # | |
type Rep ModifyMountTargetSecurityGroupsResponse Source # | |
Defined in Amazonka.EFS.ModifyMountTargetSecurityGroups type Rep ModifyMountTargetSecurityGroupsResponse = D1 ('MetaData "ModifyMountTargetSecurityGroupsResponse" "Amazonka.EFS.ModifyMountTargetSecurityGroups" "libZSservicesZSamazonka-efsZSamazonka-efs" 'False) (C1 ('MetaCons "ModifyMountTargetSecurityGroupsResponse'" 'PrefixI 'False) (U1 :: Type -> Type)) |
newModifyMountTargetSecurityGroupsResponse :: ModifyMountTargetSecurityGroupsResponse Source #
Create a value of ModifyMountTargetSecurityGroupsResponse
with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.