class AWS::SimpleWorkflow::Domain

Domains are used to organize workflows types and activities for an account.

@attr_reader [String,nil] description Returns

@attr_reader [Integer,Symbol] retention_period 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.

@attr_reader [Symbol] status Returns the domain's status. Status will

be either +:registered+ or +:deprecated+.

Attributes

name[R]

@return [String] Returns the name of this domain.

Public Class Methods

new(name, options = {}) click to toggle source

@private

Calls superclass method
# File lib/aws/simple_workflow/domain.rb, line 35
def initialize name, options = {}
  @name = name.to_s
  super(options)
end

Public Instance Methods

activity_tasks() click to toggle source

@return [ActivityTaskCollection]

# File lib/aws/simple_workflow/domain.rb, line 73
def activity_tasks
  ActivityTaskCollection.new(self)
end
activity_types() click to toggle source

@return [ActivityTypeCollection]

# File lib/aws/simple_workflow/domain.rb, line 58
def activity_types
  ActivityTypeCollection.new(self)
end
decision_tasks() click to toggle source

@return [DecisionTaskCollection]

# File lib/aws/simple_workflow/domain.rb, line 68
def decision_tasks
  DecisionTaskCollection.new(self)
end
delete()
Alias for: deprecate
deprecate() click to toggle source

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.

@return [nil]

# File lib/aws/simple_workflow/domain.rb, line 92
def deprecate
  client.deprecate_domain(:name => name)
  nil
end
Also aliased as: delete
deprecated?() click to toggle source

@return [Boolean] Returns true if this domain has been deprecated.

# File lib/aws/simple_workflow/domain.rb, line 78
def deprecated?
  self.status == :deprecated
end
workflow_executions() click to toggle source

@return [WorkflowExecutionCollection]

# File lib/aws/simple_workflow/domain.rb, line 63
def workflow_executions
  WorkflowExecutionCollection.new(self)
end
workflow_types() click to toggle source

@return [WorkflowTypeCollection]

# File lib/aws/simple_workflow/domain.rb, line 53
def workflow_types
  WorkflowTypeCollection.new(self)
end

Protected Instance Methods

resource_identifiers() click to toggle source
# File lib/aws/simple_workflow/domain.rb, line 116
def resource_identifiers
  [[:name,name]]
end