BaseResource
laktory.models.BaseResource
¤
Parent class for all Laktory models deployable as one or multiple cloud
core resources. This BaseResource
class is derived from
pydantic.BaseModel
.
ATTRIBUTE | DESCRIPTION |
---|---|
resource_name |
Name of the resource in the context of infrastructure as code. If None,
TYPE:
|
options |
Resources options specifications
TYPE:
|
ATTRIBUTE | DESCRIPTION |
---|---|
resource_type_id |
Resource type id used to build default resource name. Equivalent to
TYPE:
|
resource_key |
Resource key used to build default resource name. Equivalent to
TYPE:
|
default_resource_name |
Resource default name constructed as
TYPE:
|
self_as_core_resources |
Flag set to
|
core_resources |
List of core resources to be deployed with this laktory model:
|
Attributes¤
resource_type_id
property
¤
resource_type_id
Resource type id used to build default resource name. Equivalent to class name converted to kebab case. e.g.: SecretScope -> secret-scope
resource_key
property
¤
resource_key
Resource key used to build default resource name. Equivalent to name properties if available. Otherwise, empty string.
default_resource_name
property
¤
default_resource_name
Resource default name constructed as
- {self.resource_type_id}-{self.resource_key}
- removing ${resources....} tags
- removing ${vars....} tags
- Replacing special characters with - to avoid conflicts with resource properties
self_as_core_resources
property
¤
self_as_core_resources
Flag set to True
if self must be included in core resources
core_resources
property
¤
core_resources
List of core resources to be deployed with this laktory model: - class instance (self)
laktory.models.resources.baseresource.ResourceOptions
¤
Bases: BaseModel
Resource options for deployment.
ATTRIBUTE | DESCRIPTION |
---|---|
is_enabled |
If |
depends_on |
Explicit list of resources dependencies. Supported by both pulumi and terraform. |
provider |
Explicit declaration of resources provider. Supported by both pulumi and terraform.
TYPE:
|
aliases |
Specify aliases for this resource, so that renaming or refactoring doesn’t replace it. Pulumi only. |
delete_before_replace |
Override the default create-before-delete behavior when replacing a resource. Pulumi only.
TYPE:
|
ignore_changes |
Declare that changes to certain properties should be ignored during a diff. Pulumi only. |
import_ |
Bring an existing cloud resource into Pulumi. Pulumi only.
TYPE:
|
parent |
Establish a parent/child relationship between resources. Pulumi only.
TYPE:
|
replace_on_changes |
Declare that changes to certain properties should be treated as forcing a replacement. Pulumi only. |
laktory.models.resources.baseresource.ResourceLookup
¤
Bases: BaseModel