Class: AWSCDK::AppSync::CfnAPI::EventLogConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::CfnAPI::EventLogConfigProperty
- Defined in:
- app_sync/cfn_api.rb
Overview
Describes the CloudWatch Logs configuration for the Event API.
Instance Attribute Summary collapse
-
#cloud_watch_logs_role_arn ⇒ String
readonly
The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
-
#log_level ⇒ String
readonly
The type of information to log for the Event API.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(cloud_watch_logs_role_arn:, log_level:) ⇒ EventLogConfigProperty
constructor
A new instance of EventLogConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(cloud_watch_logs_role_arn:, log_level:) ⇒ EventLogConfigProperty
Returns a new instance of EventLogConfigProperty.
861 862 863 864 865 866 |
# File 'app_sync/cfn_api.rb', line 861 def initialize(cloud_watch_logs_role_arn:, log_level:) @cloud_watch_logs_role_arn = cloud_watch_logs_role_arn Jsii::Type.check_type(@cloud_watch_logs_role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudWatchLogsRoleArn") @log_level = log_level Jsii::Type.check_type(@log_level, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logLevel") end |
Instance Attribute Details
#cloud_watch_logs_role_arn ⇒ String (readonly)
The IAM service role that AWS AppSync assumes to publish CloudWatch Logs in your account.
872 873 874 |
# File 'app_sync/cfn_api.rb', line 872 def cloud_watch_logs_role_arn @cloud_watch_logs_role_arn end |
#log_level ⇒ String (readonly)
The type of information to log for the Event API.
877 878 879 |
# File 'app_sync/cfn_api.rb', line 877 def log_level @log_level end |
Class Method Details
.jsii_properties ⇒ Object
879 880 881 882 883 884 |
# File 'app_sync/cfn_api.rb', line 879 def self.jsii_properties { :cloud_watch_logs_role_arn => "cloudWatchLogsRoleArn", :log_level => "logLevel", } end |
Instance Method Details
#to_jsii ⇒ Object
886 887 888 889 890 891 892 893 |
# File 'app_sync/cfn_api.rb', line 886 def to_jsii result = {} result.merge!({ "cloudWatchLogsRoleArn" => @cloud_watch_logs_role_arn, "logLevel" => @log_level, }) result.compact end |