aws-sdk-iotsitewise 1.45.0 → 1.47.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8aac6d5f66f38fb749efabf1f4062199396c033117a47742c7b3fd901d03ff54
4
- data.tar.gz: 169a1cf8d5bd6a6afef25110a0b1a9d270cf13e95543e3f04589e621bc61a314
3
+ metadata.gz: ae4de685b01181c1653efa1013dc02f9159dc46f4f4ee8fc40021b98e7801fcf
4
+ data.tar.gz: d8cd34460d21abd5142777823c68f88d3e46d4691c521f86133d012f3a4c1819
5
5
  SHA512:
6
- metadata.gz: 2f3f75e3ecc37ce37b3a4ff61aed823a9acff09e6449aaa87329a788d9142d25ca8055ed214cbca81d783078cd91bba16522e92b14f1ebaf869cf41eb7e05a43
7
- data.tar.gz: efe5b70f88f7daaf0bd25c51642002a52fde1f18bdf96df4c8bf6564d68682cc29156cd9c600e056ca785dbbd385beddd93492950d58d9228b7391b5b49b6f5c
6
+ metadata.gz: 18849c0f7747d57eca6aac61293fe698c7360b7272cdda6add054e9435cccbe1655927289669fcf5d625b75f5858f4ce5bd1ba84f47a331356aa7592e5721d22
7
+ data.tar.gz: 2829b7eb9aedf931aeb55b70652f85bd2acdf0ff18929bd9f2a874088702bda0f39477ed62ea9053c2a0b0136c92ac14a28bb22fa9447fc1c06e5b4b8bb81052
data/CHANGELOG.md CHANGED
@@ -1,6 +1,16 @@
1
1
  Unreleased Changes
2
2
  ------------------
3
3
 
4
+ 1.47.0 (2022-11-02)
5
+ ------------------
6
+
7
+ * Feature - This release adds the ListAssetModelProperties and ListAssetProperties APIs. You can list all properties that belong to a single asset model or asset using these two new APIs.
8
+
9
+ 1.46.0 (2022-10-25)
10
+ ------------------
11
+
12
+ * Feature - Code Generated Changes, see `./build_tools` or `aws-sdk-core`'s CHANGELOG.md for details.
13
+
4
14
  1.45.0 (2022-09-07)
5
15
  ------------------
6
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.45.0
1
+ 1.47.0
@@ -30,7 +30,7 @@ require 'aws-sdk-core/plugins/http_checksum.rb'
30
30
  require 'aws-sdk-core/plugins/checksum_algorithm.rb'
31
31
  require 'aws-sdk-core/plugins/defaults_mode.rb'
32
32
  require 'aws-sdk-core/plugins/recursion_detection.rb'
33
- require 'aws-sdk-core/plugins/signature_v4.rb'
33
+ require 'aws-sdk-core/plugins/sign.rb'
34
34
  require 'aws-sdk-core/plugins/protocols/rest_json.rb'
35
35
 
36
36
  Aws::Plugins::GlobalConfiguration.add_identifier(:iotsitewise)
@@ -79,8 +79,9 @@ module Aws::IoTSiteWise
79
79
  add_plugin(Aws::Plugins::ChecksumAlgorithm)
80
80
  add_plugin(Aws::Plugins::DefaultsMode)
81
81
  add_plugin(Aws::Plugins::RecursionDetection)
82
- add_plugin(Aws::Plugins::SignatureV4)
82
+ add_plugin(Aws::Plugins::Sign)
83
83
  add_plugin(Aws::Plugins::Protocols::RestJson)
84
+ add_plugin(Aws::IoTSiteWise::Plugins::Endpoints)
84
85
 
85
86
  # @overload initialize(options)
86
87
  # @param [Hash] options
@@ -287,6 +288,19 @@ module Aws::IoTSiteWise
287
288
  # ** Please note ** When response stubbing is enabled, no HTTP
288
289
  # requests are made, and retries are disabled.
289
290
  #
291
+ # @option options [Aws::TokenProvider] :token_provider
292
+ # A Bearer Token Provider. This can be an instance of any one of the
293
+ # following classes:
294
+ #
295
+ # * `Aws::StaticTokenProvider` - Used for configuring static, non-refreshing
296
+ # tokens.
297
+ #
298
+ # * `Aws::SSOTokenProvider` - Used for loading tokens from AWS SSO using an
299
+ # access token generated from `aws login`.
300
+ #
301
+ # When `:token_provider` is not configured directly, the `Aws::TokenProviderChain`
302
+ # will be used to search for tokens configured for your profile in shared configuration files.
303
+ #
290
304
  # @option options [Boolean] :use_dualstack_endpoint
291
305
  # When set to `true`, dualstack enabled endpoints (with `.aws` TLD)
292
306
  # will be used if available.
@@ -300,6 +314,9 @@ module Aws::IoTSiteWise
300
314
  # When `true`, request parameters are validated before
301
315
  # sending the request.
302
316
  #
