Class: AWSCDK::CloudFormation::CfnHookVersion::LoggingConfigProperty

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

Overview

The LoggingConfig property type specifies 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.



587
588
589
590
591
592
# File 'cloud_formation/cfn_hook_version.rb', line 587

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.



598
599
600
# File 'cloud_formation/cfn_hook_version.rb', line 598

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.



603
604
605
# File 'cloud_formation/cfn_hook_version.rb', line 603

def log_role_arn
  @log_role_arn
end

Class Method Details

.jsii_propertiesObject



605
606
607
608
609
610
# File 'cloud_formation/cfn_hook_version.rb', line 605

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

Instance Method Details

#to_jsiiObject



612
613
614
615
616
617
618
619
# File 'cloud_formation/cfn_hook_version.rb', line 612

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