/** * <p> * Deletes a specified layer. You must first stop and then delete all associated instances or unassign registered * instances. For more information, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html">How to Delete a * Layer</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 deleteLayerRequest * @return Result of the DeleteLayer 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.DeleteLayer * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayer" target="_top">AWS API * Documentation</a> */ @Override public DeleteLayerResult deleteLayer(DeleteLayerRequest request) { request = beforeClientExecution(request); return executeDeleteLayer(request); }
/** * <p> * Deletes a specified layer. You must first stop and then delete all associated instances or unassign registered * instances. For more information, see <a * href="http://docs.aws.amazon.com/opsworks/latest/userguide/workinglayers-basics-delete.html">How to Delete a * Layer</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 deleteLayerRequest * @return Result of the DeleteLayer 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.DeleteLayer * @see <a href="http://docs.aws.amazon.com/goto/WebAPI/opsworks-2013-02-18/DeleteLayer" target="_top">AWS API * Documentation</a> */ @Override public DeleteLayerResult deleteLayer(DeleteLayerRequest request) { request = beforeClientExecution(request); return executeDeleteLayer(request); }