{-# 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.Redshift.Types.VpcSecurityGroupMembership -- 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.Redshift.Types.VpcSecurityGroupMembership 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 Amazonka.Redshift.Internal -- | Describes the members of a VPC security group. -- -- /See:/ 'newVpcSecurityGroupMembership' smart constructor. data VpcSecurityGroupMembership = VpcSecurityGroupMembership' { -- | The status of the VPC security group. status :: Prelude.Maybe Prelude.Text, -- | The identifier of the VPC security group. vpcSecurityGroupId :: Prelude.Maybe Prelude.Text } deriving (Prelude.Eq, Prelude.Read, Prelude.Show, Prelude.Generic) -- | -- Create a value of 'VpcSecurityGroupMembership' 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: -- -- 'status', 'vpcSecurityGroupMembership_status' - The status of the VPC security group. -- -- 'vpcSecurityGroupId', 'vpcSecurityGroupMembership_vpcSecurityGroupId' - The identifier of the VPC security group. newVpcSecurityGroupMembership :: VpcSecurityGroupMembership newVpcSecurityGroupMembership = VpcSecurityGroupMembership' { status = Prelude.Nothing, vpcSecurityGroupId = Prelude.Nothing } -- | The status of the VPC security group. vpcSecurityGroupMembership_status :: Lens.Lens' VpcSecurityGroupMembership (Prelude.Maybe Prelude.Text) vpcSecurityGroupMembership_status = Lens.lens (\VpcSecurityGroupMembership' {status} -> status) (\s@VpcSecurityGroupMembership' {} a -> s {status = a} :: VpcSecurityGroupMembership) -- | The identifier of the VPC security group. vpcSecurityGroupMembership_vpcSecurityGroupId :: Lens.Lens' VpcSecurityGroupMembership (Prelude.Maybe Prelude.Text) vpcSecurityGroupMembership_vpcSecurityGroupId = Lens.lens (\VpcSecurityGroupMembership' {vpcSecurityGroupId} -> vpcSecurityGroupId) (\s@VpcSecurityGroupMembership' {} a -> s {vpcSecurityGroupId = a} :: VpcSecurityGroupMembership) instance Data.FromXML VpcSecurityGroupMembership where parseXML x = VpcSecurityGroupMembership' Prelude.<$> (x Data..@? "Status") Prelude.<*> (x Data..@? "VpcSecurityGroupId") instance Prelude.Hashable VpcSecurityGroupMembership where hashWithSalt _salt VpcSecurityGroupMembership' {..} = _salt `Prelude.hashWithSalt` status `Prelude.hashWithSalt` vpcSecurityGroupId instance Prelude.NFData VpcSecurityGroupMembership where rnf VpcSecurityGroupMembership' {..} = Prelude.rnf status `Prelude.seq` Prelude.rnf vpcSecurityGroupId