aws-sdk-iotsitewise 1.13.0 → 1.14.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: 4da4706f27771303084a228e4d77c78f8baeb62d585db701dd025fce0cb48bae
4
- data.tar.gz: 792ade8ab265b9c3a3166ad6314e58e63f9ba95657e3211d062aab8becb3a858
3
+ metadata.gz: 2cf6d34fa9b2edac25b834a055c94fbcb0b2e558965a1cfc6277661c025aa9d4
4
+ data.tar.gz: 127a34845d2c514d2601353c43a2b215732373e90d954c0073c5ded45c95af56
5
5
  SHA512:
6
- metadata.gz: 77680cee2e8a3be430d1e07bbdad6d044af82b067f4c133e75bb7b05ba6bb8448d5d59e6ce22a6a7cce391949ffe2481e0afbce90350d7a66e61d36c2d2d642f
7
- data.tar.gz: 62f2d78a0cd8edb5b404bb7ec3e366c387cd4eb102a649982351d64c801269cac596195a05bd1a0d4468c40bde2d3a511fa2bd10d16f28b9b6fe4396414887dd
6
+ metadata.gz: a9986b6a02fd9cfacb321a398d68a1aa9352b0ed9c270e1b6da0ae69b4bc9f3bdc2aafc12bb9daa8b81cd2cc50e5632e103d3991bb8244e92d38fdadd0517e34
7
+ data.tar.gz: fc83e7c819f87749a1371796255e27a75da50a0b89c4816f74c4c67add24cbd19b2bfe374779920e6ccf4619ba4b49f7a0c7c98f901e50b4a1a39365f1357ccc
@@ -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.13.0'
52
+ GEM_VERSION = '1.14.0'
53
53
 
54
54
  end
@@ -1079,6 +1079,42 @@ module Aws::IoTSiteWise
1079
1079
  req.send_request(options)
1080
1080
  end
1081
1081
 
1082
+ # Creates a pre-signed URL to a portal. Use this operation to create
1083
+ # URLs to portals that use AWS Identity and Access Management (IAM) to
1084
+ # authenticate users. An IAM user with access to a portal can call this
1085
+ # API to get a URL to that portal. The URL contains a session token that
1086
+ # lets the IAM user access the portal.
1087
+ #
1088
+ # @option params [required, String] :portal_id
1089
+ # The ID of the portal to access.
1090
+ #
1091
+ # @option params [Integer] :session_duration_seconds
1092
+ # The duration (in seconds) for which the session at the URL is valid.
1093
+ #
1094
+ # Default: 900 seconds (15 minutes)
1095
+ #
1096
+ # @return [Types::CreatePresignedPortalUrlResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1097
+ #
1098
+ # * {Types::CreatePresignedPortalUrlResponse#presigned_portal_url #presigned_portal_url} => String
1099
+ #
1100
+ # @example Request syntax with placeholder values
1101
+ #
1102
+ # resp = client.create_presigned_portal_url({
1103
+ # portal_id: "ID", # required
1104
+ # session_duration_seconds: 1,
1105
+ # })
1106
+ #
1107
+ # @example Response structure
1108
+ #
1109
+ # resp.presigned_portal_url #=> String
1110
+ #
1111
+ # @overload create_presigned_portal_url(params = {})
1112
+ # @param [Hash] params ({})
1113
+ def create_presigned_portal_url(params = {}, options = {})
1114
+ req = build_request(:create_presigned_portal_url, params)
1115
+ req.send_request(options)
1116
+ end
1117
+
1082
1118
  # Creates a project in the specified portal.
1083
1119
  #
1084
1120
  # @option params [required, String] :portal_id
@@ -3381,7 +3417,7 @@ module Aws::IoTSiteWise
3381
3417
  params: params,
3382
3418
  config: config)
3383
3419
  context[:gem_name] = 'aws-sdk-iotsitewise'
3384
- context[:gem_version] = '1.13.0'
3420
+ context[:gem_version] = '1.14.0'
3385
3421
  Seahorse::Client::Request.new(handlers, context)
3386
3422
  end
3387
3423
 
@@ -86,6 +86,8 @@ module Aws::IoTSiteWise
86
86
  CreateGatewayResponse = Shapes::StructureShape.new(name: 'CreateGatewayResponse')
87
87
  CreatePortalRequest = Shapes::StructureShape.new(name: 'CreatePortalRequest')
88
88
  CreatePortalResponse = Shapes::StructureShape.new(name: 'CreatePortalResponse')
89
+ CreatePresignedPortalUrlRequest = Shapes::StructureShape.new(name: 'CreatePresignedPortalUrlRequest')
90
+ CreatePresignedPortalUrlResponse = Shapes::StructureShape.new(name: 'CreatePresignedPortalUrlResponse')
89
91
  CreateProjectRequest = Shapes::StructureShape.new(name: 'CreateProjectRequest')
90
92
  CreateProjectResponse = Shapes::StructureShape.new(name: 'CreateProjectResponse')
91
93
  DashboardDefinition = Shapes::StringShape.new(name: 'DashboardDefinition')
@@ -235,6 +237,7 @@ module Aws::IoTSiteWise
235
237
  ResourceType = Shapes::StringShape.new(name: 'ResourceType')
236
238
  SSOApplicationId = Shapes::StringShape.new(name: 'SSOApplicationId')
