{-# 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.SMS.DeleteAppReplicationConfiguration -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) -- -- Deletes the replication configuration for the specified application. module Amazonka.SMS.DeleteAppReplicationConfiguration ( -- * Creating a Request DeleteAppReplicationConfiguration (..), newDeleteAppReplicationConfiguration, -- * Request Lenses deleteAppReplicationConfiguration_appId, -- * Destructuring the Response DeleteAppReplicationConfigurationResponse (..), newDeleteAppReplicationConfigurationResponse, -- * Response Lenses deleteAppReplicationConfigurationResponse_httpStatus, ) 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.SMS.Types -- | /See:/ 'newDeleteAppReplicationConfiguration' smart constructor. data DeleteAppReplicationConfiguration = DeleteAppReplicationConfiguration' { -- | The ID of the application. appId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeleteAppReplicationConfiguration' 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: -- -- 'appId', 'deleteAppReplicationConfiguration_appId' - The ID of the application. newDeleteAppReplicationConfiguration :: DeleteAppReplicationConfiguration newDeleteAppReplicationConfiguration = DeleteAppReplicationConfiguration' { appId = Prelude.Nothing } -- | The ID of the application. deleteAppReplicationConfiguration_appId :: Lens.Lens' DeleteAppReplicationConfiguration (Prelude.Maybe Prelude.Text) deleteAppReplicationConfiguration_appId = Lens.lens (\DeleteAppReplicationConfiguration' {appId} -> appId) (\s@DeleteAppReplicationConfiguration' {} a -> s {appId = a} :: DeleteAppReplicationConfiguration) instance Core.AWSRequest DeleteAppReplicationConfiguration where type AWSResponse DeleteAppReplicationConfiguration = DeleteAppReplicationConfigurationResponse request overrides = Request.postJSON (overrides defaultService) response = Response.receiveEmpty ( \s h x -> DeleteAppReplicationConfigurationResponse' Prelude.<$> (Prelude.pure (Prelude.fromEnum s)) ) instance Prelude.Hashable DeleteAppReplicationConfiguration where hashWithSalt _salt DeleteAppReplicationConfiguration' {..} = _salt `Prelude.hashWithSalt` appId instance Prelude.NFData DeleteAppReplicationConfiguration where rnf DeleteAppReplicationConfiguration' {..} = Prelude.rnf appId instance Data.ToHeaders DeleteAppReplicationConfiguration where toHeaders = Prelude.const ( Prelude.mconcat [ "X-Amz-Target" Data.=# ( "AWSServerMigrationService_V2016_10_24.DeleteAppReplicationConfiguration" :: Prelude.ByteString ), "Content-Type" Data.=# ( "application/x-amz-json-1.1" :: Prelude.ByteString ) ] ) instance Data.ToJSON DeleteAppReplicationConfiguration where toJSON DeleteAppReplicationConfiguration' {..} = Data.object ( Prelude.catMaybes [("appId" Data..=) Prelude.<$> appId] ) instance Data.ToPath DeleteAppReplicationConfiguration where toPath = Prelude.const "/" instance Data.ToQuery DeleteAppReplicationConfiguration where toQuery = Prelude.const Prelude.mempty -- | /See:/ 'newDeleteAppReplicationConfigurationResponse' smart constructor. data DeleteAppReplicationConfigurationResponse = DeleteAppReplicationConfigurationResponse' { -- | The response's http status code. httpStatus :: Prelude.Int } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'DeleteAppReplicationConfigurationResponse' 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', 'deleteAppReplicationConfigurationResponse_httpStatus' - The response's http status code. newDeleteAppReplicationConfigurationResponse :: -- | 'httpStatus' Prelude.Int -> DeleteAppReplicationConfigurationResponse newDeleteAppReplicationConfigurationResponse pHttpStatus_ = DeleteAppReplicationConfigurationResponse' { httpStatus = pHttpStatus_ } -- | The response's http status code. deleteAppReplicationConfigurationResponse_httpStatus :: Lens.Lens' DeleteAppReplicationConfigurationResponse Prelude.Int deleteAppReplicationConfigurationResponse_httpStatus = Lens.lens (\DeleteAppReplicationConfigurationResponse' {httpStatus} -> httpStatus) (\s@DeleteAppReplicationConfigurationResponse' {} a -> s {httpStatus = a} :: DeleteAppReplicationConfigurationResponse) instance Prelude.NFData DeleteAppReplicationConfigurationResponse where rnf DeleteAppReplicationConfigurationResponse' {..} = Prelude.rnf httpStatus