{-# 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.StorageGateway.Types.FileSystemAssociationInfo
-- 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.StorageGateway.Types.FileSystemAssociationInfo 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.StorageGateway.Types.CacheAttributes
import Amazonka.StorageGateway.Types.EndpointNetworkConfiguration
import Amazonka.StorageGateway.Types.FileSystemAssociationStatusDetail
import Amazonka.StorageGateway.Types.Tag

-- | Describes the object returned by @DescribeFileSystemAssociations@ that
-- describes a created file system association.
--
-- /See:/ 'newFileSystemAssociationInfo' smart constructor.
data FileSystemAssociationInfo = FileSystemAssociationInfo'
  { -- | The Amazon Resource Name (ARN) of the storage used for the audit logs.
    FileSystemAssociationInfo -> Maybe Text
auditDestinationARN :: Prelude.Maybe Prelude.Text,
    FileSystemAssociationInfo -> Maybe CacheAttributes
cacheAttributes :: Prelude.Maybe CacheAttributes,
    -- | Specifies network configuration information for the gateway associated
    -- with the Amazon FSx file system.
    --
    -- If multiple file systems are associated with this gateway, this
    -- parameter\'s @IpAddresses@ field is required.
    FileSystemAssociationInfo -> Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration :: Prelude.Maybe EndpointNetworkConfiguration,
    -- | The Amazon Resource Name (ARN) of the file system association.
    FileSystemAssociationInfo -> Maybe Text
fileSystemAssociationARN :: Prelude.Maybe Prelude.Text,
    -- | The status of the file system association. Valid Values: @AVAILABLE@ |
    -- @CREATING@ | @DELETING@ | @FORCE_DELETING@ | @UPDATING@ | @ERROR@
    FileSystemAssociationInfo -> Maybe Text
fileSystemAssociationStatus :: Prelude.Maybe Prelude.Text,
    -- | An array containing the FileSystemAssociationStatusDetail data type,
    -- which provides detailed information on file system association status.
    FileSystemAssociationInfo
-> Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails :: Prelude.Maybe [FileSystemAssociationStatusDetail],
    FileSystemAssociationInfo -> Maybe Text
gatewayARN :: Prelude.Maybe Prelude.Text,
    -- | The ARN of the backend Amazon FSx file system used for storing file
    -- data. For information, see
    -- <https://docs.aws.amazon.com/fsx/latest/APIReference/API_FileSystem.html FileSystem>
    -- in the /Amazon FSx API Reference/.
    FileSystemAssociationInfo -> Maybe Text
locationARN :: Prelude.Maybe Prelude.Text,
    -- | A list of up to 50 tags assigned to the SMB file share, sorted
    -- alphabetically by key name. Each tag is a key-value pair.
    FileSystemAssociationInfo -> Maybe [Tag]
tags :: Prelude.Maybe [Tag]
  }
  deriving (FileSystemAssociationInfo -> FileSystemAssociationInfo -> Bool
forall a. (a -> a -> Bool) -> (a -> a -> Bool) -> Eq a
/= :: FileSystemAssociationInfo -> FileSystemAssociationInfo -> Bool
$c/= :: FileSystemAssociationInfo -> FileSystemAssociationInfo -> Bool
== :: FileSystemAssociationInfo -> FileSystemAssociationInfo -> Bool
$c== :: FileSystemAssociationInfo -> FileSystemAssociationInfo -> Bool
Prelude.Eq, ReadPrec [FileSystemAssociationInfo]
ReadPrec FileSystemAssociationInfo
Int -> ReadS FileSystemAssociationInfo
ReadS [FileSystemAssociationInfo]
forall a.
(Int -> ReadS a)
-> ReadS [a] -> ReadPrec a -> ReadPrec [a] -> Read a
readListPrec :: ReadPrec [FileSystemAssociationInfo]
$creadListPrec :: ReadPrec [FileSystemAssociationInfo]
readPrec :: ReadPrec FileSystemAssociationInfo
$creadPrec :: ReadPrec FileSystemAssociationInfo
readList :: ReadS [FileSystemAssociationInfo]
$creadList :: ReadS [FileSystemAssociationInfo]
readsPrec :: Int -> ReadS FileSystemAssociationInfo
$creadsPrec :: Int -> ReadS FileSystemAssociationInfo
Prelude.Read, Int -> FileSystemAssociationInfo -> ShowS
[FileSystemAssociationInfo] -> ShowS
FileSystemAssociationInfo -> String
forall a.
(Int -> a -> ShowS) -> (a -> String) -> ([a] -> ShowS) -> Show a
showList :: [FileSystemAssociationInfo] -> ShowS
$cshowList :: [FileSystemAssociationInfo] -> ShowS
show :: FileSystemAssociationInfo -> String
$cshow :: FileSystemAssociationInfo -> String
showsPrec :: Int -> FileSystemAssociationInfo -> ShowS
$cshowsPrec :: Int -> FileSystemAssociationInfo -> ShowS
Prelude.Show, forall x.
Rep FileSystemAssociationInfo x -> FileSystemAssociationInfo
forall x.
FileSystemAssociationInfo -> Rep FileSystemAssociationInfo x
forall a.
(forall x. a -> Rep a x) -> (forall x. Rep a x -> a) -> Generic a
$cto :: forall x.
Rep FileSystemAssociationInfo x -> FileSystemAssociationInfo
$cfrom :: forall x.
FileSystemAssociationInfo -> Rep FileSystemAssociationInfo x
Prelude.Generic)

-- |
-- Create a value of 'FileSystemAssociationInfo' with all optional fields omitted.
--
-- Use <https://hackage.haskell.org/package/generic-lens generic-lens> or <https://hackage.haskell.org/package/optics optics> to modify other optional fields.
--
-- The following record fields are available, with the corresponding lenses provided
-- for backwards compatibility:
--
-- 'auditDestinationARN', 'fileSystemAssociationInfo_auditDestinationARN' - The Amazon Resource Name (ARN) of the storage used for the audit logs.
--
-- 'cacheAttributes', 'fileSystemAssociationInfo_cacheAttributes' - Undocumented member.
--
-- 'endpointNetworkConfiguration', 'fileSystemAssociationInfo_endpointNetworkConfiguration' - Specifies network configuration information for the gateway associated
-- with the Amazon FSx file system.
--
-- If multiple file systems are associated with this gateway, this
-- parameter\'s @IpAddresses@ field is required.
--
-- 'fileSystemAssociationARN', 'fileSystemAssociationInfo_fileSystemAssociationARN' - The Amazon Resource Name (ARN) of the file system association.
--
-- 'fileSystemAssociationStatus', 'fileSystemAssociationInfo_fileSystemAssociationStatus' - The status of the file system association. Valid Values: @AVAILABLE@ |
-- @CREATING@ | @DELETING@ | @FORCE_DELETING@ | @UPDATING@ | @ERROR@
--
-- 'fileSystemAssociationStatusDetails', 'fileSystemAssociationInfo_fileSystemAssociationStatusDetails' - An array containing the FileSystemAssociationStatusDetail data type,
-- which provides detailed information on file system association status.
--
-- 'gatewayARN', 'fileSystemAssociationInfo_gatewayARN' - Undocumented member.
--
-- 'locationARN', 'fileSystemAssociationInfo_locationARN' - The ARN of the backend Amazon FSx file system used for storing file
-- data. For information, see
-- <https://docs.aws.amazon.com/fsx/latest/APIReference/API_FileSystem.html FileSystem>
-- in the /Amazon FSx API Reference/.
--
-- 'tags', 'fileSystemAssociationInfo_tags' - A list of up to 50 tags assigned to the SMB file share, sorted
-- alphabetically by key name. Each tag is a key-value pair.
newFileSystemAssociationInfo ::
  FileSystemAssociationInfo
newFileSystemAssociationInfo :: FileSystemAssociationInfo
newFileSystemAssociationInfo =
  FileSystemAssociationInfo'
    { $sel:auditDestinationARN:FileSystemAssociationInfo' :: Maybe Text
auditDestinationARN =
        forall a. Maybe a
Prelude.Nothing,
      $sel:cacheAttributes:FileSystemAssociationInfo' :: Maybe CacheAttributes
cacheAttributes = forall a. Maybe a
Prelude.Nothing,
      $sel:endpointNetworkConfiguration:FileSystemAssociationInfo' :: Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration = forall a. Maybe a
Prelude.Nothing,
      $sel:fileSystemAssociationARN:FileSystemAssociationInfo' :: Maybe Text
fileSystemAssociationARN = forall a. Maybe a
Prelude.Nothing,
      $sel:fileSystemAssociationStatus:FileSystemAssociationInfo' :: Maybe Text
fileSystemAssociationStatus = forall a. Maybe a
Prelude.Nothing,
      $sel:fileSystemAssociationStatusDetails:FileSystemAssociationInfo' :: Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails =
        forall a. Maybe a
Prelude.Nothing,
      $sel:gatewayARN:FileSystemAssociationInfo' :: Maybe Text
gatewayARN = forall a. Maybe a
Prelude.Nothing,
      $sel:locationARN:FileSystemAssociationInfo' :: Maybe Text
locationARN = forall a. Maybe a
Prelude.Nothing,
      $sel:tags:FileSystemAssociationInfo' :: Maybe [Tag]
tags = forall a. Maybe a
Prelude.Nothing
    }

-- | The Amazon Resource Name (ARN) of the storage used for the audit logs.
fileSystemAssociationInfo_auditDestinationARN :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe Prelude.Text)
fileSystemAssociationInfo_auditDestinationARN :: Lens' FileSystemAssociationInfo (Maybe Text)
fileSystemAssociationInfo_auditDestinationARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe Text
auditDestinationARN :: Maybe Text
$sel:auditDestinationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
auditDestinationARN} -> Maybe Text
auditDestinationARN) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe Text
a -> FileSystemAssociationInfo
s {$sel:auditDestinationARN:FileSystemAssociationInfo' :: Maybe Text
auditDestinationARN = Maybe Text
a} :: FileSystemAssociationInfo)

