cloud-foundry 0.0.3__tar.gz → 0.0.4__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: cloud-foundry
3
- Version: 0.0.3
3
+ Version: 0.0.4
4
4
  Summary: cloud-foundry is a curated set of cloud components that can be used to assemble cloud based applications.
5
5
  Project-URL: Documentation, https://github.com/DanRepik/cloud-foundry
6
6
  Project-URL: Source, https://github.com/DanRepik/cloud-foundry
@@ -1,2 +1,3 @@
1
1
  from cloud_foundry.pulumi.python_function import python_function
2
+ from cloud_foundry.pulumi.rest_api import rest_api
2
3
 
@@ -18,14 +18,14 @@ class PythonFunction(pulumi.ComponentResource):
18
18
  *,
19
19
  hash: str,
20
20
  archive_location: str,
21
- handler: str,
21
+ handler: str = None,
22
22
  timeout: int = None,
23
23
  memory_size: int = None,
24
24
  environment: dict[str, str]=None,
25
25
  actions: list[str]=None,
26
26
  opts=None
27
27
  ):
28
- super().__init__("custom:cloud_forge:PythonFunction", name, {}, opts)
28
+ super().__init__("cloud_forge:lambda:PythonFunction", name, {}, opts)
29
29
  self.name = name
30
30
  self.handler = handler
31
31
  self.environment = environment or {}
@@ -90,7 +90,7 @@ class PythonFunction(pulumi.ComponentResource):
90
90
  role=execution_role.arn,
91
91
  memory_size=self.memory_size,
92
92
  timeout=self.timeout,
93
- handler=self.handler,
93
+ handler=self.handler or "app.handler",
94
94
  source_code_hash=hash,
95
95
  runtime=aws.lambda_.Runtime.PYTHON3D9,
96
96
  environment=aws.lambda_.FunctionEnvironmentArgs(variables=self.environment),
@@ -99,7 +99,7 @@ class PythonFunction(pulumi.ComponentResource):
99
99
 
100
100
  def python_function(
101
101
  name: str, *,
102
- handler: str,
102
+ handler: str = None,
103
103
  memory_size: int = None,
104
104
  timeout: int = None,
105
105
  sources: dict[str, str] = None,
@@ -6,7 +6,7 @@ build-backend = "hatchling.build"
6
6
 
7
7
  [project]
8
8
  name = "cloud-foundry"
9
- version = "0.0.3"
9
+ version = "0.0.4"
10
10
  authors = [
11
11
  { name="Daniel Repik", email="danrepik@icloud.com" },
12
12
  ]
File without changes
File without changes