Stack¶
-
class
oci.resource_manager.models.
Stack
(**kwargs)¶ Bases:
object
The properties that define a stack. A stack is the collection of Oracle Cloud Infrastructure resources corresponding to a given Terraform configuration. For instructions on managing stacks, see Managing Stacks. For more information about stacks, see Key Concepts.
Attributes
LIFECYCLE_STATE_ACTIVE
A constant which can be used with the lifecycle_state property of a Stack. LIFECYCLE_STATE_CREATING
A constant which can be used with the lifecycle_state property of a Stack. LIFECYCLE_STATE_DELETED
A constant which can be used with the lifecycle_state property of a Stack. LIFECYCLE_STATE_DELETING
A constant which can be used with the lifecycle_state property of a Stack. LIFECYCLE_STATE_FAILED
A constant which can be used with the lifecycle_state property of a Stack. STACK_DRIFT_STATUS_DRIFTED
A constant which can be used with the stack_drift_status property of a Stack. STACK_DRIFT_STATUS_IN_SYNC
A constant which can be used with the stack_drift_status property of a Stack. STACK_DRIFT_STATUS_NOT_CHECKED
A constant which can be used with the stack_drift_status property of a Stack. compartment_id
Gets the compartment_id of this Stack. config_source
Gets the config_source of this Stack. custom_terraform_provider
Gets the custom_terraform_provider of this Stack. defined_tags
Gets the defined_tags of this Stack. description
Gets the description of this Stack. display_name
Gets the display_name of this Stack. freeform_tags
Gets the freeform_tags of this Stack. id
Gets the id of this Stack. is_third_party_provider_experience_enabled
Gets the is_third_party_provider_experience_enabled of this Stack. lifecycle_state
Gets the lifecycle_state of this Stack. stack_drift_status
Gets the stack_drift_status of this Stack. terraform_version
Gets the terraform_version of this Stack. time_created
Gets the time_created of this Stack. time_drift_last_checked
Gets the time_drift_last_checked of this Stack. variables
Gets the variables of this Stack. Methods
__init__
(**kwargs)Initializes a new Stack object with values from keyword arguments. -
LIFECYCLE_STATE_ACTIVE
= 'ACTIVE'¶ A constant which can be used with the lifecycle_state property of a Stack. This constant has a value of “ACTIVE”
-
LIFECYCLE_STATE_CREATING
= 'CREATING'¶ A constant which can be used with the lifecycle_state property of a Stack. This constant has a value of “CREATING”
-
LIFECYCLE_STATE_DELETED
= 'DELETED'¶ A constant which can be used with the lifecycle_state property of a Stack. This constant has a value of “DELETED”
-
LIFECYCLE_STATE_DELETING
= 'DELETING'¶ A constant which can be used with the lifecycle_state property of a Stack. This constant has a value of “DELETING”
-
LIFECYCLE_STATE_FAILED
= 'FAILED'¶ A constant which can be used with the lifecycle_state property of a Stack. This constant has a value of “FAILED”
-
STACK_DRIFT_STATUS_DRIFTED
= 'DRIFTED'¶ A constant which can be used with the stack_drift_status property of a Stack. This constant has a value of “DRIFTED”
-
STACK_DRIFT_STATUS_IN_SYNC
= 'IN_SYNC'¶ A constant which can be used with the stack_drift_status property of a Stack. This constant has a value of “IN_SYNC”
-
STACK_DRIFT_STATUS_NOT_CHECKED
= 'NOT_CHECKED'¶ A constant which can be used with the stack_drift_status property of a Stack. This constant has a value of “NOT_CHECKED”
-
__init__
(**kwargs)¶ Initializes a new Stack object with values from keyword arguments. The following keyword arguments are supported (corresponding to the getters/setters of this class):
Parameters: - id (str) – The value to assign to the id property of this Stack.
- compartment_id (str) – The value to assign to the compartment_id property of this Stack.
- display_name (str) – The value to assign to the display_name property of this Stack.
- description (str) – The value to assign to the description property of this Stack.
- time_created (datetime) – The value to assign to the time_created property of this Stack.
- lifecycle_state (str) – The value to assign to the lifecycle_state property of this Stack. Allowed values for this property are: “CREATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- config_source (oci.resource_manager.models.ConfigSource) – The value to assign to the config_source property of this Stack.
- custom_terraform_provider (oci.resource_manager.models.CustomTerraformProvider) – The value to assign to the custom_terraform_provider property of this Stack.
- is_third_party_provider_experience_enabled (bool) – The value to assign to the is_third_party_provider_experience_enabled property of this Stack.
- variables (dict(str, str)) – The value to assign to the variables property of this Stack.
- terraform_version (str) – The value to assign to the terraform_version property of this Stack.
- stack_drift_status (str) – The value to assign to the stack_drift_status property of this Stack. Allowed values for this property are: “NOT_CHECKED”, “IN_SYNC”, “DRIFTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
- time_drift_last_checked (datetime) – The value to assign to the time_drift_last_checked property of this Stack.
- freeform_tags (dict(str, str)) – The value to assign to the freeform_tags property of this Stack.
- defined_tags (dict(str, dict(str, object))) – The value to assign to the defined_tags property of this Stack.
-
compartment_id
¶ Gets the compartment_id of this Stack. Unique identifier (OCID) for the compartment where the stack is located.
Returns: The compartment_id of this Stack. Return type: str
-
config_source
¶ Gets the config_source of this Stack.
Returns: The config_source of this Stack. Return type: oci.resource_manager.models.ConfigSource
-
custom_terraform_provider
¶ Gets the custom_terraform_provider of this Stack.
Returns: The custom_terraform_provider of this Stack. Return type: oci.resource_manager.models.CustomTerraformProvider
Gets the defined_tags of this Stack. Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {“Operations”: {“CostCenter”: “42”}}
Returns: The defined_tags of this Stack. Return type: dict(str, dict(str, object))
-
description
¶ Gets the description of this Stack. Description of the stack.
Returns: The description of this Stack. Return type: str
-
display_name
¶ Gets the display_name of this Stack. Human-readable name of the stack.
Returns: The display_name of this Stack. Return type: str
Gets the freeform_tags of this Stack. Free-form tags associated with the resource. Each tag is a key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {“Department”: “Finance”}
Returns: The freeform_tags of this Stack. Return type: dict(str, str)
-
id
¶ Gets the id of this Stack. Unique identifier (OCID) for the stack.
Returns: The id of this Stack. Return type: str
-
is_third_party_provider_experience_enabled
¶ Gets the is_third_party_provider_experience_enabled of this Stack. When true, the stack sources third-party Terraform providers from Terraform Registry and allows
custom_terraform_provider()
. For more information about stack sourcing of third-party Terraform providers, see Third-party Provider Configuration.Returns: The is_third_party_provider_experience_enabled of this Stack. Return type: bool
-
lifecycle_state
¶ Gets the lifecycle_state of this Stack. The current lifecycle state of the stack. For more information about stack lifecycle states in Resource Manager, see Key Concepts.
Allowed values for this property are: “CREATING”, “ACTIVE”, “DELETING”, “DELETED”, “FAILED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The lifecycle_state of this Stack. Return type: str
-
stack_drift_status
¶ Gets the stack_drift_status of this Stack. Drift status of the stack. Drift refers to differences between the actual (current) state of the stack and the expected (defined) state of the stack.
Allowed values for this property are: “NOT_CHECKED”, “IN_SYNC”, “DRIFTED”, ‘UNKNOWN_ENUM_VALUE’. Any unrecognized values returned by a service will be mapped to ‘UNKNOWN_ENUM_VALUE’.
Returns: The stack_drift_status of this Stack. Return type: str
-
terraform_version
¶ Gets the terraform_version of this Stack. The version of Terraform specified for the stack. Example: 0.12.x
Returns: The terraform_version of this Stack. Return type: str
-
time_created
¶ Gets the time_created of this Stack. The date and time at which the stack was created. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
Returns: The time_created of this Stack. Return type: datetime
-
time_drift_last_checked
¶ Gets the time_drift_last_checked of this Stack. The date and time when the drift detection was last executed. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z
Returns: The time_drift_last_checked of this Stack. Return type: datetime
-
variables
¶ Gets the variables of this Stack. Terraform variables associated with this resource. Maximum number of variables supported is 250. The maximum size of each variable, including both name and value, is 8192 bytes. Example: {“CompartmentId”: “compartment-id-value”}
Returns: The variables of this Stack. Return type: dict(str, str)
-