Class: AWSCDK::AppSync::AppSyncLogConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::AppSync::AppSyncLogConfig
- Defined in:
- app_sync/app_sync_log_config.rb
Overview
Logging configuration for AppSync.
Instance Attribute Summary collapse
-
#exclude_verbose_content ⇒ Boolean?
readonly
exclude verbose content.
-
#field_log_level ⇒ AWSCDK::AppSync::AppSyncFieldLogLevel?
readonly
log level for fields.
-
#retention ⇒ AWSCDK::Logs::RetentionDays?
readonly
The number of days log events are kept in CloudWatch Logs.
-
#role ⇒ AWSCDK::Interfaces::AWSIAM::IRoleRef?
readonly
The role for CloudWatch Logs.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exclude_verbose_content: nil, field_log_level: nil, retention: nil, role: nil) ⇒ AppSyncLogConfig
constructor
A new instance of AppSyncLogConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exclude_verbose_content: nil, field_log_level: nil, retention: nil, role: nil) ⇒ AppSyncLogConfig
Returns a new instance of AppSyncLogConfig.
11 12 13 14 15 16 17 18 19 20 |
# File 'app_sync/app_sync_log_config.rb', line 11 def initialize(exclude_verbose_content: nil, field_log_level: nil, retention: nil, role: nil) @exclude_verbose_content = exclude_verbose_content Jsii::Type.check_type(@exclude_verbose_content, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "excludeVerboseContent") unless @exclude_verbose_content.nil? @field_log_level = field_log_level Jsii::Type.check_type(@field_log_level, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXBwc3luYy5BcHBTeW5jRmllbGRMb2dMZXZlbCJ9")), "fieldLogLevel") unless @field_log_level.nil? @retention = retention Jsii::Type.check_type(@retention, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5SZXRlbnRpb25EYXlzIn0=")), "retention") unless @retention.nil? @role = role Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5pbnRlcmZhY2VzLmF3c19pYW0uSVJvbGVSZWYifQ==")), "role") unless @role.nil? end |
Instance Attribute Details
#exclude_verbose_content ⇒ Boolean? (readonly)
Note:
Default: false
exclude verbose content.
26 27 28 |
# File 'app_sync/app_sync_log_config.rb', line 26 def exclude_verbose_content @exclude_verbose_content end |
#field_log_level ⇒ AWSCDK::AppSync::AppSyncFieldLogLevel? (readonly)
Note:
Default: - Use AppSync default
log level for fields.
31 32 33 |
# File 'app_sync/app_sync_log_config.rb', line 31 def field_log_level @field_log_level end |
#retention ⇒ AWSCDK::Logs::RetentionDays? (readonly)
Note:
Default: RetentionDays.INFINITE
The number of days log events are kept in CloudWatch Logs.
By default AppSync keeps the logs infinitely. When updating this property,
unsetting it doesn't remove the log retention policy.
To remove the retention policy, set the value to INFINITE
40 41 42 |
# File 'app_sync/app_sync_log_config.rb', line 40 def retention @retention end |
#role ⇒ AWSCDK::Interfaces::AWSIAM::IRoleRef? (readonly)
Note:
Default: - None
The role for CloudWatch Logs.
45 46 47 |
# File 'app_sync/app_sync_log_config.rb', line 45 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
47 48 49 50 51 52 53 54 |
# File 'app_sync/app_sync_log_config.rb', line 47 def self.jsii_properties { :exclude_verbose_content => "excludeVerboseContent", :field_log_level => "fieldLogLevel", :retention => "retention", :role => "role", } end |
Instance Method Details
#to_jsii ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'app_sync/app_sync_log_config.rb', line 56 def to_jsii result = {} result.merge!({ "excludeVerboseContent" => @exclude_verbose_content, "fieldLogLevel" => @field_log_level, "retention" => @retention, "role" => @role, }) result.compact end |