aws-sdk-connectscheduling 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/CHANGELOG.md +8 -0
- data/LICENSE.txt +202 -0
- data/VERSION +1 -0
- data/lib/aws-sdk-connectscheduling/client.rb +1116 -0
- data/lib/aws-sdk-connectscheduling/client_api.rb +295 -0
- data/lib/aws-sdk-connectscheduling/customizations.rb +0 -0
- data/lib/aws-sdk-connectscheduling/endpoint_parameters.rb +69 -0
- data/lib/aws-sdk-connectscheduling/endpoint_provider.rb +50 -0
- data/lib/aws-sdk-connectscheduling/endpoints.rb +20 -0
- data/lib/aws-sdk-connectscheduling/errors.rb +232 -0
- data/lib/aws-sdk-connectscheduling/plugins/endpoints.rb +77 -0
- data/lib/aws-sdk-connectscheduling/resource.rb +26 -0
- data/lib/aws-sdk-connectscheduling/types.rb +722 -0
- data/lib/aws-sdk-connectscheduling.rb +61 -0
- data/sig/client.rbs +177 -0
- data/sig/errors.rbs +51 -0
- data/sig/resource.rbs +86 -0
- data/sig/types.rbs +178 -0
- metadata +95 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module Aws::ConnectScheduling
|
|
12
|
+
# @api private
|
|
13
|
+
module ClientApi
|
|
14
|
+
|
|
15
|
+
include Seahorse::Model
|
|
16
|
+
|
|
17
|
+
ARN = Shapes::StringShape.new(name: 'ARN')
|
|
18
|
+
AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
|
|
19
|
+
ActorInfo = Shapes::UnionShape.new(name: 'ActorInfo')
|
|
20
|
+
ApprovalType = Shapes::StringShape.new(name: 'ApprovalType')
|
|
21
|
+
ApproveTimeOffRequest = Shapes::StructureShape.new(name: 'ApproveTimeOffRequest')
|
|
22
|
+
ApproveTimeOffResponse = Shapes::StructureShape.new(name: 'ApproveTimeOffResponse')
|
|
23
|
+
CancelTimeOffRequest = Shapes::StructureShape.new(name: 'CancelTimeOffRequest')
|
|
24
|
+
CancelTimeOffResponse = Shapes::StructureShape.new(name: 'CancelTimeOffResponse')
|
|
25
|
+
ClientToken = Shapes::StringShape.new(name: 'ClientToken')
|
|
26
|
+
ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
|
|
27
|
+
CreateTimeOffRequest = Shapes::StructureShape.new(name: 'CreateTimeOffRequest')
|
|
28
|
+
CreateTimeOffResponse = Shapes::StructureShape.new(name: 'CreateTimeOffResponse')
|
|
29
|
+
Description = Shapes::StringShape.new(name: 'Description')
|
|
30
|
+
Duration = Shapes::StructureShape.new(name: 'Duration')
|
|
31
|
+
DurationUnit = Shapes::StringShape.new(name: 'DurationUnit')
|
|
32
|
+
DurationValue = Shapes::IntegerShape.new(name: 'DurationValue')
|
|
33
|
+
GetTimeOffRequest = Shapes::StructureShape.new(name: 'GetTimeOffRequest')
|
|
34
|
+
GetTimeOffResponse = Shapes::StructureShape.new(name: 'GetTimeOffResponse')
|
|
35
|
+
InstanceIdOrArn = Shapes::StringShape.new(name: 'InstanceIdOrArn')
|
|
36
|
+
Integer = Shapes::IntegerShape.new(name: 'Integer')
|
|
37
|
+
InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
|
|
38
|
+
Message = Shapes::StringShape.new(name: 'Message')
|
|
39
|
+
PutTimeOffBalanceRequest = Shapes::StructureShape.new(name: 'PutTimeOffBalanceRequest')
|
|
40
|
+
PutTimeOffBalanceResponse = Shapes::StructureShape.new(name: 'PutTimeOffBalanceResponse')
|
|
41
|
+
RejectTimeOffRequest = Shapes::StructureShape.new(name: 'RejectTimeOffRequest')
|
|
42
|
+
RejectTimeOffResponse = Shapes::StructureShape.new(name: 'RejectTimeOffResponse')
|
|
43
|
+
ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
|
|
44
|
+
RuleFailureAction = Shapes::StringShape.new(name: 'RuleFailureAction')
|
|
45
|
+
ServiceQuotaExceededException = Shapes::StructureShape.new(name: 'ServiceQuotaExceededException')
|
|
46
|
+
ShiftActivityId = Shapes::StringShape.new(name: 'ShiftActivityId')
|
|
47
|
+
ShiftActivityIdOrArn = Shapes::StringShape.new(name: 'ShiftActivityIdOrArn')
|
|
48
|
+
String = Shapes::StringShape.new(name: 'String')
|
|
49
|
+
ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
|
|
50
|
+
TimeOffId = Shapes::StringShape.new(name: 'TimeOffId')
|
|
51
|
+
TimeOffStatus = Shapes::StringShape.new(name: 'TimeOffStatus')
|
|
52
|
+
TimeOffValidationCode = Shapes::StringShape.new(name: 'TimeOffValidationCode')
|
|
53
|
+
TimeOffValidationResult = Shapes::StructureShape.new(name: 'TimeOffValidationResult')
|
|
54
|
+
TimeOffValidationResults = Shapes::ListShape.new(name: 'TimeOffValidationResults')
|
|
55
|
+
TimeOffValidationSeverity = Shapes::StringShape.new(name: 'TimeOffValidationSeverity')
|
|
56
|
+
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
|
57
|
+
UserId = Shapes::StringShape.new(name: 'UserId')
|
|
58
|
+
UserIdOrArn = Shapes::StringShape.new(name: 'UserIdOrArn')
|
|
59
|
+
ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
|
|
60
|
+
ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
|
|
61
|
+
ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
|
|
62
|
+
ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
|
|
63
|
+
|
|
64
|
+
AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
65
|
+
AccessDeniedException.struct_class = Types::AccessDeniedException
|
|
66
|
+
|
|
67
|
+
ActorInfo.add_member(:connect_user_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "ConnectUserArn"))
|
|
68
|
+
ActorInfo.add_member(:aws_identity_arn, Shapes::ShapeRef.new(shape: ARN, location_name: "AWSIdentityArn"))
|
|
69
|
+
ActorInfo.add_member(:unknown, Shapes::ShapeRef.new(shape: nil, location_name: 'unknown'))
|
|
70
|
+
ActorInfo.add_member_subclass(:connect_user_arn, Types::ActorInfo::ConnectUserArn)
|
|
71
|
+
ActorInfo.add_member_subclass(:aws_identity_arn, Types::ActorInfo::AwsIdentityArn)
|
|
72
|
+
ActorInfo.add_member_subclass(:unknown, Types::ActorInfo::Unknown)
|
|
73
|
+
ActorInfo.struct_class = Types::ActorInfo
|
|
74
|
+
|
|
75
|
+
ApproveTimeOffRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location: "uri", location_name: "InstanceId"))
|
|
76
|
+
ApproveTimeOffRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserIdOrArn, required: true, location: "uri", location_name: "UserId"))
|
|
77
|
+
ApproveTimeOffRequest.add_member(:time_off_id, Shapes::ShapeRef.new(shape: TimeOffId, required: true, location: "uri", location_name: "TimeOffId"))
|
|
78
|
+
ApproveTimeOffRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
|
79
|
+
ApproveTimeOffRequest.add_member(:rule_failure_action, Shapes::ShapeRef.new(shape: RuleFailureAction, location_name: "RuleFailureAction"))
|
|
80
|
+
ApproveTimeOffRequest.struct_class = Types::ApproveTimeOffRequest
|
|
81
|
+
|
|
82
|
+
ApproveTimeOffResponse.struct_class = Types::ApproveTimeOffResponse
|
|
83
|
+
|
|
84
|
+
CancelTimeOffRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location: "uri", location_name: "InstanceId"))
|
|
85
|
+
CancelTimeOffRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserIdOrArn, required: true, location: "uri", location_name: "UserId"))
|
|
86
|
+
CancelTimeOffRequest.add_member(:time_off_id, Shapes::ShapeRef.new(shape: TimeOffId, required: true, location: "uri", location_name: "TimeOffId"))
|
|
87
|
+
CancelTimeOffRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
|
88
|
+
CancelTimeOffRequest.struct_class = Types::CancelTimeOffRequest
|
|
89
|
+
|
|
90
|
+
CancelTimeOffResponse.struct_class = Types::CancelTimeOffResponse
|
|
91
|
+
|
|
92
|
+
ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
93
|
+
ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
|
|
94
|
+
ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
|
|
95
|
+
ConflictException.struct_class = Types::ConflictException
|
|
96
|
+
|
|
97
|
+
CreateTimeOffRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location: "uri", location_name: "InstanceId"))
|
|
98
|
+
CreateTimeOffRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserIdOrArn, required: true, location: "uri", location_name: "UserId"))
|
|
99
|
+
CreateTimeOffRequest.add_member(:shift_activity_id, Shapes::ShapeRef.new(shape: ShiftActivityIdOrArn, required: true, location_name: "ShiftActivityId"))
|
|
100
|
+
CreateTimeOffRequest.add_member(:start_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartAt"))
|
|
101
|
+
CreateTimeOffRequest.add_member(:end_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndAt"))
|
|
102
|
+
CreateTimeOffRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
|
103
|
+
CreateTimeOffRequest.add_member(:approval_type, Shapes::ShapeRef.new(shape: ApprovalType, required: true, location_name: "ApprovalType"))
|
|
104
|
+
CreateTimeOffRequest.add_member(:rule_failure_action, Shapes::ShapeRef.new(shape: RuleFailureAction, location_name: "RuleFailureAction"))
|
|
105
|
+
CreateTimeOffRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientToken, location_name: "ClientToken", metadata: {"idempotencyToken" => true}))
|
|
106
|
+
CreateTimeOffRequest.struct_class = Types::CreateTimeOffRequest
|
|
107
|
+
|
|
108
|
+
CreateTimeOffResponse.add_member(:time_off_id, Shapes::ShapeRef.new(shape: TimeOffId, required: true, location_name: "TimeOffId"))
|
|
109
|
+
CreateTimeOffResponse.struct_class = Types::CreateTimeOffResponse
|
|
110
|
+
|
|
111
|
+
Duration.add_member(:value, Shapes::ShapeRef.new(shape: DurationValue, required: true, location_name: "Value"))
|
|
112
|
+
Duration.add_member(:unit, Shapes::ShapeRef.new(shape: DurationUnit, required: true, location_name: "Unit"))
|
|
113
|
+
Duration.struct_class = Types::Duration
|
|
114
|
+
|
|
115
|
+
GetTimeOffRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location: "uri", location_name: "InstanceId"))
|
|
116
|
+
GetTimeOffRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserIdOrArn, required: true, location: "uri", location_name: "UserId"))
|
|
117
|
+
GetTimeOffRequest.add_member(:time_off_id, Shapes::ShapeRef.new(shape: TimeOffId, required: true, location: "uri", location_name: "TimeOffId"))
|
|
118
|
+
GetTimeOffRequest.struct_class = Types::GetTimeOffRequest
|
|
119
|
+
|
|
120
|
+
GetTimeOffResponse.add_member(:time_off_id, Shapes::ShapeRef.new(shape: TimeOffId, required: true, location_name: "TimeOffId"))
|
|
121
|
+
GetTimeOffResponse.add_member(:user_id, Shapes::ShapeRef.new(shape: UserId, required: true, location_name: "UserId"))
|
|
122
|
+
GetTimeOffResponse.add_member(:shift_activity_id, Shapes::ShapeRef.new(shape: ShiftActivityId, required: true, location_name: "ShiftActivityId"))
|
|
123
|
+
GetTimeOffResponse.add_member(:start_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "StartAt"))
|
|
124
|
+
GetTimeOffResponse.add_member(:end_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "EndAt"))
|
|
125
|
+
GetTimeOffResponse.add_member(:status, Shapes::ShapeRef.new(shape: TimeOffStatus, required: true, location_name: "Status"))
|
|
126
|
+
GetTimeOffResponse.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
|
127
|
+
GetTimeOffResponse.add_member(:validation_results, Shapes::ShapeRef.new(shape: TimeOffValidationResults, location_name: "ValidationResults"))
|
|
128
|
+
GetTimeOffResponse.add_member(:created_by, Shapes::ShapeRef.new(shape: ActorInfo, required: true, location_name: "CreatedBy"))
|
|
129
|
+
GetTimeOffResponse.add_member(:created_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "CreatedAt"))
|
|
130
|
+
GetTimeOffResponse.add_member(:updated_by, Shapes::ShapeRef.new(shape: ActorInfo, location_name: "UpdatedBy"))
|
|
131
|
+
GetTimeOffResponse.add_member(:updated_at, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "UpdatedAt"))
|
|
132
|
+
GetTimeOffResponse.struct_class = Types::GetTimeOffResponse
|
|
133
|
+
|
|
134
|
+
InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
135
|
+
InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
|
136
|
+
InternalServerException.struct_class = Types::InternalServerException
|
|
137
|
+
|
|
138
|
+
PutTimeOffBalanceRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location: "uri", location_name: "InstanceId"))
|
|
139
|
+
PutTimeOffBalanceRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserIdOrArn, required: true, location: "uri", location_name: "UserId"))
|
|
140
|
+
PutTimeOffBalanceRequest.add_member(:shift_activity_id, Shapes::ShapeRef.new(shape: ShiftActivityIdOrArn, required: true, location: "uri", location_name: "ShiftActivityId"))
|
|
141
|
+
PutTimeOffBalanceRequest.add_member(:balance, Shapes::ShapeRef.new(shape: Duration, required: true, location_name: "Balance"))
|
|
142
|
+
PutTimeOffBalanceRequest.struct_class = Types::PutTimeOffBalanceRequest
|
|
143
|
+
|
|
144
|
+
PutTimeOffBalanceResponse.struct_class = Types::PutTimeOffBalanceResponse
|
|
145
|
+
|
|
146
|
+
RejectTimeOffRequest.add_member(:instance_id, Shapes::ShapeRef.new(shape: InstanceIdOrArn, required: true, location: "uri", location_name: "InstanceId"))
|
|
147
|
+
RejectTimeOffRequest.add_member(:user_id, Shapes::ShapeRef.new(shape: UserIdOrArn, required: true, location: "uri", location_name: "UserId"))
|
|
148
|
+
RejectTimeOffRequest.add_member(:time_off_id, Shapes::ShapeRef.new(shape: TimeOffId, required: true, location: "uri", location_name: "TimeOffId"))
|
|
149
|
+
RejectTimeOffRequest.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "Description"))
|
|
150
|
+
RejectTimeOffRequest.struct_class = Types::RejectTimeOffRequest
|
|
151
|
+
|
|
152
|
+
RejectTimeOffResponse.struct_class = Types::RejectTimeOffResponse
|
|
153
|
+
|
|
154
|
+
ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
155
|
+
ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
|
|
156
|
+
ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
|
|
157
|
+
ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
|
|
158
|
+
|
|
159
|
+
ServiceQuotaExceededException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
160
|
+
ServiceQuotaExceededException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "QuotaCode"))
|
|
161
|
+
ServiceQuotaExceededException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "ServiceCode"))
|
|
162
|
+
ServiceQuotaExceededException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, location_name: "ResourceId"))
|
|
163
|
+
ServiceQuotaExceededException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, location_name: "ResourceType"))
|
|
164
|
+
ServiceQuotaExceededException.struct_class = Types::ServiceQuotaExceededException
|
|
165
|
+
|
|
166
|
+
ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
167
|
+
ThrottlingException.add_member(:quota_code, Shapes::ShapeRef.new(shape: String, location_name: "QuotaCode"))
|
|
168
|
+
ThrottlingException.add_member(:service_code, Shapes::ShapeRef.new(shape: String, location_name: "ServiceCode"))
|
|
169
|
+
ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: Integer, location: "header", location_name: "Retry-After"))
|
|
170
|
+
ThrottlingException.struct_class = Types::ThrottlingException
|
|
171
|
+
|
|
172
|
+
TimeOffValidationResult.add_member(:severity, Shapes::ShapeRef.new(shape: TimeOffValidationSeverity, required: true, location_name: "Severity"))
|
|
173
|
+
TimeOffValidationResult.add_member(:code, Shapes::ShapeRef.new(shape: TimeOffValidationCode, required: true, location_name: "Code"))
|
|
174
|
+
TimeOffValidationResult.struct_class = Types::TimeOffValidationResult
|
|
175
|
+
|
|
176
|
+
TimeOffValidationResults.member = Shapes::ShapeRef.new(shape: TimeOffValidationResult)
|
|
177
|
+
|
|
178
|
+
ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: Message, required: true, location_name: "Message"))
|
|
179
|
+
ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "Reason"))
|
|
180
|
+
ValidationException.add_member(:field_list, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "FieldList"))
|
|
181
|
+
ValidationException.struct_class = Types::ValidationException
|
|
182
|
+
|
|
183
|
+
ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Name"))
|
|
184
|
+
ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "Message"))
|
|
185
|
+
ValidationExceptionField.struct_class = Types::ValidationExceptionField
|
|
186
|
+
|
|
187
|
+
ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
# @api private
|
|
191
|
+
API = Seahorse::Model::Api.new.tap do |api|
|
|
192
|
+
|
|
193
|
+
api.version = "2026-07-16"
|
|
194
|
+
|
|
195
|
+
api.metadata = {
|
|
196
|
+
"apiVersion" => "2026-07-16",
|
|
197
|
+
"auth" => ["aws.auth#sigv4"],
|
|
198
|
+
"endpointPrefix" => "connect",
|
|
199
|
+
"jsonVersion" => "1.1",
|
|
200
|
+
"protocol" => "rest-json",
|
|
201
|
+
"protocols" => ["rest-json"],
|
|
202
|
+
"serviceFullName" => "Amazon Connect Scheduling",
|
|
203
|
+
"serviceId" => "ConnectScheduling",
|
|
204
|
+
"signatureVersion" => "v4",
|
|
205
|
+
"signingName" => "connect",
|
|
206
|
+
"uid" => "connectscheduling-2026-07-16",
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
api.add_operation(:approve_time_off, Seahorse::Model::Operation.new.tap do |o|
|
|
210
|
+
o.name = "ApproveTimeOff"
|
|
211
|
+
o.http_method = "POST"
|
|
212
|
+
o.http_request_uri = "/scheduling/instances/{InstanceId}/users/{UserId}/timeoffs/{TimeOffId}/approve"
|
|
213
|
+
o.input = Shapes::ShapeRef.new(shape: ApproveTimeOffRequest)
|
|
214
|
+
o.output = Shapes::ShapeRef.new(shape: ApproveTimeOffResponse)
|
|
215
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
216
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
217
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
218
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
219
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
220
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
221
|
+
end)
|
|
222
|
+
|
|
223
|
+
api.add_operation(:cancel_time_off, Seahorse::Model::Operation.new.tap do |o|
|
|
224
|
+
o.name = "CancelTimeOff"
|
|
225
|
+
o.http_method = "POST"
|
|
226
|
+
o.http_request_uri = "/scheduling/instances/{InstanceId}/users/{UserId}/timeoffs/{TimeOffId}/cancel"
|
|
227
|
+
o.input = Shapes::ShapeRef.new(shape: CancelTimeOffRequest)
|
|
228
|
+
o.output = Shapes::ShapeRef.new(shape: CancelTimeOffResponse)
|
|
229
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
230
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
231
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
232
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
233
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
234
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
235
|
+
end)
|
|
236
|
+
|
|
237
|
+
api.add_operation(:create_time_off, Seahorse::Model::Operation.new.tap do |o|
|
|
238
|
+
o.name = "CreateTimeOff"
|
|
239
|
+
o.http_method = "POST"
|
|
240
|
+
o.http_request_uri = "/scheduling/instances/{InstanceId}/users/{UserId}/timeoffs"
|
|
241
|
+
o.input = Shapes::ShapeRef.new(shape: CreateTimeOffRequest)
|
|
242
|
+
o.output = Shapes::ShapeRef.new(shape: CreateTimeOffResponse)
|
|
243
|
+
o.errors << Shapes::ShapeRef.new(shape: ServiceQuotaExceededException)
|
|
244
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
245
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
246
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
247
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
248
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
249
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
250
|
+
end)
|
|
251
|
+
|
|
252
|
+
api.add_operation(:get_time_off, Seahorse::Model::Operation.new.tap do |o|
|
|
253
|
+
o.name = "GetTimeOff"
|
|
254
|
+
o.http_method = "GET"
|
|
255
|
+
o.http_request_uri = "/scheduling/instances/{InstanceId}/users/{UserId}/timeoffs/{TimeOffId}"
|
|
256
|
+
o.input = Shapes::ShapeRef.new(shape: GetTimeOffRequest)
|
|
257
|
+
o.output = Shapes::ShapeRef.new(shape: GetTimeOffResponse)
|
|
258
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
259
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
260
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
261
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
262
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
263
|
+
end)
|
|
264
|
+
|
|
265
|
+
api.add_operation(:put_time_off_balance, Seahorse::Model::Operation.new.tap do |o|
|
|
266
|
+
o.name = "PutTimeOffBalance"
|
|
267
|
+
o.http_method = "PUT"
|
|
268
|
+
o.http_request_uri = "/scheduling/instances/{InstanceId}/users/{UserId}/timeoff-balances/{ShiftActivityId}"
|
|
269
|
+
o.input = Shapes::ShapeRef.new(shape: PutTimeOffBalanceRequest)
|
|
270
|
+
o.output = Shapes::ShapeRef.new(shape: PutTimeOffBalanceResponse)
|
|
271
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
272
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
273
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
274
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
275
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
276
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
277
|
+
end)
|
|
278
|
+
|
|
279
|
+
api.add_operation(:reject_time_off, Seahorse::Model::Operation.new.tap do |o|
|
|
280
|
+
o.name = "RejectTimeOff"
|
|
281
|
+
o.http_method = "POST"
|
|
282
|
+
o.http_request_uri = "/scheduling/instances/{InstanceId}/users/{UserId}/timeoffs/{TimeOffId}/reject"
|
|
283
|
+
o.input = Shapes::ShapeRef.new(shape: RejectTimeOffRequest)
|
|
284
|
+
o.output = Shapes::ShapeRef.new(shape: RejectTimeOffResponse)
|
|
285
|
+
o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
|
|
286
|
+
o.errors << Shapes::ShapeRef.new(shape: ValidationException)
|
|
287
|
+
o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
|
|
288
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
|
289
|
+
o.errors << Shapes::ShapeRef.new(shape: ConflictException)
|
|
290
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
|
291
|
+
end)
|
|
292
|
+
end
|
|
293
|
+
|
|
294
|
+
end
|
|
295
|
+
end
|
|
File without changes
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
module Aws::ConnectScheduling
|
|
11
|
+
# Endpoint parameters used to influence endpoints per request.
|
|
12
|
+
#
|
|
13
|
+
# @!attribute region
|
|
14
|
+
# The AWS region used to dispatch the request.
|
|
15
|
+
#
|
|
16
|
+
# @return [string]
|
|
17
|
+
#
|
|
18
|
+
# @!attribute use_dual_stack
|
|
19
|
+
# When true, use the dual-stack endpoint. If the configured endpoint does not support dual-stack, dispatching the request MAY return an error.
|
|
20
|
+
#
|
|
21
|
+
# @return [boolean]
|
|
22
|
+
#
|
|
23
|
+
# @!attribute use_fips
|
|
24
|
+
# When true, send this request to the FIPS-compliant regional endpoint. If the configured endpoint does not have a FIPS compliant endpoint, dispatching the request will return an error.
|
|
25
|
+
#
|
|
26
|
+
# @return [boolean]
|
|
27
|
+
#
|
|
28
|
+
# @!attribute endpoint
|
|
29
|
+
# Override the endpoint used to send this request
|
|
30
|
+
#
|
|
31
|
+
# @return [string]
|
|
32
|
+
#
|
|
33
|
+
EndpointParameters = Struct.new(
|
|
34
|
+
:region,
|
|
35
|
+
:use_dual_stack,
|
|
36
|
+
:use_fips,
|
|
37
|
+
:endpoint,
|
|
38
|
+
) do
|
|
39
|
+
include Aws::Structure
|
|
40
|
+
|
|
41
|
+
# @api private
|
|
42
|
+
class << self
|
|
43
|
+
PARAM_MAP = {
|
|
44
|
+
'Region' => :region,
|
|
45
|
+
'UseDualStack' => :use_dual_stack,
|
|
46
|
+
'UseFIPS' => :use_fips,
|
|
47
|
+
'Endpoint' => :endpoint,
|
|
48
|
+
}.freeze
|
|
49
|
+
end
|
|
50
|
+
|
|
51
|
+
def initialize(options = {})
|
|
52
|
+
self[:region] = options[:region]
|
|
53
|
+
self[:use_dual_stack] = options[:use_dual_stack]
|
|
54
|
+
self[:use_dual_stack] = false if self[:use_dual_stack].nil?
|
|
55
|
+
self[:use_fips] = options[:use_fips]
|
|
56
|
+
self[:use_fips] = false if self[:use_fips].nil?
|
|
57
|
+
self[:endpoint] = options[:endpoint]
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def self.create(config, options={})
|
|
61
|
+
new({
|
|
62
|
+
region: config.region,
|
|
63
|
+
use_dual_stack: config.use_dualstack_endpoint,
|
|
64
|
+
use_fips: config.use_fips_endpoint,
|
|
65
|
+
endpoint: (config.endpoint.to_s unless config.regional_endpoint),
|
|
66
|
+
}.merge(options))
|
|
67
|
+
end
|
|
68
|
+
end
|
|
69
|
+
end
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
module Aws::ConnectScheduling
|
|
11
|
+
class EndpointProvider
|
|
12
|
+
def resolve_endpoint(parameters)
|
|
13
|
+
if Aws::Endpoints::Matchers.set?(parameters.endpoint)
|
|
14
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
15
|
+
raise ArgumentError, "Invalid Configuration: FIPS and custom endpoint are not supported"
|
|
16
|
+
end
|
|
17
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
18
|
+
raise ArgumentError, "Invalid Configuration: Dualstack and custom endpoint are not supported"
|
|
19
|
+
end
|
|
20
|
+
return Aws::Endpoints::Endpoint.new(url: parameters.endpoint, headers: {}, properties: {})
|
|
21
|
+
end
|
|
22
|
+
if Aws::Endpoints::Matchers.set?(parameters.region)
|
|
23
|
+
if (partition_result = Aws::Endpoints::Matchers.aws_partition(parameters.region))
|
|
24
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true) && Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
25
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS")) && Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
26
|
+
return Aws::Endpoints::Endpoint.new(url: "https://connect-fips.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
27
|
+
end
|
|
28
|
+
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
|
29
|
+
end
|
|
30
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_fips, true)
|
|
31
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
|
32
|
+
return Aws::Endpoints::Endpoint.new(url: "https://connect-fips.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
33
|
+
end
|
|
34
|
+
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
|
35
|
+
end
|
|
36
|
+
if Aws::Endpoints::Matchers.boolean_equals?(parameters.use_dual_stack, true)
|
|
37
|
+
if Aws::Endpoints::Matchers.boolean_equals?(true, Aws::Endpoints::Matchers.attr(partition_result, "supportsDualStack"))
|
|
38
|
+
return Aws::Endpoints::Endpoint.new(url: "https://connect.#{parameters.region}.#{partition_result['dualStackDnsSuffix']}", headers: {}, properties: {})
|
|
39
|
+
end
|
|
40
|
+
raise ArgumentError, "DualStack is enabled but this partition does not support DualStack"
|
|
41
|
+
end
|
|
42
|
+
return Aws::Endpoints::Endpoint.new(url: "https://connect.#{parameters.region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
raise ArgumentError, "Invalid Configuration: Missing Region"
|
|
46
|
+
raise ArgumentError, 'No endpoint could be resolved'
|
|
47
|
+
|
|
48
|
+
end
|
|
49
|
+
end
|
|
50
|
+
end
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
module Aws::ConnectScheduling
|
|
12
|
+
# @api private
|
|
13
|
+
module Endpoints
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def self.parameters_for_operation(context)
|
|
17
|
+
Aws::ConnectScheduling::EndpointParameters.create(context.config)
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
end
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
# WARNING ABOUT GENERATED CODE
|
|
4
|
+
#
|
|
5
|
+
# This file is generated. See the contributing guide for more information:
|
|
6
|
+
# https://github.com/aws/aws-sdk-ruby/blob/version-3/CONTRIBUTING.md
|
|
7
|
+
#
|
|
8
|
+
# WARNING ABOUT GENERATED CODE
|
|
9
|
+
|
|
10
|
+
module Aws::ConnectScheduling
|
|
11
|
+
|
|
12
|
+
# When ConnectScheduling returns an error response, the Ruby SDK constructs and raises an error.
|
|
13
|
+
# These errors all extend Aws::ConnectScheduling::Errors::ServiceError < {Aws::Errors::ServiceError}
|
|
14
|
+
#
|
|
15
|
+
# You can rescue all ConnectScheduling errors using ServiceError:
|
|
16
|
+
#
|
|
17
|
+
# begin
|
|
18
|
+
# # do stuff
|
|
19
|
+
# rescue Aws::ConnectScheduling::Errors::ServiceError
|
|
20
|
+
# # rescues all ConnectScheduling API errors
|
|
21
|
+
# end
|
|
22
|
+
#
|
|
23
|
+
#
|
|
24
|
+
# ## Request Context
|
|
25
|
+
# ServiceError objects have a {Aws::Errors::ServiceError#context #context} method that returns
|
|
26
|
+
# information about the request that generated the error.
|
|
27
|
+
# See {Seahorse::Client::RequestContext} for more information.
|
|
28
|
+
#
|
|
29
|
+
# ## Error Classes
|
|
30
|
+
# * {AccessDeniedException}
|
|
31
|
+
# * {ConflictException}
|
|
32
|
+
# * {InternalServerException}
|
|
33
|
+
# * {ResourceNotFoundException}
|
|
34
|
+
# * {ServiceQuotaExceededException}
|
|
35
|
+
# * {ThrottlingException}
|
|
36
|
+
# * {ValidationException}
|
|
37
|
+
#
|
|
38
|
+
# Additionally, error classes are dynamically generated for service errors based on the error code
|
|
39
|
+
# if they are not defined above.
|
|
40
|
+
module Errors
|
|
41
|
+
|
|
42
|
+
extend Aws::Errors::DynamicErrors
|
|
43
|
+
|
|
44
|
+
class AccessDeniedException < ServiceError
|
|
45
|
+
|
|
46
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
47
|
+
# @param [String] message
|
|
48
|
+
# @param [Aws::ConnectScheduling::Types::AccessDeniedException] data
|
|
49
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
50
|
+
super(context, message, data)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
# @return [String]
|
|
54
|
+
def message
|
|
55
|
+
@message || @data[:message]
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
class ConflictException < ServiceError
|
|
60
|
+
|
|
61
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
62
|
+
# @param [String] message
|
|
63
|
+
# @param [Aws::ConnectScheduling::Types::ConflictException] data
|
|
64
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
65
|
+
super(context, message, data)
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# @return [String]
|
|
69
|
+
def message
|
|
70
|
+
@message || @data[:message]
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
# @return [String]
|
|
74
|
+
def resource_id
|
|
75
|
+
@data[:resource_id]
|
|
76
|
+
end
|
|
77
|
+
|
|
78
|
+
# @return [String]
|
|
79
|
+
def resource_type
|
|
80
|
+
@data[:resource_type]
|
|
81
|
+
end
|
|
82
|
+
end
|
|
83
|
+
|
|
84
|
+
class InternalServerException < ServiceError
|
|
85
|
+
|
|
86
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
87
|
+
# @param [String] message
|
|
88
|
+
# @param [Aws::ConnectScheduling::Types::InternalServerException] data
|
|
89
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
90
|
+
super(context, message, data)
|
|
91
|
+
end
|
|
92
|
+
|
|
93
|
+
# @return [String]
|
|
94
|
+
def message
|
|
95
|
+
@message || @data[:message]
|
|
96
|
+
end
|
|
97
|
+
|
|
98
|
+
# @return [String]
|
|
99
|
+
def retry_after_seconds
|
|
100
|
+
@data[:retry_after_seconds]
|
|
101
|
+
end
|
|
102
|
+
|
|
103
|
+
def retryable?
|
|
104
|
+
true
|
|
105
|
+
end
|
|
106
|
+
end
|
|
107
|
+
|
|
108
|
+
class ResourceNotFoundException < ServiceError
|
|
109
|
+
|
|
110
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
111
|
+
# @param [String] message
|
|
112
|
+
# @param [Aws::ConnectScheduling::Types::ResourceNotFoundException] data
|
|
113
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
114
|
+
super(context, message, data)
|
|
115
|
+
end
|
|
116
|
+
|
|
117
|
+
# @return [String]
|
|
118
|
+
def message
|
|
119
|
+
@message || @data[:message]
|
|
120
|
+
end
|
|
121
|
+
|
|
122
|
+
# @return [String]
|
|
123
|
+
def resource_id
|
|
124
|
+
@data[:resource_id]
|
|
125
|
+
end
|
|
126
|
+
|
|
127
|
+
# @return [String]
|
|
128
|
+
def resource_type
|
|
129
|
+
@data[:resource_type]
|
|
130
|
+
end
|
|
131
|
+
end
|
|
132
|
+
|
|
133
|
+
class ServiceQuotaExceededException < ServiceError
|
|
134
|
+
|
|
135
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
136
|
+
# @param [String] message
|
|
137
|
+
# @param [Aws::ConnectScheduling::Types::ServiceQuotaExceededException] data
|
|
138
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
139
|
+
super(context, message, data)
|
|
140
|
+
end
|
|
141
|
+
|
|
142
|
+
# @return [String]
|
|
143
|
+
def message
|
|
144
|
+
@message || @data[:message]
|
|
145
|
+
end
|
|
146
|
+
|
|
147
|
+
# @return [String]
|
|
148
|
+
def quota_code
|
|
149
|
+
@data[:quota_code]
|
|
150
|
+
end
|
|
151
|
+
|
|
152
|
+
# @return [String]
|
|
153
|
+
def service_code
|
|
154
|
+
@data[:service_code]
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
# @return [String]
|
|
158
|
+
def resource_id
|
|
159
|
+
@data[:resource_id]
|
|
160
|
+
end
|
|
161
|
+
|
|
162
|
+
# @return [String]
|
|
163
|
+
def resource_type
|
|
164
|
+
@data[:resource_type]
|
|
165
|
+
end
|
|
166
|
+
end
|
|
167
|
+
|
|
168
|
+
class ThrottlingException < ServiceError
|
|
169
|
+
|
|
170
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
171
|
+
# @param [String] message
|
|
172
|
+
# @param [Aws::ConnectScheduling::Types::ThrottlingException] data
|
|
173
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
174
|
+
super(context, message, data)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# @return [String]
|
|
178
|
+
def message
|
|
179
|
+
@message || @data[:message]
|
|
180
|
+
end
|
|
181
|
+
|
|
182
|
+
# @return [String]
|
|
183
|
+
def quota_code
|
|
184
|
+
@data[:quota_code]
|
|
185
|
+
end
|
|
186
|
+
|
|
187
|
+
# @return [String]
|
|
188
|
+
def service_code
|
|
189
|
+
@data[:service_code]
|
|
190
|
+
end
|
|
191
|
+
|
|
192
|
+
# @return [String]
|
|
193
|
+
def retry_after_seconds
|
|
194
|
+
@data[:retry_after_seconds]
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
def retryable?
|
|
198
|
+
true
|
|
199
|
+
end
|
|
200
|
+
|
|
201
|
+
def throttling?
|
|
202
|
+
true
|
|
203
|
+
end
|
|
204
|
+
end
|
|
205
|
+
|
|
206
|
+
class ValidationException < ServiceError
|
|
207
|
+
|
|
208
|
+
# @param [Seahorse::Client::RequestContext] context
|
|
209
|
+
# @param [String] message
|
|
210
|
+
# @param [Aws::ConnectScheduling::Types::ValidationException] data
|
|
211
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
|
212
|
+
super(context, message, data)
|
|
213
|
+
end
|
|
214
|
+
|
|
215
|
+
# @return [String]
|
|
216
|
+
def message
|
|
217
|
+
@message || @data[:message]
|
|
218
|
+
end
|
|
219
|
+
|
|
220
|
+
# @return [String]
|
|
221
|
+
def reason
|
|
222
|
+
@data[:reason]
|
|
223
|
+
end
|
|
224
|
+
|
|
225
|
+
# @return [String]
|
|
226
|
+
def field_list
|
|
227
|
+
@data[:field_list]
|
|
228
|
+
end
|
|
229
|
+
end
|
|
230
|
+
|
|
231
|
+
end
|
|
232
|
+
end
|