LogRetentionRetryOptions

class aws_cdk.aws_lambda.LogRetentionRetryOptions(*, base=None, max_retries=None)

Bases: aws_cdk.aws_logs.LogRetentionRetryOptions

Retry options for all AWS API calls.

Parameters
  • base (Optional[Duration]) – The base duration to use in the exponential backoff for operation retries. Default: Duration.millis(100) (AWS SDK default)

  • max_retries (Union[int, float, None]) – The maximum amount of retries. Default: 3 (AWS SDK default)

Example:

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

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

Attributes

base

The base duration to use in the exponential backoff for operation retries.

Default

Duration.millis(100) (AWS SDK default)

Return type

Optional[Duration]

max_retries

The maximum amount of retries.

Default

3 (AWS SDK default)

Return type

Union[int, float, None]