Class: AWSCDK::CloudFormation::CfnTypeActivation::LoggingConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cloud_formation/cfn_type_activation.rb

Overview

Contains logging configuration information for an extension.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_group_name: nil, log_role_arn: nil) ⇒ LoggingConfigProperty

Returns a new instance of LoggingConfigProperty.

Parameters:

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

    The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.

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

    The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.



628
629
630
631
632
633
# File 'cloud_formation/cfn_type_activation.rb', line 628

def initialize(log_group_name: nil, log_role_arn: nil)
  @log_group_name = log_group_name
  Jsii::Type.check_type(@log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupName") unless @log_group_name.nil?
  @log_role_arn = log_role_arn
  Jsii::Type.check_type(@log_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logRoleArn") unless @log_role_arn.nil?
end

Instance Attribute Details

#log_group_nameString? (readonly)

The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.



639
640
641
# File 'cloud_formation/cfn_type_activation.rb', line 639

def log_group_name
  @log_group_name
end

#log_role_arnString? (readonly)

The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.



644
645
646
# File 'cloud_formation/cfn_type_activation.rb', line 644

def log_role_arn
  @log_role_arn
end

Class Method Details

.jsii_propertiesObject



646
647
648
649
650
651
# File 'cloud_formation/cfn_type_activation.rb', line 646

def self.jsii_properties
  {
    :log_group_name => "logGroupName",
    :log_role_arn => "logRoleArn",
  }
end

Instance Method Details

#to_jsiiObject



653
654
655
656
657
658
659
660
# File 'cloud_formation/cfn_type_activation.rb', line 653

def to_jsii
  result = {}
  result.merge!({
    "logGroupName" => @log_group_name,
    "logRoleArn" => @log_role_arn,
  })
  result.compact
end