-- | Undocumented member.
fileSystemAssociationInfo_cacheAttributes :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe CacheAttributes)
fileSystemAssociationInfo_cacheAttributes :: Lens' FileSystemAssociationInfo (Maybe CacheAttributes)
fileSystemAssociationInfo_cacheAttributes = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe CacheAttributes
cacheAttributes :: Maybe CacheAttributes
$sel:cacheAttributes:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe CacheAttributes
cacheAttributes} -> Maybe CacheAttributes
cacheAttributes) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe CacheAttributes
a -> FileSystemAssociationInfo
s {$sel:cacheAttributes:FileSystemAssociationInfo' :: Maybe CacheAttributes
cacheAttributes = Maybe CacheAttributes
a} :: FileSystemAssociationInfo)

-- | Specifies network configuration information for the gateway associated
-- with the Amazon FSx file system.
--
-- If multiple file systems are associated with this gateway, this
-- parameter\'s @IpAddresses@ field is required.
fileSystemAssociationInfo_endpointNetworkConfiguration :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe EndpointNetworkConfiguration)
fileSystemAssociationInfo_endpointNetworkConfiguration :: Lens'
  FileSystemAssociationInfo (Maybe EndpointNetworkConfiguration)
fileSystemAssociationInfo_endpointNetworkConfiguration = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration :: Maybe EndpointNetworkConfiguration
$sel:endpointNetworkConfiguration:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration} -> Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe EndpointNetworkConfiguration
a -> FileSystemAssociationInfo
s {$sel:endpointNetworkConfiguration:FileSystemAssociationInfo' :: Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration = Maybe EndpointNetworkConfiguration
a} :: FileSystemAssociationInfo)

