aws-sdk-iotsitewise 1.17.0 → 1.18.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 91d821022d06d04bf9cc0b27156e58b49f87f44b137c0ec7d9a0f4a901920259
4
- data.tar.gz: 00a91a0835f80b55aac410abbd0b52c1cc2202b01adb3513a609162a82ba2fe6
3
+ metadata.gz: 4c9103cb30a2ad2906a7992c9807a5a2437e9ec095f6999945d878aff74fca57
4
+ data.tar.gz: f8459e4d532b058c2c6b2dd597a0e3d7a3c7f84073ac51cf1dcf85b830b2e275
5
5
  SHA512:
6
- metadata.gz: e920b526e17bad48291bbc371de395dfb8d6515d60363168298f11cb056fee38627db47bc4024ee2908bc2110578f77382d94bdc1382271af72a7e3f81de8658
7
- data.tar.gz: '08613b3d81fa3181f5a7494209726e7260406a6b89aa36c5f77d9fce0e02d0b982307f2e0b512447f4b845898882f4b2b831fa6fed780bc42e6b67f51da86d05'
6
+ metadata.gz: 6cc9ff677e2b9bfb41da2cd687ca09ea4f8e081d3aa686295199e3402a5667d6590aeb0c4804390eb2bf32f0962b6c1511266f5f8964c61c3b3770427e357854
7
+ data.tar.gz: 72ed325fc379f068d69e8c5118cc71a8c4c2a090a04f673343f260e67d931b0904e5c2854de8ae88d4ba25a394e0841fc750fbc21d02a3d3f5e456416d447933
@@ -49,6 +49,6 @@ require_relative 'aws-sdk-iotsitewise/customizations'
49
49
  # @!group service
50
50
  module Aws::IoTSiteWise
51
51
 
52
- GEM_VERSION = '1.17.0'
52
+ GEM_VERSION = '1.18.0'
53
53
 
54
54
  end
@@ -603,6 +603,9 @@ module Aws::IoTSiteWise
603
603
  # iam_user: {
604
604
  # arn: "ARN", # required
605
605
  # },
606
+ # iam_role: {
607
+ # arn: "ARN", # required
608
+ # },
606
609
  # },
607
610
  # access_policy_resource: { # required
608
611
  # portal: {
@@ -1137,6 +1140,35 @@ module Aws::IoTSiteWise
1137
1140
  req.send_request(options)
1138
1141
  end
1139
1142
 
1143
+ # @option params [required, String] :portal_id
1144
+ #
1145
+ # @option params [Integer] :session_duration_seconds
1146
+ #
1147
+ # @option params [String] :state
1148
+ #
1149
+ # @return [Types::CreatePresignedPortalUrlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1150
+ #
1151
+ # * {Types::CreatePresignedPortalUrlResponse#presigned_portal_url #presigned_portal_url} => String
1152
+ #
1153
+ # @example Request syntax with placeholder values
1154
+ #
1155
+ # resp = client.create_presigned_portal_url({
1156
+ # portal_id: "ID", # required
1157
+ # session_duration_seconds: 1,
1158
+ # state: "state",
1159
+ # })
1160
+ #
1161
+ # @example Response structure
1162
+ #
1163
+ # resp.presigned_portal_url #=> String
1164
+ #
1165
+ # @overload create_presigned_portal_url(params = {})
1166
+ # @param [Hash] params ({})
1167
+ def create_presigned_portal_url(params = {}, options = {})
1168
+ req = build_request(:create_presigned_portal_url, params)
1169
+ req.send_request(options)
1170
+ end
1171
+
1140
1172
  # Creates a project in the specified portal.
1141
1173
  #
1142
1174
  # @option params [required, String] :portal_id
@@ -1465,6 +1497,7 @@ module Aws::IoTSiteWise
1465
1497
  # resp.access_policy_identity.user.id #=> String
1466
1498
  # resp.access_policy_identity.group.id #=> String
1467
1499
  # resp.access_policy_identity.iam_user.arn #=> String
1500
+ # resp.access_policy_identity.iam_role.arn #=> String
1468
1501
  # resp.access_policy_resource.portal.id #=> String
1469
1502
  # resp.access_policy_resource.project.id #=> String
1470
1503
  # resp.access_policy_permission #=> String, one of "ADMINISTRATOR", "VIEWER"
@@ -2384,6 +2417,7 @@ module Aws::IoTSiteWise
2384
2417
  # resp.access_policy_summaries[0].identity.user.id #=> String
