{-# 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.StepFunctions.Types.ActivityListItem -- 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.StepFunctions.Types.ActivityListItem 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 -- | Contains details about an activity. -- -- /See:/ 'newActivityListItem' smart constructor. data ActivityListItem = ActivityListItem' { -- | The Amazon Resource Name (ARN) that identifies the activity. activityArn :: Prelude.Text, -- | The name of the activity. -- -- A name must /not/ contain: -- -- - white space -- -- - brackets @\< > { } [ ]@ -- -- - wildcard characters @? *@ -- -- - special characters @\" # % \\ ^ | ~ \` $ & , ; : \/@ -- -- - control characters (@U+0000-001F@, @U+007F-009F@) -- -- To enable logging with CloudWatch Logs, the name should only contain -- 0-9, A-Z, a-z, - and _. name :: Prelude.Text, -- | The date the activity is created. creationDate :: Data.POSIX } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'ActivityListItem' 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: -- -- 'activityArn', 'activityListItem_activityArn' - The Amazon Resource Name (ARN) that identifies the activity. -- -- 'name', 'activityListItem_name' - The name of the activity. -- -- A name must /not/ contain: -- -- - white space -- -- - brackets @\< > { } [ ]@ -- -- - wildcard characters @? *@ -- -- - special characters @\" # % \\ ^ | ~ \` $ & , ; : \/@ -- -- - control characters (@U+0000-001F@, @U+007F-009F@) -- -- To enable logging with CloudWatch Logs, the name should only contain -- 0-9, A-Z, a-z, - and _. -- -- 'creationDate', 'activityListItem_creationDate' - The date the activity is created. newActivityListItem :: -- | 'activityArn' Prelude.Text -> -- | 'name' Prelude.Text -> -- | 'creationDate' Prelude.UTCTime -> ActivityListItem newActivityListItem pActivityArn_ pName_ pCreationDate_ = ActivityListItem' { activityArn = pActivityArn_, name = pName_, creationDate = Data._Time Lens.# pCreationDate_ } -- | The Amazon Resource Name (ARN) that identifies the activity. activityListItem_activityArn :: Lens.Lens' ActivityListItem Prelude.Text activityListItem_activityArn = Lens.lens (\ActivityListItem' {activityArn} -> activityArn) (\s@ActivityListItem' {} a -> s {activityArn = a} :: ActivityListItem) -- | The name of the activity. -- -- A name must /not/ contain: -- -- - white space -- -- - brackets @\< > { } [ ]@ -- -- - wildcard characters @? *@ -- -- - special characters @\" # % \\ ^ | ~ \` $ & , ; : \/@ -- -- - control characters (@U+0000-001F@, @U+007F-009F@) -- -- To enable logging with CloudWatch Logs, the name should only contain -- 0-9, A-Z, a-z, - and _. activityListItem_name :: Lens.Lens' ActivityListItem Prelude.Text activityListItem_name = Lens.lens (\ActivityListItem' {name} -> name) (\s@ActivityListItem' {} a -> s {name = a} :: ActivityListItem) -- | The date the activity is created. activityListItem_creationDate :: Lens.Lens' ActivityListItem Prelude.UTCTime activityListItem_creationDate = Lens.lens (\ActivityListItem' {creationDate} -> creationDate) (\s@ActivityListItem' {} a -> s {creationDate = a} :: ActivityListItem) Prelude.. Data._Time instance Data.FromJSON ActivityListItem where parseJSON = Data.withObject "ActivityListItem" ( \x -> ActivityListItem' Prelude.<$> (x Data..: "activityArn") Prelude.<*> (x Data..: "name") Prelude.<*> (x Data..: "creationDate") ) instance Prelude.Hashable ActivityListItem where hashWithSalt _salt ActivityListItem' {..} = _salt `Prelude.hashWithSalt` activityArn `Prelude.hashWithSalt` name `Prelude.hashWithSalt` creationDate instance Prelude.NFData ActivityListItem where rnf ActivityListItem' {..} = Prelude.rnf activityArn `Prelude.seq` Prelude.rnf name `Prelude.seq` Prelude.rnf creationDate