Class: Aws::ConnectScheduling::Types::ApproveTimeOffRequest

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb

Overview

The request for ApproveTimeOff.

Constant Summary collapse

SENSITIVE =
[:description]

Instance Attribute Summary collapse

Instance Attribute Details

#description ⇒ String

A description recorded with the approval. GetTimeOff doesn't return it.

Returns:

  • (String)


94
95
96
97
98
99
100
101
102
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 94

class ApproveTimeOffRequest < Struct.new(
  :instance_id,
  :user_id,
  :time_off_id,
  :description,
  :rule_failure_action)
  SENSITIVE = [:description]
  include Aws::Structure
end

#instance_id ⇒ String

The identifier of the Connect Customer instance. This can be the ID or the ARN of the instance. You can find the instance ID in the Amazon Resource Name (ARN) of the instance.

Returns:

  • (String)


94
95
96
97
98
99
100
101
102
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 94

class ApproveTimeOffRequest < Struct.new(
  :instance_id,
  :user_id,
  :time_off_id,
  :description,
  :rule_failure_action)
  SENSITIVE = [:description]
  include Aws::Structure
end

#rule_failure_action ⇒ String

Controls what happens when a configured rule fails. REJECT, the default, records an ERROR and leaves the request REJECTED. OVERRIDE records a WARNING and approves the request, like the Override time off rules option in the Connect Customer admin website. OVERRIDE never waives CONFLICTING_TIME_OFF_REQUEST.

Returns:

  • (String)


94
95
96
97
98
99
100
101
102
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 94

class ApproveTimeOffRequest < Struct.new(
  :instance_id,
  :user_id,
  :time_off_id,
  :description,
  :rule_failure_action)
  SENSITIVE = [:description]
  include Aws::Structure
end

#time_off_id ⇒ String

The unique identifier of the time off request to approve. If the time off request doesn't belong to UserId, the operation returns ResourceNotFoundException.

Returns:

  • (String)


94
95
96
97
98
99
100
101
102
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 94

class ApproveTimeOffRequest < Struct.new(
  :instance_id,
  :user_id,
  :time_off_id,
  :description,
  :rule_failure_action)
  SENSITIVE = [:description]
  include Aws::Structure
end

#user_id ⇒ String

The identifier of the user who the time off request belongs to. This can be the ID or the ARN of the user.

Returns:

  • (String)


94
95
96
97
98
99
100
101
102
# File 'gems/aws-sdk-connectscheduling/lib/aws-sdk-connectscheduling/types.rb', line 94

class ApproveTimeOffRequest < Struct.new(
  :instance_id,
  :user_id,
  :time_off_id,
  :description,
  :rule_failure_action)
  SENSITIVE = [:description]
  include Aws::Structure
end