-- | The Amazon Resource Name (ARN) of the file system association.
fileSystemAssociationInfo_fileSystemAssociationARN :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe Prelude.Text)
fileSystemAssociationInfo_fileSystemAssociationARN :: Lens' FileSystemAssociationInfo (Maybe Text)
fileSystemAssociationInfo_fileSystemAssociationARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe Text
fileSystemAssociationARN :: Maybe Text
$sel:fileSystemAssociationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
fileSystemAssociationARN} -> Maybe Text
fileSystemAssociationARN) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe Text
a -> FileSystemAssociationInfo
s {$sel:fileSystemAssociationARN:FileSystemAssociationInfo' :: Maybe Text
fileSystemAssociationARN = Maybe Text
a} :: FileSystemAssociationInfo)

-- | The status of the file system association. Valid Values: @AVAILABLE@ |
-- @CREATING@ | @DELETING@ | @FORCE_DELETING@ | @UPDATING@ | @ERROR@
fileSystemAssociationInfo_fileSystemAssociationStatus :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe Prelude.Text)
fileSystemAssociationInfo_fileSystemAssociationStatus :: Lens' FileSystemAssociationInfo (Maybe Text)
fileSystemAssociationInfo_fileSystemAssociationStatus = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe Text
fileSystemAssociationStatus :: Maybe Text
$sel:fileSystemAssociationStatus:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
fileSystemAssociationStatus} -> Maybe Text
fileSystemAssociationStatus) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe Text
a -> FileSystemAssociationInfo
s {$sel:fileSystemAssociationStatus:FileSystemAssociationInfo' :: Maybe Text
fileSystemAssociationStatus = Maybe Text
a} :: FileSystemAssociationInfo)

