Skip to content

Commit

Permalink
Add docstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
tschaffter committed Dec 6, 2024
1 parent 94a3c7f commit cb801e6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions openchallenges/data_integration_stack.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,36 @@


class DataIntegrationStack(cdk.Stack):
"""
Defines an AWS CDK stack for data integration.
This stack sets up the resources required for scheduling and executing
data integration tasks using AWS Lambda and EventBridge Scheduler.
The stack includes:
- A Lambda function for data integration.
- An EventBridge Scheduler schedule to trigger the Lambda function.
- An EventBridge Scheduler group for organizing schedules.
Attributes:
scope (Construct): The parent construct.
id (str): The unique identifier for this stack.
props (DataIntegrationProps): The properties for the data integration, including the schedule.
"""

def __init__(
self, scope: Construct, id: str, props: DataIntegrationProps, **kwargs
) -> None:
"""
Initializes the DataIntegrationStack.
Arguments:
scope (Construct): The parent construct for this stack.
id (str): The unique identifier for this stack.
props (DataIntegrationProps): The properties required for data integration,
including the schedule.
**kwargs: Additional arguments passed to the base `cdk.Stack` class.
"""
super().__init__(scope, id, **kwargs)

data_integration_lambda = DataIntegrationLambda(self, "data-integration-lambda")
Expand Down

0 comments on commit cb801e6

Please sign in to comment.