317
+ # @option options [Aws::IoTSiteWise::EndpointProvider] :endpoint_provider
318
+ # The endpoint provider used to resolve endpoints. Any object that responds to `#resolve_endpoint(parameters)` where `parameters` is a Struct similar to `Aws::IoTSiteWise::EndpointParameters`
319
+ #
303
320
  # @option options [URI::HTTP,String] :http_proxy A proxy to send
304
321
  # requests through. Formatted like 'http://proxy.com:123'.
305
322
  #
@@ -846,14 +863,13 @@ module Aws::IoTSiteWise
846
863
  req.send_request(options)
847
864
  end
848
865
 
849
- # Creates an access policy that grants the specified identity (Amazon
850
- # Web Services SSO user, Amazon Web Services SSO group, or IAM user)
851
- # access to the specified IoT SiteWise Monitor portal or project
852
- # resource.
866
+ # Creates an access policy that grants the specified identity (IAM
867
+ # Identity Center user, IAM Identity Center group, or IAM user) access
868
+ # to the specified IoT SiteWise Monitor portal or project resource.
853
869
  #
854
870
  # @option params [required, Types::Identity] :access_policy_identity
855
- # The identity for this access policy. Choose an Amazon Web Services SSO
856
- # user, an Amazon Web Services SSO group, or an IAM user.
871
+ # The identity for this access policy. Choose an IAM Identity Center
872
+ # user, an IAM Identity Center group, or an IAM user.
857
873
  #
858
874
  # @option params [required, Types::Resource] :access_policy_resource
859
875
  # The IoT SiteWise Monitor resource for this access policy. Choose
@@ -1437,7 +1453,7 @@ module Aws::IoTSiteWise
1437
1453
  end
1438
1454
 
1439
1455
  # Creates a portal, which can contain projects and dashboards. IoT
1440
- # SiteWise Monitor uses Amazon Web Services SSO or IAM to authenticate
1456
+ # SiteWise Monitor uses IAM Identity Center or IAM to authenticate
1441
1457
  # portal users and manage user permissions.
1442
1458
  #
1443
1459
  # <note markdown="1"> Before you can sign in to a new portal, you must add at least one
@@ -1495,13 +1511,13 @@ module Aws::IoTSiteWise
1495
1511
  # The service to use to authenticate users to the portal. Choose from
1496
1512
  # the following options:
1497
1513
  #
1498
- # * `SSO` – The portal uses Amazon Web Services Single Sign On to
1499
- # authenticate users and manage user permissions. Before you can
1500
- # create a portal that uses Amazon Web Services SSO, you must enable
1501
- # Amazon Web Services SSO. For more information, see [Enabling Amazon
1502
- # Web Services SSO][1] in the *IoT SiteWise User Guide*. This option
1503
- # is only available in Amazon Web Services Regions other than the
1504
- # China Regions.
1514
+ # * `SSO` – The portal uses IAM Identity Center (successor to Single
1515
+ # Sign-On) to authenticate users and manage user permissions. Before
1516
+ # you can create a portal that uses IAM Identity Center, you must
1517
+ # enable IAM Identity Center. For more information, see [Enabling IAM
1518
+ # Identity Center][1] in the *IoT SiteWise User Guide*. This option is
1519
+ # only available in Amazon Web Services Regions other than the China
1520
+ # Regions.
1505
1521
  #
1506
1522
  # * `IAM` – The portal uses Identity and Access Management to
1507
1523
  # authenticate users and manage user permissions.
@@ -1993,6 +2009,9 @@ module Aws::IoTSiteWise
1993
2009
  # @option params [required, String] :asset_id
1994
2010
  # The ID of the asset.
1995
2011
  #
2012
+ # @option params [Boolean] :exclude_properties
2013
+ # Whether or not to exclude asset properties from the response.
2014
+ #
1996
2015
  # @return [Types::DescribeAssetResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1997
2016
  #
1998
2017
  # * {Types::DescribeAssetResponse#asset_id #asset_id} => String
@@ -2011,6 +2030,7 @@ module Aws::IoTSiteWise
2011
2030
  #
2012
2031
  # resp = client.describe_asset({
2013
2032
  # asset_id: "ID", # required
2033
+ # exclude_properties: false,
2014
2034
  # })
2015
2035
  #
2016
2036
  # @example Response structure
@@ -2044,6 +2064,7 @@ module Aws::IoTSiteWise
2044
2064
  # resp.asset_composite_models[0].properties[0].data_type #=> String, one of "STRING", "INTEGER", "DOUBLE", "BOOLEAN", "STRUCT"
2045
2065
  # resp.asset_composite_models[0].properties[0].data_type_spec #=> String
2046
2066
  # resp.asset_composite_models[0].properties[0].unit #=> String
2067
+ # resp.asset_composite_models[0].id #=> String
2047
2068
  # resp.asset_creation_date #=> Time
2048
2069
  # resp.asset_last_update_date #=> Time
2049
2070
  # resp.asset_status.state #=> String, one of "CREATING", "ACTIVE", "UPDATING", "DELETING", "FAILED"