-- | An array containing the FileSystemAssociationStatusDetail data type,
-- which provides detailed information on file system association status.
fileSystemAssociationInfo_fileSystemAssociationStatusDetails :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe [FileSystemAssociationStatusDetail])
fileSystemAssociationInfo_fileSystemAssociationStatusDetails :: Lens'
  FileSystemAssociationInfo
  (Maybe [FileSystemAssociationStatusDetail])
fileSystemAssociationInfo_fileSystemAssociationStatusDetails = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails :: Maybe [FileSystemAssociationStatusDetail]
$sel:fileSystemAssociationStatusDetails:FileSystemAssociationInfo' :: FileSystemAssociationInfo
-> Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails} -> Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe [FileSystemAssociationStatusDetail]
a -> FileSystemAssociationInfo
s {$sel:fileSystemAssociationStatusDetails:FileSystemAssociationInfo' :: Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails = Maybe [FileSystemAssociationStatusDetail]
a} :: FileSystemAssociationInfo) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

-- | Undocumented member.
fileSystemAssociationInfo_gatewayARN :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe Prelude.Text)
fileSystemAssociationInfo_gatewayARN :: Lens' FileSystemAssociationInfo (Maybe Text)
fileSystemAssociationInfo_gatewayARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe Text
gatewayARN :: Maybe Text
$sel:gatewayARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
gatewayARN} -> Maybe Text
gatewayARN) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe Text
a -> FileSystemAssociationInfo
s {$sel:gatewayARN:FileSystemAssociationInfo' :: Maybe Text
gatewayARN = Maybe Text
a} :: FileSystemAssociationInfo)

-- | The ARN of the backend Amazon FSx file system used for storing file
-- data. For information, see
-- <https://docs.aws.amazon.com/fsx/latest/APIReference/API_FileSystem.html FileSystem>
-- in the /Amazon FSx API Reference/.
fileSystemAssociationInfo_locationARN :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe Prelude.Text)
fileSystemAssociationInfo_locationARN :: Lens' FileSystemAssociationInfo (Maybe Text)
fileSystemAssociationInfo_locationARN = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe Text
locationARN :: Maybe Text
$sel:locationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
locationARN} -> Maybe Text
locationARN) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe Text
a -> FileSystemAssociationInfo
s {$sel:locationARN:FileSystemAssociationInfo' :: Maybe Text
locationARN = Maybe Text
a} :: FileSystemAssociationInfo)

-- | A list of up to 50 tags assigned to the SMB file share, sorted
-- alphabetically by key name. Each tag is a key-value pair.
fileSystemAssociationInfo_tags :: Lens.Lens' FileSystemAssociationInfo (Prelude.Maybe [Tag])
fileSystemAssociationInfo_tags :: Lens' FileSystemAssociationInfo (Maybe [Tag])
fileSystemAssociationInfo_tags = forall s a b t. (s -> a) -> (s -> b -> t) -> Lens s t a b
Lens.lens (\FileSystemAssociationInfo' {Maybe [Tag]
tags :: Maybe [Tag]
$sel:tags:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe [Tag]
tags} -> Maybe [Tag]
tags) (\s :: FileSystemAssociationInfo
s@FileSystemAssociationInfo' {} Maybe [Tag]
a -> FileSystemAssociationInfo
s {$sel:tags:FileSystemAssociationInfo' :: Maybe [Tag]
tags = Maybe [Tag]
a} :: FileSystemAssociationInfo) forall b c a. (b -> c) -> (a -> b) -> a -> c
Prelude.. forall (f :: * -> *) (g :: * -> *) s t a b.
(Functor f, Functor g) =>
AnIso s t a b -> Iso (f s) (g t) (f a) (g b)
Lens.mapping forall s t a b. (Coercible s a, Coercible t b) => Iso s t a b
Lens.coerced

instance Data.FromJSON FileSystemAssociationInfo where
  parseJSON :: Value -> Parser FileSystemAssociationInfo
parseJSON =
    forall a. String -> (Object -> Parser a) -> Value -> Parser a
Data.withObject
      String
