aws-sdk-appstream 1.15.0 → 1.16.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
  SHA1:
3
- metadata.gz: d7c59980198d4d44a5a3cd9d7ddc4ec20753a680
4
- data.tar.gz: e91a55e50d7ac36cb6509ffabb6f741442fb102c
3
+ metadata.gz: a2b8c95f321a2839d75cc13790a82de0b7cbf34f
4
+ data.tar.gz: 77310da82fa1f5be29eaaad0c474abf029ffb359
5
5
  SHA512:
6
- metadata.gz: 1f21675bf4eb9da2c624c0ba90c95bf24ba7c49295fe3758ea885fcd0bc1417920a86cb0e1bfb7837c5949a78066db690770453ca8cbceb04a6accb231833be6
7
- data.tar.gz: 448dd9e92cf05a20aff41ea08aa7d41362f509c555963761670ac0360ae39f94c6ae0db87370f2b3ef449f4b48d5934419943d3b22ac69ad7336f252c6d062db
6
+ metadata.gz: b7fc55db51004e3620d37f3716d7e2aca96908c0fe1c76eb941fba56d34a9dc9d0505fc6151351090421b0a7e44082ddd76aa47ccbf2f3b28f01e2287f33c8a2
7
+ data.tar.gz: 18c2c5afc8adff2564797f798b3e4a3f11efeb5e67ba7d6c09db8b546aa391d21bcd74ba788e3791bdfc0956bfad9210b9f1df753ac70b0ddf68f5f6d6272dc6
@@ -43,6 +43,6 @@ require_relative 'aws-sdk-appstream/customizations'
43
43
  # @service
44
44
  module Aws::AppStream
45
45
 
46
- GEM_VERSION = '1.15.0'
46
+ GEM_VERSION = '1.16.0'
47
47
 
48
48
  end
@@ -212,6 +212,90 @@ module Aws::AppStream
212
212
  req.send_request(options)
213
213
  end
214
214
 
215
+ # Associates the specified users with the specified stacks. Users in a
216
+ # user pool cannot be assigned to stacks with fleets that are joined to
217
+ # an Active Directory domain.
218
+ #
219
+ # @option params [required, Array<Types::UserStackAssociation>] :user_stack_associations
220
+ # The list of UserStackAssociation objects.
221
+ #
222
+ # @return [Types::BatchAssociateUserStackResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
223
+ #
224
+ # * {Types::BatchAssociateUserStackResult#errors #errors} => Array&lt;Types::UserStackAssociationError&gt;
225
+ #
226
+ # @example Request syntax with placeholder values
227
+ #
228
+ # resp = client.batch_associate_user_stack({
229
+ # user_stack_associations: [ # required
230
+ # {
231
+ # stack_name: "String", # required
232
+ # user_name: "Username", # required
233
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
234
+ # send_email_notification: false,
235
+ # },
236
+ # ],
237
+ # })
238
+ #
239
+ # @example Response structure
240
+ #
241
+ # resp.errors #=> Array
242
+ # resp.errors[0].user_stack_association.stack_name #=> String
243
+ # resp.errors[0].user_stack_association.user_name #=> String
244
+ # resp.errors[0].user_stack_association.authentication_type #=> String, one of "API", "SAML", "USERPOOL"
245
+ # resp.errors[0].user_stack_association.send_email_notification #=> Boolean
246
+ # resp.errors[0].error_code #=> String, one of "STACK_NOT_FOUND", "USER_NAME_NOT_FOUND", "INTERNAL_ERROR"
247
+ # resp.errors[0].error_message #=> String
248
+ #
249
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStack AWS API Documentation
250
+ #
251
+ # @overload batch_associate_user_stack(params = {})
252
+ # @param [Hash] params ({})
253
+ def batch_associate_user_stack(params = {}, options = {})
254
+ req = build_request(:batch_associate_user_stack, params)
255
+ req.send_request(options)
256
+ end
257
+
258
+ # Disassociates the specified users from the specified stacks.
259
+ #
260
+ # @option params [required, Array<Types::UserStackAssociation>] :user_stack_associations
261
+ # The list of UserStackAssociation objects.
262
+ #
263
+ # @return [Types::BatchDisassociateUserStackResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
264
+ #
265
+ # * {Types::BatchDisassociateUserStackResult#errors #errors} => Array&lt;Types::UserStackAssociationError&gt;
266
+ #
267
+ # @example Request syntax with placeholder values
268
+ #
269
+ # resp = client.batch_disassociate_user_stack({
270
+ # user_stack_associations: [ # required
271
+ # {
272
+ # stack_name: "String", # required
273
+ # user_name: "Username", # required
274
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
275
+ # send_email_notification: false,
276
+ # },
277
+ # ],
278
+ # })
279
+ #
280
+ # @example Response structure
281
+ #
282
+ # resp.errors #=> Array
283
+ # resp.errors[0].user_stack_association.stack_name #=> String
284
+ # resp.errors[0].user_stack_association.user_name #=> String
285
+ # resp.errors[0].user_stack_association.authentication_type #=> String, one of "API", "SAML", "USERPOOL"
286
+ # resp.errors[0].user_stack_association.send_email_notification #=> Boolean
287
+ # resp.errors[0].error_code #=> String, one of "STACK_NOT_FOUND", "USER_NAME_NOT_FOUND", "INTERNAL_ERROR"
288
+ # resp.errors[0].error_message #=> String
289
+ #
290
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStack AWS API Documentation
291
+ #
292
+ # @overload batch_disassociate_user_stack(params = {})
293
+ # @param [Hash] params ({})
294
+ def batch_disassociate_user_stack(params = {}, options = {})
295
+ req = build_request(:batch_disassociate_user_stack, params)
296
+ req.send_request(options)
297
+ end
298
+
215
299
  # Copies the image within the same region or to a new region within the
216
300
  # same AWS account. Note that any tags you added to the image will not
217
301
  # be copied.
@@ -767,6 +851,53 @@ module Aws::AppStream
767
851
  req.send_request(options)
768
852
  end
769
853
 
854
+ # Creates a new user in the user pool.
855
+ #
856
+ # @option params [required, String] :user_name
857
+ # The email address of the user.
858
+ #
859
+ # @option params [String] :message_action
860
+ # The action to take for the welcome email that is sent to a user after
861
+ # the user is created in the user pool. If you specify SUPPRESS, no
862
+ # email is sent. If you specify RESEND, do not specify the first name or
863
+ # last name of the user. If the value is null, the email is sent.
864
+ #
865
+ # <note markdown="1"> The temporary password in the welcome email is valid for only 7 days.
866
+ # If users don’t set their passwords within 7 days, you must send them a
867
+ # new welcome email.
868
+ #
869
+ # </note>
870
+ #
871
+ # @option params [String] :first_name
872
+ # The first name, or given name, of the user.
873
+ #
874
+ # @option params [String] :last_name
875
+ # The last name, or surname, of the user.
876
+ #
877
+ # @option params [required, String] :authentication_type
878
+ # The authentication type for the user. You must specify USERPOOL.
879
+ #
880
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
881
+ #
882
+ # @example Request syntax with placeholder values
883
+ #
884
+ # resp = client.create_user({
885
+ # user_name: "Username", # required
886
+ # message_action: "SUPPRESS", # accepts SUPPRESS, RESEND
887
+ # first_name: "UserAttributeValue",
888
+ # last_name: "UserAttributeValue",
889
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
890
+ # })
891
+ #
892
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUser AWS API Documentation
893
+ #
894
+ # @overload create_user(params = {})
895
+ # @param [Hash] params ({})
896
+ def create_user(params = {}, options = {})
897
+ req = build_request(:create_user, params)
898
+ req.send_request(options)
899
+ end
900
+
770
901
  # Deletes the specified Directory Config object from AppStream 2.0. This
771
902
  # object includes the information required to join streaming instances
772
903
  # to an Active Directory domain.
