// Revokes any permissions in the queue policy that matches the specified Label
// parameter.
//
// * Only the owner of a queue can remove permissions from it.
//
// *
// Cross-account permissions don't apply to this action. For more information, see
// Grant Cross-Account Permissions to a Role and a User Name
// (https://docs.aws.amazon.com/AWSSimpleQueueService/latest/SQSDeveloperGuide/sqs-customer-managed-policy-examples.html#grant-cross-account-permissions-to-role-and-user-name)
// in the Amazon Simple Queue Service Developer Guide.
//
// * To remove the ability to
// change queue permissions, you must deny permission to the AddPermission,
// RemovePermission, and SetQueueAttributes actions in your IAM policy.
Revokes any permissions in the queue policy that matches the specified Label
parameter.

Only the owner of a queue can remove permissions from it.

Cross-account permissions don't apply to this action. For more information, see
Grant Cross-Account Permissions to a Role and a User Name

in the Amazon Simple Queue Service Developer Guide.

To remove the ability to
change queue permissions, you must deny permission to the AddPermission,
RemovePermission, and SetQueueAttributes actions in your IAM policy.
// Revokes any permissions in the queue policy that matches the specified Label // parameter . // // * Only the owner of a queue can remove permissions from it . // // * // Cross - account permissions don ' t apply to this action . For more information see // Grant Cross - Account Permissions to a Role and a User Name // ( https : // docs . aws . amazon . com / AWSSimpleQueueService / latest / SQSDeveloperGuide / sqs - customer - managed - policy - examples . html#grant - cross - account - permissions - to - role - and - user - name ) // in the Amazon Simple Queue Service Developer Guide . // // * To remove the ability to // change queue permissions you must deny permission to the AddPermission // RemovePermission and SetQueueAttributes actions in your IAM policy .
func (c *Client) RemovePermission(ctx context.Context, params *RemovePermissionInput, optFns ...func(*Options)) (*RemovePermissionOutput, error) {
	if params == nil {
		params = &RemovePermissionInput{}
	}
	result, metadata, err := c.invokeOperation(ctx, "RemovePermission", params, optFns, addOperationRemovePermissionMiddlewares)
	if err != nil {
		return nil, err
	}
	out := result.(*RemovePermissionOutput)
	out.ResultMetadata = metadata
	return out, nil
}
func ( c * Client ) RemovePermission ( ctx context . Context , params * RemovePermissionInput , optFns ... func ( * Options ) ) ( * RemovePermissionOutput , error ) { if params == nil { params = & RemovePermissionInput { } } result , metadata , err := c . invokeOperation ( ctx , " " , params , optFns , addOperationRemovePermissionMiddlewares ) if err != nil { return nil , err } out := result . ( * RemovePermissionOutput ) out . ResultMetadata = metadata return out , nil }
Revokes any permissions in the queue policy that matches the specified Label
parameter.
Revokes any permissions in the queue policy that matches the specified Label parameter .