Skip to content
v2.277.0

LogRetentionRetryOptions Struct ​

Retry options for all AWS API calls.

Example ​

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
# 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
// 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();
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
};
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 ​

baseoptionalDurationbaseoptionalDurationbaseoptionalDurationBaseoptionalDurationBaseoptionalDurationdeprecated#
Unused since the upgrade to AWS SDK v3, which uses a different retry strategy

Default: none, not used anymore

maxRetriesoptionalnumbermax_retriesoptionalint | floatmaxRetriesoptionalNumberMaxRetriesoptionaldoubleMaxRetriesoptional*float64= 5#
The maximum amount of retries.