amazonka-redshift-1.6.1: Amazon Redshift SDK.

Copyright(c) 2013-2018 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone
LanguageHaskell2010

Network.AWS.Redshift.EnableLogging

Contents

Description

Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.

Synopsis

Creating a Request

enableLogging Source #

Creates a value of EnableLogging with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

  • elS3KeyPrefix - The prefix applied to the log file names. Constraints: * Cannot exceed 512 characters * Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (), or control characters. The hexadecimal codes for invalid characters are: * x00 to x20 * x22 * x27 * x5c * x7f or larger
  • elClusterIdentifier - The identifier of the cluster on which logging is to be started. Example: examplecluster
  • elBucketName - The name of an existing S3 bucket where the log files are to be stored. Constraints: * Must be in the same region as the cluster * The cluster must have read bucket and put object permissions

data EnableLogging Source #

See: enableLogging smart constructor.

Instances
Eq EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Data EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> EnableLogging -> c EnableLogging #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c EnableLogging #

toConstr :: EnableLogging -> Constr #

dataTypeOf :: EnableLogging -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c EnableLogging) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c EnableLogging) #

gmapT :: (forall b. Data b => b -> b) -> EnableLogging -> EnableLogging #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> EnableLogging -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> EnableLogging -> r #

gmapQ :: (forall d. Data d => d -> u) -> EnableLogging -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> EnableLogging -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> EnableLogging -> m EnableLogging #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableLogging -> m EnableLogging #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> EnableLogging -> m EnableLogging #

Read EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Show EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Generic EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Associated Types

type Rep EnableLogging :: Type -> Type #

Hashable EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

AWSRequest EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Associated Types

type Rs EnableLogging :: Type #

ToHeaders EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

ToPath EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

ToQuery EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

NFData EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Methods

rnf :: EnableLogging -> () #

type Rep EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

type Rep EnableLogging = D1 (MetaData "EnableLogging" "Network.AWS.Redshift.EnableLogging" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "EnableLogging'" PrefixI True) (S1 (MetaSel (Just "_elS3KeyPrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_elClusterIdentifier") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text) :*: S1 (MetaSel (Just "_elBucketName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 Text))))
type Rs EnableLogging Source # 
Instance details

Defined in Network.AWS.Redshift.EnableLogging

Request Lenses

elS3KeyPrefix :: Lens' EnableLogging (Maybe Text) Source #

The prefix applied to the log file names. Constraints: * Cannot exceed 512 characters * Cannot contain spaces( ), double quotes ("), single quotes ('), a backslash (), or control characters. The hexadecimal codes for invalid characters are: * x00 to x20 * x22 * x27 * x5c * x7f or larger

elClusterIdentifier :: Lens' EnableLogging Text Source #

The identifier of the cluster on which logging is to be started. Example: examplecluster

elBucketName :: Lens' EnableLogging Text Source #

The name of an existing S3 bucket where the log files are to be stored. Constraints: * Must be in the same region as the cluster * The cluster must have read bucket and put object permissions

Destructuring the Response

loggingStatus :: LoggingStatus Source #

Creates a value of LoggingStatus with the minimum fields required to make a request.

Use one of the following lenses to modify other fields as desired:

data LoggingStatus Source #

Describes the status of logging for a cluster.

See: loggingStatus smart constructor.

Instances
Eq LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

Data LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

Methods

gfoldl :: (forall d b. Data d => c (d -> b) -> d -> c b) -> (forall g. g -> c g) -> LoggingStatus -> c LoggingStatus #

gunfold :: (forall b r. Data b => c (b -> r) -> c r) -> (forall r. r -> c r) -> Constr -> c LoggingStatus #

toConstr :: LoggingStatus -> Constr #

dataTypeOf :: LoggingStatus -> DataType #

dataCast1 :: Typeable t => (forall d. Data d => c (t d)) -> Maybe (c LoggingStatus) #

dataCast2 :: Typeable t => (forall d e. (Data d, Data e) => c (t d e)) -> Maybe (c LoggingStatus) #

gmapT :: (forall b. Data b => b -> b) -> LoggingStatus -> LoggingStatus #

gmapQl :: (r -> r' -> r) -> r -> (forall d. Data d => d -> r') -> LoggingStatus -> r #

gmapQr :: (r' -> r -> r) -> r -> (forall d. Data d => d -> r') -> LoggingStatus -> r #

gmapQ :: (forall d. Data d => d -> u) -> LoggingStatus -> [u] #

gmapQi :: Int -> (forall d. Data d => d -> u) -> LoggingStatus -> u #

gmapM :: Monad m => (forall d. Data d => d -> m d) -> LoggingStatus -> m LoggingStatus #

gmapMp :: MonadPlus m => (forall d. Data d => d -> m d) -> LoggingStatus -> m LoggingStatus #

gmapMo :: MonadPlus m => (forall d. Data d => d -> m d) -> LoggingStatus -> m LoggingStatus #

Read LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

Show LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

Generic LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

Associated Types

type Rep LoggingStatus :: Type -> Type #

Hashable LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

FromXML LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

NFData LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

Methods

rnf :: LoggingStatus -> () #

type Rep LoggingStatus Source # 
Instance details

Defined in Network.AWS.Redshift.Types.Product

type Rep LoggingStatus = D1 (MetaData "LoggingStatus" "Network.AWS.Redshift.Types.Product" "amazonka-redshift-1.6.1-5k9dueihUQf2a2gxNGkSPi" False) (C1 (MetaCons "LoggingStatus'" PrefixI True) ((S1 (MetaSel (Just "_lsLastFailureTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 (MetaSel (Just "_lsLastSuccessfulDeliveryTime") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 (MetaSel (Just "_lsS3KeyPrefix") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 (MetaSel (Just "_lsBucketName") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 (MetaSel (Just "_lsLoggingEnabled") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 (MetaSel (Just "_lsLastFailureMessage") NoSourceUnpackedness SourceStrict DecidedStrict) (Rec0 (Maybe Text))))))

Response Lenses

lsLastFailureTime :: Lens' LoggingStatus (Maybe UTCTime) Source #

The last time when logs failed to be delivered.

lsLastSuccessfulDeliveryTime :: Lens' LoggingStatus (Maybe UTCTime) Source #

The last time that logs were delivered.

lsS3KeyPrefix :: Lens' LoggingStatus (Maybe Text) Source #

The prefix applied to the log file names.

lsBucketName :: Lens' LoggingStatus (Maybe Text) Source #

The name of the S3 bucket where the log files are stored.

lsLoggingEnabled :: Lens' LoggingStatus (Maybe Bool) Source #

true if logging is on, false if logging is off.

lsLastFailureMessage :: Lens' LoggingStatus (Maybe Text) Source #

The message indicating that logs failed to be delivered.