@@ -971,6 +1102,32 @@ module Aws::AppStream
971
1102
  req.send_request(options)
972
1103
  end
973
1104
 
1105
+ # Deletes a user from the user pool.
1106
+ #
1107
+ # @option params [required, String] :user_name
1108
+ # The email address of the user.
1109
+ #
1110
+ # @option params [required, String] :authentication_type
1111
+ # The authentication type for the user. You must specify USERPOOL.
1112
+ #
1113
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1114
+ #
1115
+ # @example Request syntax with placeholder values
1116
+ #
1117
+ # resp = client.delete_user({
1118
+ # user_name: "Username", # required
1119
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1120
+ # })
1121
+ #
1122
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUser AWS API Documentation
1123
+ #
1124
+ # @overload delete_user(params = {})
1125
+ # @param [Hash] params ({})
1126
+ def delete_user(params = {}, options = {})
1127
+ req = build_request(:delete_user, params)
1128
+ req.send_request(options)
1129
+ end
1130
+
974
1131
  # Retrieves a list that describes one or more specified Directory Config
975
1132
  # objects for AppStream 2.0, if the names for these objects are
976
1133
  # provided. Otherwise, all Directory Config objects in the account are
@@ -1158,15 +1315,15 @@ module Aws::AppStream
1158
1315
  # image must be one that you own.
1159
1316
  #
1160
1317
  # @option params [Integer] :max_results
1161
- # The maximum size of each results page.
1318
+ # The maximum size of each page of results.
1162
1319
  #
1163
1320
  # @option params [Array<String>] :shared_aws_account_ids
1164
1321
  # The 12-digit ID of one or more AWS accounts with which the image is
1165
1322
  # shared.
1166
1323
  #
1167
1324
  # @option params [String] :next_token
1168
- # The pagination token to use to retrieve the next page of results. If
1169
- # this value is empty, only the first page is retrieved.
1325
+ # The pagination token to use to retrieve the next page of results for
1326
+ # this operation. If this value is null, it retrieves the first page.
1170
1327
  #
1171
1328
  # @return [Types::DescribeImagePermissionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1172
1329
  #
@@ -1215,8 +1372,8 @@ module Aws::AppStream
1215
1372
  # The type of image (public, private, or shared) to describe.
1216
1373
  #
1217
1374
  # @option params [String] :next_token
1218
- # The pagination token to use to retrieve the next page of results. If
1219
- # this value is empty, only the first page is retrieved.
1375
+ # The pagination token to use to retrieve the next page of results for
1376
+ # this operation. If this value is null, it retrieves the first page.
1220
1377
  #
1221
1378
  # @option params [Integer] :max_results
1222
1379
  # The maximum size of each page of results.
@@ -1399,6 +1556,142 @@ module Aws::AppStream
1399
1556
  req.send_request(options)
1400
1557
  end
1401
1558
 
1559
+ # Retrieves a list that describes the UserStackAssociation objects. You
1560
+ # must specify either or both of the following:
1561
+ #
1562
+ # * The stack name
1563
+ #
1564
+ # * The user name (email address of the user associated with the stack)
1565
+ # and the authentication type for the user
1566
+ #
1567
+ # @option params [String] :stack_name
1568
+ # The name of the stack that is associated with the user.
1569
+ #
1570
+ # @option params [String] :user_name
1571
+ # The email address of the user who is associated with the stack.
1572
+ #
1573
+ # @option params [String] :authentication_type
1574
+ # The authentication type for the user who is associated with the stack.
1575
+ # You must specify USERPOOL.
1576
+ #
1577
+ # @option params [Integer] :max_results
1578
+ # The maximum size of each page of results.
1579
+ #
1580
+ # @option params [String] :next_token
1581
+ # The pagination token to use to retrieve the next page of results for
1582
+ # this operation. If this value is null, it retrieves the first page.
1583
+ #
1584
+ # @return [Types::DescribeUserStackAssociationsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1585
+ #
1586
+ # * {Types::DescribeUserStackAssociationsResult#user_stack_associations #user_stack_associations} => Array&lt;Types::UserStackAssociation&gt;
1587
+ # * {Types::DescribeUserStackAssociationsResult#next_token #next_token} => String
1588
+ #
1589
+ # @example Request syntax with placeholder values
1590
+ #
1591
+ # resp = client.describe_user_stack_associations({
1592
+ # stack_name: "String",
1593
+ # user_name: "Username",
1594
+ # authentication_type: "API", # accepts API, SAML, USERPOOL
1595
+ # max_results: 1,
1596
+ # next_token: "String",
1597
+ # })
1598
+ #
1599
+ # @example Response structure
1600
+ #
1601
+ # resp.user_stack_associations #=> Array
1602
+ # resp.user_stack_associations[0].stack_name #=> String
1603
+ # resp.user_stack_associations[0].user_name #=> String
1604
+ # resp.user_stack_associations[0].authentication_type #=> String, one of "API", "SAML", "USERPOOL"
1605
+ # resp.user_stack_associations[0].send_email_notification #=> Boolean
1606
+ # resp.next_token #=> String
1607
+ #
1608
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociations AWS API Documentation
1609
+ #
1610
+ # @overload describe_user_stack_associations(params = {})
1611
+ # @param [Hash] params ({})
1612
+ def describe_user_stack_associations(params = {}, options = {})
1613
+ req = build_request(:describe_user_stack_associations, params)
1614
+ req.send_request(options)
1615
+ end
1616
+
1617
+ # Retrieves a list that describes one or more specified users in the
1618
+ # user pool, if user names are provided. Otherwise, all users in the
1619
+ # user pool are described.
1620
+ #
1621
+ # @option params [required, String] :authentication_type
1622
+ # The authentication type for the users in the user pool to describe.
1623
+ # You must specify USERPOOL.
1624
+ #
1625
+ # @option params [Integer] :max_results
1626
+ # The maximum size of each page of results.
1627
+ #
1628
+ # @option params [String] :next_token
1629
+ # The pagination token to use to retrieve the next page of results for
1630
+ # this operation. If this value is null, it retrieves the first page.
1631
+ #
1632
+ # @return [Types::DescribeUsersResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1633
+ #
1634
+ # * {Types::DescribeUsersResult#users #users} => Array&lt;Types::User&gt;
1635
+ # * {Types::DescribeUsersResult#next_token #next_token} => String
1636
+ #
1637
+ # @example Request syntax with placeholder values
1638
+ #
1639
+ # resp = client.describe_users({
1640
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1641
+ # max_results: 1,
1642
+ # next_token: "String",
1643
+ # })
1644
+ #
1645
+ # @example Response structure
1646
+ #
1647
+ # resp.users #=> Array
1648
+ # resp.users[0].arn #=> String
1649
+ # resp.users[0].user_name #=> String
1650
+ # resp.users[0].enabled #=> Boolean
1651
+ # resp.users[0].status #=> String
1652
+ # resp.users[0].first_name #=> String
1653
+ # resp.users[0].last_name #=> String
1654
+ # resp.users[0].created_time #=> Time
1655
+ # resp.users[0].authentication_type #=> String, one of "API", "SAML", "USERPOOL"
1656
+ # resp.next_token #=> String
1657
+ #
1658
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsers AWS API Documentation
1659
+ #
1660
+ # @overload describe_users(params = {})
1661
+ # @param [Hash] params ({})
1662
+ def describe_users(params = {}, options = {})
1663
+ req = build_request(:describe_users, params)
1664
+ req.send_request(options)
1665
+ end
1666
+
1667
+ # Disables the specified user in the user pool. Users can't sign in to
1668
+ # AppStream 2.0 until they are re-enabled. This action does not delete
1669
+ # the user.
1670
+ #
1671
+ # @option params [required, String] :user_name
1672
+ # The email address of the user.
1673
+ #
1674
+ # @option params [required, String] :authentication_type
1675
+ # The authentication type for the user. You must specify USERPOOL.
1676
+ #
1677
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1678
+ #
1679
+ # @example Request syntax with placeholder values
1680
+ #
1681
+ # resp = client.disable_user({
1682
+ # user_name: "Username", # required
1683
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1684
+ # })
1685
+ #
1686
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUser AWS API Documentation
1687
+ #
1688
+ # @overload disable_user(params = {})
1689
+ # @param [Hash] params ({})
1690
+ def disable_user(params = {}, options = {})
1691
+ req = build_request(:disable_user, params)
1692
+ req.send_request(options)
1693
+ end
1694
+
1402
1695
  # Disassociates the specified fleet from the specified stack.
