Class: AWSCDK::Lex::CfnBotAlias::CloudWatchLogGroupLogDestinationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lex::CfnBotAlias::CloudWatchLogGroupLogDestinationProperty
- Defined in:
- lex/cfn_bot_alias.rb
Overview
The Amazon CloudWatch Logs log group where the text and metadata logs are delivered.
The log group must exist before you enable logging.
Instance Attribute Summary collapse
-
#cloud_watch_log_group_arn ⇒ String
readonly
The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.
-
#log_prefix ⇒ String
readonly
The prefix of the log stream name within the log group that you specified.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_log_group_arn:, log_prefix:) ⇒ CloudWatchLogGroupLogDestinationProperty
constructor
A new instance of CloudWatchLogGroupLogDestinationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_log_group_arn:, log_prefix:) ⇒ CloudWatchLogGroupLogDestinationProperty
Returns a new instance of CloudWatchLogGroupLogDestinationProperty.
804 805 806 807 808 809 |
# File 'lex/cfn_bot_alias.rb', line 804 def initialize(cloud_watch_log_group_arn:, log_prefix:) @cloud_watch_log_group_arn = cloud_watch_log_group_arn Jsii::Type.check_type(@cloud_watch_log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchLogGroupArn") @log_prefix = log_prefix Jsii::Type.check_type(@log_prefix, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logPrefix") end |
Instance Attribute Details
#cloud_watch_log_group_arn ⇒ String (readonly)
The Amazon Resource Name (ARN) of the log group where text and metadata logs are delivered.
815 816 817 |
# File 'lex/cfn_bot_alias.rb', line 815 def cloud_watch_log_group_arn @cloud_watch_log_group_arn end |
#log_prefix ⇒ String (readonly)
The prefix of the log stream name within the log group that you specified.
820 821 822 |
# File 'lex/cfn_bot_alias.rb', line 820 def log_prefix @log_prefix end |
Class Method Details
.jsii_properties ⇒ Object
822 823 824 825 826 827 |
# File 'lex/cfn_bot_alias.rb', line 822 def self.jsii_properties { :cloud_watch_log_group_arn => "cloudWatchLogGroupArn", :log_prefix => "logPrefix", } end |
Instance Method Details
#to_jsii ⇒ Object
829 830 831 832 833 834 835 836 |
# File 'lex/cfn_bot_alias.rb', line 829 def to_jsii result = {} result.merge!({ "cloudWatchLogGroupArn" => @cloud_watch_log_group_arn, "logPrefix" => @log_prefix, }) result.compact end |