Skip to content

Commit

Permalink
refactor: change lambda_component name to serverless_python_component
Browse files Browse the repository at this point in the history
  • Loading branch information
kkiani committed Oct 8, 2024
1 parent 6bb22f7 commit 813f5f8
Showing 1 changed file with 7 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
...
Expand Down Expand Up @@ -45,17 +44,17 @@ 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.
...
Attributes
----------
name: str
the name of the component.
args: AwsLambdaComponentArgs
args: AwsServerlessPythonComponentArgs
the arguments of the component.
opts: Optional[ResourceOptions]
the resource options.
Expand All @@ -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,
Expand Down

0 comments on commit 813f5f8

Please sign in to comment.