@@ -2072,6 +2093,9 @@ module Aws::IoTSiteWise
2072
2093
  # @option params [required, String] :asset_model_id
2073
2094
  # The ID of the asset model.
2074
2095
  #
2096
+ # @option params [Boolean] :exclude_properties
2097
+ # Whether or not to exclude asset model properties from the response.
2098
+ #
2075
2099
  # @return [Types::DescribeAssetModelResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2076
2100
  #
2077
2101
  # * {Types::DescribeAssetModelResponse#asset_model_id #asset_model_id} => String
@@ -2089,6 +2113,7 @@ module Aws::IoTSiteWise
2089
2113
  #
2090
2114
  # resp = client.describe_asset_model({
2091
2115
  # asset_model_id: "ID", # required
2116
+ # exclude_properties: false,
2092
2117
  # })
2093
2118
  #
2094
2119
  # @example Response structure
@@ -2151,6 +2176,7 @@ module Aws::IoTSiteWise
2151
2176
  # resp.asset_model_composite_models[0].properties[0].type.metric.window.tumbling.interval #=> String
2152
2177
  # resp.asset_model_composite_models[0].properties[0].type.metric.window.tumbling.offset #=> String
2153
2178
  # resp.asset_model_composite_models[0].properties[0].type.metric.processing_config.compute_location #=> String, one of "EDGE", "CLOUD"
2179
+ # resp.asset_model_composite_models[0].id #=> String
2154
2180
  # resp.asset_model_creation_date #=> Time
2155
2181
  # resp.asset_model_last_update_date #=> Time
2156
2182
  # resp.asset_model_status.state #=> String, one of "CREATING", "ACTIVE", "UPDATING", "PROPAGATING", "DELETING", "FAILED"
@@ -2265,6 +2291,7 @@ module Aws::IoTSiteWise
2265
2291
  # resp.composite_model.asset_property.type.metric.window.tumbling.interval #=> String
2266
2292
  # resp.composite_model.asset_property.type.metric.window.tumbling.offset #=> String
2267
2293
  # resp.composite_model.asset_property.type.metric.processing_config.compute_location #=> String, one of "EDGE", "CLOUD"
2294
+ # resp.composite_model.id #=> String
2268
2295
  #
2269
2296
  # @overload describe_asset_property(params = {})
2270
2297
  # @param [Hash] params ({})
@@ -3216,14 +3243,14 @@ module Aws::IoTSiteWise
3216
3243
  req.send_request(options)
3217
3244
  end
3218
3245
 
3219
- # Retrieves a paginated list of access policies for an identity (an
3220
- # Amazon Web Services SSO user, an Amazon Web Services SSO group, or an
3221
- # IAM user) or an IoT SiteWise Monitor resource (a portal or project).
3246
+ # Retrieves a paginated list of access policies for an identity (an IAM
3247
+ # Identity Center user, an IAM Identity Center group, or an IAM user) or
3248
+ # an IoT SiteWise Monitor resource (a portal or project).
3222
3249
  #
3223
3250
  # @option params [String] :identity_type
3224
- # The type of identity (Amazon Web Services SSO user, Amazon Web
3225
- # Services SSO group, or IAM user). This parameter is required if you
3226
- # specify `identityId`.
3251
+ # The type of identity (IAM Identity Center user, IAM Identity Center
3252
+ # group, or IAM user). This parameter is required if you specify
3253
+ # `identityId`.
3227
3254
  #
3228
3255
  # @option params [String] :identity_id
3229
3256
  # The ID of the identity. This parameter is required if you specify
@@ -3295,6 +3322,83 @@ module Aws::IoTSiteWise
3295
3322
  req.send_request(options)
3296
3323
  end
3297
3324
 
