Stack

class oci.resource_manager.models.Stack(**kwargs)

Bases: object

The stack object. Stacks represent definitions of groups of Oracle Cloud Infrastructure resources that you can act upon as a group. You take action on stacks by using jobs.

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"

__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", 'UNKNOWN_ENUM_VALUE'. Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'.
  • config_source (ConfigSource) -- The value to assign to the config_source 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.
  • 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. Specifies the configSourceType for uploading the Terraform configuration. Presently, the .zip file type (ZIP_UPLOAD) is the only supported configSourceType.

Returns:The config_source of this Stack.
Return type:ConfigSource
defined_tags

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
freeform_tags

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
lifecycle_state

Gets the lifecycle_state of this Stack. The current lifecycle state of the stack.

Allowed values for this property are: "CREATING", "ACTIVE", "DELETING", "DELETED", '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
terraform_version

Gets the terraform_version of this Stack. The Terraform version of the stack.

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.

Returns:The time_created 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 100. The maximum size of each variable, including both name and value, is 4096 bytes. Example: {"CompartmentId": "compartment-id-value"}

Returns:The variables of this Stack.
Return type:dict(str, str)