pub struct ResourceEntry {
pub config: BaseResource,
pub dependencies: Vec<ResourceRef>,
pub lifecycle: ResourceLifecycle,
pub remote_access: Option<bool>,
}Expand description
ResourceEntry
JSON schema
{
"type": "object",
"required": [
"config",
"dependencies",
"lifecycle"
],
"properties": {
"config": {
"description": "Resource configuration (can be any type of resource)",
"allOf": [
{
"$ref": "#/components/schemas/BaseResource"
}
]
},
"dependencies": {
"description": "Additional dependencies for this resource beyond those defined in the resource itself.\nThe total dependencies are: resource.get_dependencies() + this list",
"type": "array",
"items": {
"$ref": "#/components/schemas/ResourceRef"
}
},
"lifecycle": {
"description": "Lifecycle management configuration for this resource",
"allOf": [
{
"$ref": "#/components/schemas/ResourceLifecycle"
}
]
},
"remoteAccess": {
"description": "Enable remote bindings for this resource (BYOB use case).\nWhen true, binding params are synced to StackState's `remote_binding_params`.\nDefault: false (prevents sensitive data in synced state).",
"type": "boolean"
}
},
"additionalProperties": false
}Fields§
§config: BaseResourceResource configuration (can be any type of resource)
dependencies: Vec<ResourceRef>Additional dependencies for this resource beyond those defined in the resource itself. The total dependencies are: resource.get_dependencies() + this list
lifecycle: ResourceLifecycleLifecycle management configuration for this resource
remote_access: Option<bool>Enable remote bindings for this resource (BYOB use case).
When true, binding params are synced to StackState’s remote_binding_params.
Default: false (prevents sensitive data in synced state).
Implementations§
Source§impl ResourceEntry
impl ResourceEntry
pub fn builder() -> ResourceEntry
Trait Implementations§
Source§impl Clone for ResourceEntry
impl Clone for ResourceEntry
Source§fn clone(&self) -> ResourceEntry
fn clone(&self) -> ResourceEntry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ResourceEntry
impl Debug for ResourceEntry
Source§impl<'de> Deserialize<'de> for ResourceEntry
impl<'de> Deserialize<'de> for ResourceEntry
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl From<&ResourceEntry> for ResourceEntry
impl From<&ResourceEntry> for ResourceEntry
Source§fn from(value: &ResourceEntry) -> Self
fn from(value: &ResourceEntry) -> Self
Converts to this type from the input type.
Source§impl From<ResourceEntry> for ResourceEntry
impl From<ResourceEntry> for ResourceEntry
Source§fn from(value: ResourceEntry) -> Self
fn from(value: ResourceEntry) -> Self
Converts to this type from the input type.
Source§impl Serialize for ResourceEntry
impl Serialize for ResourceEntry
Source§impl TryFrom<ResourceEntry> for ResourceEntry
impl TryFrom<ResourceEntry> for ResourceEntry
Source§type Error = ConversionError
type Error = ConversionError
The type returned in the event of a conversion error.
Source§fn try_from(value: ResourceEntry) -> Result<Self, ConversionError>
fn try_from(value: ResourceEntry) -> Result<Self, ConversionError>
Performs the conversion.
Auto Trait Implementations§
impl Freeze for ResourceEntry
impl RefUnwindSafe for ResourceEntry
impl Send for ResourceEntry
impl Sync for ResourceEntry
impl Unpin for ResourceEntry
impl UnsafeUnpin for ResourceEntry
impl UnwindSafe for ResourceEntry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more