Bases: LogRetentionProps
(deprecated) Construction properties for a LogRetention.
log_group_name (str
) â The log group name.
retention (RetentionDays
) â The number of days log events are kept in CloudWatch Logs.
log_group_region (Optional
[str
]) â The region where the log group should be created. Default: - same region as the stack
log_retention_retry_options (Union
[LogRetentionRetryOptions
, Dict
[str
, Any
], None
]) â Retry options for all AWS API calls. Default: - AWS SDK default retry options
role (Optional
[IRole
]) â The IAM role for the Lambda function associated with the custom resource. Default: - A new role is created
use LogRetentionProps
from â
deprecated
/aws-logsâ instead
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. import aws_cdk.aws_iam as iam import aws_cdk.aws_lambda as lambda_ import aws_cdk.aws_logs as logs import aws_cdk.core as cdk # role: iam.Role log_retention_props = lambda.LogRetentionProps( log_group_name="logGroupName", retention=logs.RetentionDays.ONE_DAY, # the properties below are optional log_group_region="logGroupRegion", log_retention_retry_options=logs.LogRetentionRetryOptions( base=cdk.Duration.minutes(30), max_retries=123 ), role=role )
Attributes
The log group name.
The region where the log group should be created.
same region as the stack
Retry options for all AWS API calls.
AWS SDK default retry options
The number of days log events are kept in CloudWatch Logs.
The IAM role for the Lambda function associated with the custom resource.
A new role is created
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4