Class: AWSCDK::CfnHookVersion::LoggingConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnHookVersion::LoggingConfigProperty
- Defined in:
- cfn_hook_version.rb
Overview
The LoggingConfig property type specifies logging configuration information for an extension.
Instance Attribute Summary collapse
-
#log_group_name ⇒ String?
readonly
The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.
-
#log_role_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_group_name: nil, log_role_arn: nil) ⇒ LoggingConfigProperty
constructor
A new instance of LoggingConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_group_name: nil, log_role_arn: nil) ⇒ LoggingConfigProperty
Returns a new instance of LoggingConfigProperty.
587 588 589 590 591 592 |
# File '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_name ⇒ String? (readonly)
The Amazon CloudWatch Logs group to which CloudFormation sends error logging information when invoking the extension's handlers.
598 599 600 |
# File 'cfn_hook_version.rb', line 598 def log_group_name @log_group_name end |
#log_role_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the role that CloudFormation should assume when sending log entries to CloudWatch Logs.
603 604 605 |
# File 'cfn_hook_version.rb', line 603 def log_role_arn @log_role_arn end |
Class Method Details
.jsii_properties ⇒ Object
605 606 607 608 609 610 |
# File 'cfn_hook_version.rb', line 605 def self.jsii_properties { :log_group_name => "logGroupName", :log_role_arn => "logRoleArn", } end |
Instance Method Details
#to_jsii ⇒ Object
612 613 614 615 616 617 618 619 |
# File 'cfn_hook_version.rb', line 612 def to_jsii result = {} result.merge!({ "logGroupName" => @log_group_name, "logRoleArn" => @log_role_arn, }) result.compact end |