From fd00c64e33e78ed4ded53103ad3382a7feda0f47 Mon Sep 17 00:00:00 2001 From: kiarash kiani Date: Tue, 8 Oct 2024 17:27:21 +0200 Subject: [PATCH] refactor: change lambda_component name to serverless_python_component --- ...omponent.py => serverless_python_component.py} | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) rename src/damavand/cloud/aws/resources/{lambda_component.py => serverless_python_component.py} (92%) diff --git a/src/damavand/cloud/aws/resources/lambda_component.py b/src/damavand/cloud/aws/resources/serverless_python_component.py similarity index 92% rename from src/damavand/cloud/aws/resources/lambda_component.py rename to src/damavand/cloud/aws/resources/serverless_python_component.py index 85dc9d3..8a9957f 100644 --- a/src/damavand/cloud/aws/resources/lambda_component.py +++ b/src/damavand/cloud/aws/resources/serverless_python_component.py @@ -12,11 +12,10 @@ from damavand.cloud.aws.resources.aws_services import AwsService -# TODO: rename to AwsServerlessPythonComponentArgs @dataclass -class AwsLambdaComponentArgs: +class AwsServerlessPythonComponentArgs: """ - Arguments for the AwsLambdaComponent component. + Arguments for the AwsServerlessPythonComponent component. ... @@ -45,9 +44,9 @@ class AwsLambdaComponentArgs: # TODO: add support for vpc -class AwsLambdaComponent(PulumiComponentResource): +class AwsServerlessPythonComponent(PulumiComponentResource): """ - The AwsLambdaComponent class is a Pulumi component that deploys python applications into an AWS Lambda Function. + The AwsServerlessPythonComponent class is a Pulumi component that deploys python applications into an AWS Lambda Function. ... @@ -55,7 +54,7 @@ class AwsLambdaComponent(PulumiComponentResource): ---------- name: str the name of the component. - args: AwsLambdaComponentArgs + args: AwsServerlessPythonComponentArgs the arguments of the component. opts: Optional[ResourceOptions] the resource options. @@ -67,11 +66,11 @@ class AwsLambdaComponent(PulumiComponentResource): def __init__( self, name: str, - args: AwsLambdaComponentArgs, + args: AwsServerlessPythonComponentArgs, opts: Optional[ResourceOptions] = None, ) -> None: super().__init__( - f"Damavand:{AwsLambdaComponent.__name__}", + f"Damavand:{AwsServerlessPythonComponent.__name__}", name=name, props={}, opts=opts,