3325
+ # Retrieves a paginated list of properties associated with an asset
3326
+ # model. If you update properties associated with the model before you
3327
+ # finish listing all the properties, you need to start all over again.
3328
+ #
3329
+ # @option params [required, String] :asset_model_id
3330
+ # The ID of the asset model.
3331
+ #
3332
+ # @option params [String] :next_token
3333
+ # The token to be used for the next set of paginated results.
3334
+ #
3335
+ # @option params [Integer] :max_results
3336
+ # The maximum number of results to return for each paginated request. If
3337
+ # not specified, the default value is 50.
3338
+ #
3339
+ # @option params [String] :filter
3340
+ # Filters the requested list of asset model properties. You can choose
3341
+ # one of the following options:
3342
+ #
3343
+ # * `ALL` – The list includes all asset model properties for a given
3344
+ # asset model ID.
3345
+ #
3346
+ # * `BASE` – The list includes only base asset model properties for a
3347
+ # given asset model ID.
3348
+ #
3349
+ # Default: `BASE`
3350
+ #
3351
+ # @return [Types::ListAssetModelPropertiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3352
+ #
3353
+ # * {Types::ListAssetModelPropertiesResponse#asset_model_property_summaries #asset_model_property_summaries} => Array&lt;Types::AssetModelPropertySummary&gt;
3354
+ # * {Types::ListAssetModelPropertiesResponse#next_token #next_token} => String
3355
+ #
3356
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3357
+ #
3358
+ # @example Request syntax with placeholder values
3359
+ #
3360
+ # resp = client.list_asset_model_properties({
3361
+ # asset_model_id: "ID", # required
3362
+ # next_token: "NextToken",
3363
+ # max_results: 1,
3364
+ # filter: "ALL", # accepts ALL, BASE
3365
+ # })
3366
+ #
3367
+ # @example Response structure
3368
+ #
3369
+ # resp.asset_model_property_summaries #=> Array
3370
+ # resp.asset_model_property_summaries[0].id #=> String
3371
+ # resp.asset_model_property_summaries[0].name #=> String
3372
+ # resp.asset_model_property_summaries[0].data_type #=> String, one of "STRING", "INTEGER", "DOUBLE", "BOOLEAN", "STRUCT"
3373
+ # resp.asset_model_property_summaries[0].data_type_spec #=> String
3374
+ # resp.asset_model_property_summaries[0].unit #=> String
3375
+ # resp.asset_model_property_summaries[0].type.attribute.default_value #=> String
3376
+ # resp.asset_model_property_summaries[0].type.measurement.processing_config.forwarding_config.state #=> String, one of "DISABLED", "ENABLED"
3377
+ # resp.asset_model_property_summaries[0].type.transform.expression #=> String
3378
+ # resp.asset_model_property_summaries[0].type.transform.variables #=> Array
3379
+ # resp.asset_model_property_summaries[0].type.transform.variables[0].name #=> String
3380
+ # resp.asset_model_property_summaries[0].type.transform.variables[0].value.property_id #=> String
3381
+ # resp.asset_model_property_summaries[0].type.transform.variables[0].value.hierarchy_id #=> String
3382
+ # resp.asset_model_property_summaries[0].type.transform.processing_config.compute_location #=> String, one of "EDGE", "CLOUD"
3383
+ # resp.asset_model_property_summaries[0].type.transform.processing_config.forwarding_config.state #=> String, one of "DISABLED", "ENABLED"
3384
+ # resp.asset_model_property_summaries[0].type.metric.expression #=> String
3385
+ # resp.asset_model_property_summaries[0].type.metric.variables #=> Array
3386
+ # resp.asset_model_property_summaries[0].type.metric.variables[0].name #=> String
3387
+ # resp.asset_model_property_summaries[0].type.metric.variables[0].value.property_id #=> String
3388
+ # resp.asset_model_property_summaries[0].type.metric.variables[0].value.hierarchy_id #=> String
3389
+ # resp.asset_model_property_summaries[0].type.metric.window.tumbling.interval #=> String
3390
+ # resp.asset_model_property_summaries[0].type.metric.window.tumbling.offset #=> String
3391
+ # resp.asset_model_property_summaries[0].type.metric.processing_config.compute_location #=> String, one of "EDGE", "CLOUD"
3392
+ # resp.asset_model_property_summaries[0].asset_model_composite_model_id #=> String
3393
+ # resp.next_token #=> String
3394
+ #
3395
+ # @overload list_asset_model_properties(params = {})
3396
+ # @param [Hash] params ({})
3397
+ def list_asset_model_properties(params = {}, options = {})
3398
+ req = build_request(:list_asset_model_properties, params)
3399
+ req.send_request(options)
3400
+ end
3401
+
3298
3402
  # Retrieves a paginated list of summaries of all asset models.
3299
3403
  #
3300
3404
  # @option params [String] :next_token
@@ -3343,6 +3447,66 @@ module Aws::IoTSiteWise
3343
3447
  req.send_request(options)
3344
3448
  end
3345
3449
 
