{-# 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.MediaConvert.DeletePolicy -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Permanently delete a policy that you created. module Amazonka.MediaConvert.DeletePolicy ( -- * Creating a Request DeletePolicy (..), newDeletePolicy, -- * Destructuring the Response DeletePolicyResponse (..), newDeletePolicyResponse, -- * Response Lenses deletePolicyResponse_httpStatus, ) where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.MediaConvert.Types import qualified Amazonka.Prelude as Prelude import qualified Amazonka.Request as Request import qualified Amazonka.Response as Response -- | /See:/ 'newDeletePolicy' smart constructor. data DeletePolicy = DeletePolicy' { } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeletePolicy' with all optional fields omitted. -- -- Use or to modify other optional fields. newDeletePolicy :: DeletePolicy newDeletePolicy = DeletePolicy' instance Core.AWSRequest DeletePolicy where type AWSResponse DeletePolicy = DeletePolicyResponse request overrides = Request.delete (overrides defaultService) response = Response.receiveEmpty ( \s h x -> DeletePolicyResponse' Prelude.<$> (Prelude.pure (Prelude.fromEnum s)) ) instance Prelude.Hashable DeletePolicy where hashWithSalt _salt _ = _salt `Prelude.hashWithSalt` () instance Prelude.NFData DeletePolicy where rnf _ = () instance Data.ToHeaders DeletePolicy where toHeaders = Prelude.const ( Prelude.mconcat [ "Content-Type" Data.=# ( "application/x-amz-json-1.1" :: Prelude.ByteString ) ] ) instance Data.ToPath DeletePolicy where toPath = Prelude.const "/2017-08-29/policy" instance Data.ToQuery DeletePolicy where toQuery = Prelude.const Prelude.mempty -- | /See:/ 'newDeletePolicyResponse' smart constructor. data DeletePolicyResponse = DeletePolicyResponse' { -- | The response's http status code. httpStatus :: Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeletePolicyResponse' 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: -- -- 'httpStatus', 'deletePolicyResponse_httpStatus' - The response's http status code. newDeletePolicyResponse :: -- | 'httpStatus' Prelude.Int -> DeletePolicyResponse newDeletePolicyResponse pHttpStatus_ = DeletePolicyResponse' {httpStatus = pHttpStatus_} -- | The response's http status code. deletePolicyResponse_httpStatus :: Lens.Lens' DeletePolicyResponse Prelude.Int deletePolicyResponse_httpStatus = Lens.lens (\DeletePolicyResponse' {httpStatus} -> httpStatus) (\s@DeletePolicyResponse' {} a -> s {httpStatus = a} :: DeletePolicyResponse) instance Prelude.NFData DeletePolicyResponse where rnf DeletePolicyResponse' {..} = Prelude.rnf httpStatus