1403
1696
  #
1404
1697
  # @option params [required, String] :fleet_name
@@ -1425,6 +1718,34 @@ module Aws::AppStream
1425
1718
  req.send_request(options)
1426
1719
  end
1427
1720
 
1721
+ # Enables a user in the user pool. After being enabled, users can sign
1722
+ # in to AppStream 2.0 and open applications from the stacks to which
1723
+ # they are assigned.
1724
+ #
1725
+ # @option params [required, String] :user_name
1726
+ # The email address of the user.
1727
+ #
1728
+ # @option params [required, String] :authentication_type
1729
+ # The authentication type for the user. You must specify USERPOOL.
1730
+ #
1731
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
1732
+ #
1733
+ # @example Request syntax with placeholder values
1734
+ #
1735
+ # resp = client.enable_user({
1736
+ # user_name: "Username", # required
1737
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1738
+ # })
1739
+ #
1740
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUser AWS API Documentation
1741
+ #
1742
+ # @overload enable_user(params = {})
1743
+ # @param [Hash] params ({})
1744
+ def enable_user(params = {}, options = {})
1745
+ req = build_request(:enable_user, params)
1746
+ req.send_request(options)
1747
+ end
1748
+
1428
1749
  # Immediately stops the specified streaming session.
1429
1750
  #
1430
1751
  # @option params [required, String] :session_id
@@ -2154,7 +2475,7 @@ module Aws::AppStream
2154
2475
  params: params,
2155
2476
  config: config)
2156
2477
  context[:gem_name] = 'aws-sdk-appstream'
2157
- context[:gem_version] = '1.15.0'
2478
+ context[:gem_version] = '1.16.0'
2158
2479
  Seahorse::Client::Request.new(handlers, context)
2159
2480
  end
2160
2481
 
@@ -26,6 +26,10 @@ module Aws::AppStream
26
26
  AuthenticationType = Shapes::StringShape.new(name: 'AuthenticationType')
27
27
  AwsAccountId = Shapes::StringShape.new(name: 'AwsAccountId')
28
28
  AwsAccountIdList = Shapes::ListShape.new(name: 'AwsAccountIdList')
29
+ BatchAssociateUserStackRequest = Shapes::StructureShape.new(name: 'BatchAssociateUserStackRequest')
30
+ BatchAssociateUserStackResult = Shapes::StructureShape.new(name: 'BatchAssociateUserStackResult')
31
+ BatchDisassociateUserStackRequest = Shapes::StructureShape.new(name: 'BatchDisassociateUserStackRequest')
32
+ BatchDisassociateUserStackResult = Shapes::StructureShape.new(name: 'BatchDisassociateUserStackResult')
29
33
  Boolean = Shapes::BooleanShape.new(name: 'Boolean')
30
34
  BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
31
35
  ComputeCapacity = Shapes::StructureShape.new(name: 'ComputeCapacity')
@@ -45,6 +49,8 @@ module Aws::AppStream
45
49
  CreateStackResult = Shapes::StructureShape.new(name: 'CreateStackResult')
46
50
  CreateStreamingURLRequest = Shapes::StructureShape.new(name: 'CreateStreamingURLRequest')
47
51
  CreateStreamingURLResult = Shapes::StructureShape.new(name: 'CreateStreamingURLResult')
52
+ CreateUserRequest = Shapes::StructureShape.new(name: 'CreateUserRequest')
53
+ CreateUserResult = Shapes::StructureShape.new(name: 'CreateUserResult')
48
54
  DeleteDirectoryConfigRequest = Shapes::StructureShape.new(name: 'DeleteDirectoryConfigRequest')
49
55
  DeleteDirectoryConfigResult = Shapes::StructureShape.new(name: 'DeleteDirectoryConfigResult')
50
56
  DeleteFleetRequest = Shapes::StructureShape.new(name: 'DeleteFleetRequest')
@@ -57,6 +63,8 @@ module Aws::AppStream
57
63
  DeleteImageResult = Shapes::StructureShape.new(name: 'DeleteImageResult')
58
64
  DeleteStackRequest = Shapes::StructureShape.new(name: 'DeleteStackRequest')
59
65
  DeleteStackResult = Shapes::StructureShape.new(name: 'DeleteStackResult')
66
+ DeleteUserRequest = Shapes::StructureShape.new(name: 'DeleteUserRequest')
67
+ DeleteUserResult = Shapes::StructureShape.new(name: 'DeleteUserResult')
60
68
  DescribeDirectoryConfigsRequest = Shapes::StructureShape.new(name: 'DescribeDirectoryConfigsRequest')
61
69
  DescribeDirectoryConfigsResult = Shapes::StructureShape.new(name: 'DescribeDirectoryConfigsResult')
62
70
  DescribeFleetsRequest = Shapes::StructureShape.new(name: 'DescribeFleetsRequest')
@@ -72,17 +80,25 @@ module Aws::AppStream
72
80
  DescribeSessionsResult = Shapes::StructureShape.new(name: 'DescribeSessionsResult')
73
81
  DescribeStacksRequest = Shapes::StructureShape.new(name: 'DescribeStacksRequest')
74
82
  DescribeStacksResult = Shapes::StructureShape.new(name: 'DescribeStacksResult')
83
+ DescribeUserStackAssociationsRequest = Shapes::StructureShape.new(name: 'DescribeUserStackAssociationsRequest')
84
+ DescribeUserStackAssociationsResult = Shapes::StructureShape.new(name: 'DescribeUserStackAssociationsResult')
85
+ DescribeUsersRequest = Shapes::StructureShape.new(name: 'DescribeUsersRequest')
86
+ DescribeUsersResult = Shapes::StructureShape.new(name: 'DescribeUsersResult')
75
87
  Description = Shapes::StringShape.new(name: 'Description')
76
88
  DirectoryConfig = Shapes::StructureShape.new(name: 'DirectoryConfig')
77
89
  DirectoryConfigList = Shapes::ListShape.new(name: 'DirectoryConfigList')
78
90
  DirectoryName = Shapes::StringShape.new(name: 'DirectoryName')
79
91
  DirectoryNameList = Shapes::ListShape.new(name: 'DirectoryNameList')
92
+ DisableUserRequest = Shapes::StructureShape.new(name: 'DisableUserRequest')
93
+ DisableUserResult = Shapes::StructureShape.new(name: 'DisableUserResult')
80
94
  DisassociateFleetRequest = Shapes::StructureShape.new(name: 'DisassociateFleetRequest')
81
95
  DisassociateFleetResult = Shapes::StructureShape.new(name: 'DisassociateFleetResult')
82
96
  DisplayName = Shapes::StringShape.new(name: 'DisplayName')
83
97
  Domain = Shapes::StringShape.new(name: 'Domain')
84
98
  DomainJoinInfo = Shapes::StructureShape.new(name: 'DomainJoinInfo')
85
99
  DomainList = Shapes::ListShape.new(name: 'DomainList')
100
+ EnableUserRequest = Shapes::StructureShape.new(name: 'EnableUserRequest')
101
+ EnableUserResult = Shapes::StructureShape.new(name: 'EnableUserResult')
86
102
  ErrorMessage = Shapes::StringShape.new(name: 'ErrorMessage')
87
103
  ExpireSessionRequest = Shapes::StructureShape.new(name: 'ExpireSessionRequest')