3450
+ # Retrieves a paginated list of properties associated with an asset. If
3451
+ # you update properties associated with the model before you finish
3452
+ # listing all the properties, you need to start all over again.
3453
+ #
3454
+ # @option params [required, String] :asset_id
3455
+ # The ID of the asset.
3456
+ #
3457
+ # @option params [String] :next_token
3458
+ # The token to be used for the next set of paginated results.
3459
+ #
3460
+ # @option params [Integer] :max_results
3461
+ # The maximum number of results to return for each paginated request. If
3462
+ # not specified, the default value is 50.
3463
+ #
3464
+ # @option params [String] :filter
3465
+ # Filters the requested list of asset properties. You can choose one of
3466
+ # the following options:
3467
+ #
3468
+ # * `ALL` – The list includes all asset properties for a given asset
3469
+ # model ID.
3470
+ #
3471
+ # * `BASE` – The list includes only base asset properties for a given
3472
+ # asset model ID.
3473
+ #
3474
+ # Default: `BASE`
3475
+ #
3476
+ # @return [Types::ListAssetPropertiesResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
3477
+ #
3478
+ # * {Types::ListAssetPropertiesResponse#asset_property_summaries #asset_property_summaries} => Array&lt;Types::AssetPropertySummary&gt;
3479
+ # * {Types::ListAssetPropertiesResponse#next_token #next_token} => String
3480
+ #
3481
+ # The returned {Seahorse::Client::Response response} is a pageable response and is Enumerable. For details on usage see {Aws::PageableResponse PageableResponse}.
3482
+ #
3483
+ # @example Request syntax with placeholder values
3484
+ #
3485
+ # resp = client.list_asset_properties({
3486
+ # asset_id: "ID", # required
3487
+ # next_token: "NextToken",
3488
+ # max_results: 1,
3489
+ # filter: "ALL", # accepts ALL, BASE
3490
+ # })
3491
+ #
3492
+ # @example Response structure
3493
+ #
3494
+ # resp.asset_property_summaries #=> Array
3495
+ # resp.asset_property_summaries[0].id #=> String
3496
+ # resp.asset_property_summaries[0].alias #=> String
3497
+ # resp.asset_property_summaries[0].unit #=> String
3498
+ # resp.asset_property_summaries[0].notification.topic #=> String
3499
+ # resp.asset_property_summaries[0].notification.state #=> String, one of "ENABLED", "DISABLED"
3500
+ # resp.asset_property_summaries[0].asset_composite_model_id #=> String
3501
+ # resp.next_token #=> String
3502
+ #
3503
+ # @overload list_asset_properties(params = {})
3504
+ # @param [Hash] params ({})
3505
+ def list_asset_properties(params = {}, options = {})
3506
+ req = build_request(:list_asset_properties, params)
3507
+ req.send_request(options)
3508
+ end
3509
+
3346
3510
  # Retrieves a paginated list of asset relationships for an asset. You
3347
3511
  # can use this operation to identify an asset's root asset and all
3348
3512
  # associated assets between that asset and its root.
@@ -4163,8 +4327,8 @@ module Aws::IoTSiteWise
4163
4327
  # The ID of the access policy.
4164
4328
  #
4165
4329
  # @option params [required, Types::Identity] :access_policy_identity
4166
- # The identity for this access policy. Choose an Amazon Web Services SSO
4167
- # user, an Amazon Web Services SSO group, or an IAM user.
4330
+ # The identity for this access policy. Choose an IAM Identity Center
4331
+ # user, an IAM Identity Center group, or an IAM user.
4168
4332
  #
4169
4333
  # @option params [required, Types::Resource] :access_policy_resource
4170
4334
  # The IoT SiteWise Monitor resource for this access policy. Choose
@@ -4490,6 +4654,7 @@ module Aws::IoTSiteWise
4490
4654
  # },
4491
4655
  # },
4492
4656
  # ],
4657
+ # id: "ID",
4493
4658
  # },
4494
4659
  # ],
4495
4660
  # client_token: "ClientToken",
@@ -4861,7 +5026,7 @@ module Aws::IoTSiteWise
4861
5026
  params: params,
4862
5027
  config: config)
4863
5028
  context[:gem_name] = 'aws-sdk-iotsitewise'
4864
- context[:gem_version] = '1.45.0'
5029
+ context[:gem_version] = '1.47.0'
4865
5030
  Seahorse::Client::Request.new(handlers, context)
4866
5031
  end
4867
5032
 
@@ -45,6 +45,8 @@ module Aws::IoTSiteWise
45
45
  AssetModelProperty = Shapes::StructureShape.new(name: 'AssetModelProperty')
46
46
  AssetModelPropertyDefinition = Shapes::StructureShape.new(name: 'AssetModelPropertyDefinition')
47
47
  AssetModelPropertyDefinitions = Shapes::ListShape.new(name: 'AssetModelPropertyDefinitions')
48
+ AssetModelPropertySummaries = Shapes::ListShape.new(name: 'AssetModelPropertySummaries')
49
+ AssetModelPropertySummary = Shapes::StructureShape.new(name: 'AssetModelPropertySummary')
48
50
  AssetModelState = Shapes::StringShape.new(name: 'AssetModelState')
49
51
  AssetModelStatus = Shapes::StructureShape.new(name: 'AssetModelStatus')
50
52
  AssetModelSummaries = Shapes::ListShape.new(name: 'AssetModelSummaries')
@@ -52,6 +54,8 @@ module Aws::IoTSiteWise
52
54
  AssetProperties = Shapes::ListShape.new(name: 'AssetProperties')
53
55
  AssetProperty = Shapes::StructureShape.new(name: 'AssetProperty')
54
56
  AssetPropertyAlias = Shapes::StringShape.new(name: 'AssetPropertyAlias')
57
+ AssetPropertySummaries = Shapes::ListShape.new(name: 'AssetPropertySummaries')
58
+ AssetPropertySummary = Shapes::StructureShape.new(name: 'AssetPropertySummary')
55
59
  AssetPropertyValue = Shapes::StructureShape.new(name: 'AssetPropertyValue')
56
60
  AssetPropertyValueHistory = Shapes::ListShape.new(name: 'AssetPropertyValueHistory')
57
61
  AssetPropertyValues = Shapes::ListShape.new(name: 'AssetPropertyValues')
