aws-sdk-iotfleethub 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.
@@ -0,0 +1,277 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IoTFleetHub
11
+ # @api private
12
+ module ClientApi
13
+
14
+ include Seahorse::Model
15
+
16
+ ApplicationState = Shapes::StringShape.new(name: 'ApplicationState')
17
+ ApplicationSummaries = Shapes::ListShape.new(name: 'ApplicationSummaries')
18
+ ApplicationSummary = Shapes::StructureShape.new(name: 'ApplicationSummary')
19
+ Arn = Shapes::StringShape.new(name: 'Arn')
20
+ ClientRequestToken = Shapes::StringShape.new(name: 'ClientRequestToken')
21
+ ConflictException = Shapes::StructureShape.new(name: 'ConflictException')
22
+ CreateApplicationRequest = Shapes::StructureShape.new(name: 'CreateApplicationRequest')
23
+ CreateApplicationResponse = Shapes::StructureShape.new(name: 'CreateApplicationResponse')
24
+ DeleteApplicationRequest = Shapes::StructureShape.new(name: 'DeleteApplicationRequest')
25
+ DeleteApplicationResponse = Shapes::StructureShape.new(name: 'DeleteApplicationResponse')
26
+ DescribeApplicationRequest = Shapes::StructureShape.new(name: 'DescribeApplicationRequest')
27
+ DescribeApplicationResponse = Shapes::StructureShape.new(name: 'DescribeApplicationResponse')
28
+ Description = Shapes::StringShape.new(name: 'Description')
29
+ ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
30
+ Id = Shapes::StringShape.new(name: 'Id')
31
+ InternalFailureException = Shapes::StructureShape.new(name: 'InternalFailureException')
32
+ InvalidRequestException = Shapes::StructureShape.new(name: 'InvalidRequestException')
33
+ LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
34
+ ListApplicationsRequest = Shapes::StructureShape.new(name: 'ListApplicationsRequest')
35
+ ListApplicationsResponse = Shapes::StructureShape.new(name: 'ListApplicationsResponse')
36
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
37
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
38
+ Name = Shapes::StringShape.new(name: 'Name')
39
+ NextToken = Shapes::StringShape.new(name: 'NextToken')
40
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
41
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
42
+ SsoClientId = Shapes::StringShape.new(name: 'SsoClientId')
43
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
44
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
45
+ TagMap = Shapes::MapShape.new(name: 'TagMap')
46
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
47
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
48
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
49
+ ThrottlingException = Shapes::StructureShape.new(name: 'ThrottlingException')
50
+ Timestamp = Shapes::IntegerShape.new(name: 'Timestamp')
51
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
52
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
53
+ UpdateApplicationRequest = Shapes::StructureShape.new(name: 'UpdateApplicationRequest')
54
+ UpdateApplicationResponse = Shapes::StructureShape.new(name: 'UpdateApplicationResponse')
55
+ Url = Shapes::StringShape.new(name: 'Url')
56
+ errorMessage = Shapes::StringShape.new(name: 'errorMessage')
57
+
58
+ ApplicationSummaries.member = Shapes::ShapeRef.new(shape: ApplicationSummary)
59
+
60
+ ApplicationSummary.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "applicationId"))
61
+ ApplicationSummary.add_member(:application_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "applicationName"))
62
+ ApplicationSummary.add_member(:application_description, Shapes::ShapeRef.new(shape: Description, location_name: "applicationDescription"))
63
+ ApplicationSummary.add_member(:application_url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "applicationUrl"))
64
+ ApplicationSummary.add_member(:application_creation_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "applicationCreationDate"))
65
+ ApplicationSummary.add_member(:application_last_update_date, Shapes::ShapeRef.new(shape: Timestamp, location_name: "applicationLastUpdateDate"))
66
+ ApplicationSummary.add_member(:application_state, Shapes::ShapeRef.new(shape: ApplicationState, location_name: "applicationState"))
67
+ ApplicationSummary.struct_class = Types::ApplicationSummary
68
+
69
+ ConflictException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
70
+ ConflictException.struct_class = Types::ConflictException
71
+
72
+ CreateApplicationRequest.add_member(:application_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "applicationName"))
73
+ CreateApplicationRequest.add_member(:application_description, Shapes::ShapeRef.new(shape: Description, location_name: "applicationDescription"))
74
+ CreateApplicationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
75
+ CreateApplicationRequest.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "roleArn"))
76
+ CreateApplicationRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
77
+ CreateApplicationRequest.struct_class = Types::CreateApplicationRequest
78
+
79
+ CreateApplicationResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "applicationId"))
80
+ CreateApplicationResponse.add_member(:application_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "applicationArn"))
81
+ CreateApplicationResponse.struct_class = Types::CreateApplicationResponse
82
+
83
+ DeleteApplicationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "applicationId"))
84
+ DeleteApplicationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location: "querystring", location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
85
+ DeleteApplicationRequest.struct_class = Types::DeleteApplicationRequest
86
+
87
+ DeleteApplicationResponse.struct_class = Types::DeleteApplicationResponse
88
+
89
+ DescribeApplicationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "applicationId"))
90
+ DescribeApplicationRequest.struct_class = Types::DescribeApplicationRequest
91
+
92
+ DescribeApplicationResponse.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location_name: "applicationId"))
93
+ DescribeApplicationResponse.add_member(:application_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "applicationArn"))
94
+ DescribeApplicationResponse.add_member(:application_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "applicationName"))
95
+ DescribeApplicationResponse.add_member(:application_description, Shapes::ShapeRef.new(shape: Description, location_name: "applicationDescription"))
96
+ DescribeApplicationResponse.add_member(:application_url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "applicationUrl"))
97
+ DescribeApplicationResponse.add_member(:application_state, Shapes::ShapeRef.new(shape: ApplicationState, required: true, location_name: "applicationState"))
98
+ DescribeApplicationResponse.add_member(:application_creation_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "applicationCreationDate"))
99
+ DescribeApplicationResponse.add_member(:application_last_update_date, Shapes::ShapeRef.new(shape: Timestamp, required: true, location_name: "applicationLastUpdateDate"))
100
+ DescribeApplicationResponse.add_member(:role_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "roleArn"))
101
+ DescribeApplicationResponse.add_member(:sso_client_id, Shapes::ShapeRef.new(shape: SsoClientId, location_name: "ssoClientId"))
102
+ DescribeApplicationResponse.add_member(:error_message, Shapes::ShapeRef.new(shape: ErrorMessage, location_name: "errorMessage"))
103
+ DescribeApplicationResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
104
+ DescribeApplicationResponse.struct_class = Types::DescribeApplicationResponse
105
+
106
+ InternalFailureException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
107
+ InternalFailureException.struct_class = Types::InternalFailureException
108
+
109
+ InvalidRequestException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
110
+ InvalidRequestException.struct_class = Types::InvalidRequestException
111
+
112
+ LimitExceededException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
113
+ LimitExceededException.struct_class = Types::LimitExceededException
114
+
115
+ ListApplicationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
116
+ ListApplicationsRequest.struct_class = Types::ListApplicationsRequest
117
+
118
+ ListApplicationsResponse.add_member(:application_summaries, Shapes::ShapeRef.new(shape: ApplicationSummaries, location_name: "applicationSummaries"))
119
+ ListApplicationsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
120
+ ListApplicationsResponse.struct_class = Types::ListApplicationsResponse
121
+
122
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
123
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
124
+
125
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, location_name: "tags"))
126
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
127
+
128
+ ResourceNotFoundException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
129
+ ResourceNotFoundException.struct_class = Types::ResourceNotFoundException
130
+
131
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
132
+
133
+ TagMap.key = Shapes::ShapeRef.new(shape: TagKey)
134
+ TagMap.value = Shapes::ShapeRef.new(shape: TagValue)
135
+
136
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
137
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagMap, required: true, location_name: "tags"))
138
+ TagResourceRequest.struct_class = Types::TagResourceRequest
139
+
140
+ TagResourceResponse.struct_class = Types::TagResourceResponse
141
+
142
+ ThrottlingException.add_member(:message, Shapes::ShapeRef.new(shape: errorMessage, location_name: "message"))
143
+ ThrottlingException.struct_class = Types::ThrottlingException
144
+
145
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location: "uri", location_name: "resourceArn"))
146
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location: "querystring", location_name: "tagKeys"))
147
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
148
+
149
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
150
+
151
+ UpdateApplicationRequest.add_member(:application_id, Shapes::ShapeRef.new(shape: Id, required: true, location: "uri", location_name: "applicationId"))
152
+ UpdateApplicationRequest.add_member(:application_name, Shapes::ShapeRef.new(shape: Name, location_name: "applicationName"))
153
+ UpdateApplicationRequest.add_member(:application_description, Shapes::ShapeRef.new(shape: Description, location_name: "applicationDescription"))
154
+ UpdateApplicationRequest.add_member(:client_token, Shapes::ShapeRef.new(shape: ClientRequestToken, location_name: "clientToken", metadata: {"idempotencyToken"=>true}))
155
+ UpdateApplicationRequest.struct_class = Types::UpdateApplicationRequest
156
+
157
+ UpdateApplicationResponse.struct_class = Types::UpdateApplicationResponse
158
+
159
+
160
+ # @api private
161
+ API = Seahorse::Model::Api.new.tap do |api|
162
+
163
+ api.version = "2020-11-03"
164
+
165
+ api.metadata = {
166
+ "apiVersion" => "2020-11-03",
167
+ "endpointPrefix" => "api.fleethub.iot",
168
+ "jsonVersion" => "1.1",
169
+ "protocol" => "rest-json",
170
+ "serviceFullName" => "AWS IoT Fleet Hub",
171
+ "serviceId" => "IoTFleetHub",
172
+ "signatureVersion" => "v4",
173
+ "signingName" => "iotfleethub",
174
+ "uid" => "iotfleethub-2020-11-03",
175
+ }
176
+
177
+ api.add_operation(:create_application, Seahorse::Model::Operation.new.tap do |o|
178
+ o.name = "CreateApplication"
179
+ o.http_method = "POST"
180
+ o.http_request_uri = "/applications"
181
+ o.input = Shapes::ShapeRef.new(shape: CreateApplicationRequest)
182
+ o.output = Shapes::ShapeRef.new(shape: CreateApplicationResponse)
183
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
184
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
185
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
186
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
187
+ end)
188
+
189
+ api.add_operation(:delete_application, Seahorse::Model::Operation.new.tap do |o|
190
+ o.name = "DeleteApplication"
191
+ o.http_method = "DELETE"
192
+ o.http_request_uri = "/applications/{applicationId}"
193
+ o.input = Shapes::ShapeRef.new(shape: DeleteApplicationRequest)
194
+ o.output = Shapes::ShapeRef.new(shape: DeleteApplicationResponse)
195
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
196
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
197
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
198
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
199
+ end)
200
+
201
+ api.add_operation(:describe_application, Seahorse::Model::Operation.new.tap do |o|
202
+ o.name = "DescribeApplication"
203
+ o.http_method = "GET"
204
+ o.http_request_uri = "/applications/{applicationId}"
205
+ o.input = Shapes::ShapeRef.new(shape: DescribeApplicationRequest)
206
+ o.output = Shapes::ShapeRef.new(shape: DescribeApplicationResponse)
207
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
208
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
209
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
210
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
211
+ end)
212
+
213
+ api.add_operation(:list_applications, Seahorse::Model::Operation.new.tap do |o|
214
+ o.name = "ListApplications"
215
+ o.http_method = "GET"
216
+ o.http_request_uri = "/applications"
217
+ o.input = Shapes::ShapeRef.new(shape: ListApplicationsRequest)
218
+ o.output = Shapes::ShapeRef.new(shape: ListApplicationsResponse)
219
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
220
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
221
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
222
+ o[:pager] = Aws::Pager.new(
223
+ tokens: {
224
+ "next_token" => "next_token"
225
+ }
226
+ )
227
+ end)
228
+
229
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
230
+ o.name = "ListTagsForResource"
231
+ o.http_method = "GET"
232
+ o.http_request_uri = "/tags/{resourceArn}"
233
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
234
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
235
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
236
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
237
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
238
+ end)
239
+
240
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
241
+ o.name = "TagResource"
242
+ o.http_method = "POST"
243
+ o.http_request_uri = "/tags/{resourceArn}"
244
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
245
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
246
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
247
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
248
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
249
+ end)
250
+
251
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
252
+ o.name = "UntagResource"
253
+ o.http_method = "DELETE"
254
+ o.http_request_uri = "/tags/{resourceArn}"
255
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
256
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
257
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
258
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
259
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
260
+ end)
261
+
262
+ api.add_operation(:update_application, Seahorse::Model::Operation.new.tap do |o|
263
+ o.name = "UpdateApplication"
264
+ o.http_method = "PATCH"
265
+ o.http_request_uri = "/applications/{applicationId}"
266
+ o.input = Shapes::ShapeRef.new(shape: UpdateApplicationRequest)
267
+ o.output = Shapes::ShapeRef.new(shape: UpdateApplicationResponse)
268
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
269
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
270
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
271
+ o.errors << Shapes::ShapeRef.new(shape: ConflictException)
272
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
273
+ end)
274
+ end
275
+
276
+ end
277
+ end
@@ -0,0 +1,134 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IoTFleetHub
11
+
12
+ # When IoTFleetHub returns an error response, the Ruby SDK constructs and raises an error.
13
+ # These errors all extend Aws::IoTFleetHub::Errors::ServiceError < {Aws::Errors::ServiceError}
14
+ #
15
+ # You can rescue all IoTFleetHub errors using ServiceError:
16
+ #
17
+ # begin
18
+ # # do stuff
19
+ # rescue Aws::IoTFleetHub::Errors::ServiceError
20
+ # # rescues all IoTFleetHub 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
+ # * {ConflictException}
31
+ # * {InternalFailureException}
32
+ # * {InvalidRequestException}
33
+ # * {LimitExceededException}
34
+ # * {ResourceNotFoundException}
35
+ # * {ThrottlingException}
36
+ #
37
+ # Additionally, error classes are dynamically generated for service errors based on the error code
38
+ # if they are not defined above.
39
+ module Errors
40
+
41
+ extend Aws::Errors::DynamicErrors
42
+
43
+ class ConflictException < ServiceError
44
+
45
+ # @param [Seahorse::Client::RequestContext] context
46
+ # @param [String] message
47
+ # @param [Aws::IoTFleetHub::Types::ConflictException] data
48
+ def initialize(context, message, data = Aws::EmptyStructure.new)
49
+ super(context, message, data)
50
+ end
51
+
52
+ # @return [String]
53
+ def message
54
+ @message || @data[:message]
55
+ end
56
+ end
57
+
58
+ class InternalFailureException < ServiceError
59
+
60
+ # @param [Seahorse::Client::RequestContext] context
61
+ # @param [String] message
62
+ # @param [Aws::IoTFleetHub::Types::InternalFailureException] data
63
+ def initialize(context, message, data = Aws::EmptyStructure.new)
64
+ super(context, message, data)
65
+ end
66
+
67
+ # @return [String]
68
+ def message
69
+ @message || @data[:message]
70
+ end
71
+ end
72
+
73
+ class InvalidRequestException < ServiceError
74
+
75
+ # @param [Seahorse::Client::RequestContext] context
76
+ # @param [String] message
77
+ # @param [Aws::IoTFleetHub::Types::InvalidRequestException] data
78
+ def initialize(context, message, data = Aws::EmptyStructure.new)
79
+ super(context, message, data)
80
+ end
81
+
82
+ # @return [String]
83
+ def message
84
+ @message || @data[:message]
85
+ end
86
+ end
87
+
88
+ class LimitExceededException < ServiceError
89
+
90
+ # @param [Seahorse::Client::RequestContext] context
91
+ # @param [String] message
92
+ # @param [Aws::IoTFleetHub::Types::LimitExceededException] data
93
+ def initialize(context, message, data = Aws::EmptyStructure.new)
94
+ super(context, message, data)
95
+ end
96
+
97
+ # @return [String]
98
+ def message
99
+ @message || @data[:message]
100
+ end
101
+ end
102
+
103
+ class ResourceNotFoundException < ServiceError
104
+
105
+ # @param [Seahorse::Client::RequestContext] context
106
+ # @param [String] message
107
+ # @param [Aws::IoTFleetHub::Types::ResourceNotFoundException] data
108
+ def initialize(context, message, data = Aws::EmptyStructure.new)
109
+ super(context, message, data)
110
+ end
111
+
112
+ # @return [String]
113
+ def message
114
+ @message || @data[:message]
115
+ end
116
+ end
117
+
118
+ class ThrottlingException < ServiceError
119
+
120
+ # @param [Seahorse::Client::RequestContext] context
121
+ # @param [String] message
122
+ # @param [Aws::IoTFleetHub::Types::ThrottlingException] data
123
+ def initialize(context, message, data = Aws::EmptyStructure.new)
124
+ super(context, message, data)
125
+ end
126
+
127
+ # @return [String]
128
+ def message
129
+ @message || @data[:message]
130
+ end
131
+ end
132
+
133
+ end
134
+ 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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IoTFleetHub
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,468 @@
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/master/CONTRIBUTING.md
7
+ #
8
+ # WARNING ABOUT GENERATED CODE
9
+
10
+ module Aws::IoTFleetHub
11
+ module Types
12
+
13
+ # A summary of information about a AWS IoT Device Management web
14
+ # application.
15
+ #
16
+ # <note markdown="1"> Fleet Hub for AWS IoT Device Management is in public preview and is
17
+ # subject to change.
18
+ #
19
+ # </note>
20
+ #
21
+ # @!attribute [rw] application_id
22
+ # The unique Id of the web application.
23
+ # @return [String]
24
+ #
25
+ # @!attribute [rw] application_name
26
+ # The name of the web application.
27
+ # @return [String]
28
+ #
29
+ # @!attribute [rw] application_description
30
+ # An optional description of the web application.
31
+ # @return [String]
32
+ #
33
+ # @!attribute [rw] application_url
34
+ # The URL of the web application.
35
+ # @return [String]
36
+ #
37
+ # @!attribute [rw] application_creation_date
38
+ # The date (in Unix epoch time) when the web application was created.
39
+ # @return [Integer]
40
+ #
41
+ # @!attribute [rw] application_last_update_date
42
+ # The date (in Unix epoch time) when the web application was last
43
+ # updated.
44
+ # @return [Integer]
45
+ #
46
+ # @!attribute [rw] application_state
47
+ # The current state of the web application.
48
+ # @return [String]
49
+ #
50
+ class ApplicationSummary < Struct.new(
51
+ :application_id,
52
+ :application_name,
53
+ :application_description,
54
+ :application_url,
55
+ :application_creation_date,
56
+ :application_last_update_date,
57
+ :application_state)
58
+ SENSITIVE = []
59
+ include Aws::Structure
60
+ end
61
+
62
+ # The request conflicts with the current state of the resource.
63
+ #
64
+ # @!attribute [rw] message
65
+ # @return [String]
66
+ #
67
+ class ConflictException < Struct.new(
68
+ :message)
69
+ SENSITIVE = []
70
+ include Aws::Structure
71
+ end
72
+
73
+ # @note When making an API call, you may pass CreateApplicationRequest
74
+ # data as a hash:
75
+ #
76
+ # {
77
+ # application_name: "Name", # required
78
+ # application_description: "Description",
79
+ # client_token: "ClientRequestToken",
80
+ # role_arn: "Arn", # required
81
+ # tags: {
82
+ # "TagKey" => "TagValue",
83
+ # },
84
+ # }
85
+ #
86
+ # @!attribute [rw] application_name
87
+ # The name of the web application.
88
+ # @return [String]
89
+ #
90
+ # @!attribute [rw] application_description
91
+ # An optional description of the web application.
92
+ # @return [String]
93
+ #
94
+ # @!attribute [rw] client_token
95
+ # A unique case-sensitive identifier that you can provide to ensure
96
+ # the idempotency of the request. Don't reuse this client token if a
97
+ # new idempotent request is required.
98
+ #
99
+ # **A suitable default value is auto-generated.** You should normally
100
+ # not need to pass this option.
101
+ # @return [String]
102
+ #
103
+ # @!attribute [rw] role_arn
104
+ # The ARN of the role that the web application assumes when it
105
+ # interacts with AWS IoT Core.
106
+ #
107
+ # <note markdown="1"> The name of the role must be in the form
108
+ # `AWSIotFleetHub_random_string `.
109
+ #
110
+ # </note>
111
+ # @return [String]
112
+ #
113
+ # @!attribute [rw] tags
114
+ # A set of key/value pairs that you can use to manage the web
115
+ # application resource.
116
+ # @return [Hash<String,String>]
117
+ #
118
+ class CreateApplicationRequest < Struct.new(
119
+ :application_name,
120
+ :application_description,
121
+ :client_token,
122
+ :role_arn,
123
+ :tags)
124
+ SENSITIVE = []
125
+ include Aws::Structure
126
+ end
127
+
128
+ # @!attribute [rw] application_id
129
+ # The unique Id of the web application.
130
+ # @return [String]
131
+ #
132
+ # @!attribute [rw] application_arn
133
+ # The ARN of the web application.
134
+ # @return [String]
135
+ #
136
+ class CreateApplicationResponse < Struct.new(
137
+ :application_id,
138
+ :application_arn)
139
+ SENSITIVE = []
140
+ include Aws::Structure
141
+ end
142
+
143
+ # @note When making an API call, you may pass DeleteApplicationRequest
144
+ # data as a hash:
145
+ #
146
+ # {
147
+ # application_id: "Id", # required
148
+ # client_token: "ClientRequestToken",
149
+ # }
150
+ #
151
+ # @!attribute [rw] application_id
152
+ # The unique Id of the web application.
153
+ # @return [String]
154
+ #
155
+ # @!attribute [rw] client_token
156
+ # A unique case-sensitive identifier that you can provide to ensure
157
+ # the idempotency of the request. Don't reuse this client token if a
158
+ # new idempotent request is required.
159
+ #
160
+ # **A suitable default value is auto-generated.** You should normally
161
+ # not need to pass this option.
162
+ # @return [String]
163
+ #
164
+ class DeleteApplicationRequest < Struct.new(
165
+ :application_id,
166
+ :client_token)
167
+ SENSITIVE = []
168
+ include Aws::Structure
169
+ end
170
+
171
+ class DeleteApplicationResponse < Aws::EmptyStructure; end
172
+
173
+ # @note When making an API call, you may pass DescribeApplicationRequest
174
+ # data as a hash:
175
+ #
176
+ # {
177
+ # application_id: "Id", # required
178
+ # }
179
+ #
180
+ # @!attribute [rw] application_id
181
+ # The unique Id of the web application.
182
+ # @return [String]
183
+ #
184
+ class DescribeApplicationRequest < Struct.new(
185
+ :application_id)
186
+ SENSITIVE = []
187
+ include Aws::Structure
188
+ end
189
+
190
+ # @!attribute [rw] application_id
191
+ # The unique Id of the web application.
192
+ # @return [String]
193
+ #
194
+ # @!attribute [rw] application_arn
195
+ # The ARN of the web application.
196
+ # @return [String]
197
+ #
198
+ # @!attribute [rw] application_name
199
+ # The name of the web application.
200
+ # @return [String]
201
+ #
202
+ # @!attribute [rw] application_description
203
+ # An optional description of the web application.
204
+ # @return [String]
205
+ #
206
+ # @!attribute [rw] application_url
207
+ # The URL of the web application.
208
+ # @return [String]
209
+ #
210
+ # @!attribute [rw] application_state
211
+ # The current state of the web application.
212
+ # @return [String]
213
+ #
214
+ # @!attribute [rw] application_creation_date
215
+ # The date (in Unix epoch time) when the application was created.
216
+ # @return [Integer]
217
+ #
218
+ # @!attribute [rw] application_last_update_date
219
+ # The date (in Unix epoch time) when the application was last updated.
220
+ # @return [Integer]
221
+ #
222
+ # @!attribute [rw] role_arn
223
+ # The ARN of the role that the web application assumes when it
224
+ # interacts with AWS IoT Core.
225
+ # @return [String]
226
+ #
227
+ # @!attribute [rw] sso_client_id
228
+ # The Id of the single sign-on client that you use to authenticate and
229
+ # authorize users on the web application.
230
+ # @return [String]
231
+ #
232
+ # @!attribute [rw] error_message
233
+ # A message indicating why the `DescribeApplication` API failed.
234
+ # @return [String]
235
+ #
236
+ # @!attribute [rw] tags
237
+ # A set of key/value pairs that you can use to manage the web
238
+ # application resource.
239
+ # @return [Hash<String,String>]
240
+ #
241
+ class DescribeApplicationResponse < Struct.new(
242
+ :application_id,
243
+ :application_arn,
244
+ :application_name,
245
+ :application_description,
246
+ :application_url,
247
+ :application_state,
248
+ :application_creation_date,
249
+ :application_last_update_date,
250
+ :role_arn,
251
+ :sso_client_id,
252
+ :error_message,
253
+ :tags)
254
+ SENSITIVE = []
255
+ include Aws::Structure
256
+ end
257
+
258
+ # An unexpected error has occurred.
259
+ #
260
+ # @!attribute [rw] message
261
+ # @return [String]
262
+ #
263
+ class InternalFailureException < Struct.new(
264
+ :message)
265
+ SENSITIVE = []
266
+ include Aws::Structure
267
+ end
268
+
269
+ # The request is not valid.
270
+ #
271
+ # @!attribute [rw] message
272
+ # @return [String]
273
+ #
274
+ class InvalidRequestException < Struct.new(
275
+ :message)
276
+ SENSITIVE = []
277
+ include Aws::Structure
278
+ end
279
+
280
+ # A limit has been exceeded.
281
+ #
282
+ # @!attribute [rw] message
283
+ # @return [String]
284
+ #
285
+ class LimitExceededException < Struct.new(
286
+ :message)
287
+ SENSITIVE = []
288
+ include Aws::Structure
289
+ end
290
+
291
+ # @note When making an API call, you may pass ListApplicationsRequest
292
+ # data as a hash:
293
+ #
294
+ # {
295
+ # next_token: "NextToken",
296
+ # }
297
+ #
298
+ # @!attribute [rw] next_token
299
+ # A token used to get the next set of results.
300
+ # @return [String]
301
+ #
302
+ class ListApplicationsRequest < Struct.new(
303
+ :next_token)
304
+ SENSITIVE = []
305
+ include Aws::Structure
306
+ end
307
+
308
+ # @!attribute [rw] application_summaries
309
+ # An array of objects that provide summaries of information about the
310
+ # web applications in the list.
311
+ # @return [Array<Types::ApplicationSummary>]
312
+ #
313
+ # @!attribute [rw] next_token
314
+ # A token used to get the next set of results.
315
+ # @return [String]
316
+ #
317
+ class ListApplicationsResponse < Struct.new(
318
+ :application_summaries,
319
+ :next_token)
320
+ SENSITIVE = []
321
+ include Aws::Structure
322
+ end
323
+
324
+ # @note When making an API call, you may pass ListTagsForResourceRequest
325
+ # data as a hash:
326
+ #
327
+ # {
328
+ # resource_arn: "ResourceArn", # required
329
+ # }
330
+ #
331
+ # @!attribute [rw] resource_arn
332
+ # The ARN of the resource.
333
+ # @return [String]
334
+ #
335
+ class ListTagsForResourceRequest < Struct.new(
336
+ :resource_arn)
337
+ SENSITIVE = []
338
+ include Aws::Structure
339
+ end
340
+
341
+ # @!attribute [rw] tags
342
+ # The list of tags assigned to the resource.
343
+ # @return [Hash<String,String>]
344
+ #
345
+ class ListTagsForResourceResponse < Struct.new(
346
+ :tags)
347
+ SENSITIVE = []
348
+ include Aws::Structure
349
+ end
350
+
351
+ # The specified resource does not exist.
352
+ #
353
+ # @!attribute [rw] message
354
+ # @return [String]
355
+ #
356
+ class ResourceNotFoundException < Struct.new(
357
+ :message)
358
+ SENSITIVE = []
359
+ include Aws::Structure
360
+ end
361
+
362
+ # @note When making an API call, you may pass TagResourceRequest
363
+ # data as a hash:
364
+ #
365
+ # {
366
+ # resource_arn: "ResourceArn", # required
367
+ # tags: { # required
368
+ # "TagKey" => "TagValue",
369
+ # },
370
+ # }
371
+ #
372
+ # @!attribute [rw] resource_arn
373
+ # The ARN of the resource.
374
+ # @return [String]
375
+ #
376
+ # @!attribute [rw] tags
377
+ # The new or modified tags for the resource.
378
+ # @return [Hash<String,String>]
379
+ #
380
+ class TagResourceRequest < Struct.new(
381
+ :resource_arn,
382
+ :tags)
383
+ SENSITIVE = []
384
+ include Aws::Structure
385
+ end
386
+
387
+ class TagResourceResponse < Aws::EmptyStructure; end
388
+
389
+ # The rate exceeds the limit.
390
+ #
391
+ # @!attribute [rw] message
392
+ # @return [String]
393
+ #
394
+ class ThrottlingException < Struct.new(
395
+ :message)
396
+ SENSITIVE = []
397
+ include Aws::Structure
398
+ end
399
+
400
+ # @note When making an API call, you may pass UntagResourceRequest
401
+ # data as a hash:
402
+ #
403
+ # {
404
+ # resource_arn: "ResourceArn", # required
405
+ # tag_keys: ["TagKey"], # required
406
+ # }
407
+ #
408
+ # @!attribute [rw] resource_arn
409
+ # The ARN of the resource.
410
+ # @return [String]
411
+ #
412
+ # @!attribute [rw] tag_keys
413
+ # A list of the keys of the tags to be removed from the resource.
414
+ # @return [Array<String>]
415
+ #
416
+ class UntagResourceRequest < Struct.new(
417
+ :resource_arn,
418
+ :tag_keys)
419
+ SENSITIVE = []
420
+ include Aws::Structure
421
+ end
422
+
423
+ class UntagResourceResponse < Aws::EmptyStructure; end
424
+
425
+ # @note When making an API call, you may pass UpdateApplicationRequest
426
+ # data as a hash:
427
+ #
428
+ # {
429
+ # application_id: "Id", # required
430
+ # application_name: "Name",
431
+ # application_description: "Description",
432
+ # client_token: "ClientRequestToken",
433
+ # }
434
+ #
435
+ # @!attribute [rw] application_id
436
+ # The unique Id of the web application.
437
+ # @return [String]
438
+ #
439
+ # @!attribute [rw] application_name
440
+ # The name of the web application.
441
+ # @return [String]
442
+ #
443
+ # @!attribute [rw] application_description
444
+ # An optional description of the web application.
445
+ # @return [String]
446
+ #
447
+ # @!attribute [rw] client_token
448
+ # A unique case-sensitive identifier that you can provide to ensure
449
+ # the idempotency of the request. Don't reuse this client token if a
450
+ # new idempotent request is required.
451
+ #
452
+ # **A suitable default value is auto-generated.** You should normally
453
+ # not need to pass this option.
454
+ # @return [String]
455
+ #
456
+ class UpdateApplicationRequest < Struct.new(
457
+ :application_id,
458
+ :application_name,
459
+ :application_description,
460
+ :client_token)
461
+ SENSITIVE = []
462
+ include Aws::Structure
463
+ end
464
+
465
+ class UpdateApplicationResponse < Aws::EmptyStructure; end
466
+
467
+ end
468
+ end