88
104
  ExpireSessionResult = Shapes::StructureShape.new(name: 'ExpireSessionResult')
@@ -121,6 +137,7 @@ module Aws::AppStream
121
137
  ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
122
138
  Long = Shapes::IntegerShape.new(name: 'Long')
123
139
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
140
+ MessageAction = Shapes::StringShape.new(name: 'MessageAction')
124
141
  Metadata = Shapes::MapShape.new(name: 'Metadata')
125
142
  Name = Shapes::StringShape.new(name: 'Name')
126
143
  NetworkAccessConfiguration = Shapes::StructureShape.new(name: 'NetworkAccessConfiguration')
@@ -185,9 +202,18 @@ module Aws::AppStream
185
202
  UpdateImagePermissionsResult = Shapes::StructureShape.new(name: 'UpdateImagePermissionsResult')
186
203
  UpdateStackRequest = Shapes::StructureShape.new(name: 'UpdateStackRequest')
187
204
  UpdateStackResult = Shapes::StructureShape.new(name: 'UpdateStackResult')
205
+ User = Shapes::StructureShape.new(name: 'User')
206
+ UserAttributeValue = Shapes::StringShape.new(name: 'UserAttributeValue')
188
207
  UserId = Shapes::StringShape.new(name: 'UserId')
208
+ UserList = Shapes::ListShape.new(name: 'UserList')
189
209
  UserSetting = Shapes::StructureShape.new(name: 'UserSetting')
190
210
  UserSettingList = Shapes::ListShape.new(name: 'UserSettingList')
211
+ UserStackAssociation = Shapes::StructureShape.new(name: 'UserStackAssociation')
212
+ UserStackAssociationError = Shapes::StructureShape.new(name: 'UserStackAssociationError')
213
+ UserStackAssociationErrorCode = Shapes::StringShape.new(name: 'UserStackAssociationErrorCode')
214
+ UserStackAssociationErrorList = Shapes::ListShape.new(name: 'UserStackAssociationErrorList')
215
+ UserStackAssociationList = Shapes::ListShape.new(name: 'UserStackAssociationList')
216
+ Username = Shapes::StringShape.new(name: 'Username')
191
217
  VisibilityType = Shapes::StringShape.new(name: 'VisibilityType')
192
218
  VpcConfig = Shapes::StructureShape.new(name: 'VpcConfig')
193
219
 
@@ -221,6 +247,18 @@ module Aws::AppStream
221
247
 
222
248
  AwsAccountIdList.member = Shapes::ShapeRef.new(shape: AwsAccountId)
223
249
 
250
+ BatchAssociateUserStackRequest.add_member(:user_stack_associations, Shapes::ShapeRef.new(shape: UserStackAssociationList, required: true, location_name: "UserStackAssociations"))
251
+ BatchAssociateUserStackRequest.struct_class = Types::BatchAssociateUserStackRequest
252
+
253
+ BatchAssociateUserStackResult.add_member(:errors, Shapes::ShapeRef.new(shape: UserStackAssociationErrorList, location_name: "errors"))
254
+ BatchAssociateUserStackResult.struct_class = Types::BatchAssociateUserStackResult
255
+
256
+ BatchDisassociateUserStackRequest.add_member(:user_stack_associations, Shapes::ShapeRef.new(shape: UserStackAssociationList, required: true, location_name: "UserStackAssociations"))
257
+ BatchDisassociateUserStackRequest.struct_class = Types::BatchDisassociateUserStackRequest
258
+
259
+ BatchDisassociateUserStackResult.add_member(:errors, Shapes::ShapeRef.new(shape: UserStackAssociationErrorList, location_name: "errors"))
260
+ BatchDisassociateUserStackResult.struct_class = Types::BatchDisassociateUserStackResult
261
+
224
262
  ComputeCapacity.add_member(:desired_instances, Shapes::ShapeRef.new(shape: Integer, required: true, location_name: "DesiredInstances"))
225
263
  ComputeCapacity.struct_class = Types::ComputeCapacity
226
264
 
@@ -313,6 +351,15 @@ module Aws::AppStream
313
351
  CreateStreamingURLResult.add_member(:expires, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Expires"))
314
352
  CreateStreamingURLResult.struct_class = Types::CreateStreamingURLResult
315
353
 
354
+ CreateUserRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, required: true, location_name: "UserName"))
355
+ CreateUserRequest.add_member(:message_action, Shapes::ShapeRef.new(shape: MessageAction, location_name: "MessageAction"))
356
+ CreateUserRequest.add_member(:first_name, Shapes::ShapeRef.new(shape: UserAttributeValue, location_name: "FirstName"))
357
+ CreateUserRequest.add_member(:last_name, Shapes::ShapeRef.new(shape: UserAttributeValue, location_name: "LastName"))
358
+ CreateUserRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
359
+ CreateUserRequest.struct_class = Types::CreateUserRequest
360
+
361
+ CreateUserResult.struct_class = Types::CreateUserResult
362
+
316
363
  DeleteDirectoryConfigRequest.add_member(:directory_name, Shapes::ShapeRef.new(shape: DirectoryName, required: true, location_name: "DirectoryName"))
317
364
  DeleteDirectoryConfigRequest.struct_class = Types::DeleteDirectoryConfigRequest
318
365
 
@@ -346,6 +393,12 @@ module Aws::AppStream
346
393
 
347
394
  DeleteStackResult.struct_class = Types::DeleteStackResult
348
395
 
396
+ DeleteUserRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, required: true, location_name: "UserName"))
397
+ DeleteUserRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
398
+ DeleteUserRequest.struct_class = Types::DeleteUserRequest
399
+
400
+ DeleteUserResult.struct_class = Types::DeleteUserResult
401
+
349
402
  DescribeDirectoryConfigsRequest.add_member(:directory_names, Shapes::ShapeRef.new(shape: DirectoryNameList, location_name: "DirectoryNames"))
350
403
  DescribeDirectoryConfigsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
351
404
  DescribeDirectoryConfigsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
@@ -414,6 +467,26 @@ module Aws::AppStream
414
467
  DescribeStacksResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
415
468
  DescribeStacksResult.struct_class = Types::DescribeStacksResult
416
469
 
470
+ DescribeUserStackAssociationsRequest.add_member(:stack_name, Shapes::ShapeRef.new(shape: String, location_name: "StackName"))
471
+ DescribeUserStackAssociationsRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, location_name: "UserName"))
472
+ DescribeUserStackAssociationsRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, location_name: "AuthenticationType"))
473
+ DescribeUserStackAssociationsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: MaxResults, location_name: "MaxResults"))
474
+ DescribeUserStackAssociationsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
475
+ DescribeUserStackAssociationsRequest.struct_class = Types::DescribeUserStackAssociationsRequest
476
+
477
+ DescribeUserStackAssociationsResult.add_member(:user_stack_associations, Shapes::ShapeRef.new(shape: UserStackAssociationList, location_name: "UserStackAssociations"))
478
+ DescribeUserStackAssociationsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
479
+ DescribeUserStackAssociationsResult.struct_class = Types::DescribeUserStackAssociationsResult
480
+
481
+ DescribeUsersRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
482
+ DescribeUsersRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Integer, location_name: "MaxResults"))
483
+ DescribeUsersRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
484
+ DescribeUsersRequest.struct_class = Types::DescribeUsersRequest
485
+
486
+ DescribeUsersResult.add_member(:users, Shapes::ShapeRef.new(shape: UserList, location_name: "Users"))
487
+ DescribeUsersResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
488
+ DescribeUsersResult.struct_class = Types::DescribeUsersResult
489
+
417
490
  DirectoryConfig.add_member(:directory_name, Shapes::ShapeRef.new(shape: DirectoryName, required: true, location_name: "DirectoryName"))