@@ -214,6 +218,7 @@ module Aws::IoTSiteWise
214
218
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
215
219
  ErrorReportLocation = Shapes::StructureShape.new(name: 'ErrorReportLocation')
216
220
  ExceptionMessage = Shapes::StringShape.new(name: 'ExceptionMessage')
221
+ ExcludeProperties = Shapes::BooleanShape.new(name: 'ExcludeProperties')
217
222
  Expression = Shapes::StringShape.new(name: 'Expression')
218
223
  ExpressionVariable = Shapes::StructureShape.new(name: 'ExpressionVariable')
219
224
  ExpressionVariables = Shapes::ListShape.new(name: 'ExpressionVariables')
@@ -266,8 +271,14 @@ module Aws::IoTSiteWise
266
271
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
267
272
  ListAccessPoliciesRequest = Shapes::StructureShape.new(name: 'ListAccessPoliciesRequest')
268
273
  ListAccessPoliciesResponse = Shapes::StructureShape.new(name: 'ListAccessPoliciesResponse')
274
+ ListAssetModelPropertiesFilter = Shapes::StringShape.new(name: 'ListAssetModelPropertiesFilter')
275
+ ListAssetModelPropertiesRequest = Shapes::StructureShape.new(name: 'ListAssetModelPropertiesRequest')
276
+ ListAssetModelPropertiesResponse = Shapes::StructureShape.new(name: 'ListAssetModelPropertiesResponse')
269
277
  ListAssetModelsRequest = Shapes::StructureShape.new(name: 'ListAssetModelsRequest')
270
278
  ListAssetModelsResponse = Shapes::StructureShape.new(name: 'ListAssetModelsResponse')
279
+ ListAssetPropertiesFilter = Shapes::StringShape.new(name: 'ListAssetPropertiesFilter')
280
+ ListAssetPropertiesRequest = Shapes::StructureShape.new(name: 'ListAssetPropertiesRequest')
281
+ ListAssetPropertiesResponse = Shapes::StructureShape.new(name: 'ListAssetPropertiesResponse')
271
282
  ListAssetRelationshipsRequest = Shapes::StructureShape.new(name: 'ListAssetRelationshipsRequest')
272
283
  ListAssetRelationshipsResponse = Shapes::StructureShape.new(name: 'ListAssetRelationshipsResponse')
273
284
  ListAssetsFilter = Shapes::StringShape.new(name: 'ListAssetsFilter')
@@ -438,6 +449,7 @@ module Aws::IoTSiteWise
438
449
  AssetCompositeModel.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
439
450
  AssetCompositeModel.add_member(:type, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "type"))
440
451
  AssetCompositeModel.add_member(:properties, Shapes::ShapeRef.new(shape: AssetProperties, required: true, location_name: "properties"))
452
+ AssetCompositeModel.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
441
453
  AssetCompositeModel.struct_class = Types::AssetCompositeModel
442
454
 
443
455
  AssetCompositeModels.member = Shapes::ShapeRef.new(shape: AssetCompositeModel)
@@ -463,6 +475,7 @@ module Aws::IoTSiteWise
463
475
  AssetModelCompositeModel.add_member(:description, Shapes::ShapeRef.new(shape: Description, location_name: "description"))
464
476
  AssetModelCompositeModel.add_member(:type, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "type"))
465
477
  AssetModelCompositeModel.add_member(:properties, Shapes::ShapeRef.new(shape: AssetModelProperties, location_name: "properties"))
478
+ AssetModelCompositeModel.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
466
479
  AssetModelCompositeModel.struct_class = Types::AssetModelCompositeModel
467
480
 
468
481
  AssetModelCompositeModelDefinition.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
@@ -507,6 +520,17 @@ module Aws::IoTSiteWise
507
520
 
508
521
  AssetModelPropertyDefinitions.member = Shapes::ShapeRef.new(shape: AssetModelPropertyDefinition)
509
522
 
523
+ AssetModelPropertySummaries.member = Shapes::ShapeRef.new(shape: AssetModelPropertySummary)
524
+
525
+ AssetModelPropertySummary.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
526
+ AssetModelPropertySummary.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
527
+ AssetModelPropertySummary.add_member(:data_type, Shapes::ShapeRef.new(shape: PropertyDataType, required: true, location_name: "dataType"))
528
+ AssetModelPropertySummary.add_member(:data_type_spec, Shapes::ShapeRef.new(shape: Name, location_name: "dataTypeSpec"))
529
+ AssetModelPropertySummary.add_member(:unit, Shapes::ShapeRef.new(shape: PropertyUnit, location_name: "unit"))
530
+ AssetModelPropertySummary.add_member(:type, Shapes::ShapeRef.new(shape: PropertyType, required: true, location_name: "type"))
531
+ AssetModelPropertySummary.add_member(:asset_model_composite_model_id, Shapes::ShapeRef.new(shape: ID, location_name: "assetModelCompositeModelId"))
532
+ AssetModelPropertySummary.struct_class = Types::AssetModelPropertySummary
533
+
510
534
  AssetModelStatus.add_member(:state, Shapes::ShapeRef.new(shape: AssetModelState, required: true, location_name: "state"))
