Package com.pulumi.automation
Class WorkspaceStackState
java.lang.Object
com.pulumi.automation.WorkspaceStackState
Class for manipulating stack state for a given
WorkspaceStack.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidThis command deletes a resource from a stack's state, as long as it is safe to do so.voidThis command deletes a resource from a stack's state, as long as it is safe to do so.voidUnprotect a resource in a stack's state.voidUnprotect all resources in a stack's state.
-
Constructor Details
-
WorkspaceStackState
-
-
Method Details
-
delete
This command deletes a resource from a stack's state, as long as it is safe to do so. The resource is specified by its Pulumi URN. Resources can't be deleted if there exist other resources that depend on it or are parented to it. Protected resources will not be deleted unless it is specifically requested using the force flag.- Parameters:
urn- The Pulumi URN of the resource to be deleted- Throws:
AutomationException- if an error occurs
-
delete
This command deletes a resource from a stack's state, as long as it is safe to do so. The resource is specified by its Pulumi URN. Resources can't be deleted if there exist other resources that depend on it or are parented to it. Protected resources will not be deleted unless it is specifically requested using the force flag.- Parameters:
urn- The Pulumi URN of the resource to be deletedforce- A boolean indicating whether the deletion should be forced- Throws:
AutomationException- if an error occurs
-
unprotect
Unprotect a resource in a stack's state. This command clears the 'protect' bit on the provided resource URN, allowing the resource to be deleted.- Parameters:
urn- The Pulumi URN to be unprotected- Throws:
AutomationException- if an error occurs
-
unprotectAll
Unprotect all resources in a stack's state.- Throws:
AutomationException- if an error occurs
-