237
239
  ServiceUnavailableException = Shapes::StructureShape.new(name: 'ServiceUnavailableException')
240
+ SessionDurationSeconds = Shapes::IntegerShape.new(name: 'SessionDurationSeconds')
238
241
  TagKey = Shapes::StringShape.new(name: 'TagKey')
239
242
  TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
240
243
  TagMap = Shapes::MapShape.new(name: 'TagMap')
@@ -533,6 +536,13 @@ module Aws::IoTSiteWise
533
536
  CreatePortalResponse.add_member(:sso_application_id, Shapes::ShapeRef.new(shape: SSOApplicationId, required: true, location_name: "ssoApplicationId"))
534
537
  CreatePortalResponse.struct_class = Types::CreatePortalResponse
535
538
 
539
+ CreatePresignedPortalUrlRequest.add_member(:portal_id, Shapes::ShapeRef.new(shape: ID, required: true, location: "uri", location_name: "portalId"))
540
+ CreatePresignedPortalUrlRequest.add_member(:session_duration_seconds, Shapes::ShapeRef.new(shape: SessionDurationSeconds, location: "querystring", location_name: "sessionDurationSeconds"))
541
+ CreatePresignedPortalUrlRequest.struct_class = Types::CreatePresignedPortalUrlRequest
542
+
543
+ CreatePresignedPortalUrlResponse.add_member(:presigned_portal_url, Shapes::ShapeRef.new(shape: Url, required: true, location_name: "presignedPortalUrl"))
544
+ CreatePresignedPortalUrlResponse.struct_class = Types::CreatePresignedPortalUrlResponse
545
+
536
546
  CreateProjectRequest.add_member(:portal_id, Shapes::ShapeRef.new(shape: ID, required: true, location_name: "portalId"))
537
547
  CreateProjectRequest.add_member(:project_name, Shapes::ShapeRef.new(shape: Name, required: true, location_name: "projectName"))
538
548
  CreateProjectRequest.add_member(:project_description, Shapes::ShapeRef.new(shape: Description, location_name: "projectDescription"))
@@ -1326,6 +1336,20 @@ module Aws::IoTSiteWise
1326
1336
  o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
1327
1337
  end)
1328
1338
 
1339
+ api.add_operation(:create_presigned_portal_url, Seahorse::Model::Operation.new.tap do |o|
1340
+ o.name = "CreatePresignedPortalUrl"
1341
+ o.http_method = "GET"
1342
+ o.http_request_uri = "/portals/{portalId}/presigned-url"
1343
+ o.endpoint_pattern = {
1344
+ "hostPrefix" => "monitor.",
1345
+ }
1346
+ o.input = Shapes::ShapeRef.new(shape: CreatePresignedPortalUrlRequest)
1347
+ o.output = Shapes::ShapeRef.new(shape: CreatePresignedPortalUrlResponse)
1348
+ o.errors << Shapes::ShapeRef.new(shape: InvalidRequestException)
1349
+ o.errors << Shapes::ShapeRef.new(shape: InternalFailureException)
1350
+ o.errors << Shapes::ShapeRef.new(shape: ThrottlingException)
1351
+ end)
1352
+
1329
1353
  api.add_operation(:create_project, Seahorse::Model::Operation.new.tap do |o|
1330
1354
  o.name = "CreateProject"
1331
1355
  o.http_method = "POST"
@@ -1588,6 +1588,45 @@ module Aws::IoTSiteWise
1588
1588
  include Aws::Structure
1589
1589
  end
1590
1590
 
1591
+ # @note When making an API call, you may pass CreatePresignedPortalUrlRequest
1592
+ # data as a hash:
1593
+ #
1594
+ # {
1595
+ # portal_id: "ID", # required
1596
+ # session_duration_seconds: 1,
1597
+ # }
1598
+ #
1599
+ # @!attribute [rw] portal_id
1600
+ # The ID of the portal to access.
1601
+ # @return [String]
1602
+ #
1603
+ # @!attribute [rw] session_duration_seconds
1604
+ # The duration (in seconds) for which the session at the URL is valid.
1605
+ #
1606
+ # Default: 900 seconds (15 minutes)
1607
+ # @return [Integer]
1608
+ #
1609
+ class CreatePresignedPortalUrlRequest < Struct.new(
1610
+ :portal_id,
1611
+ :session_duration_seconds)
1612
+ SENSITIVE = []
1613
+ include Aws::Structure
1614
+ end
1615
+
1616
+ # @!attribute [rw] presigned_portal_url
1617
+ # The pre-signed URL to the portal. The URL contains the portal ID and
1618
+ # a session token that lets you access the portal. The URL has the
1619
+ # following format.
1620
+ #
1621
+ # `https://<portal-id>.app.iotsitewise.aws/auth?token=<encrypted-token>`
1622
+ # @return [String]
1623
+ #
1624
+ class CreatePresignedPortalUrlResponse < Struct.new(
1625
+ :presigned_portal_url)
1626
+ SENSITIVE = []
1627
+ include Aws::Structure
1628
+ end
1629
+
1591
1630
  # @note When making an API call, you may pass CreateProjectRequest
1592
1631
  # data as a hash:
1593
1632
  #
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.13.0
4
+ version: 1.14.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: 2020-11-06 00:00:00.000000000 Z
11
+ date: 2020-11-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core