Show / Hide Table of Contents

Enum RetentionDays

How long, in days, the log contents will be retained.

Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public enum RetentionDays
Syntax (vb)
Public Enum RetentionDays
Remarks

ExampleMetadata: infused

Examples
using Amazon.CDK.AWS.Logs;


            var apiKeyProvider = new AppSyncAuthProvider {
                AuthorizationType = AppSyncAuthorizationType.API_KEY
            };

            var api = new EventApi(this, "api", new EventApiProps {
                ApiName = "Api",
                OwnerContact = "OwnerContact",
                AuthorizationConfig = new EventApiAuthConfig {
                    AuthProviders = new [] { apiKeyProvider },
                    ConnectionAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY },
                    DefaultPublishAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY },
                    DefaultSubscribeAuthModeTypes = new [] { AppSyncAuthorizationType.API_KEY }
                },
                LogConfig = new AppSyncLogConfig {
                    FieldLogLevel = AppSyncFieldLogLevel.INFO,
                    Retention = RetentionDays.ONE_WEEK
                }
            });

            api.AddChannelNamespace("default");

Synopsis

Fields

EIGHTEEN_MONTHS

18 months.

EIGHT_YEARS

8 years.

FIVE_DAYS

5 days.

FIVE_MONTHS

5 months.

FIVE_YEARS

5 years.

FOUR_MONTHS

4 months.

INFINITE

Retain logs forever.

NINE_YEARS

9 years.

ONE_DAY

1 day.

ONE_MONTH

1 month.

ONE_WEEK

1 week.

ONE_YEAR

1 year.

SEVEN_YEARS

7 years.

SIX_MONTHS

6 months.

SIX_YEARS

6 years.

TEN_YEARS

10 years.

THIRTEEN_MONTHS

13 months.

THREE_DAYS

3 days.

THREE_MONTHS

3 months.

THREE_YEARS

3 years.

TWO_MONTHS

2 months.

TWO_WEEKS

2 weeks.

TWO_YEARS

2 years.

Fields

Name Description
EIGHTEEN_MONTHS

18 months.

EIGHT_YEARS

8 years.

FIVE_DAYS

5 days.

FIVE_MONTHS

5 months.

FIVE_YEARS

5 years.

FOUR_MONTHS

4 months.

INFINITE

Retain logs forever.

NINE_YEARS

9 years.

ONE_DAY

1 day.

ONE_MONTH

1 month.

ONE_WEEK

1 week.

ONE_YEAR

1 year.

SEVEN_YEARS

7 years.

SIX_MONTHS

6 months.

SIX_YEARS

6 years.

TEN_YEARS

10 years.

THIRTEEN_MONTHS

13 months.

THREE_DAYS

3 days.

THREE_MONTHS

3 months.

THREE_YEARS

3 years.

TWO_MONTHS

2 months.

TWO_WEEKS

2 weeks.

TWO_YEARS

2 years.

Back to top Generated by DocFX