418
491
  DirectoryConfig.add_member(:organizational_unit_distinguished_names, Shapes::ShapeRef.new(shape: OrganizationalUnitDistinguishedNamesList, location_name: "OrganizationalUnitDistinguishedNames"))
419
492
  DirectoryConfig.add_member(:service_account_credentials, Shapes::ShapeRef.new(shape: ServiceAccountCredentials, location_name: "ServiceAccountCredentials"))
@@ -424,6 +497,12 @@ module Aws::AppStream
424
497
 
425
498
  DirectoryNameList.member = Shapes::ShapeRef.new(shape: DirectoryName)
426
499
 
500
+ DisableUserRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, required: true, location_name: "UserName"))
501
+ DisableUserRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
502
+ DisableUserRequest.struct_class = Types::DisableUserRequest
503
+
504
+ DisableUserResult.struct_class = Types::DisableUserResult
505
+
427
506
  DisassociateFleetRequest.add_member(:fleet_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "FleetName"))
428
507
  DisassociateFleetRequest.add_member(:stack_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "StackName"))
429
508
  DisassociateFleetRequest.struct_class = Types::DisassociateFleetRequest
@@ -436,6 +515,12 @@ module Aws::AppStream
436
515
 
437
516
  DomainList.member = Shapes::ShapeRef.new(shape: Domain)
438
517
 
518
+ EnableUserRequest.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, required: true, location_name: "UserName"))
519
+ EnableUserRequest.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
520
+ EnableUserRequest.struct_class = Types::EnableUserRequest
521
+
522
+ EnableUserResult.struct_class = Types::EnableUserResult
523
+
439
524
  ExpireSessionRequest.add_member(:session_id, Shapes::ShapeRef.new(shape: String, required: true, location_name: "SessionId"))
440
525
  ExpireSessionRequest.struct_class = Types::ExpireSessionRequest
441
526
 
@@ -704,12 +789,39 @@ module Aws::AppStream
704
789
  UpdateStackResult.add_member(:stack, Shapes::ShapeRef.new(shape: Stack, location_name: "Stack"))
705
790
  UpdateStackResult.struct_class = Types::UpdateStackResult
706
791
 
792
+ User.add_member(:arn, Shapes::ShapeRef.new(shape: Arn, location_name: "Arn"))
793
+ User.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, location_name: "UserName"))
794
+ User.add_member(:enabled, Shapes::ShapeRef.new(shape: Boolean, location_name: "Enabled"))
795
+ User.add_member(:status, Shapes::ShapeRef.new(shape: String, location_name: "Status"))
796
+ User.add_member(:first_name, Shapes::ShapeRef.new(shape: UserAttributeValue, location_name: "FirstName"))
797
+ User.add_member(:last_name, Shapes::ShapeRef.new(shape: UserAttributeValue, location_name: "LastName"))
798
+ User.add_member(:created_time, Shapes::ShapeRef.new(shape: Timestamp, location_name: "CreatedTime"))
799
+ User.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
800
+ User.struct_class = Types::User
801
+
802
+ UserList.member = Shapes::ShapeRef.new(shape: User)
803
+
707
804
  UserSetting.add_member(:action, Shapes::ShapeRef.new(shape: Action, required: true, location_name: "Action"))
708
805
  UserSetting.add_member(:permission, Shapes::ShapeRef.new(shape: Permission, required: true, location_name: "Permission"))
709
806
  UserSetting.struct_class = Types::UserSetting
710
807
 
711
808
  UserSettingList.member = Shapes::ShapeRef.new(shape: UserSetting)
712
809
 
810
+ UserStackAssociation.add_member(:stack_name, Shapes::ShapeRef.new(shape: String, required: true, location_name: "StackName"))
811
+ UserStackAssociation.add_member(:user_name, Shapes::ShapeRef.new(shape: Username, required: true, location_name: "UserName"))
812
+ UserStackAssociation.add_member(:authentication_type, Shapes::ShapeRef.new(shape: AuthenticationType, required: true, location_name: "AuthenticationType"))
813
+ UserStackAssociation.add_member(:send_email_notification, Shapes::ShapeRef.new(shape: Boolean, location_name: "SendEmailNotification"))
814
+ UserStackAssociation.struct_class = Types::UserStackAssociation
815
+
816
+ UserStackAssociationError.add_member(:user_stack_association, Shapes::ShapeRef.new(shape: UserStackAssociation, location_name: "UserStackAssociation"))
817
+ UserStackAssociationError.add_member(:error_code, Shapes::ShapeRef.new(shape: UserStackAssociationErrorCode, location_name: "ErrorCode"))
818
+ UserStackAssociationError.add_member(:error_message, Shapes::ShapeRef.new(shape: String, location_name: "ErrorMessage"))
819
+ UserStackAssociationError.struct_class = Types::UserStackAssociationError
820
+
821
+ UserStackAssociationErrorList.member = Shapes::ShapeRef.new(shape: UserStackAssociationError)
822
+
823
+ UserStackAssociationList.member = Shapes::ShapeRef.new(shape: UserStackAssociation)
824
+
713
825
  VpcConfig.add_member(:subnet_ids, Shapes::ShapeRef.new(shape: SubnetIdList, location_name: "SubnetIds"))
714
826
  VpcConfig.add_member(:security_group_ids, Shapes::ShapeRef.new(shape: SecurityGroupIdList, location_name: "SecurityGroupIds"))
715
827
  VpcConfig.struct_class = Types::VpcConfig
@@ -747,6 +859,23 @@ module Aws::AppStream
747
859
  o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
748
860
  end)
749
861
 
862
+ api.add_operation(:batch_associate_user_stack, Seahorse::Model::Operation.new.tap do |o|
863
+ o.name = "BatchAssociateUserStack"
864
+ o.http_method = "POST"
865
+ o.http_request_uri = "/"
866
+ o.input = Shapes::ShapeRef.new(shape: BatchAssociateUserStackRequest)
867
+ o.output = Shapes::ShapeRef.new(shape: BatchAssociateUserStackResult)
868
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
869
+ end)
870
+
871
+ api.add_operation(:batch_disassociate_user_stack, Seahorse::Model::Operation.new.tap do |o|
872
+ o.name = "BatchDisassociateUserStack"
873
+ o.http_method = "POST"
874
+ o.http_request_uri = "/"
875
+ o.input = Shapes::ShapeRef.new(shape: BatchDisassociateUserStackRequest)
876
+ o.output = Shapes::ShapeRef.new(shape: BatchDisassociateUserStackResult)
877
+ end)
878
+
750
879
  api.add_operation(:copy_image, Seahorse::Model::Operation.new.tap do |o|
751
880
  o.name = "CopyImage"
752
881
  o.http_method = "POST"
@@ -845,6 +974,19 @@ module Aws::AppStream
845
974
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
846
975
  end)
847
976
 
977
+ api.add_operation(:create_user, Seahorse::Model::Operation.new.tap do |o|
978
+ o.name = "CreateUser"
979
+ o.http_method = "POST"
980
+ o.http_request_uri = "/"
981
+ o.input = Shapes::ShapeRef.new(shape: CreateUserRequest)
982
+ o.output = Shapes::ShapeRef.new(shape: CreateUserResult)
983
+ o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
984
+ o.errors << Shapes::ShapeRef.new(shape: InvalidAccountStatusException)
985
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
986
+ o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
987
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotPermittedException)
988
+ end)
989
+
848
990
  api.add_operation(:delete_directory_config, Seahorse::Model::Operation.new.tap do |o|
849
991
  o.name = "DeleteDirectoryConfig"
850
992
  o.http_method = "POST"
@@ -910,6 +1052,15 @@ module Aws::AppStream
910
1052
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
911
1053
  end)
912
1054
 
