aws-sdk-route53recoverycluster 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,163 @@
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::Route53RecoveryCluster
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ AccessDeniedException = Shapes::StructureShape.new(name: 'AccessDeniedException')
17
+ Arn = Shapes::StringShape.new(name: 'Arn')
18
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
19
+ EndpointTemporarilyUnavailableException = Shapes::StructureShape.new(name: 'EndpointTemporarilyUnavailableException')
20
+ GetRoutingControlStateRequest = Shapes::StructureShape.new(name: 'GetRoutingControlStateRequest')
21
+ GetRoutingControlStateResponse = Shapes::StructureShape.new(name: 'GetRoutingControlStateResponse')
22
+ InternalServerException = Shapes::StructureShape.new(name: 'InternalServerException')
23
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
24
+ RetryAfterSeconds = Shapes::IntegerShape.new(name: 'RetryAfterSeconds')
25
+ RoutingControlState = Shapes::StringShape.new(name: 'RoutingControlState')
26
+ String = Shapes::StringShape.new(name: 'String')
27
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
28
+ UpdateRoutingControlStateEntries = Shapes::ListShape.new(name: 'UpdateRoutingControlStateEntries')
29
+ UpdateRoutingControlStateEntry = Shapes::StructureShape.new(name: 'UpdateRoutingControlStateEntry')
30
+ UpdateRoutingControlStateRequest = Shapes::StructureShape.new(name: 'UpdateRoutingControlStateRequest')
31
+ UpdateRoutingControlStateResponse = Shapes::StructureShape.new(name: 'UpdateRoutingControlStateResponse')
32
+ UpdateRoutingControlStatesRequest = Shapes::StructureShape.new(name: 'UpdateRoutingControlStatesRequest')
33
+ UpdateRoutingControlStatesResponse = Shapes::StructureShape.new(name: 'UpdateRoutingControlStatesResponse')
34
+ ValidationException = Shapes::StructureShape.new(name: 'ValidationException')
35
+ ValidationExceptionField = Shapes::StructureShape.new(name: 'ValidationExceptionField')
36
+ ValidationExceptionFieldList = Shapes::ListShape.new(name: 'ValidationExceptionFieldList')
37
+ ValidationExceptionReason = Shapes::StringShape.new(name: 'ValidationExceptionReason')
38
+
39
+ AccessDeniedException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
40
+ AccessDeniedException.struct_class = Types::AccessDeniedException
41
+
42
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
43
+ ConflictException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
44
+ ConflictException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
45
+ ConflictException.struct_class = Types::ConflictException
46
+
47
+ EndpointTemporarilyUnavailableException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
48
+ EndpointTemporarilyUnavailableException.struct_class = Types::EndpointTemporarilyUnavailableException
49
+
50
+ GetRoutingControlStateRequest.add_member(:routing_control_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoutingControlArn"))
51
+ GetRoutingControlStateRequest.struct_class = Types::GetRoutingControlStateRequest
52
+
53
+ GetRoutingControlStateResponse.add_member(:routing_control_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoutingControlArn"))
54
+ GetRoutingControlStateResponse.add_member(:routing_control_state, Shapes::ShapeRef.new(shape: RoutingControlState, required: true, location_name: "RoutingControlState"))
55
+ GetRoutingControlStateResponse.struct_class = Types::GetRoutingControlStateResponse
56
+
57
+ InternalServerException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
58
+ InternalServerException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location_name: "retryAfterSeconds"))
59
+ InternalServerException.struct_class = Types::InternalServerException
60
+
61
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
62
+ ResourceNotFoundException.add_member(:resource_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceId"))
63
+ ResourceNotFoundException.add_member(:resource_type, Shapes::ShapeRef.new(shape: String, required: true, location_name: "resourceType"))
64
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
65
+
66
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
67
+ ThrottlingException.add_member(:retry_after_seconds, Shapes::ShapeRef.new(shape: RetryAfterSeconds, location_name: "retryAfterSeconds"))
68
+ ThrottlingException.struct_class = Types::ThrottlingException
69
+
70
+ UpdateRoutingControlStateEntries.member = Shapes::ShapeRef.new(shape: UpdateRoutingControlStateEntry)
71
+
72
+ UpdateRoutingControlStateEntry.add_member(:routing_control_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoutingControlArn"))
73
+ UpdateRoutingControlStateEntry.add_member(:routing_control_state, Shapes::ShapeRef.new(shape: RoutingControlState, required: true, location_name: "RoutingControlState"))
74
+ UpdateRoutingControlStateEntry.struct_class = Types::UpdateRoutingControlStateEntry
75
+
76
+ UpdateRoutingControlStateRequest.add_member(:routing_control_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "RoutingControlArn"))
77
+ UpdateRoutingControlStateRequest.add_member(:routing_control_state, Shapes::ShapeRef.new(shape: RoutingControlState, required: true, location_name: "RoutingControlState"))
78
+ UpdateRoutingControlStateRequest.struct_class = Types::UpdateRoutingControlStateRequest
79
+
80
+ UpdateRoutingControlStateResponse.struct_class = Types::UpdateRoutingControlStateResponse
81
+
82
+ UpdateRoutingControlStatesRequest.add_member(:update_routing_control_state_entries, Shapes::ShapeRef.new(shape: UpdateRoutingControlStateEntries, required: true, location_name: "UpdateRoutingControlStateEntries"))
83
+ UpdateRoutingControlStatesRequest.struct_class = Types::UpdateRoutingControlStatesRequest
84
+
85
+ UpdateRoutingControlStatesResponse.struct_class = Types::UpdateRoutingControlStatesResponse
86
+
87
+ ValidationException.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
88
+ ValidationException.add_member(:reason, Shapes::ShapeRef.new(shape: ValidationExceptionReason, location_name: "reason"))
89
+ ValidationException.add_member(:fields, Shapes::ShapeRef.new(shape: ValidationExceptionFieldList, location_name: "fields"))
90
+ ValidationException.struct_class = Types::ValidationException
91
+
92
+ ValidationExceptionField.add_member(:name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "name"))
93
+ ValidationExceptionField.add_member(:message, Shapes::ShapeRef.new(shape: String, required: true, location_name: "message"))
94
+ ValidationExceptionField.struct_class = Types::ValidationExceptionField
95
+
96
+ ValidationExceptionFieldList.member = Shapes::ShapeRef.new(shape: ValidationExceptionField)
97
+
98
+
99
+ # @api private
100
+ API = Seahorse::Model::Api.new.tap do |api|
101
+
102
+ api.version = "2019-12-02"
103
+
104
+ api.metadata = {
105
+ "apiVersion" => "2019-12-02",
106
+ "endpointPrefix" => "route53-recovery-cluster",
107
+ "jsonVersion" => "1.0",
108
+ "protocol" => "json",
109
+ "serviceFullName" => "Route53 Recovery Cluster",
110
+ "serviceId" => "Route53 Recovery Cluster",
111
+ "signatureVersion" => "v4",
112
+ "signingName" => "route53-recovery-cluster",
113
+ "targetPrefix" => "ToggleCustomerAPI",
114
+ "uid" => "route53-recovery-cluster-2019-12-02",
115
+ }
116
+
117
+ api.add_operation(:get_routing_control_state, Seahorse::Model::Operation.new.tap do |o|
118
+ o.name = "GetRoutingControlState"
119
+ o.http_method = "POST"
120
+ o.http_request_uri = "/"
121
+ o.input = Shapes::ShapeRef.new(shape: GetRoutingControlStateRequest)
122
+ o.output = Shapes::ShapeRef.new(shape: GetRoutingControlStateResponse)
123
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
124
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
125
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
126
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
127
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
128
+ o.errors << Shapes::ShapeRef.new(shape: EndpointTemporarilyUnavailableException)
129
+ end)
130
+
131
+ api.add_operation(:update_routing_control_state, Seahorse::Model::Operation.new.tap do |o|
132
+ o.name = "UpdateRoutingControlState"
133
+ o.http_method = "POST"
134
+ o.http_request_uri = "/"
135
+ o.input = Shapes::ShapeRef.new(shape: UpdateRoutingControlStateRequest)
136
+ o.output = Shapes::ShapeRef.new(shape: UpdateRoutingControlStateResponse)
137
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
138
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
139
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
140
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
141
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
142
+ o.errors << Shapes::ShapeRef.new(shape: EndpointTemporarilyUnavailableException)
143
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
144
+ end)
145
+
146
+ api.add_operation(:update_routing_control_states, Seahorse::Model::Operation.new.tap do |o|
147
+ o.name = "UpdateRoutingControlStates"
148
+ o.http_method = "POST"
149
+ o.http_request_uri = "/"
150
+ o.input = Shapes::ShapeRef.new(shape: UpdateRoutingControlStatesRequest)
151
+ o.output = Shapes::ShapeRef.new(shape: UpdateRoutingControlStatesResponse)
152
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
153
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerException)
154
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
155
+ o.errors << Shapes::ShapeRef.new(shape: ValidationException)
156
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
157
+ o.errors << Shapes::ShapeRef.new(shape: EndpointTemporarilyUnavailableException)
158
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
159
+ end)
160
+ end
161
+
162
+ end
163
+ end
@@ -0,0 +1,190 @@
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::Route53RecoveryCluster
11
+
12
+ # When Route53RecoveryCluster returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::Route53RecoveryCluster::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all Route53RecoveryCluster errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::Route53RecoveryCluster::Errors::ServiceError
20
+ # # rescues all Route53RecoveryCluster 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
+ # * {EndpointTemporarilyUnavailableException}
33
+ # * {InternalServerException}
34
+ # * {ResourceNotFoundException}
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::Route53RecoveryCluster::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::Route53RecoveryCluster::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 EndpointTemporarilyUnavailableException < ServiceError
85
+
86
+ # @param [Seahorse::Client::RequestContext] context
87
+ # @param [String] message
88
+ # @param [Aws::Route53RecoveryCluster::Types::EndpointTemporarilyUnavailableException] 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
+ end
98
+
99
+ class InternalServerException < ServiceError
100
+
101
+ # @param [Seahorse::Client::RequestContext] context
102
+ # @param [String] message
103
+ # @param [Aws::Route53RecoveryCluster::Types::InternalServerException] data
104
+ def initialize(context, message, data = Aws::EmptyStructure.new)
105
+ super(context, message, data)
106
+ end
107
+
108
+ # @return [String]
109
+ def message
110
+ @message || @data[:message]
111
+ end
112
+
113
+ # @return [String]
114
+ def retry_after_seconds
115
+ @data[:retry_after_seconds]
116
+ end
117
+ end
118
+
119
+ class ResourceNotFoundException < ServiceError
120
+
121
+ # @param [Seahorse::Client::RequestContext] context
122
+ # @param [String] message
123
+ # @param [Aws::Route53RecoveryCluster::Types::ResourceNotFoundException] data
124
+ def initialize(context, message, data = Aws::EmptyStructure.new)
125
+ super(context, message, data)
126
+ end
127
+
128
+ # @return [String]
129
+ def message
130
+ @message || @data[:message]
131
+ end
132
+
133
+ # @return [String]
134
+ def resource_id
135
+ @data[:resource_id]
136
+ end
137
+
138
+ # @return [String]
139
+ def resource_type
140
+ @data[:resource_type]
141
+ end
142
+ end
143
+
144
+ class ThrottlingException < ServiceError
145
+
146
+ # @param [Seahorse::Client::RequestContext] context
147
+ # @param [String] message
148
+ # @param [Aws::Route53RecoveryCluster::Types::ThrottlingException] data
149
+ def initialize(context, message, data = Aws::EmptyStructure.new)
150
+ super(context, message, data)
151
+ end
152
+
153
+ # @return [String]
154
+ def message
155
+ @message || @data[:message]
156
+ end
157
+
158
+ # @return [String]
159
+ def retry_after_seconds
160
+ @data[:retry_after_seconds]
161
+ end
162
+ end
163
+
164
+ class ValidationException < ServiceError
165
+
166
+ # @param [Seahorse::Client::RequestContext] context
167
+ # @param [String] message
168
+ # @param [Aws::Route53RecoveryCluster::Types::ValidationException] data
169
+ def initialize(context, message, data = Aws::EmptyStructure.new)
170
+ super(context, message, data)
171
+ end
172
+
173
+ # @return [String]
174
+ def message
175
+ @message || @data[:message]
176
+ end
177
+
178
+ # @return [String]
179
+ def reason
180
+ @data[:reason]
181
+ end
182
+
183
+ # @return [String]
184
+ def fields
185
+ @data[:fields]
186
+ end
187
+ end
188
+
189
+ end
190
+ end
@@ -0,0 +1,26 @@
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::Route53RecoveryCluster
11
+
12
+ class Resource
13
+
14
+ # @param options ({})
15
+ # @option options [Client] :client
16
+ def initialize(options = {})
17
+ @client = options[:client] || Client.new(options)
18
+ end
19
+
20
+ # @return [Client]
21
+ def client
22
+ @client
23
+ end
24
+
25
+ end
26
+ end
@@ -0,0 +1,290 @@
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::Route53RecoveryCluster
11
+ module Types
12
+
13
+ # You don't have sufficient permissions to query the routing control
14
+ # state.
15
+ #
16
+ # @!attribute [rw] message
17
+ # @return [String]
18
+ #
19
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/AccessDeniedException AWS API Documentation
20
+ #
21
+ class AccessDeniedException < Struct.new(
22
+ :message)
23
+ SENSITIVE = []
24
+ include Aws::Structure
25
+ end
26
+
27
+ # There was a conflict with this request. Try again.
28
+ #
29
+ # @!attribute [rw] message
30
+ # Description of the ConflictException error
31
+ # @return [String]
32
+ #
33
+ # @!attribute [rw] resource_id
34
+ # Identifier of the resource in use
35
+ # @return [String]
36
+ #
37
+ # @!attribute [rw] resource_type
38
+ # Type of the resource in use
39
+ # @return [String]
40
+ #
41
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ConflictException AWS API Documentation
42
+ #
43
+ class ConflictException < Struct.new(
44
+ :message,
45
+ :resource_id,
46
+ :resource_type)
47
+ SENSITIVE = []
48
+ include Aws::Structure
49
+ end
50
+
51
+ # The cluster endpoint isn't available. Try another cluster endpoint.
52
+ #
53
+ # @!attribute [rw] message
54
+ # @return [String]
55
+ #
56
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/EndpointTemporarilyUnavailableException AWS API Documentation
57
+ #
58
+ class EndpointTemporarilyUnavailableException < Struct.new(
59
+ :message)
60
+ SENSITIVE = []
61
+ include Aws::Structure
62
+ end
63
+
64
+ # @note When making an API call, you may pass GetRoutingControlStateRequest
65
+ # data as a hash:
66
+ #
67
+ # {
68
+ # routing_control_arn: "Arn", # required
69
+ # }
70
+ #
71
+ # @!attribute [rw] routing_control_arn
72
+ # The Amazon Resource Number (ARN) for the routing control that you
73
+ # want to get the state for.
74
+ # @return [String]
75
+ #
76
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/GetRoutingControlStateRequest AWS API Documentation
77
+ #
78
+ class GetRoutingControlStateRequest < Struct.new(
79
+ :routing_control_arn)
80
+ SENSITIVE = []
81
+ include Aws::Structure
82
+ end
83
+
84
+ # @!attribute [rw] routing_control_arn
85
+ # The Amazon Resource Number (ARN) of the response.
86
+ # @return [String]
87
+ #
88
+ # @!attribute [rw] routing_control_state
89
+ # The state of the routing control.
90
+ # @return [String]
91
+ #
92
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/GetRoutingControlStateResponse AWS API Documentation
93
+ #
94
+ class GetRoutingControlStateResponse < Struct.new(
95
+ :routing_control_arn,
96
+ :routing_control_state)
97
+ SENSITIVE = []
98
+ include Aws::Structure
99
+ end
100
+
101
+ # There was an unexpected error during processing of the request.
102
+ #
103
+ # @!attribute [rw] message
104
+ # @return [String]
105
+ #
106
+ # @!attribute [rw] retry_after_seconds
107
+ # Advice to clients on when the call can be safely retried
108
+ # @return [Integer]
109
+ #
110
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/InternalServerException AWS API Documentation
111
+ #
112
+ class InternalServerException < Struct.new(
113
+ :message,
114
+ :retry_after_seconds)
115
+ SENSITIVE = []
116
+ include Aws::Structure
117
+ end
118
+
119
+ # The request references a routing control that was not found.
120
+ #
121
+ # @!attribute [rw] message
122
+ # @return [String]
123
+ #
124
+ # @!attribute [rw] resource_id
125
+ # Hypothetical resource identifier that was not found
126
+ # @return [String]
127
+ #
128
+ # @!attribute [rw] resource_type
129
+ # Hypothetical resource type that was not found
130
+ # @return [String]
131
+ #
132
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ResourceNotFoundException AWS API Documentation
133
+ #
134
+ class ResourceNotFoundException < Struct.new(
135
+ :message,
136
+ :resource_id,
137
+ :resource_type)
138
+ SENSITIVE = []
139
+ include Aws::Structure
140
+ end
141
+
142
+ # The request was denied because of request throttling.
143
+ #
144
+ # @!attribute [rw] message
145
+ # @return [String]
146
+ #
147
+ # @!attribute [rw] retry_after_seconds
148
+ # Advice to clients on when the call can be safely retried
149
+ # @return [Integer]
150
+ #
151
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ThrottlingException AWS API Documentation
152
+ #
153
+ class ThrottlingException < Struct.new(
154
+ :message,
155
+ :retry_after_seconds)
156
+ SENSITIVE = []
157
+ include Aws::Structure
158
+ end
159
+
160
+ # A routing control state.
161
+ #
162
+ # @note When making an API call, you may pass UpdateRoutingControlStateEntry
163
+ # data as a hash:
164
+ #
165
+ # {
166
+ # routing_control_arn: "Arn", # required
167
+ # routing_control_state: "On", # required, accepts On, Off
168
+ # }
169
+ #
170
+ # @!attribute [rw] routing_control_arn
171
+ # The Amazon Resource Number (ARN) for the routing control state
172
+ # entry.
173
+ # @return [String]
174
+ #
175
+ # @!attribute [rw] routing_control_state
176
+ # The routing control state in a set of routing control state entries.
177
+ # @return [String]
178
+ #
179
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStateEntry AWS API Documentation
180
+ #
181
+ class UpdateRoutingControlStateEntry < Struct.new(
182
+ :routing_control_arn,
183
+ :routing_control_state)
184
+ SENSITIVE = []
185
+ include Aws::Structure
186
+ end
187
+
188
+ # @note When making an API call, you may pass UpdateRoutingControlStateRequest
189
+ # data as a hash:
190
+ #
191
+ # {
192
+ # routing_control_arn: "Arn", # required
193
+ # routing_control_state: "On", # required, accepts On, Off
194
+ # }
195
+ #
196
+ # @!attribute [rw] routing_control_arn
197
+ # The Amazon Resource Number (ARN) for the routing control that you
198
+ # want to update the state for.
199
+ # @return [String]
200
+ #
201
+ # @!attribute [rw] routing_control_state
202
+ # The state of the routing control. You can set the value to be On or
203
+ # Off.
204
+ # @return [String]
205
+ #
206
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStateRequest AWS API Documentation
207
+ #
208
+ class UpdateRoutingControlStateRequest < Struct.new(
209
+ :routing_control_arn,
210
+ :routing_control_state)
211
+ SENSITIVE = []
212
+ include Aws::Structure
213
+ end
214
+
215
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStateResponse AWS API Documentation
216
+ #
217
+ class UpdateRoutingControlStateResponse < Aws::EmptyStructure; end
218
+
219
+ # @note When making an API call, you may pass UpdateRoutingControlStatesRequest
220
+ # data as a hash:
221
+ #
222
+ # {
223
+ # update_routing_control_state_entries: [ # required
224
+ # {
225
+ # routing_control_arn: "Arn", # required
226
+ # routing_control_state: "On", # required, accepts On, Off
227
+ # },
228
+ # ],
229
+ # }
230
+ #
231
+ # @!attribute [rw] update_routing_control_state_entries
232
+ # A set of routing control entries that you want to update.
233
+ # @return [Array<Types::UpdateRoutingControlStateEntry>]
234
+ #
235
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStatesRequest AWS API Documentation
236
+ #
237
+ class UpdateRoutingControlStatesRequest < Struct.new(
238
+ :update_routing_control_state_entries)
239
+ SENSITIVE = []
240
+ include Aws::Structure
241
+ end
242
+
243
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/UpdateRoutingControlStatesResponse AWS API Documentation
244
+ #
245
+ class UpdateRoutingControlStatesResponse < Aws::EmptyStructure; end
246
+
247
+ # There was a validation error on the request.
248
+ #
249
+ # @!attribute [rw] message
250
+ # @return [String]
251
+ #
252
+ # @!attribute [rw] reason
253
+ # Reason the request failed validation
254
+ # @return [String]
255
+ #
256
+ # @!attribute [rw] fields
257
+ # The fields that caused the error, if applicable
258
+ # @return [Array<Types::ValidationExceptionField>]
259
+ #
260
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ValidationException AWS API Documentation
261
+ #
262
+ class ValidationException < Struct.new(
263
+ :message,
264
+ :reason,
265
+ :fields)
266
+ SENSITIVE = []
267
+ include Aws::Structure
268
+ end
269
+
270
+ # There was a validation error on the request.
271
+ #
272
+ # @!attribute [rw] name
273
+ # The field that had the validation exception.
274
+ # @return [String]
275
+ #
276
+ # @!attribute [rw] message
277
+ # Information about the validation exception.
278
+ # @return [String]
279
+ #
280
+ # @see http://docs.aws.amazon.com/goto/WebAPI/route53-recovery-cluster-2019-12-02/ValidationExceptionField AWS API Documentation
281
+ #
282
+ class ValidationExceptionField < Struct.new(
283
+ :name,
284
+ :message)
285
+ SENSITIVE = []
286
+ include Aws::Structure
287
+ end
288
+
289
+ end
290
+ end