511
535
  AssetModelStatus.add_member(:error, Shapes::ShapeRef.new(shape: ErrorDetails, location_name: "error"))
512
536
  AssetModelStatus.struct_class = Types::AssetModelStatus
@@ -533,6 +557,15 @@ module Aws::IoTSiteWise
533
557
  AssetProperty.add_member(:unit, Shapes::ShapeRef.new(shape: PropertyUnit, location_name: "unit"))
534
558
  AssetProperty.struct_class = Types::AssetProperty
535
559
 
560
+ AssetPropertySummaries.member = Shapes::ShapeRef.new(shape: AssetPropertySummary)
561
+
562
+ AssetPropertySummary.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
563
+ AssetPropertySummary.add_member(:alias, Shapes::ShapeRef.new(shape: PropertyAlias, location_name: "alias"))
564
+ AssetPropertySummary.add_member(:unit, Shapes::ShapeRef.new(shape: PropertyUnit, location_name: "unit"))
565
+ AssetPropertySummary.add_member(:notification, Shapes::ShapeRef.new(shape: PropertyNotification, location_name: "notification"))
566
+ AssetPropertySummary.add_member(:asset_composite_model_id, Shapes::ShapeRef.new(shape: ID, location_name: "assetCompositeModelId"))
567
+ AssetPropertySummary.struct_class = Types::AssetPropertySummary
568
+
536
569
  AssetPropertyValue.add_member(:value, Shapes::ShapeRef.new(shape: Variant, required: true, location_name: "value"))
537
570
  AssetPropertyValue.add_member(:timestamp, Shapes::ShapeRef.new(shape: TimeInNanos, required: true, location_name: "timestamp"))
538
571
  AssetPropertyValue.add_member(:quality, Shapes::ShapeRef.new(shape: Quality, location_name: "quality"))
@@ -775,6 +808,7 @@ module Aws::IoTSiteWise
775
808
  CompositeModelProperty.add_member(:name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "name"))
776
809
  CompositeModelProperty.add_member(:type, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "type"))
777
810
  CompositeModelProperty.add_member(:asset_property, Shapes::ShapeRef.new(shape: Property, required: true, location_name: "assetProperty"))
811
+ CompositeModelProperty.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
778
812
  CompositeModelProperty.struct_class = Types::CompositeModelProperty
779
813
 
780
814
  ConfigurationErrorDetails.add_member(:code, Shapes::ShapeRef.new(shape: ErrorCode, required: true, location_name: "code"))
@@ -967,6 +1001,7 @@ module Aws::IoTSiteWise
967
1001
  DescribeAccessPolicyResponse.struct_class = Types::DescribeAccessPolicyResponse
968
1002
 
969
1003
  DescribeAssetModelRequest.add_member(:asset_model_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "assetModelId"))
1004
+ DescribeAssetModelRequest.add_member(:exclude_properties, Shapes::ShapeRef.new(shape: ExcludeProperties, location: "querystring", location_name: "excludeProperties"))
970
1005
  DescribeAssetModelRequest.struct_class = Types::DescribeAssetModelRequest
971
1006
 
972
1007
  DescribeAssetModelResponse.add_member(:asset_model_id, Shapes::ShapeRef.new(shape: ID, required: true, location_name: "assetModelId"))
@@ -993,6 +1028,7 @@ module Aws::IoTSiteWise
993
1028
  DescribeAssetPropertyResponse.struct_class = Types::DescribeAssetPropertyResponse
994
1029
 
995
1030
  DescribeAssetRequest.add_member(:asset_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "assetId"))
1031
+ DescribeAssetRequest.add_member(:exclude_properties, Shapes::ShapeRef.new(shape: ExcludeProperties, location: "querystring", location_name: "excludeProperties"))
996
1032
  DescribeAssetRequest.struct_class = Types::DescribeAssetRequest
997
1033
 
998
1034
  DescribeAssetResponse.add_member(:asset_id, Shapes::ShapeRef.new(shape: ID, required: true, location_name: "assetId"))
@@ -1324,6 +1360,16 @@ module Aws::IoTSiteWise
1324
1360
  ListAccessPoliciesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1325
1361
  ListAccessPoliciesResponse.struct_class = Types::ListAccessPoliciesResponse
1326
1362
 
1363
+ ListAssetModelPropertiesRequest.add_member(:asset_model_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "assetModelId"))
1364
+ ListAssetModelPropertiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
1365
+ ListAssetModelPropertiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1366
+ ListAssetModelPropertiesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: ListAssetModelPropertiesFilter, location: "querystring", location_name: "filter"))
1367
+ ListAssetModelPropertiesRequest.struct_class = Types::ListAssetModelPropertiesRequest
1368
+
1369
+ ListAssetModelPropertiesResponse.add_member(:asset_model_property_summaries, Shapes::ShapeRef.new(shape: AssetModelPropertySummaries, required: true, location_name: "assetModelPropertySummaries"))
1370
+ ListAssetModelPropertiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1371
+ ListAssetModelPropertiesResponse.struct_class = Types::ListAssetModelPropertiesResponse
1372
+
1327
1373
  ListAssetModelsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
