-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.py
More file actions
31 lines (21 loc) · 945 Bytes
/
template.py
File metadata and controls
31 lines (21 loc) · 945 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
from typing import Dict
import pulumi
class MyClassProperties:
"""MyClass properties passed to a MyClass instance and used to initialize and configure it."""
def __init__(self):
"""Initializes MyClassProperties using the given parameters."""
pass
@classmethod
def from_config(cls, cfg: Dict[str, str]):
"""Returns a MyClassProperties instance configured using the passed configuration.
Args:
cfg: The config retrieved from the stack
Returns:
An instance of MyClassProperties configured using the passed configuration.
"""
return MyClassProperties()
class MyClass(pulumi.ComponentResource):
"""Represents a deployment of myclass."""
def __init__(self, name: str, props: MyClassProperties, opts=None):
"""Initializes MyClass using the given parameters."""
super().__init__('glab:kubernetes:myclass', name, None, opts)