| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.Redshift.EnableLogging
Description
Starts logging information, such as queries and connection attempts, for the specified Amazon Redshift cluster.
Synopsis
- data EnableLogging = EnableLogging' {}
- newEnableLogging :: Text -> EnableLogging
- enableLogging_bucketName :: Lens' EnableLogging (Maybe Text)
- enableLogging_logDestinationType :: Lens' EnableLogging (Maybe LogDestinationType)
- enableLogging_logExports :: Lens' EnableLogging (Maybe [Text])
- enableLogging_s3KeyPrefix :: Lens' EnableLogging (Maybe Text)
- enableLogging_clusterIdentifier :: Lens' EnableLogging Text
- data LoggingStatus = LoggingStatus' {}
- newLoggingStatus :: LoggingStatus
- loggingStatus_bucketName :: Lens' LoggingStatus (Maybe Text)
- loggingStatus_lastFailureMessage :: Lens' LoggingStatus (Maybe Text)
- loggingStatus_lastFailureTime :: Lens' LoggingStatus (Maybe UTCTime)
- loggingStatus_lastSuccessfulDeliveryTime :: Lens' LoggingStatus (Maybe UTCTime)
- loggingStatus_logDestinationType :: Lens' LoggingStatus (Maybe LogDestinationType)
- loggingStatus_logExports :: Lens' LoggingStatus (Maybe [Text])
- loggingStatus_loggingEnabled :: Lens' LoggingStatus (Maybe Bool)
- loggingStatus_s3KeyPrefix :: Lens' LoggingStatus (Maybe Text)
Creating a Request
data EnableLogging Source #
See: newEnableLogging smart constructor.
Constructors
| EnableLogging' | |
Fields
| |
Instances
Arguments
| :: Text | |
| -> EnableLogging |
Create a value of EnableLogging with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
EnableLogging, enableLogging_bucketName - 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
EnableLogging, enableLogging_logDestinationType - The log destination type. An enum with possible values of s3 and
cloudwatch.
EnableLogging, enableLogging_logExports - The collection of exported log types. Log types include the connection
log, user log and user activity log.
EnableLogging, enableLogging_s3KeyPrefix - 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
EnableLogging, enableLogging_clusterIdentifier - The identifier of the cluster on which logging is to be started.
Example: examplecluster
Request Lenses
enableLogging_bucketName :: Lens' EnableLogging (Maybe 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
enableLogging_logDestinationType :: Lens' EnableLogging (Maybe LogDestinationType) Source #
The log destination type. An enum with possible values of s3 and
cloudwatch.
enableLogging_logExports :: Lens' EnableLogging (Maybe [Text]) Source #
The collection of exported log types. Log types include the connection log, user log and user activity log.
enableLogging_s3KeyPrefix :: 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
enableLogging_clusterIdentifier :: Lens' EnableLogging Text Source #
The identifier of the cluster on which logging is to be started.
Example: examplecluster
Destructuring the Response
data LoggingStatus Source #
Describes the status of logging for a cluster.
See: newLoggingStatus smart constructor.
Constructors
| LoggingStatus' | |
Fields
| |
Instances
newLoggingStatus :: LoggingStatus Source #
Create a value of LoggingStatus with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:bucketName:LoggingStatus', loggingStatus_bucketName - The name of the S3 bucket where the log files are stored.
$sel:lastFailureMessage:LoggingStatus', loggingStatus_lastFailureMessage - The message indicating that logs failed to be delivered.
$sel:lastFailureTime:LoggingStatus', loggingStatus_lastFailureTime - The last time when logs failed to be delivered.
$sel:lastSuccessfulDeliveryTime:LoggingStatus', loggingStatus_lastSuccessfulDeliveryTime - The last time that logs were delivered.
$sel:logDestinationType:LoggingStatus', loggingStatus_logDestinationType - The log destination type. An enum with possible values of s3 and
cloudwatch.
$sel:logExports:LoggingStatus', loggingStatus_logExports - The collection of exported log types. Log types include the connection
log, user log and user activity log.
$sel:loggingEnabled:LoggingStatus', loggingStatus_loggingEnabled - true if logging is on, false if logging is off.
$sel:s3KeyPrefix:LoggingStatus', loggingStatus_s3KeyPrefix - The prefix applied to the log file names.
Response Lenses
loggingStatus_bucketName :: Lens' LoggingStatus (Maybe Text) Source #
The name of the S3 bucket where the log files are stored.
loggingStatus_lastFailureMessage :: Lens' LoggingStatus (Maybe Text) Source #
The message indicating that logs failed to be delivered.
loggingStatus_lastFailureTime :: Lens' LoggingStatus (Maybe UTCTime) Source #
The last time when logs failed to be delivered.
loggingStatus_lastSuccessfulDeliveryTime :: Lens' LoggingStatus (Maybe UTCTime) Source #
The last time that logs were delivered.
loggingStatus_logDestinationType :: Lens' LoggingStatus (Maybe LogDestinationType) Source #
The log destination type. An enum with possible values of s3 and
cloudwatch.
loggingStatus_logExports :: Lens' LoggingStatus (Maybe [Text]) Source #
The collection of exported log types. Log types include the connection log, user log and user activity log.
loggingStatus_loggingEnabled :: Lens' LoggingStatus (Maybe Bool) Source #
true if logging is on, false if logging is off.
loggingStatus_s3KeyPrefix :: Lens' LoggingStatus (Maybe Text) Source #
The prefix applied to the log file names.