BaseResource
laktory.models.resources.BaseResource
¤
Parent class for all Laktory models deployable as one or multiple cloud
core resources. This BaseResource class is derived from
pydantic.BaseModel.
| PARAMETER | DESCRIPTION |
|---|---|
lookup_existing
|
Lookup resource instead of creating a new one.
TYPE:
|
resource_options
|
Deployed resource options (name, provider, enabled flag, dependencies, etc.).
TYPE:
|
| METHOD | DESCRIPTION |
|---|---|
resource_options_compat |
Backward compatibility for |
| ATTRIBUTE | DESCRIPTION |
|---|---|
core_resources |
List of core resources to be deployed with this laktory model:
|
resource_key |
Resource key used to build default resource name. Equivalent to
TYPE:
|
resource_type_id |
Resource type id used to build default resource name. Equivalent to
TYPE:
|
self_as_core_resources |
Flag set to
|
core_resources
property
¤
List of core resources to be deployed with this laktory model: - class instance (self)
resource_key
property
¤
Resource key used to build default resource name. Equivalent to name properties if available. Otherwise, empty string.
resource_type_id
property
¤
Resource type id used to build default resource name. Equivalent to class name converted to kebab case. e.g.: SecretScope -> secret-scope
self_as_core_resources
property
¤
Flag set to True if self must be included in core resources
resource_options_compat(data)
classmethod
¤
Backward compatibility for options field.
Source code in laktory/models/resources/baseresource.py
141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 | |
laktory.models.resources.baseresource.ResourceOptions
¤
Bases: BaseModel
Resource options for deployment.
| PARAMETER | DESCRIPTION |
|---|---|
depends_on
|
Explicit list of resource dependencies.
TYPE:
|
ignore_changes
|
Declare that changes to certain properties should be ignored during a diff.
TYPE:
|
import_
|
Bring an existing cloud resource into Laktory management.
TYPE:
|
is_enabled
|
If
TYPE:
|
moved_from
|
Declare that a resource was moved from another address.
TYPE:
|
name
|
Name of the resource in the context of infrastructure as code. If
TYPE:
|
provider
|
Explicit declaration of resource provider.
TYPE:
|