Skip to content

Set Log Delivery Configuration

cognitoidentityprovider_set_log_delivery_configuration R Documentation

Sets up or modifies the logging configuration of a user pool

Description

Sets up or modifies the logging configuration of a user pool. User pools can export user notification logs and advanced security features user activity logs.

Usage

cognitoidentityprovider_set_log_delivery_configuration(UserPoolId,
  LogConfigurations)

Arguments

UserPoolId

[required] The ID of the user pool where you want to configure logging.

LogConfigurations

[required] A collection of the logging configurations for a user pool.

Value

A list with the following syntax:

list(
  LogDeliveryConfiguration = list(
    UserPoolId = "string",
    LogConfigurations = list(
      list(
        LogLevel = "ERROR"|"INFO",
        EventSource = "userNotification"|"userAuthEvents",
        CloudWatchLogsConfiguration = list(
          LogGroupArn = "string"
        ),
        S3Configuration = list(
          BucketArn = "string"
        ),
        FirehoseConfiguration = list(
          StreamArn = "string"
        )
      )
    )
  )
)

Request syntax

svc$set_log_delivery_configuration(
  UserPoolId = "string",
  LogConfigurations = list(
    list(
      LogLevel = "ERROR"|"INFO",
      EventSource = "userNotification"|"userAuthEvents",
      CloudWatchLogsConfiguration = list(
        LogGroupArn = "string"
      ),
      S3Configuration = list(
        BucketArn = "string"
      ),
      FirehoseConfiguration = list(
        StreamArn = "string"
      )
    )
  )
)