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

Amazonka.Redshift.EnableLogging

Description

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

Synopsis

Creating a Request

data EnableLogging Source #

See: newEnableLogging smart constructor.

Constructors

EnableLogging' 

Fields

  • s3KeyPrefix :: Maybe Text

    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
  • clusterIdentifier :: Text

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

    Example: examplecluster

  • bucketName :: Text

    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

Instances

Instances details
Eq EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

Read EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

Show EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

Generic EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

Associated Types

type Rep EnableLogging :: Type -> Type #

NFData EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

Methods

rnf :: EnableLogging -> () #

Hashable EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

AWSRequest EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

Associated Types

type AWSResponse EnableLogging #

ToHeaders EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

ToPath EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

ToQuery EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

type Rep EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

type Rep EnableLogging = D1 ('MetaData "EnableLogging" "Amazonka.Redshift.EnableLogging" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "EnableLogging'" 'PrefixI 'True) (S1 ('MetaSel ('Just "s3KeyPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "clusterIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse EnableLogging Source # 
Instance details

Defined in Amazonka.Redshift.EnableLogging

newEnableLogging Source #

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:

$sel:s3KeyPrefix: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

$sel:clusterIdentifier:EnableLogging', enableLogging_clusterIdentifier - The identifier of the cluster on which logging is to be started.

Example: examplecluster

$sel:bucketName: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

Request Lenses

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

enableLogging_bucketName :: 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

data LoggingStatus Source #

Describes the status of logging for a cluster.

See: newLoggingStatus smart constructor.

Constructors

LoggingStatus' 

Fields

Instances

Instances details
Eq LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

Read LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

Show LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

Generic LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

Associated Types

type Rep LoggingStatus :: Type -> Type #

NFData LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

Methods

rnf :: LoggingStatus -> () #

Hashable LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

FromXML LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

type Rep LoggingStatus Source # 
Instance details

Defined in Amazonka.Redshift.Types.LoggingStatus

type Rep LoggingStatus = D1 ('MetaData "LoggingStatus" "Amazonka.Redshift.Types.LoggingStatus" "libZSservicesZSamazonka-redshiftZSamazonka-redshift" 'False) (C1 ('MetaCons "LoggingStatus'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "lastFailureTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: (S1 ('MetaSel ('Just "lastSuccessfulDeliveryTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ISO8601)) :*: S1 ('MetaSel ('Just "s3KeyPrefix") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "bucketName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "loggingEnabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "lastFailureMessage") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))))

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: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:s3KeyPrefix:LoggingStatus', loggingStatus_s3KeyPrefix - The prefix applied to the log file names.

$sel:bucketName:LoggingStatus', loggingStatus_bucketName - The name of the S3 bucket where the log files are stored.

$sel:loggingEnabled:LoggingStatus', loggingStatus_loggingEnabled - true if logging is on, false if logging is off.

$sel:lastFailureMessage:LoggingStatus', loggingStatus_lastFailureMessage - The message indicating that logs failed to be delivered.

Response Lenses

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

The last time when logs failed to be delivered.

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

The prefix applied to the log file names.

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

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

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

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

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

The message indicating that logs failed to be delivered.