paws.storage (version 0.1.0)

efs_modify_mount_target_security_groups: Modifies the set of security groups in effect for a mount target

Description

Modifies the set of security groups in effect for a mount target.

Usage

efs_modify_mount_target_security_groups(MountTargetId, SecurityGroups)

Arguments

MountTargetId

[required] The ID of the mount target whose security groups you want to modify.

SecurityGroups

An array of up to five VPC security group IDs.

Request syntax

svc$modify_mount_target_security_groups(
  MountTargetId = "string",
  SecurityGroups = list(
    "string"
  )
)

Details

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.

Examples

Run this code
# NOT RUN {
# This operation modifies the security groups associated with a mount
# target for a file system.
# }
# NOT RUN {
svc$modify_mount_target_security_groups(
  MountTargetId = "fsmt-12340abc",
  SecurityGroups = list(
    "sg-abcd1234"
  )
)
# }
# NOT RUN {
# }

Run the code above in your browser using DataCamp Workspace