1055
+ api.add_operation(:delete_user, Seahorse::Model::Operation.new.tap do |o|
1056
+ o.name = "DeleteUser"
1057
+ o.http_method = "POST"
1058
+ o.http_request_uri = "/"
1059
+ o.input = Shapes::ShapeRef.new(shape: DeleteUserRequest)
1060
+ o.output = Shapes::ShapeRef.new(shape: DeleteUserResult)
1061
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1062
+ end)
1063
+
913
1064
  api.add_operation(:describe_directory_configs, Seahorse::Model::Operation.new.tap do |o|
914
1065
  o.name = "DescribeDirectoryConfigs"
915
1066
  o.http_method = "POST"
@@ -986,6 +1137,34 @@ module Aws::AppStream
986
1137
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
987
1138
  end)
988
1139
 
1140
+ api.add_operation(:describe_user_stack_associations, Seahorse::Model::Operation.new.tap do |o|
1141
+ o.name = "DescribeUserStackAssociations"
1142
+ o.http_method = "POST"
1143
+ o.http_request_uri = "/"
1144
+ o.input = Shapes::ShapeRef.new(shape: DescribeUserStackAssociationsRequest)
1145
+ o.output = Shapes::ShapeRef.new(shape: DescribeUserStackAssociationsResult)
1146
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1147
+ end)
1148
+
1149
+ api.add_operation(:describe_users, Seahorse::Model::Operation.new.tap do |o|
1150
+ o.name = "DescribeUsers"
1151
+ o.http_method = "POST"
1152
+ o.http_request_uri = "/"
1153
+ o.input = Shapes::ShapeRef.new(shape: DescribeUsersRequest)
1154
+ o.output = Shapes::ShapeRef.new(shape: DescribeUsersResult)
1155
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1156
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterCombinationException)
1157
+ end)
1158
+
1159
+ api.add_operation(:disable_user, Seahorse::Model::Operation.new.tap do |o|
1160
+ o.name = "DisableUser"
1161
+ o.http_method = "POST"
1162
+ o.http_request_uri = "/"
1163
+ o.input = Shapes::ShapeRef.new(shape: DisableUserRequest)
1164
+ o.output = Shapes::ShapeRef.new(shape: DisableUserResult)
1165
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1166
+ end)
1167
+
989
1168
  api.add_operation(:disassociate_fleet, Seahorse::Model::Operation.new.tap do |o|
990
1169
  o.name = "DisassociateFleet"
991
1170
  o.http_method = "POST"
@@ -997,6 +1176,16 @@ module Aws::AppStream
997
1176
  o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
998
1177
  end)
999
1178
 
