/** * <p> * Assigns one of the stack's registered Amazon EBS volumes to a specified instance. The volume must first be * registered with the stack by calling <a>RegisterVolume</a>. After you register the volume, you must call * <a>UpdateVolume</a> to specify a mount point before calling <code>AssignVolume</code>. For more information, see * <a href="http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html">Resource Management</a>. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack, * or an attached policy that explicitly grants permissions. For more information on user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param assignVolumeRequest * @return Result of the AssignVolume operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.AssignVolume * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolume" target="_top">AWS API * Documentation</a> */ @Override public AssignVolumeResult assignVolume(AssignVolumeRequest request) { request = beforeClientExecution(request); return executeAssignVolume(request); }
/** * <p> * Assigns one of the stack's registered Amazon EBS volumes to a specified instance. The volume must first be * registered with the stack by calling <a>RegisterVolume</a>. After you register the volume, you must call * <a>UpdateVolume</a> to specify a mount point before calling <code>AssignVolume</code>. For more information, see * <a href="http://docs.aws.amazon.com/opsworks/latest/userguide/resources.html">Resource Management</a>. * </p> * <p> * <b>Required Permissions</b>: To use this action, an IAM user must have a Manage permissions level for the stack, * or an attached policy that explicitly grants permissions. For more information on user permissions, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/opsworks-security-users.html">Managing User * Permissions</a>. * </p> * * @param assignVolumeRequest * @return Result of the AssignVolume operation returned by the service. * @throws ValidationException * Indicates that a request was not valid. * @throws ResourceNotFoundException * Indicates that a resource was not found. * @sample AWSOpsWorks.AssignVolume * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/AssignVolume" target="_top">AWS API * Documentation</a> */ @Override public AssignVolumeResult assignVolume(AssignVolumeRequest request) { request = beforeClientExecution(request); return executeAssignVolume(request); }