aws-sdk-iotsitewise 1.56.0 → 1.58.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-iotsitewise/client.rb +1610 -143
- data/lib/aws-sdk-iotsitewise/client_api.rb +611 -40
- data/lib/aws-sdk-iotsitewise/endpoint_provider.rb +1 -1
- data/lib/aws-sdk-iotsitewise/endpoints.rb +154 -0
- data/lib/aws-sdk-iotsitewise/errors.rb +48 -0
- data/lib/aws-sdk-iotsitewise/plugins/endpoints.rb +22 -0
- data/lib/aws-sdk-iotsitewise/types.rb +2109 -239
- data/lib/aws-sdk-iotsitewise.rb +1 -1
- metadata +5 -5
@@ -32,7 +32,7 @@ module Aws::IoTSiteWise
|
|
32
32
|
raise ArgumentError, "FIPS and DualStack are enabled, but this partition does not support one or both"
|
33
33
|
end
|
34
34
|
if Aws::Endpoints::Matchers.boolean_equals?(use_fips, true)
|
35
|
-
if Aws::Endpoints::Matchers.boolean_equals?(
|
35
|
+
if Aws::Endpoints::Matchers.boolean_equals?(Aws::Endpoints::Matchers.attr(partition_result, "supportsFIPS"), true)
|
36
36
|
return Aws::Endpoints::Endpoint.new(url: "https://iotsitewise-fips.#{region}.#{partition_result['dnsSuffix']}", headers: {}, properties: {})
|
37
37
|
end
|
38
38
|
raise ArgumentError, "FIPS is enabled but this partition does not support FIPS"
|
@@ -166,6 +166,20 @@ module Aws::IoTSiteWise
|
|
166
166
|
end
|
167
167
|
end
|
168
168
|
|
169
|
+
class CreateAssetModelCompositeModel
|
170
|
+
def self.build(context)
|
171
|
+
unless context.config.regional_endpoint
|
172
|
+
endpoint = context.config.endpoint.to_s
|
173
|
+
end
|
174
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
175
|
+
region: context.config.region,
|
176
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
177
|
+
use_fips: context.config.use_fips_endpoint,
|
178
|
+
endpoint: endpoint,
|
179
|
+
)
|
180
|
+
end
|
181
|
+
end
|
182
|
+
|
169
183
|
class CreateBulkImportJob
|
170
184
|
def self.build(context)
|
171
185
|
unless context.config.regional_endpoint
|
@@ -278,6 +292,20 @@ module Aws::IoTSiteWise
|
|
278
292
|
end
|
279
293
|
end
|
280
294
|
|
295
|
+
class DeleteAssetModelCompositeModel
|
296
|
+
def self.build(context)
|
297
|
+
unless context.config.regional_endpoint
|
298
|
+
endpoint = context.config.endpoint.to_s
|
299
|
+
end
|
300
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
301
|
+
region: context.config.region,
|
302
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
303
|
+
use_fips: context.config.use_fips_endpoint,
|
304
|
+
endpoint: endpoint,
|
305
|
+
)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
|
281
309
|
class DeleteDashboard
|
282
310
|
def self.build(context)
|
283
311
|
unless context.config.regional_endpoint
|
@@ -362,6 +390,20 @@ module Aws::IoTSiteWise
|
|
362
390
|
end
|
363
391
|
end
|
364
392
|
|
393
|
+
class DescribeAction
|
394
|
+
def self.build(context)
|
395
|
+
unless context.config.regional_endpoint
|
396
|
+
endpoint = context.config.endpoint.to_s
|
397
|
+
end
|
398
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
399
|
+
region: context.config.region,
|
400
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
401
|
+
use_fips: context.config.use_fips_endpoint,
|
402
|
+
endpoint: endpoint,
|
403
|
+
)
|
404
|
+
end
|
405
|
+
end
|
406
|
+
|
365
407
|
class DescribeAsset
|
366
408
|
def self.build(context)
|
367
409
|
unless context.config.regional_endpoint
|
@@ -376,6 +418,20 @@ module Aws::IoTSiteWise
|
|
376
418
|
end
|
377
419
|
end
|
378
420
|
|
421
|
+
class DescribeAssetCompositeModel
|
422
|
+
def self.build(context)
|
423
|
+
unless context.config.regional_endpoint
|
424
|
+
endpoint = context.config.endpoint.to_s
|
425
|
+
end
|
426
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
427
|
+
region: context.config.region,
|
428
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
429
|
+
use_fips: context.config.use_fips_endpoint,
|
430
|
+
endpoint: endpoint,
|
431
|
+
)
|
432
|
+
end
|
433
|
+
end
|
434
|
+
|
379
435
|
class DescribeAssetModel
|
380
436
|
def self.build(context)
|
381
437
|
unless context.config.regional_endpoint
|
@@ -390,6 +446,20 @@ module Aws::IoTSiteWise
|
|
390
446
|
end
|
391
447
|
end
|
392
448
|
|
449
|
+
class DescribeAssetModelCompositeModel
|
450
|
+
def self.build(context)
|
451
|
+
unless context.config.regional_endpoint
|
452
|
+
endpoint = context.config.endpoint.to_s
|
453
|
+
end
|
454
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
455
|
+
region: context.config.region,
|
456
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
457
|
+
use_fips: context.config.use_fips_endpoint,
|
458
|
+
endpoint: endpoint,
|
459
|
+
)
|
460
|
+
end
|
461
|
+
end
|
462
|
+
|
393
463
|
class DescribeAssetProperty
|
394
464
|
def self.build(context)
|
395
465
|
unless context.config.regional_endpoint
|
@@ -572,6 +642,34 @@ module Aws::IoTSiteWise
|
|
572
642
|
end
|
573
643
|
end
|
574
644
|
|
645
|
+
class ExecuteAction
|
646
|
+
def self.build(context)
|
647
|
+
unless context.config.regional_endpoint
|
648
|
+
endpoint = context.config.endpoint.to_s
|
649
|
+
end
|
650
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
651
|
+
region: context.config.region,
|
652
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
653
|
+
use_fips: context.config.use_fips_endpoint,
|
654
|
+
endpoint: endpoint,
|
655
|
+
)
|
656
|
+
end
|
657
|
+
end
|
658
|
+
|
659
|
+
class ExecuteQuery
|
660
|
+
def self.build(context)
|
661
|
+
unless context.config.regional_endpoint
|
662
|
+
endpoint = context.config.endpoint.to_s
|
663
|
+
end
|
664
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
665
|
+
region: context.config.region,
|
666
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
667
|
+
use_fips: context.config.use_fips_endpoint,
|
668
|
+
endpoint: endpoint,
|
669
|
+
)
|
670
|
+
end
|
671
|
+
end
|
672
|
+
|
575
673
|
class GetAssetPropertyAggregates
|
576
674
|
def self.build(context)
|
577
675
|
unless context.config.regional_endpoint
|
@@ -642,6 +740,34 @@ module Aws::IoTSiteWise
|
|
642
740
|
end
|
643
741
|
end
|
644
742
|
|
743
|
+
class ListActions
|
744
|
+
def self.build(context)
|
745
|
+
unless context.config.regional_endpoint
|
746
|
+
endpoint = context.config.endpoint.to_s
|
747
|
+
end
|
748
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
749
|
+
region: context.config.region,
|
750
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
751
|
+
use_fips: context.config.use_fips_endpoint,
|
752
|
+
endpoint: endpoint,
|
753
|
+
)
|
754
|
+
end
|
755
|
+
end
|
756
|
+
|
757
|
+
class ListAssetModelCompositeModels
|
758
|
+
def self.build(context)
|
759
|
+
unless context.config.regional_endpoint
|
760
|
+
endpoint = context.config.endpoint.to_s
|
761
|
+
end
|
762
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
763
|
+
region: context.config.region,
|
764
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
765
|
+
use_fips: context.config.use_fips_endpoint,
|
766
|
+
endpoint: endpoint,
|
767
|
+
)
|
768
|
+
end
|
769
|
+
end
|
770
|
+
|
645
771
|
class ListAssetModelProperties
|
646
772
|
def self.build(context)
|
647
773
|
unless context.config.regional_endpoint
|
@@ -740,6 +866,20 @@ module Aws::IoTSiteWise
|
|
740
866
|
end
|
741
867
|
end
|
742
868
|
|
869
|
+
class ListCompositionRelationships
|
870
|
+
def self.build(context)
|
871
|
+
unless context.config.regional_endpoint
|
872
|
+
endpoint = context.config.endpoint.to_s
|
873
|
+
end
|
874
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
875
|
+
region: context.config.region,
|
876
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
877
|
+
use_fips: context.config.use_fips_endpoint,
|
878
|
+
endpoint: endpoint,
|
879
|
+
)
|
880
|
+
end
|
881
|
+
end
|
882
|
+
|
743
883
|
class ListDashboards
|
744
884
|
def self.build(context)
|
745
885
|
unless context.config.regional_endpoint
|
@@ -950,6 +1090,20 @@ module Aws::IoTSiteWise
|
|
950
1090
|
end
|
951
1091
|
end
|
952
1092
|
|
1093
|
+
class UpdateAssetModelCompositeModel
|
1094
|
+
def self.build(context)
|
1095
|
+
unless context.config.regional_endpoint
|
1096
|
+
endpoint = context.config.endpoint.to_s
|
1097
|
+
end
|
1098
|
+
Aws::IoTSiteWise::EndpointParameters.new(
|
1099
|
+
region: context.config.region,
|
1100
|
+
use_dual_stack: context.config.use_dualstack_endpoint,
|
1101
|
+
use_fips: context.config.use_fips_endpoint,
|
1102
|
+
endpoint: endpoint,
|
1103
|
+
)
|
1104
|
+
end
|
1105
|
+
end
|
1106
|
+
|
953
1107
|
class UpdateAssetProperty
|
954
1108
|
def self.build(context)
|
955
1109
|
unless context.config.regional_endpoint
|
@@ -27,16 +27,19 @@ module Aws::IoTSiteWise
|
|
27
27
|
# See {Seahorse::Client::RequestContext} for more information.
|
28
28
|
#
|
29
29
|
# ## Error Classes
|
30
|
+
# * {AccessDeniedException}
|
30
31
|
# * {ConflictingOperationException}
|
31
32
|
# * {InternalFailureException}
|
32
33
|
# * {InvalidRequestException}
|
33
34
|
# * {LimitExceededException}
|
35
|
+
# * {QueryTimeoutException}
|
34
36
|
# * {ResourceAlreadyExistsException}
|
35
37
|
# * {ResourceNotFoundException}
|
36
38
|
# * {ServiceUnavailableException}
|
37
39
|
# * {ThrottlingException}
|
38
40
|
# * {TooManyTagsException}
|
39
41
|
# * {UnauthorizedException}
|
42
|
+
# * {ValidationException}
|
40
43
|
#
|
41
44
|
# Additionally, error classes are dynamically generated for service errors based on the error code
|
42
45
|
# if they are not defined above.
|
@@ -44,6 +47,21 @@ module Aws::IoTSiteWise
|
|
44
47
|
|
45
48
|
extend Aws::Errors::DynamicErrors
|
46
49
|
|
50
|
+
class AccessDeniedException < ServiceError
|
51
|
+
|
52
|
+
# @param [Seahorse::Client::RequestContext] context
|
53
|
+
# @param [String] message
|
54
|
+
# @param [Aws::IoTSiteWise::Types::AccessDeniedException] data
|
55
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
56
|
+
super(context, message, data)
|
57
|
+
end
|
58
|
+
|
59
|
+
# @return [String]
|
60
|
+
def message
|
61
|
+
@message || @data[:message]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
47
65
|
class ConflictingOperationException < ServiceError
|
48
66
|
|
49
67
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -114,6 +132,21 @@ module Aws::IoTSiteWise
|
|
114
132
|
end
|
115
133
|
end
|
116
134
|
|
135
|
+
class QueryTimeoutException < ServiceError
|
136
|
+
|
137
|
+
# @param [Seahorse::Client::RequestContext] context
|
138
|
+
# @param [String] message
|
139
|
+
# @param [Aws::IoTSiteWise::Types::QueryTimeoutException] data
|
140
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
141
|
+
super(context, message, data)
|
142
|
+
end
|
143
|
+
|
144
|
+
# @return [String]
|
145
|
+
def message
|
146
|
+
@message || @data[:message]
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
117
150
|
class ResourceAlreadyExistsException < ServiceError
|
118
151
|
|
119
152
|
# @param [Seahorse::Client::RequestContext] context
|
@@ -219,5 +252,20 @@ module Aws::IoTSiteWise
|
|
219
252
|
end
|
220
253
|
end
|
221
254
|
|
255
|
+
class ValidationException < ServiceError
|
256
|
+
|
257
|
+
# @param [Seahorse::Client::RequestContext] context
|
258
|
+
# @param [String] message
|
259
|
+
# @param [Aws::IoTSiteWise::Types::ValidationException] data
|
260
|
+
def initialize(context, message, data = Aws::EmptyStructure.new)
|
261
|
+
super(context, message, data)
|
262
|
+
end
|
263
|
+
|
264
|
+
# @return [String]
|
265
|
+
def message
|
266
|
+
@message || @data[:message]
|
267
|
+
end
|
268
|
+
end
|
269
|
+
|
222
270
|
end
|
223
271
|
end
|
@@ -78,6 +78,8 @@ module Aws::IoTSiteWise
|
|
78
78
|
Aws::IoTSiteWise::Endpoints::CreateAsset.build(context)
|
79
79
|
when :create_asset_model
|
80
80
|
Aws::IoTSiteWise::Endpoints::CreateAssetModel.build(context)
|
81
|
+
when :create_asset_model_composite_model
|
82
|
+
Aws::IoTSiteWise::Endpoints::CreateAssetModelCompositeModel.build(context)
|
81
83
|
when :create_bulk_import_job
|
82
84
|
Aws::IoTSiteWise::Endpoints::CreateBulkImportJob.build(context)
|
83
85
|
when :create_dashboard
|
@@ -94,6 +96,8 @@ module Aws::IoTSiteWise
|
|
94
96
|
Aws::IoTSiteWise::Endpoints::DeleteAsset.build(context)
|
95
97
|
when :delete_asset_model
|
96
98
|
Aws::IoTSiteWise::Endpoints::DeleteAssetModel.build(context)
|
99
|
+
when :delete_asset_model_composite_model
|
100
|
+
Aws::IoTSiteWise::Endpoints::DeleteAssetModelCompositeModel.build(context)
|
97
101
|
when :delete_dashboard
|
98
102
|
Aws::IoTSiteWise::Endpoints::DeleteDashboard.build(context)
|
99
103
|
when :delete_gateway
|
@@ -106,10 +110,16 @@ module Aws::IoTSiteWise
|
|
106
110
|
Aws::IoTSiteWise::Endpoints::DeleteTimeSeries.build(context)
|
107
111
|
when :describe_access_policy
|
108
112
|
Aws::IoTSiteWise::Endpoints::DescribeAccessPolicy.build(context)
|
113
|
+
when :describe_action
|
114
|
+
Aws::IoTSiteWise::Endpoints::DescribeAction.build(context)
|
109
115
|
when :describe_asset
|
110
116
|
Aws::IoTSiteWise::Endpoints::DescribeAsset.build(context)
|
117
|
+
when :describe_asset_composite_model
|
118
|
+
Aws::IoTSiteWise::Endpoints::DescribeAssetCompositeModel.build(context)
|
111
119
|
when :describe_asset_model
|
112
120
|
Aws::IoTSiteWise::Endpoints::DescribeAssetModel.build(context)
|
121
|
+
when :describe_asset_model_composite_model
|
122
|
+
Aws::IoTSiteWise::Endpoints::DescribeAssetModelCompositeModel.build(context)
|
113
123
|
when :describe_asset_property
|
114
124
|
Aws::IoTSiteWise::Endpoints::DescribeAssetProperty.build(context)
|
115
125
|
when :describe_bulk_import_job
|
@@ -136,6 +146,10 @@ module Aws::IoTSiteWise
|
|
136
146
|
Aws::IoTSiteWise::Endpoints::DisassociateAssets.build(context)
|
137
147
|
when :disassociate_time_series_from_asset_property
|
138
148
|
Aws::IoTSiteWise::Endpoints::DisassociateTimeSeriesFromAssetProperty.build(context)
|
149
|
+
when :execute_action
|
150
|
+
Aws::IoTSiteWise::Endpoints::ExecuteAction.build(context)
|
151
|
+
when :execute_query
|
152
|
+
Aws::IoTSiteWise::Endpoints::ExecuteQuery.build(context)
|
139
153
|
when :get_asset_property_aggregates
|
140
154
|
Aws::IoTSiteWise::Endpoints::GetAssetPropertyAggregates.build(context)
|
141
155
|
when :get_asset_property_value
|
@@ -146,6 +160,10 @@ module Aws::IoTSiteWise
|
|
146
160
|
Aws::IoTSiteWise::Endpoints::GetInterpolatedAssetPropertyValues.build(context)
|
147
161
|
when :list_access_policies
|
148
162
|
Aws::IoTSiteWise::Endpoints::ListAccessPolicies.build(context)
|
163
|
+
when :list_actions
|
164
|
+
Aws::IoTSiteWise::Endpoints::ListActions.build(context)
|
165
|
+
when :list_asset_model_composite_models
|
166
|
+
Aws::IoTSiteWise::Endpoints::ListAssetModelCompositeModels.build(context)
|
149
167
|
when :list_asset_model_properties
|
150
168
|
Aws::IoTSiteWise::Endpoints::ListAssetModelProperties.build(context)
|
151
169
|
when :list_asset_models
|
@@ -160,6 +178,8 @@ module Aws::IoTSiteWise
|
|
160
178
|
Aws::IoTSiteWise::Endpoints::ListAssociatedAssets.build(context)
|
161
179
|
when :list_bulk_import_jobs
|
162
180
|
Aws::IoTSiteWise::Endpoints::ListBulkImportJobs.build(context)
|
181
|
+
when :list_composition_relationships
|
182
|
+
Aws::IoTSiteWise::Endpoints::ListCompositionRelationships.build(context)
|
163
183
|
when :list_dashboards
|
164
184
|
Aws::IoTSiteWise::Endpoints::ListDashboards.build(context)
|
165
185
|
when :list_gateways
|
@@ -190,6 +210,8 @@ module Aws::IoTSiteWise
|
|
190
210
|
Aws::IoTSiteWise::Endpoints::UpdateAsset.build(context)
|
191
211
|
when :update_asset_model
|
192
212
|
Aws::IoTSiteWise::Endpoints::UpdateAssetModel.build(context)
|
213
|
+
when :update_asset_model_composite_model
|
214
|
+
Aws::IoTSiteWise::Endpoints::UpdateAssetModelCompositeModel.build(context)
|
193
215
|
when :update_asset_property
|
194
216
|
Aws::IoTSiteWise::Endpoints::UpdateAssetProperty.build(context)
|
195
217
|
when :update_dashboard
|