{-# 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.Nimble.Types.LaunchProfileMembership -- 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.Nimble.Types.LaunchProfileMembership where import qualified Amazonka.Core as Core import qualified Amazonka.Core.Lens.Internal as Lens import qualified Amazonka.Data as Data import Amazonka.Nimble.Types.LaunchProfilePersona import qualified Amazonka.Prelude as Prelude -- | Studio admins can use launch profile membership to delegate launch -- profile access to studio users in the Nimble Studio portal without -- writing or maintaining complex IAM policies. A launch profile member is -- a user association from your studio identity source who is granted -- permissions to a launch profile. -- -- A launch profile member (type USER) provides the following permissions -- to that launch profile: -- -- - GetLaunchProfile -- -- - GetLaunchProfileInitialization -- -- - GetLaunchProfileMembers -- -- - GetLaunchProfileMember -- -- - CreateStreamingSession -- -- - GetLaunchProfileDetails -- -- /See:/ 'newLaunchProfileMembership' smart constructor. data LaunchProfileMembership = LaunchProfileMembership' { -- | The ID of the identity store. identityStoreId :: Prelude.Maybe Prelude.Text, -- | The persona. persona :: Prelude.Maybe LaunchProfilePersona, -- | The principal ID. principalId :: Prelude.Maybe Prelude.Text, -- | The Active Directory Security Identifier for this user, if available. sid :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'LaunchProfileMembership' 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: -- -- 'identityStoreId', 'launchProfileMembership_identityStoreId' - The ID of the identity store. -- -- 'persona', 'launchProfileMembership_persona' - The persona. -- -- 'principalId', 'launchProfileMembership_principalId' - The principal ID. -- -- 'sid', 'launchProfileMembership_sid' - The Active Directory Security Identifier for this user, if available. newLaunchProfileMembership :: LaunchProfileMembership newLaunchProfileMembership = LaunchProfileMembership' { identityStoreId = Prelude.Nothing, persona = Prelude.Nothing, principalId = Prelude.Nothing, sid = Prelude.Nothing } -- | The ID of the identity store. launchProfileMembership_identityStoreId :: Lens.Lens' LaunchProfileMembership (Prelude.Maybe Prelude.Text) launchProfileMembership_identityStoreId = Lens.lens (\LaunchProfileMembership' {identityStoreId} -> identityStoreId) (\s@LaunchProfileMembership' {} a -> s {identityStoreId = a} :: LaunchProfileMembership) -- | The persona. launchProfileMembership_persona :: Lens.Lens' LaunchProfileMembership (Prelude.Maybe LaunchProfilePersona) launchProfileMembership_persona = Lens.lens (\LaunchProfileMembership' {persona} -> persona) (\s@LaunchProfileMembership' {} a -> s {persona = a} :: LaunchProfileMembership) -- | The principal ID. launchProfileMembership_principalId :: Lens.Lens' LaunchProfileMembership (Prelude.Maybe Prelude.Text) launchProfileMembership_principalId = Lens.lens (\LaunchProfileMembership' {principalId} -> principalId) (\s@LaunchProfileMembership' {} a -> s {principalId = a} :: LaunchProfileMembership) -- | The Active Directory Security Identifier for this user, if available. launchProfileMembership_sid :: Lens.Lens' LaunchProfileMembership (Prelude.Maybe Prelude.Text) launchProfileMembership_sid = Lens.lens (\LaunchProfileMembership' {sid} -> sid) (\s@LaunchProfileMembership' {} a -> s {sid = a} :: LaunchProfileMembership) instance Data.FromJSON LaunchProfileMembership where parseJSON = Data.withObject "LaunchProfileMembership" ( \x -> LaunchProfileMembership' Prelude.<$> (x Data..:? "identityStoreId") Prelude.<*> (x Data..:? "persona") Prelude.<*> (x Data..:? "principalId") Prelude.<*> (x Data..:? "sid") ) instance Prelude.Hashable LaunchProfileMembership where hashWithSalt _salt LaunchProfileMembership' {..} = _salt `Prelude.hashWithSalt` identityStoreId `Prelude.hashWithSalt` persona `Prelude.hashWithSalt` principalId `Prelude.hashWithSalt` sid instance Prelude.NFData LaunchProfileMembership where rnf LaunchProfileMembership' {..} = Prelude.rnf identityStoreId `Prelude.seq` Prelude.rnf persona `Prelude.seq` Prelude.rnf principalId `Prelude.seq` Prelude.rnf sid