Class: AWSCDK::Cognito::CfnLogDeliveryConfiguration::CloudWatchLogsConfigurationProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cognito/cfn_log_delivery_configuration.rb

Overview

Configuration for the CloudWatch log group destination of user pool detailed activity logging, or of user activity log export with advanced security features.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group_arn: nil) ⇒ CloudWatchLogsConfigurationProperty

Returns a new instance of CloudWatchLogsConfigurationProperty.

Parameters:

  • log_group_arn (String, nil) (defaults to: nil)

    The Amazon Resource Name (arn) of a CloudWatch Logs log group where your user pool sends logs.



515
516
517
518
# File 'cognito/cfn_log_delivery_configuration.rb', line 515

def initialize(log_group_arn: nil)
  @log_group_arn = log_group_arn
  Jsii::Type.check_type(@log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupArn") unless @log_group_arn.nil?
end

Instance Attribute Details

#log_group_arnString? (readonly)

The Amazon Resource Name (arn) of a CloudWatch Logs log group where your user pool sends logs.

The log group must not be encrypted with AWS Key Management Service and must be in the same AWS account as your user pool.

To send logs to log groups with a resource policy of a size greater than 5120 characters, configure a log group with a path that starts with /aws/vendedlogs . For more information, see Enabling logging from certain AWS services .



528
529
530
# File 'cognito/cfn_log_delivery_configuration.rb', line 528

def log_group_arn
  @log_group_arn
end

Class Method Details

.jsii_propertiesObject



530
531
532
533
534
# File 'cognito/cfn_log_delivery_configuration.rb', line 530

def self.jsii_properties
  {
    :log_group_arn => "logGroupArn",
  }
end

Instance Method Details

#to_jsiiObject



536
537
538
539
540
541
542
# File 'cognito/cfn_log_delivery_configuration.rb', line 536

def to_jsii
  result = {}
  result.merge!({
    "logGroupArn" => @log_group_arn,
  })
  result.compact
end