1179
+ api.add_operation(:enable_user, Seahorse::Model::Operation.new.tap do |o|
1180
+ o.name = "EnableUser"
1181
+ o.http_method = "POST"
1182
+ o.http_request_uri = "/"
1183
+ o.input = Shapes::ShapeRef.new(shape: EnableUserRequest)
1184
+ o.output = Shapes::ShapeRef.new(shape: EnableUserResult)
1185
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1186
+ o.errors << Shapes::ShapeRef.new(shape: InvalidAccountStatusException)
1187
+ end)
1188
+
1000
1189
  api.add_operation(:expire_session, Seahorse::Model::Operation.new.tap do |o|
1001
1190
  o.name = "ExpireSession"
1002
1191
  o.http_method = "POST"
@@ -138,6 +138,78 @@ module Aws::AppStream
138
138
  #
139
139
  class AssociateFleetResult < Aws::EmptyStructure; end
140
140
 
141
+ # @note When making an API call, you may pass BatchAssociateUserStackRequest
142
+ # data as a hash:
143
+ #
144
+ # {
145
+ # user_stack_associations: [ # required
146
+ # {
147
+ # stack_name: "String", # required
148
+ # user_name: "Username", # required
149
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
150
+ # send_email_notification: false,
151
+ # },
152
+ # ],
153
+ # }
154
+ #
155
+ # @!attribute [rw] user_stack_associations
156
+ # The list of UserStackAssociation objects.
157
+ # @return [Array<Types::UserStackAssociation>]
158
+ #
159
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStackRequest AWS API Documentation
160
+ #
161
+ class BatchAssociateUserStackRequest < Struct.new(
162
+ :user_stack_associations)
163
+ include Aws::Structure
164
+ end
165
+
166
+ # @!attribute [rw] errors
167
+ # The list of UserStackAssociationError objects.
168
+ # @return [Array<Types::UserStackAssociationError>]
169
+ #
170
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchAssociateUserStackResult AWS API Documentation
171
+ #
172
+ class BatchAssociateUserStackResult < Struct.new(
173
+ :errors)
174
+ include Aws::Structure
175
+ end
176
+
177
+ # @note When making an API call, you may pass BatchDisassociateUserStackRequest
178
+ # data as a hash:
179
+ #
180
+ # {
181
+ # user_stack_associations: [ # required
182
+ # {
183
+ # stack_name: "String", # required
184
+ # user_name: "Username", # required
185
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
186
+ # send_email_notification: false,
187
+ # },
188
+ # ],
189
+ # }
190
+ #
191
+ # @!attribute [rw] user_stack_associations
192
+ # The list of UserStackAssociation objects.
193
+ # @return [Array<Types::UserStackAssociation>]
194
+ #
195
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStackRequest AWS API Documentation
196
+ #
197
+ class BatchDisassociateUserStackRequest < Struct.new(
198
+ :user_stack_associations)
199
+ include Aws::Structure
200
+ end
201
+
202
+ # @!attribute [rw] errors
203
+ # The list of UserStackAssociationError objects.
204
+ # @return [Array<Types::UserStackAssociationError>]
205
+ #
206
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/BatchDisassociateUserStackResult AWS API Documentation
207
+ #
208
+ class BatchDisassociateUserStackResult < Struct.new(
209
+ :errors)
210
+ include Aws::Structure
211
+ end
212
+
141
213
  # Describes the capacity for a fleet.
142
214
  #
143
215
  # @note When making an API call, you may pass ComputeCapacity
@@ -751,6 +823,62 @@ module Aws::AppStream
751
823
  include Aws::Structure
752
824
  end
753
825
 
826
+ # @note When making an API call, you may pass CreateUserRequest
827
+ # data as a hash:
828
+ #
829
+ # {
830
+ # user_name: "Username", # required
831
+ # message_action: "SUPPRESS", # accepts SUPPRESS, RESEND
832
+ # first_name: "UserAttributeValue",
833
+ # last_name: "UserAttributeValue",
834
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
835
+ # }
836
+ #
837
+ # @!attribute [rw] user_name
838
+ # The email address of the user.
839
+ # @return [String]
840
+ #
841
+ # @!attribute [rw] message_action
842
+ # The action to take for the welcome email that is sent to a user
843
+ # after the user is created in the user pool. If you specify SUPPRESS,
844
+ # no email is sent. If you specify RESEND, do not specify the first
845
+ # name or last name of the user. If the value is null, the email is
846
+ # sent.
847
+ #
848
+ # <note markdown="1"> The temporary password in the welcome email is valid for only 7
849
+ # days. If users don’t set their passwords within 7 days, you must
850
+ # send them a new welcome email.
851
+ #
852
+ # </note>
853
+ # @return [String]
854
+ #
855
+ # @!attribute [rw] first_name
856
+ # The first name, or given name, of the user.
857
+ # @return [String]
858
+ #
859
+ # @!attribute [rw] last_name
860
+ # The last name, or surname, of the user.
861
+ # @return [String]
862
+ #
863
+ # @!attribute [rw] authentication_type
864
+ # The authentication type for the user. You must specify USERPOOL.
865
+ # @return [String]
866
+ #
867
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUserRequest AWS API Documentation
868
+ #
869
+ class CreateUserRequest < Struct.new(
870
+ :user_name,
871
+ :message_action,
872
+ :first_name,
873
+ :last_name,
874
+ :authentication_type)
875
+ include Aws::Structure
876
+ end
877
+
878
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/CreateUserResult AWS API Documentation
879
+ #
880
+ class CreateUserResult < Aws::EmptyStructure; end
881
+
754
882
  # @note When making an API call, you may pass DeleteDirectoryConfigRequest
755
883
  # data as a hash:
756
884
  #
@@ -904,6 +1032,34 @@ module Aws::AppStream
904
1032
  #
905
1033
  class DeleteStackResult < Aws::EmptyStructure; end
906
1034
 
1035
+ # @note When making an API call, you may pass DeleteUserRequest
1036
+ # data as a hash:
1037
+ #
1038
+ # {
1039
+ # user_name: "Username", # required
1040
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1041
+ # }
1042
+ #
1043
+ # @!attribute [rw] user_name
1044
+ # The email address of the user.
1045
+ # @return [String]
1046
+ #
1047
+ # @!attribute [rw] authentication_type
1048
+ # The authentication type for the user. You must specify USERPOOL.
1049
+ # @return [String]
1050
+ #
1051
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUserRequest AWS API Documentation
1052
+ #
1053
+ class DeleteUserRequest < Struct.new(
1054
+ :user_name,
1055
+ :authentication_type)
1056
+ include Aws::Structure
1057
+ end
1058
+
1059
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DeleteUserResult AWS API Documentation
1060
+ #
1061
+ class DeleteUserResult < Aws::EmptyStructure; end
1062
+
907
1063
  # @note When making an API call, you may pass DescribeDirectoryConfigsRequest
908
1064
  # data as a hash:
909
1065
  #
@@ -1060,7 +1216,7 @@ module Aws::AppStream
1060
1216
  # @return [String]
1061
1217
  #
1062
1218
  # @!attribute [rw] max_results
1063
- # The maximum size of each results page.
1219
+ # The maximum size of each page of results.
1064
1220
  # @return [Integer]
1065
1221
  #
1066
1222
  # @!attribute [rw] shared_aws_account_ids
@@ -1069,8 +1225,8 @@ module Aws::AppStream
1069
1225
  # @return [Array<String>]
1070
1226
  #
1071
1227
  # @!attribute [rw] next_token
1072
- # The pagination token to use to retrieve the next page of results. If
1073
- # this value is empty, only the first page is retrieved.
1228
+ # The pagination token to use to retrieve the next page of results for
1229
+ # this operation. If this value is null, it retrieves the first page.
1074
1230
  # @return [String]
1075
1231
  #
1076
1232
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissionsRequest AWS API Documentation
@@ -1092,8 +1248,8 @@ module Aws::AppStream
1092
1248
  # @return [Array<Types::SharedImagePermissions>]
1093
1249
  #
1094
1250
  # @!attribute [rw] next_token
1095
- # The pagination token to use to retrieve the next page of results. If
1096
- # this value is empty, only the first page is retrieved.
1251
+ # The pagination token to use to retrieve the next page of results for
1252
+ # this operation. If there are no more pages, this value is null.
1097
1253
  # @return [String]
1098
1254
  #
1099
1255
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagePermissionsResult AWS API Documentation
@@ -1129,8 +1285,8 @@ module Aws::AppStream
1129
1285
  # @return [String]
1130
1286
  #
1131
1287
  # @!attribute [rw] next_token
1132
- # The pagination token to use to retrieve the next page of results. If
1133
- # this value is empty, only the first page is retrieved.
1288
+ # The pagination token to use to retrieve the next page of results for
1289
+ # this operation. If this value is null, it retrieves the first page.
1134
1290
  # @return [String]
1135
1291
  #
1136
1292
  # @!attribute [rw] max_results
@@ -1153,8 +1309,8 @@ module Aws::AppStream
1153
1309
  # @return [Array<Types::Image>]
1154
1310
  #
1155
1311
  # @!attribute [rw] next_token
1156
- # The pagination token to use to retrieve the next page of results. If
1157
- # there are no more pages, this value is null.
1312
+ # The pagination token to use to retrieve the next page of results for
1313
+ # this operation. If there are no more pages, this value is null.
1158
1314
  # @return [String]
1159
1315
  #
1160
1316
  # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeImagesResult AWS API Documentation
@@ -1276,6 +1432,116 @@ module Aws::AppStream
1276
1432
  include Aws::Structure
1277
1433
  end
1278
1434
 
1435
+ # @note When making an API call, you may pass DescribeUserStackAssociationsRequest
1436
+ # data as a hash:
1437
+ #
1438
+ # {
1439
+ # stack_name: "String",
1440
+ # user_name: "Username",
1441
+ # authentication_type: "API", # accepts API, SAML, USERPOOL
1442
+ # max_results: 1,
1443
+ # next_token: "String",
1444
+ # }
1445
+ #
1446
+ # @!attribute [rw] stack_name
1447
+ # The name of the stack that is associated with the user.
1448
+ # @return [String]
1449
+ #
1450
+ # @!attribute [rw] user_name
1451
+ # The email address of the user who is associated with the stack.
1452
+ # @return [String]
1453
+ #
1454
+ # @!attribute [rw] authentication_type
1455
+ # The authentication type for the user who is associated with the
1456
+ # stack. You must specify USERPOOL.
1457
+ # @return [String]
1458
+ #
1459
+ # @!attribute [rw] max_results
1460
+ # The maximum size of each page of results.
1461
+ # @return [Integer]
1462
+ #
1463
+ # @!attribute [rw] next_token
1464
+ # The pagination token to use to retrieve the next page of results for
1465
+ # this operation. If this value is null, it retrieves the first page.
1466
+ # @return [String]
1467
+ #
1468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociationsRequest AWS API Documentation
1469
+ #
1470
+ class DescribeUserStackAssociationsRequest < Struct.new(
1471
+ :stack_name,
1472
+ :user_name,
1473
+ :authentication_type,
1474
+ :max_results,
1475
+ :next_token)
1476
+ include Aws::Structure
1477
+ end
1478
+
1479
+ # @!attribute [rw] user_stack_associations
1480
+ # The UserStackAssociation objects.
1481
+ # @return [Array<Types::UserStackAssociation>]
1482
+ #
1483
+ # @!attribute [rw] next_token
1484
+ # The pagination token to use to retrieve the next page of results for
1485
+ # this operation. If there are no more pages, this value is null.
1486
+ # @return [String]
1487
+ #
1488
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUserStackAssociationsResult AWS API Documentation
1489
+ #
1490
+ class DescribeUserStackAssociationsResult < Struct.new(
1491
+ :user_stack_associations,
1492
+ :next_token)
1493
+ include Aws::Structure
1494
+ end
1495
+
1496
+ # @note When making an API call, you may pass DescribeUsersRequest
1497
+ # data as a hash:
1498
+ #
1499
+ # {
1500
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1501
+ # max_results: 1,
1502
+ # next_token: "String",
1503
+ # }
1504
+ #
1505
+ # @!attribute [rw] authentication_type
1506
+ # The authentication type for the users in the user pool to describe.
1507
+ # You must specify USERPOOL.
1508
+ # @return [String]
1509
+ #
1510
+ # @!attribute [rw] max_results
1511
+ # The maximum size of each page of results.
1512
+ # @return [Integer]
1513
+ #
1514
+ # @!attribute [rw] next_token
1515
+ # The pagination token to use to retrieve the next page of results for
1516
+ # this operation. If this value is null, it retrieves the first page.
1517
+ # @return [String]
1518
+ #
1519
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsersRequest AWS API Documentation
1520
+ #
1521
+ class DescribeUsersRequest < Struct.new(
1522
+ :authentication_type,
1523
+ :max_results,
1524
+ :next_token)
1525
+ include Aws::Structure
1526
+ end
1527
+
1528
+ # @!attribute [rw] users
1529
+ # Information about users in the user pool.
1530
+ # @return [Array<Types::User>]
1531
+ #
1532
+ # @!attribute [rw] next_token
1533
+ # The pagination token to use to retrieve the next page of results for
1534
+ # this operation. If there are no more pages, this value is null.
1535
+ # @return [String]
1536
+ #
1537
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DescribeUsersResult AWS API Documentation
1538
+ #
1539
+ class DescribeUsersResult < Struct.new(
1540
+ :users,
1541
+ :next_token)
1542
+ include Aws::Structure
1543
+ end
1544
+
1279
1545
  # Configuration information for the directory used to join domains.
1280
1546
  #
1281
1547
  # @!attribute [rw] directory_name
@@ -1307,6 +1573,34 @@ module Aws::AppStream
1307
1573
  include Aws::Structure
1308
1574
  end
1309
1575
 
1576
+ # @note When making an API call, you may pass DisableUserRequest
1577
+ # data as a hash:
1578
+ #
1579
+ # {
1580
+ # user_name: "Username", # required
1581
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1582
+ # }
1583
+ #
1584
+ # @!attribute [rw] user_name
1585
+ # The email address of the user.
1586
+ # @return [String]
1587
+ #
1588
+ # @!attribute [rw] authentication_type
1589
+ # The authentication type for the user. You must specify USERPOOL.
1590
+ # @return [String]
1591
+ #
1592
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUserRequest AWS API Documentation
1593
+ #
1594
+ class DisableUserRequest < Struct.new(
1595
+ :user_name,
1596
+ :authentication_type)
1597
+ include Aws::Structure
1598
+ end
1599
+
1600
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/DisableUserResult AWS API Documentation
1601
+ #
1602
+ class DisableUserResult < Aws::EmptyStructure; end
1603
+
1310
1604
  # @note When making an API call, you may pass DisassociateFleetRequest
1311
1605
  # data as a hash:
1312
1606
  #
@@ -1364,6 +1658,34 @@ module Aws::AppStream
1364
1658
  include Aws::Structure
1365
1659
  end
1366
1660
 
1661
+ # @note When making an API call, you may pass EnableUserRequest
1662
+ # data as a hash:
1663
+ #
1664
+ # {
1665
+ # user_name: "Username", # required
1666
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
1667
+ # }
1668
+ #
1669
+ # @!attribute [rw] user_name
1670
+ # The email address of the user.
1671
+ # @return [String]
1672
+ #
1673
+ # @!attribute [rw] authentication_type
1674
+ # The authentication type for the user. You must specify USERPOOL.
1675
+ # @return [String]
1676
+ #
1677
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUserRequest AWS API Documentation
1678
+ #
1679
+ class EnableUserRequest < Struct.new(
1680
+ :user_name,
1681
+ :authentication_type)
1682
+ include Aws::Structure
1683
+ end
1684
+
1685
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/EnableUserResult AWS API Documentation
1686
+ #
1687
+ class EnableUserResult < Aws::EmptyStructure; end
1688
+
1367
1689
  # @note When making an API call, you may pass ExpireSessionRequest
1368
1690
  # data as a hash:
1369
1691
  #
@@ -2637,6 +2959,66 @@ module Aws::AppStream
2637
2959
  include Aws::Structure
2638
2960
  end
2639
2961
 
2962
+ # Describes a user in the user pool.
2963
+ #
2964
+ # @!attribute [rw] arn
2965
+ # The ARN of the user.
2966
+ # @return [String]
2967
+ #
2968
+ # @!attribute [rw] user_name
2969
+ # The email address of the user.
2970
+ # @return [String]
2971
+ #
2972
+ # @!attribute [rw] enabled
2973
+ # Specifies whether the user in the user pool is enabled.
2974
+ # @return [Boolean]
2975
+ #
2976
+ # @!attribute [rw] status
2977
+ # The status of the user in the user pool. The status can be one of
2978
+ # the following:
2979
+ #
2980
+ # * UNCONFIRMED – The user is created but not confirmed.
2981
+ #
2982
+ # * CONFIRMED – The user is confirmed.
2983
+ #
2984
+ # * ARCHIVED – The user is no longer active.
2985
+ #
2986
+ # * COMPROMISED – The user is disabled because of a potential security
2987
+ # threat.
2988
+ #
2989
+ # * UNKNOWN – The user status is not known.
2990
+ # @return [String]
2991
+ #
2992
+ # @!attribute [rw] first_name
2993
+ # The first name, or given name, of the user.
2994
+ # @return [String]
2995
+ #
2996
+ # @!attribute [rw] last_name
2997
+ # The last name, or surname, of the user.
2998
+ # @return [String]
2999
+ #
3000
+ # @!attribute [rw] created_time
3001
+ # The date and time the user was created in the user pool.
3002
+ # @return [Time]
3003
+ #
3004
+ # @!attribute [rw] authentication_type
3005
+ # The authentication type for the user.
3006
+ # @return [String]
3007
+ #
3008
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/User AWS API Documentation
3009
+ #
3010
+ class User < Struct.new(
3011
+ :arn,
3012
+ :user_name,
3013
+ :enabled,
3014
+ :status,
3015
+ :first_name,
3016
+ :last_name,
3017
+ :created_time,
3018
+ :authentication_type)
3019
+ include Aws::Structure
3020
+ end
3021
+
2640
3022
  # Describes an action and whether the action is enabled or disabled for
2641
3023
  # users during their streaming sessions.
2642
3024
  #
@@ -2664,6 +3046,71 @@ module Aws::AppStream
2664
3046
  include Aws::Structure
2665
3047
  end
2666
3048
 
3049
+ # Describes a user in the user pool and the associated stack.
3050
+ #
3051
+ # @note When making an API call, you may pass UserStackAssociation
3052
+ # data as a hash:
3053
+ #
3054
+ # {
3055
+ # stack_name: "String", # required
3056
+ # user_name: "Username", # required
3057
+ # authentication_type: "API", # required, accepts API, SAML, USERPOOL
3058
+ # send_email_notification: false,
3059
+ # }
3060
+ #
3061
+ # @!attribute [rw] stack_name
3062
+ # The name of the stack that is associated with the user.
3063
+ # @return [String]
3064
+ #
3065
+ # @!attribute [rw] user_name
3066
+ # The email address of the user who is associated with the stack.
3067
+ # @return [String]
3068
+ #
3069
+ # @!attribute [rw] authentication_type
3070
+ # The authentication type for the user.
3071
+ # @return [String]
3072
+ #
3073
+ # @!attribute [rw] send_email_notification
3074
+ # Specifies whether a welcome email is sent to a user after the user
3075
+ # is created in the user pool.
3076
+ # @return [Boolean]
3077
+ #
3078
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UserStackAssociation AWS API Documentation
3079
+ #
3080
+ class UserStackAssociation < Struct.new(
3081
+ :stack_name,
3082
+ :user_name,
3083
+ :authentication_type,
3084
+ :send_email_notification)
3085
+ include Aws::Structure
3086
+ end
3087
+
3088
+ # Describes the error that is returned when a user can’t be associated
3089
+ # with or disassociated from a stack.
3090
+ #
3091
+ # @!attribute [rw] user_stack_association
3092
+ # Information about the user and associated stack.
3093
+ # @return [Types::UserStackAssociation]
3094
+ #
3095
+ # @!attribute [rw] error_code
3096
+ # The error code for the error that is returned when a user can’t be
3097
+ # associated with or disassociated from a stack.
3098
+ # @return [String]
3099
+ #
3100
+ # @!attribute [rw] error_message
3101
+ # The error message for the error that is returned when a user can’t
3102
+ # be associated with or disassociated from a stack.
3103
+ # @return [String]
3104
+ #
3105
+ # @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UserStackAssociationError AWS API Documentation
3106
+ #
3107
+ class UserStackAssociationError < Struct.new(
3108
+ :user_stack_association,
3109
+ :error_code,
3110
+ :error_message)
3111
+ include Aws::Structure
3112
+ end
3113
+
2667
3114
  # Describes VPC configuration information.
2668
3115
  #
2669
3116
  # @note When making an API call, you may pass VpcConfig
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-appstream
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.15.0
4
+ version: 1.16.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: 2018-09-06 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core