1328
1374
  ListAssetModelsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1329
1375
  ListAssetModelsRequest.struct_class = Types::ListAssetModelsRequest
@@ -1332,6 +1378,16 @@ module Aws::IoTSiteWise
1332
1378
  ListAssetModelsResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1333
1379
  ListAssetModelsResponse.struct_class = Types::ListAssetModelsResponse
1334
1380
 
1381
+ ListAssetPropertiesRequest.add_member(:asset_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "assetId"))
1382
+ ListAssetPropertiesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
1383
+ ListAssetPropertiesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location: "querystring", location_name: "maxResults"))
1384
+ ListAssetPropertiesRequest.add_member(:filter, Shapes::ShapeRef.new(shape: ListAssetPropertiesFilter, location: "querystring", location_name: "filter"))
1385
+ ListAssetPropertiesRequest.struct_class = Types::ListAssetPropertiesRequest
1386
+
1387
+ ListAssetPropertiesResponse.add_member(:asset_property_summaries, Shapes::ShapeRef.new(shape: AssetPropertySummaries, required: true, location_name: "assetPropertySummaries"))
1388
+ ListAssetPropertiesResponse.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location_name: "nextToken"))
1389
+ ListAssetPropertiesResponse.struct_class = Types::ListAssetPropertiesResponse
1390
+
1335
1391
  ListAssetRelationshipsRequest.add_member(:asset_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "assetId"))
1336
1392
  ListAssetRelationshipsRequest.add_member(:traversal_type, Shapes::ShapeRef.new(shape: TraversalType, required: true, location: "querystring", location_name: "traversalType"))
1337
1393
  ListAssetRelationshipsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: NextToken, location: "querystring", location_name: "nextToken"))
@@ -2486,6 +2542,27 @@ module Aws::IoTSiteWise
2486
2542
  )
2487
2543
  end)
2488
2544
 
2545
+ api.add_operation(:list_asset_model_properties, Seahorse::Model::Operation.new.tap do |o|
2546
+ o.name = "ListAssetModelProperties"
2547
+ o.http_method = "GET"
2548
+ o.http_request_uri = "/asset-models/{assetModelId}/properties"
2549
+ o.endpoint_pattern = {
2550
+ "hostPrefix" => "api.",
2551
+ }
2552
+ o.input = Shapes::ShapeRef.new(shape: ListAssetModelPropertiesRequest)
2553
+ o.output = Shapes::ShapeRef.new(shape: ListAssetModelPropertiesResponse)
2554
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2555
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
2556
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2557
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2558
+ o[:pager] = Aws::Pager.new(
2559
+ limit_key: "max_results",
2560
+ tokens: {
2561
+ "next_token" => "next_token"
2562
+ }
2563
+ )
2564
+ end)
2565
+
2489
2566
  api.add_operation(:list_asset_models, Seahorse::Model::Operation.new.tap do |o|
2490
2567
  o.name = "ListAssetModels"
2491
2568
  o.http_method = "GET"
@@ -2506,6 +2583,27 @@ module Aws::IoTSiteWise
2506
2583
  )
2507
2584
  end)
2508
2585
 
2586
+ api.add_operation(:list_asset_properties, Seahorse::Model::Operation.new.tap do |o|
2587
+ o.name = "ListAssetProperties"
2588
+ o.http_method = "GET"
2589
+ o.http_request_uri = "/assets/{assetId}/properties"
2590
+ o.endpoint_pattern = {
2591
+ "hostPrefix" => "api.",
2592
+ }
2593
+ o.input = Shapes::ShapeRef.new(shape: ListAssetPropertiesRequest)
2594
+ o.output = Shapes::ShapeRef.new(shape: ListAssetPropertiesResponse)
2595
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
2596
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
2597
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
2598
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
2599
+ o[:pager] = Aws::Pager.new(
2600
+ limit_key: "max_results",
2601
+ tokens: {
2602
+ "next_token" => "next_token"
2603
+ }
2604
+ )
2605
+ end)
2606
+
2509
2607
  api.add_operation(:list_asset_relationships, Seahorse::Model::Operation.new.tap do |o|
2510
2608
  o.name = "ListAssetRelationships"
2511
2609
  o.http_method = "GET"
@@ -0,0 +1,66 @@
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::IoTSiteWise
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
+ if self[:use_dual_stack].nil?
56
+ raise ArgumentError, "Missing required EndpointParameter: :use_dual_stack"
57
+ end
58
+ self[:use_fips] = options[:use_fips]
59
+ self[:use_fips] = false if self[:use_fips].nil?
60
+ if self[:use_fips].nil?
61
+ raise ArgumentError, "Missing required EndpointParameter: :use_fips"
62
+ end
63
+ self[:endpoint] = options[:endpoint]
64
+ end
65
+ end
66
+ end