"FileSystemAssociationInfo"
      ( \Object
x ->
          Maybe Text
-> Maybe CacheAttributes
-> Maybe EndpointNetworkConfiguration
-> Maybe Text
-> Maybe Text
-> Maybe [FileSystemAssociationStatusDetail]
-> Maybe Text
-> Maybe Text
-> Maybe [Tag]
-> FileSystemAssociationInfo
FileSystemAssociationInfo'
            forall (f :: * -> *) a b. Functor f => (a -> b) -> f a -> f b
Prelude.<$> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"AuditDestinationARN")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"CacheAttributes")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"EndpointNetworkConfiguration")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FileSystemAssociationARN")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FileSystemAssociationStatus")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> ( Object
x
                            forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"FileSystemAssociationStatusDetails"
                            forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty
                        )
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"GatewayARN")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"LocationARN")
            forall (f :: * -> *) a b. Applicative f => f (a -> b) -> f a -> f b
Prelude.<*> (Object
x forall a. FromJSON a => Object -> Key -> Parser (Maybe a)
Data..:? Key
"Tags" forall a. Parser (Maybe a) -> a -> Parser a
Data..!= forall a. Monoid a => a
Prelude.mempty)
      )

instance Prelude.Hashable FileSystemAssociationInfo where
  hashWithSalt :: Int -> FileSystemAssociationInfo -> Int
hashWithSalt Int
_salt FileSystemAssociationInfo' {Maybe [FileSystemAssociationStatusDetail]
Maybe [Tag]
Maybe Text
Maybe CacheAttributes
Maybe EndpointNetworkConfiguration
tags :: Maybe [Tag]
locationARN :: Maybe Text
gatewayARN :: Maybe Text
fileSystemAssociationStatusDetails :: Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatus :: Maybe Text
fileSystemAssociationARN :: Maybe Text
endpointNetworkConfiguration :: Maybe EndpointNetworkConfiguration
cacheAttributes :: Maybe CacheAttributes
auditDestinationARN :: Maybe Text
$sel:tags:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe [Tag]
$sel:locationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:gatewayARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:fileSystemAssociationStatusDetails:FileSystemAssociationInfo' :: FileSystemAssociationInfo
-> Maybe [FileSystemAssociationStatusDetail]
$sel:fileSystemAssociationStatus:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:fileSystemAssociationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:endpointNetworkConfiguration:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe EndpointNetworkConfiguration
$sel:cacheAttributes:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe CacheAttributes
$sel:auditDestinationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
..} =
    Int
_salt
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
auditDestinationARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe CacheAttributes
cacheAttributes
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileSystemAssociationARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
fileSystemAssociationStatus
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
gatewayARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe Text
locationARN
      forall a. Hashable a => Int -> a -> Int
`Prelude.hashWithSalt` Maybe [Tag]
tags

instance Prelude.NFData FileSystemAssociationInfo where
  rnf :: FileSystemAssociationInfo -> ()
rnf FileSystemAssociationInfo' {Maybe [FileSystemAssociationStatusDetail]
Maybe [Tag]
Maybe Text
Maybe CacheAttributes
Maybe EndpointNetworkConfiguration
tags :: Maybe [Tag]
locationARN :: Maybe Text
gatewayARN :: Maybe Text
fileSystemAssociationStatusDetails :: Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatus :: Maybe Text
fileSystemAssociationARN :: Maybe Text
endpointNetworkConfiguration :: Maybe EndpointNetworkConfiguration
cacheAttributes :: Maybe CacheAttributes
auditDestinationARN :: Maybe Text
$sel:tags:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe [Tag]
$sel:locationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:gatewayARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:fileSystemAssociationStatusDetails:FileSystemAssociationInfo' :: FileSystemAssociationInfo
-> Maybe [FileSystemAssociationStatusDetail]
$sel:fileSystemAssociationStatus:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:fileSystemAssociationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
$sel:endpointNetworkConfiguration:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe EndpointNetworkConfiguration
$sel:cacheAttributes:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe CacheAttributes
$sel:auditDestinationARN:FileSystemAssociationInfo' :: FileSystemAssociationInfo -> Maybe Text
..} =
    forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
auditDestinationARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe CacheAttributes
cacheAttributes
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe EndpointNetworkConfiguration
endpointNetworkConfiguration
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileSystemAssociationARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
fileSystemAssociationStatus
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [FileSystemAssociationStatusDetail]
fileSystemAssociationStatusDetails
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
gatewayARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe Text
locationARN
      seq :: forall a b. a -> b -> b
`Prelude.seq` forall a. NFData a => a -> ()
Prelude.rnf Maybe [Tag]
tags