# LogRetentionRetryOptions

Retry options for all AWS API calls.

Extends: [LogRetentionRetryOptions](/cdk/api/v2/docs/aws-cdk-lib.aws_logs.LogRetentionRetryOptions.html)

- Source: [`aws-lambda/lib/log-retention.ts`](https://github.com/aws/aws-cdk/blob/v2.277.0/packages/aws-cdk-lib/aws-lambda/lib/log-retention.ts#L7)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as cdk from 'aws-cdk-lib';
import { aws_lambda as lambda } from 'aws-cdk-lib';
const logRetentionRetryOptions: lambda.LogRetentionRetryOptions = {
  base: cdk.Duration.minutes(30),
  maxRetries: 123,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk as cdk
from aws_cdk import aws_lambda as lambda_

log_retention_retry_options = lambda.LogRetentionRetryOptions(
    base=cdk.Duration.minutes(30),
    max_retries=123
)
```

Java:

```java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.*;
import software.amazon.awscdk.services.lambda.*;

LogRetentionRetryOptions logRetentionRetryOptions = LogRetentionRetryOptions.builder()
        .base(Duration.minutes(30))
        .maxRetries(123)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK;
using Amazon.CDK.AWS.Lambda;

var logRetentionRetryOptions = new LogRetentionRetryOptions {
    Base = Duration.Minutes(30),
    MaxRetries = 123
};
```

Golang:

```go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import cdk "github.com/aws/aws-cdk-go/awscdk"
import "github.com/aws/aws-cdk-go/awscdk"

logRetentionRetryOptions := &LogRetentionRetryOptions{
	Base: cdk.Duration_Minutes(jsii.Number(30)),
	MaxRetries: jsii.Number(123),
}
```

## Properties

- `base`: [Duration](/cdk/api/v2/docs/aws-cdk-lib.Duration.html) — Unused since the upgrade to AWS SDK v3, which uses a different retry strategy

  **Default:** none, not used anymore

- `maxRetries`: number = 5 — The maximum amount of retries.
