Class: AWS::SimpleWorkflow::Domain
- Inherits:
-
Resource
- Object
- Core::Resource
- Resource
- AWS::SimpleWorkflow::Domain
- Defined in:
- lib/aws/simple_workflow/domain.rb
Overview
Domains are used to organize workflows types and activities for an account.
Instance Attribute Summary collapse
-
#description ⇒ String?
readonly
Returns.
-
#name ⇒ String
readonly
Returns the name of this domain.
-
#retention_period ⇒ Integer, Symbol
readonly
Returns the retention period for this domain.
-
#status ⇒ Symbol
readonly
Returns the domain’s status.
Instance Method Summary collapse
- #activity_tasks ⇒ ActivityTaskCollection
- #activity_types ⇒ ActivityTypeCollection
- #decision_tasks ⇒ DecisionTaskCollection
-
#deprecate ⇒ nil
(also: #delete)
Deprecates the domain.
-
#deprecated? ⇒ Boolean
Returns true if this domain has been deprecated.
- #workflow_executions ⇒ WorkflowExecutionCollection
- #workflow_types ⇒ WorkflowTypeCollection
Instance Attribute Details
#description ⇒ String? (readonly)
Returns
30 31 32 |
# File 'lib/aws/simple_workflow/domain.rb', line 30 def description @description end |
#name ⇒ String (readonly)
Returns the name of this domain.
41 42 43 |
# File 'lib/aws/simple_workflow/domain.rb', line 41 def name @name end |
#retention_period ⇒ Integer, Symbol (readonly)
Returns the retention period for this domain. The return value may be an integer (number of days history is kept around) or the symbol :none
, implying no expiry of closed workflow executions.
30 31 32 |
# File 'lib/aws/simple_workflow/domain.rb', line 30 def retention_period @retention_period end |
#status ⇒ Symbol (readonly)
Returns the domain’s status. Status will be either :registered
or :deprecated
.
30 31 32 |
# File 'lib/aws/simple_workflow/domain.rb', line 30 def status @status end |
Instance Method Details
#activity_tasks ⇒ ActivityTaskCollection
73 74 75 |
# File 'lib/aws/simple_workflow/domain.rb', line 73 def activity_tasks ActivityTaskCollection.new(self) end |
#activity_types ⇒ ActivityTypeCollection
58 59 60 |
# File 'lib/aws/simple_workflow/domain.rb', line 58 def activity_types ActivityTypeCollection.new(self) end |
#decision_tasks ⇒ DecisionTaskCollection
68 69 70 |
# File 'lib/aws/simple_workflow/domain.rb', line 68 def decision_tasks DecisionTaskCollection.new(self) end |
#deprecate ⇒ nil Also known as: delete
Deprecates the domain. After a domain has been deprecated it cannot be used to create new workflow executions or register new types. However, you can still use visibility actions on this domain.
Deprecating a domain also deprecates all activity and workflow types registered in the domain. Executions that were started before the domain was deprecated will continue to run.
92 93 94 95 |
# File 'lib/aws/simple_workflow/domain.rb', line 92 def deprecate client.deprecate_domain(:name => name) nil end |
#deprecated? ⇒ Boolean
Returns true if this domain has been deprecated.
78 79 80 |
# File 'lib/aws/simple_workflow/domain.rb', line 78 def deprecated? self.status == :deprecated end |
#workflow_executions ⇒ WorkflowExecutionCollection
63 64 65 |
# File 'lib/aws/simple_workflow/domain.rb', line 63 def workflow_executions WorkflowExecutionCollection.new(self) end |
#workflow_types ⇒ WorkflowTypeCollection
53 54 55 |
# File 'lib/aws/simple_workflow/domain.rb', line 53 def workflow_types WorkflowTypeCollection.new(self) end |