| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.AWS.Redshift.EnableLogging
Description
Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
http://docs.aws.amazon.com/redshift/latest/APIReference/API_EnableLogging.html
- data EnableLogging
- enableLogging :: Text -> Text -> EnableLogging
- elBucketName :: Lens' EnableLogging Text
- elClusterIdentifier :: Lens' EnableLogging Text
- elS3KeyPrefix :: Lens' EnableLogging (Maybe Text)
- data EnableLoggingResponse
- enableLoggingResponse :: EnableLoggingResponse
- elrBucketName :: Lens' EnableLoggingResponse (Maybe Text)
- elrLastFailureMessage :: Lens' EnableLoggingResponse (Maybe Text)
- elrLastFailureTime :: Lens' EnableLoggingResponse (Maybe UTCTime)
- elrLastSuccessfulDeliveryTime :: Lens' EnableLoggingResponse (Maybe UTCTime)
- elrLoggingEnabled :: Lens' EnableLoggingResponse (Maybe Bool)
- elrS3KeyPrefix :: Lens' EnableLoggingResponse (Maybe Text)
Request
data EnableLogging Source
Instances
| Eq EnableLogging | |
| Ord EnableLogging | |
| Read EnableLogging | |
| Show EnableLogging | |
| AWSRequest EnableLogging | |
| ToQuery EnableLogging | |
| ToPath EnableLogging | |
| ToHeaders EnableLogging | |
| type Sv EnableLogging = Redshift | |
| type Rs EnableLogging = EnableLoggingResponse |
Request constructor
Arguments
| :: Text | |
| -> Text | |
| -> EnableLogging |
EnableLogging constructor.
The fields accessible through corresponding lenses are:
elBucketName::TextelClusterIdentifier::TextelS3KeyPrefix::MaybeText
Request lenses
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
elClusterIdentifier :: Lens' EnableLogging Text Source
The identifier of the cluster on which logging is to be started.
Example: examplecluster
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
Response
Response constructor
enableLoggingResponse :: EnableLoggingResponse Source
EnableLoggingResponse constructor.
The fields accessible through corresponding lenses are:
elrBucketName::MaybeTextelrLastFailureMessage::MaybeTextelrLastFailureTime::MaybeUTCTimeelrLastSuccessfulDeliveryTime::MaybeUTCTimeelrLoggingEnabled::MaybeBoolelrS3KeyPrefix::MaybeText
Response lenses
elrBucketName :: Lens' EnableLoggingResponse (Maybe Text) Source
The name of the S3 bucket where the log files are stored.
elrLastFailureMessage :: Lens' EnableLoggingResponse (Maybe Text) Source
The message indicating that logs failed to be delivered.
elrLastFailureTime :: Lens' EnableLoggingResponse (Maybe UTCTime) Source
The last time when logs failed to be delivered.
elrLastSuccessfulDeliveryTime :: Lens' EnableLoggingResponse (Maybe UTCTime) Source
The last time when logs were delivered.
elrLoggingEnabled :: Lens' EnableLoggingResponse (Maybe Bool) Source
true if logging is on, false if logging is off.
elrS3KeyPrefix :: Lens' EnableLoggingResponse (Maybe Text) Source
The prefix applied to the log file names.