2385
2418
  # resp.access_policy_summaries[0].identity.group.id #=> String
2386
2419
  # resp.access_policy_summaries[0].identity.iam_user.arn #=> String
2420
+ # resp.access_policy_summaries[0].identity.iam_role.arn #=> String
2387
2421
  # resp.access_policy_summaries[0].resource.portal.id #=> String
2388
2422
  # resp.access_policy_summaries[0].resource.project.id #=> String
2389
2423
  # resp.access_policy_summaries[0].permission #=> String, one of "ADMINISTRATOR", "VIEWER"
@@ -3094,6 +3128,9 @@ module Aws::IoTSiteWise
3094
3128
  # iam_user: {
3095
3129
  # arn: "ARN", # required
3096
3130
  # },
3131
+ # iam_role: {
3132
+ # arn: "ARN", # required
3133
+ # },
3097
3134
  # },
3098
3135
  # access_policy_resource: { # required
3099
3136
  # portal: {
@@ -3689,7 +3726,7 @@ module Aws::IoTSiteWise
3689
3726
  params: params,
3690
3727
  config: config)
3691
3728
  context[:gem_name] = 'aws-sdk-iotsitewise'
3692
- context[:gem_version] = '1.17.0'
3729
+ context[:gem_version] = '1.18.0'
3693
3730
  Seahorse::Client::Request.new(handlers, context)
3694
3731
  end
3695
3732
 
@@ -100,6 +100,8 @@ module Aws::IoTSiteWise
100
100
  CreateGatewayResponse = Shapes::StructureShape.new(name: 'CreateGatewayResponse')
101
101
  CreatePortalRequest = Shapes::StructureShape.new(name: 'CreatePortalRequest')
102
102
  CreatePortalResponse = Shapes::StructureShape.new(name: 'CreatePortalResponse')
103
+ CreatePresignedPortalUrlRequest = Shapes::StructureShape.new(name: 'CreatePresignedPortalUrlRequest')
104
+ CreatePresignedPortalUrlResponse = Shapes::StructureShape.new(name: 'CreatePresignedPortalUrlResponse')
103
105
  CreateProjectRequest = Shapes::StructureShape.new(name: 'CreateProjectRequest')
104
106
  CreateProjectResponse = Shapes::StructureShape.new(name: 'CreateProjectResponse')
105
107
  DashboardDefinition = Shapes::StringShape.new(name: 'DashboardDefinition')
@@ -166,6 +168,7 @@ module Aws::IoTSiteWise
166
168
  GetAssetPropertyValueResponse = Shapes::StructureShape.new(name: 'GetAssetPropertyValueResponse')
167
169
  Greengrass = Shapes::StructureShape.new(name: 'Greengrass')
168
170
  GroupIdentity = Shapes::StructureShape.new(name: 'GroupIdentity')
171
+ IAMRoleIdentity = Shapes::StructureShape.new(name: 'IAMRoleIdentity')
169
172
  IAMUserIdentity = Shapes::StructureShape.new(name: 'IAMUserIdentity')
170
173
  ID = Shapes::StringShape.new(name: 'ID')
171
174
  IDs = Shapes::ListShape.new(name: 'IDs')
@@ -257,6 +260,7 @@ module Aws::IoTSiteWise
257
260
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
258
261
  SSOApplicationId = Shapes::StringShape.new(name: 'SSOApplicationId')
259
262
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
263
+ SessionDurationSeconds = Shapes::IntegerShape.new(name: 'SessionDurationSeconds')
260
264
  TagKey = Shapes::StringShape.new(name: 'TagKey')
261
265
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
262
266
  TagMap = Shapes::MapShape.new(name: 'TagMap')
@@ -298,6 +302,7 @@ module Aws::IoTSiteWise
298
302
  VariableName = Shapes::StringShape.new(name: 'VariableName')
299
303
  VariableValue = Shapes::StructureShape.new(name: 'VariableValue')
300
304
  Variant = Shapes::StructureShape.new(name: 'Variant')
305
+ state = Shapes::StringShape.new(name: 'state')
301
306
 
302
307
  AccessPolicySummaries.member = Shapes::ShapeRef.new(shape: AccessPolicySummary)
303
308
 
@@ -608,6 +613,14 @@ module Aws::IoTSiteWise
608
613
  CreatePortalResponse.add_member(:sso_application_id, Shapes::ShapeRef.new(shape: SSOApplicationId, required: true, location_name: "ssoApplicationId"))
609
614
  CreatePortalResponse.struct_class = Types::CreatePortalResponse
