{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE TypeFamilies #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-binds #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.SQS.UntagQueue -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Remove cost allocation tags from the specified Amazon SQS queue. For an -- overview, see -- -- in the /Amazon SQS Developer Guide/. -- -- Cross-account permissions don\'t apply to this action. For more -- information, see -- -- in the /Amazon SQS Developer Guide/. module Amazonka.SQS.UntagQueue ( -- * Creating a Request UntagQueue (..), newUntagQueue, -- * Request Lenses untagQueue_queueUrl, untagQueue_tagKeys, -- * Destructuring the Response UntagQueueResponse (..), newUntagQueueResponse, ) where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import qualified Amazonka.Prelude as Prelude import qualified Amazonka.Request as Request import qualified Amazonka.Response as Response import Amazonka.SQS.Types -- | /See:/ 'newUntagQueue' smart constructor. data UntagQueue = UntagQueue' { -- | The URL of the queue. queueUrl :: Prelude.Text, -- | The list of tags to be removed from the specified queue. tagKeys :: [Prelude.Text] } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UntagQueue' with all optional fields omitted. -- -- Use or to modify other optional fields. -- -- The following record fields are available, with the corresponding lenses provided -- for backwards compatibility: -- -- 'queueUrl', 'untagQueue_queueUrl' - The URL of the queue. -- -- 'tagKeys', 'untagQueue_tagKeys' - The list of tags to be removed from the specified queue. newUntagQueue :: -- | 'queueUrl' Prelude.Text -> UntagQueue newUntagQueue pQueueUrl_ = UntagQueue' { queueUrl = pQueueUrl_, tagKeys = Prelude.mempty } -- | The URL of the queue. untagQueue_queueUrl :: Lens.Lens' UntagQueue Prelude.Text untagQueue_queueUrl = Lens.lens (\UntagQueue' {queueUrl} -> queueUrl) (\s@UntagQueue' {} a -> s {queueUrl = a} :: UntagQueue) -- | The list of tags to be removed from the specified queue. untagQueue_tagKeys :: Lens.Lens' UntagQueue [Prelude.Text] untagQueue_tagKeys = Lens.lens (\UntagQueue' {tagKeys} -> tagKeys) (\s@UntagQueue' {} a -> s {tagKeys = a} :: UntagQueue) Prelude.. Lens.coerced instance Core.AWSRequest UntagQueue where type AWSResponse UntagQueue = UntagQueueResponse request overrides = Request.postQuery (overrides defaultService) response = Response.receiveNull UntagQueueResponse' instance Prelude.Hashable UntagQueue where hashWithSalt _salt UntagQueue' {..} = _salt `Prelude.hashWithSalt` queueUrl `Prelude.hashWithSalt` tagKeys instance Prelude.NFData UntagQueue where rnf UntagQueue' {..} = Prelude.rnf queueUrl `Prelude.seq` Prelude.rnf tagKeys instance Data.ToHeaders UntagQueue where toHeaders = Prelude.const Prelude.mempty instance Data.ToPath UntagQueue where toPath = Prelude.const "/" instance Data.ToQuery UntagQueue where toQuery UntagQueue' {..} = Prelude.mconcat [ "Action" Data.=: ("UntagQueue" :: Prelude.ByteString), "Version" Data.=: ("2012-11-05" :: Prelude.ByteString), "QueueUrl" Data.=: queueUrl, Data.toQueryList "TagKey" tagKeys ] -- | /See:/ 'newUntagQueueResponse' smart constructor. data UntagQueueResponse = UntagQueueResponse' { } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'UntagQueueResponse' with all optional fields omitted. -- -- Use or to modify other optional fields. newUntagQueueResponse :: UntagQueueResponse newUntagQueueResponse = UntagQueueResponse' instance Prelude.NFData UntagQueueResponse where rnf _ = ()