{-# LANGUAGE DeriveGeneric #-} {-# LANGUAGE DuplicateRecordFields #-} {-# LANGUAGE NamedFieldPuns #-} {-# LANGUAGE OverloadedStrings #-} {-# LANGUAGE RecordWildCards #-} {-# LANGUAGE StrictData #-} {-# LANGUAGE NoImplicitPrelude #-} {-# OPTIONS_GHC -fno-warn-unused-imports #-} {-# OPTIONS_GHC -fno-warn-unused-matches #-} -- Derived from AWS service descriptions, licensed under Apache 2.0. -- | -- Module : Amazonka.DataExchange.Types.ExportAssetToSignedUrlResponseDetails -- Copyright : (c) 2013-2023 Brendan Hay -- License : Mozilla Public License, v. 2.0. -- Maintainer : Brendan Hay -- Stability : auto-generated -- Portability : non-portable (GHC extensions) module Amazonka.DataExchange.Types.ExportAssetToSignedUrlResponseDetails 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 -- | The details of the export to signed URL response. -- -- /See:/ 'newExportAssetToSignedUrlResponseDetails' smart constructor. data ExportAssetToSignedUrlResponseDetails = ExportAssetToSignedUrlResponseDetails' { -- | The signed URL for the export request. signedUrl :: Prelude.Maybe Prelude.Text, -- | The date and time that the signed URL expires, in ISO 8601 format. signedUrlExpiresAt :: Prelude.Maybe Data.ISO8601, -- | The unique identifier for the asset associated with this export job. assetId :: Prelude.Text, -- | The unique identifier for the data set associated with this export job. dataSetId :: Prelude.Text, -- | The unique identifier for the revision associated with this export -- response. revisionId :: Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ExportAssetToSignedUrlResponseDetails' 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: -- -- 'signedUrl', 'exportAssetToSignedUrlResponseDetails_signedUrl' - The signed URL for the export request. -- -- 'signedUrlExpiresAt', 'exportAssetToSignedUrlResponseDetails_signedUrlExpiresAt' - The date and time that the signed URL expires, in ISO 8601 format. -- -- 'assetId', 'exportAssetToSignedUrlResponseDetails_assetId' - The unique identifier for the asset associated with this export job. -- -- 'dataSetId', 'exportAssetToSignedUrlResponseDetails_dataSetId' - The unique identifier for the data set associated with this export job. -- -- 'revisionId', 'exportAssetToSignedUrlResponseDetails_revisionId' - The unique identifier for the revision associated with this export -- response. newExportAssetToSignedUrlResponseDetails :: -- | 'assetId' Prelude.Text -> -- | 'dataSetId' Prelude.Text -> -- | 'revisionId' Prelude.Text -> ExportAssetToSignedUrlResponseDetails newExportAssetToSignedUrlResponseDetails pAssetId_ pDataSetId_ pRevisionId_ = ExportAssetToSignedUrlResponseDetails' { signedUrl = Prelude.Nothing, signedUrlExpiresAt = Prelude.Nothing, assetId = pAssetId_, dataSetId = pDataSetId_, revisionId = pRevisionId_ } -- | The signed URL for the export request. exportAssetToSignedUrlResponseDetails_signedUrl :: Lens.Lens' ExportAssetToSignedUrlResponseDetails (Prelude.Maybe Prelude.Text) exportAssetToSignedUrlResponseDetails_signedUrl = Lens.lens (\ExportAssetToSignedUrlResponseDetails' {signedUrl} -> signedUrl) (\s@ExportAssetToSignedUrlResponseDetails' {} a -> s {signedUrl = a} :: ExportAssetToSignedUrlResponseDetails) -- | The date and time that the signed URL expires, in ISO 8601 format. exportAssetToSignedUrlResponseDetails_signedUrlExpiresAt :: Lens.Lens' ExportAssetToSignedUrlResponseDetails (Prelude.Maybe Prelude.UTCTime) exportAssetToSignedUrlResponseDetails_signedUrlExpiresAt = Lens.lens (\ExportAssetToSignedUrlResponseDetails' {signedUrlExpiresAt} -> signedUrlExpiresAt) (\s@ExportAssetToSignedUrlResponseDetails' {} a -> s {signedUrlExpiresAt = a} :: ExportAssetToSignedUrlResponseDetails) Prelude.. Lens.mapping Data._Time -- | The unique identifier for the asset associated with this export job. exportAssetToSignedUrlResponseDetails_assetId :: Lens.Lens' ExportAssetToSignedUrlResponseDetails Prelude.Text exportAssetToSignedUrlResponseDetails_assetId = Lens.lens (\ExportAssetToSignedUrlResponseDetails' {assetId} -> assetId) (\s@ExportAssetToSignedUrlResponseDetails' {} a -> s {assetId = a} :: ExportAssetToSignedUrlResponseDetails) -- | The unique identifier for the data set associated with this export job. exportAssetToSignedUrlResponseDetails_dataSetId :: Lens.Lens' ExportAssetToSignedUrlResponseDetails Prelude.Text exportAssetToSignedUrlResponseDetails_dataSetId = Lens.lens (\ExportAssetToSignedUrlResponseDetails' {dataSetId} -> dataSetId) (\s@ExportAssetToSignedUrlResponseDetails' {} a -> s {dataSetId = a} :: ExportAssetToSignedUrlResponseDetails) -- | The unique identifier for the revision associated with this export -- response. exportAssetToSignedUrlResponseDetails_revisionId :: Lens.Lens' ExportAssetToSignedUrlResponseDetails Prelude.Text exportAssetToSignedUrlResponseDetails_revisionId = Lens.lens (\ExportAssetToSignedUrlResponseDetails' {revisionId} -> revisionId) (\s@ExportAssetToSignedUrlResponseDetails' {} a -> s {revisionId = a} :: ExportAssetToSignedUrlResponseDetails) instance Data.FromJSON ExportAssetToSignedUrlResponseDetails where parseJSON = Data.withObject "ExportAssetToSignedUrlResponseDetails" ( \x -> ExportAssetToSignedUrlResponseDetails' Prelude.<$> (x Data..:? "SignedUrl") Prelude.<*> (x Data..:? "SignedUrlExpiresAt") Prelude.<*> (x Data..: "AssetId") Prelude.<*> (x Data..: "DataSetId") Prelude.<*> (x Data..: "RevisionId") ) instance Prelude.Hashable ExportAssetToSignedUrlResponseDetails where hashWithSalt _salt ExportAssetToSignedUrlResponseDetails' {..} = _salt `Prelude.hashWithSalt` signedUrl `Prelude.hashWithSalt` signedUrlExpiresAt `Prelude.hashWithSalt` assetId `Prelude.hashWithSalt` dataSetId `Prelude.hashWithSalt` revisionId instance Prelude.NFData ExportAssetToSignedUrlResponseDetails where rnf ExportAssetToSignedUrlResponseDetails' {..} = Prelude.rnf signedUrl `Prelude.seq` Prelude.rnf signedUrlExpiresAt `Prelude.seq` Prelude.rnf assetId `Prelude.seq` Prelude.rnf dataSetId `Prelude.seq` Prelude.rnf revisionId