610
615
 
616
+ CreatePresignedPortalUrlRequest.add_member(:portal_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "portalId"))
617
+ CreatePresignedPortalUrlRequest.add_member(:session_duration_seconds, Shapes::ShapeRef.new(shape: SessionDurationSeconds, location_name: "sessionDurationSeconds"))
618
+ CreatePresignedPortalUrlRequest.add_member(:state, Shapes::ShapeRef.new(shape: state, location_name: "state"))
619
+ CreatePresignedPortalUrlRequest.struct_class = Types::CreatePresignedPortalUrlRequest
620
+
621
+ CreatePresignedPortalUrlResponse.add_member(:presigned_portal_url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "presignedPortalUrl"))
622
+ CreatePresignedPortalUrlResponse.struct_class = Types::CreatePresignedPortalUrlResponse
623
+
611
624
  CreateProjectRequest.add_member(:portal_id, Shapes::ShapeRef.new(shape: ID, required: true, location_name: "portalId"))
612
625
  CreateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "projectName"))
613
626
  CreateProjectRequest.add_member(:project_description, Shapes::ShapeRef.new(shape: Description, location_name: "projectDescription"))
@@ -880,6 +893,9 @@ module Aws::IoTSiteWise
880
893
  GroupIdentity.add_member(:id, Shapes::ShapeRef.new(shape: IdentityId, required: true, location_name: "id"))
881
894
  GroupIdentity.struct_class = Types::GroupIdentity
882
895
 
896
+ IAMRoleIdentity.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "arn"))
897
+ IAMRoleIdentity.struct_class = Types::IAMRoleIdentity
898
+
883
899
  IAMUserIdentity.add_member(:arn, Shapes::ShapeRef.new(shape: ARN, required: true, location_name: "arn"))
884
900
  IAMUserIdentity.struct_class = Types::IAMUserIdentity
885
901
 
@@ -888,6 +904,7 @@ module Aws::IoTSiteWise
888
904
  Identity.add_member(:user, Shapes::ShapeRef.new(shape: UserIdentity, location_name: "user"))
889
905
  Identity.add_member(:group, Shapes::ShapeRef.new(shape: GroupIdentity, location_name: "group"))
890
906
  Identity.add_member(:iam_user, Shapes::ShapeRef.new(shape: IAMUserIdentity, location_name: "iamUser"))
907
+ Identity.add_member(:iam_role, Shapes::ShapeRef.new(shape: IAMRoleIdentity, location_name: "iamRole"))
891
908
  Identity.struct_class = Types::Identity
892
909
 
893
910
  Image.add_member(:id, Shapes::ShapeRef.new(shape: ID, location_name: "id"))
@@ -1434,6 +1451,20 @@ module Aws::IoTSiteWise
1434
1451
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1435
1452
  end)
1436
1453
 
1454
+ api.add_operation(:create_presigned_portal_url, Seahorse::Model::Operation.new.tap do |o|
1455
+ o.name = "CreatePresignedPortalUrl"
1456
+ o.http_method = "POST"
1457
+ o.http_request_uri = "/portals/{portalId}/presigned-url"
1458
+ o.endpoint_pattern = {
1459
+ "hostPrefix" => "monitor.",
1460
+ }
1461
+ o.input = Shapes::ShapeRef.new(shape: CreatePresignedPortalUrlRequest)
1462
+ o.output = Shapes::ShapeRef.new(shape: CreatePresignedPortalUrlResponse)
1463
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1464
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1465
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1466
+ end)
1467
+
1437
1468
  api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o|
1438
1469
  o.name = "CreateProject"
1439
1470
  o.http_method = "POST"
@@ -1298,6 +1298,9 @@ module Aws::IoTSiteWise
1298
1298
  # iam_user: {
1299
1299
  # arn: "ARN", # required
1300
1300
  # },
1301
+ # iam_role: {
1302
+ # arn: "ARN", # required
1303
+ # },
1301
1304
  # },
1302
1305
  # access_policy_resource: { # required
1303
1306
  # portal: {
@@ -1966,6 +1969,41 @@ module Aws::IoTSiteWise
1966
1969
  include Aws::Structure
1967
1970
  end
1968
1971
 
