Class LogConfig
Logging configuration for AppSync.
Inheritance
System.Object
LogConfig
Implements
Namespace: Amazon.CDK.AWS.AppSync
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LogConfig : Object, ILogConfig
Syntax (vb)
Public Class LogConfig
Inherits Object
Implements ILogConfig
Remarks
ExampleMetadata: infused
Examples
using Amazon.CDK.AWS.Logs;
var logConfig = new LogConfig {
Retention = RetentionDays.ONE_WEEK
};
new GraphqlApi(this, "api", new GraphqlApiProps {
AuthorizationConfig = new AuthorizationConfig { },
Name = "myApi",
Definition = Definition.FromFile(Join(__dirname, "myApi.graphql")),
LogConfig = logConfig
});
Synopsis
Constructors
LogConfig() |
Properties
ExcludeVerboseContent | exclude verbose content. |
FieldLogLevel | log level for fields. |
Retention | The number of days log events are kept in CloudWatch Logs. |
Role | The role for CloudWatch Logs. |
Constructors
LogConfig()
public LogConfig()
Properties
ExcludeVerboseContent
exclude verbose content.
public object ExcludeVerboseContent { get; set; }
Property Value
System.Object
Remarks
Default: false
FieldLogLevel
log level for fields.
public Nullable<FieldLogLevel> FieldLogLevel { get; set; }
Property Value
System.Nullable<FieldLogLevel>
Remarks
Default: - Use AppSync default
Retention
The number of days log events are kept in CloudWatch Logs.
public Nullable<RetentionDays> Retention { get; set; }
Property Value
System.Nullable<RetentionDays>
Remarks
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
Default: RetentionDays.INFINITE
Role
The role for CloudWatch Logs.
public IRole Role { get; set; }
Property Value
Remarks
Default: - None