1972
+ # @note When making an API call, you may pass CreatePresignedPortalUrlRequest
1973
+ # data as a hash:
1974
+ #
1975
+ # {
1976
+ # portal_id: "ID", # required
1977
+ # session_duration_seconds: 1,
1978
+ # state: "state",
1979
+ # }
1980
+ #
1981
+ # @!attribute [rw] portal_id
1982
+ # @return [String]
1983
+ #
1984
+ # @!attribute [rw] session_duration_seconds
1985
+ # @return [Integer]
1986
+ #
1987
+ # @!attribute [rw] state
1988
+ # @return [String]
1989
+ #
1990
+ class CreatePresignedPortalUrlRequest < Struct.new(
1991
+ :portal_id,
1992
+ :session_duration_seconds,
1993
+ :state)
1994
+ SENSITIVE = []
1995
+ include Aws::Structure
1996
+ end
1997
+
1998
+ # @!attribute [rw] presigned_portal_url
1999
+ # @return [String]
2000
+ #
2001
+ class CreatePresignedPortalUrlResponse < Struct.new(
2002
+ :presigned_portal_url)
2003
+ SENSITIVE = []
2004
+ include Aws::Structure
2005
+ end
2006
+
1969
2007
  # @note When making an API call, you may pass CreateProjectRequest
1970
2008
  # data as a hash:
1971
2009
  #
@@ -3500,6 +3538,36 @@ module Aws::IoTSiteWise
3500
3538
  include Aws::Structure
3501
3539
  end
3502
3540
 
3541
+ # Contains information about an AWS Identity and Access Management (IAM)
3542
+ # role. For more information, see [IAM roles][1] in the *IAM User
3543
+ # Guide*.
3544
+ #
3545
+ #
3546
+ #
3547
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/id_roles.html
3548
+ #
3549
+ # @note When making an API call, you may pass IAMRoleIdentity
3550
+ # data as a hash:
3551
+ #
3552
+ # {
3553
+ # arn: "ARN", # required
3554
+ # }
3555
+ #
3556
+ # @!attribute [rw] arn
3557
+ # The ARN of the IAM role. For more information, see [IAM ARNs][1] in
3558
+ # the *IAM User Guide*.
3559
+ #
3560
+ #
3561
+ #
3562
+ # [1]: https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_identifiers.htmll#identifiers-arns
3563
+ # @return [String]
3564
+ #
3565
+ class IAMRoleIdentity < Struct.new(
3566
+ :arn)
3567
+ SENSITIVE = []
3568
+ include Aws::Structure
3569
+ end
3570
+
3503
3571
  # Contains information about an AWS Identity and Access Management (IAM)
3504
3572
  # user.
3505
3573
  #
@@ -3557,6 +3625,9 @@ module Aws::IoTSiteWise
3557
3625
  # iam_user: {
3558
3626
  # arn: "ARN", # required
3559
3627
  # },
3628
+ # iam_role: {
3629
+ # arn: "ARN", # required
3630
+ # },
3560
3631
  # }
3561
3632
  #
3562
3633
  # @!attribute [rw] user
@@ -3571,10 +3642,15 @@ module Aws::IoTSiteWise
3571
3642
  # An IAM user identity.
3572
3643
  # @return [Types::IAMUserIdentity]
3573
3644
  #
3645
+ # @!attribute [rw] iam_role
3646
+ # An IAM role identity.
3647
+ # @return [Types::IAMRoleIdentity]
3648
+ #
3574
3649
  class Identity < Struct.new(
3575
3650
  :user,
3576
3651
  :group,
3577
- :iam_user)
3652
+ :iam_user,
3653
+ :iam_role)
3578
3654
  SENSITIVE = []
3579
3655
  include Aws::Structure
3580
3656
  end
@@ -4308,9 +4384,8 @@ module Aws::IoTSiteWise
4308
4384
  include Aws::Structure
4309
4385
  end
4310
4386
 
4311
- # Contains an asset measurement property. This structure is empty. For
4312
- # more information, see [Measurements][1] in the *AWS IoT SiteWise User
4313
- # Guide*.
4387
+ # Contains an asset measurement property. For more information, see
4388
+ # [Measurements][1] in the *AWS IoT SiteWise User Guide*.
4314
4389
  #
4315
4390
  #
4316
4391
  #
@@ -5199,6 +5274,9 @@ module Aws::IoTSiteWise
5199
5274
  # iam_user: {
5200
5275
  # arn: "ARN", # required
5201
5276
  # },
5277
+ # iam_role: {
5278
+ # arn: "ARN", # required
5279
+ # },
5202
5280
  # },
5203
5281
  # access_policy_resource: { # required
5204
5282
  # portal: {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-iotsitewise
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.18.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-02-02 00:00:00.000000000 Z
11
+ date: 2021-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core