aws-sdk-workspaces 1.37.0 → 1.42.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: 51c1c350d6c32da55e65c1aa418b7904896d9c334a06866de3ac32b83fa0aa5e
4
- data.tar.gz: d29ff4d3dee783d9402d169f46f28b103e12584a764f344d5e2c2486d23daf12
3
+ metadata.gz: 41a1933e64fdaa2f2cee71625f3d2d438105eb991e0b4de14c6d442733522ab2
4
+ data.tar.gz: 8980a0df971b528ddc8682e1bbda3b16a96acd177076776f4a841b0a2b073665
5
5
  SHA512:
6
- metadata.gz: b49b73d72f43729f4ec1dbbeef28c176f872d6d19d0878cc6f5fe039a0a6a3ec8318c0ce51601099fee99610ee05b9c435d0320f8c0b4a609ce791ec03325468
7
- data.tar.gz: 64cf0e0a372dcc9c3a8ac5a1bf673deb5158ed2dd25ef9156723f298b1e96b8ec1cc01c5379d8c6ec98557970191237faf778b2052b05f48184e75eb14fbc781
6
+ metadata.gz: 5f6cb3a28b1dd9f6c74f301caad3220258d6563078f6955cfaf4662bfa20f5414a4f7333f078129fa6f7cf85ae29479853a802a6524cdaf2f3209d0d797a57cc
7
+ data.tar.gz: aed0aa0136f952f3f8baeb01c869bd38ac134442c202586e051592924117498445600c3334b7d16db7b2177ada15d4ab939b574bf2d06b96dcf75bdae0b07176
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -45,6 +47,6 @@ require_relative 'aws-sdk-workspaces/customizations'
45
47
  # @service
46
48
  module Aws::WorkSpaces
47
49
 
48
- GEM_VERSION = '1.37.0'
50
+ GEM_VERSION = '1.42.0'
49
51
 
50
52
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -24,6 +26,7 @@ require 'aws-sdk-core/plugins/jsonvalue_converter.rb'
24
26
  require 'aws-sdk-core/plugins/client_metrics_plugin.rb'
25
27
  require 'aws-sdk-core/plugins/client_metrics_send_plugin.rb'
26
28
  require 'aws-sdk-core/plugins/transfer_encoding.rb'
29
+ require 'aws-sdk-core/plugins/http_checksum.rb'
27
30
  require 'aws-sdk-core/plugins/signature_v4.rb'
28
31
  require 'aws-sdk-core/plugins/protocols/json_rpc.rb'
29
32
 
@@ -69,6 +72,7 @@ module Aws::WorkSpaces
69
72
  add_plugin(Aws::Plugins::ClientMetricsPlugin)
70
73
  add_plugin(Aws::Plugins::ClientMetricsSendPlugin)
71
74
  add_plugin(Aws::Plugins::TransferEncoding)
75
+ add_plugin(Aws::Plugins::HttpChecksum)
72
76
  add_plugin(Aws::Plugins::SignatureV4)
73
77
  add_plugin(Aws::Plugins::Protocols::JsonRpc)
74
78
 
@@ -161,7 +165,7 @@ module Aws::WorkSpaces
161
165
  # @option options [String] :endpoint
162
166
  # The client endpoint is normally constructed from the `:region`
163
167
  # option. You should only configure an `:endpoint` when connecting
164
- # to test endpoints. This should be a valid HTTP(S) URI.
168
+ # to test or custom endpoints. This should be a valid HTTP(S) URI.
165
169
  #
166
170
  # @option options [Integer] :endpoint_cache_max_entries (1000)
167
171
  # Used for the maximum size limit of the LRU cache storing endpoints data
@@ -675,7 +679,7 @@ module Aws::WorkSpaces
675
679
 
676
680
  # Deletes the specified image from your account. To delete an image, you
677
681
  # must first delete any bundles that are associated with the image and
678
- # un-share the image if it is shared with other accounts.
682
+ # unshare the image if it is shared with other accounts.
679
683
  #
680
684
  # @option params [required, String] :image_id
681
685
  # The identifier of the image.
@@ -1028,6 +1032,49 @@ module Aws::WorkSpaces
1028
1032
  req.send_request(options)
1029
1033
  end
1030
1034
 
1035
+ # Describes the permissions that the owner of an image has granted to
1036
+ # other AWS accounts for an image.
1037
+ #
1038
+ # @option params [required, String] :image_id
1039
+ # The identifier of the image.
1040
+ #
1041
+ # @option params [String] :next_token
1042
+ # If you received a `NextToken` from a previous call that was paginated,
1043
+ # provide this token to receive the next set of results.
1044
+ #
1045
+ # @option params [Integer] :max_results
1046
+ # The maximum number of items to return.
1047
+ #
1048
+ # @return [Types::DescribeWorkspaceImagePermissionsResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
1049
+ #
1050
+ # * {Types::DescribeWorkspaceImagePermissionsResult#image_id #image_id} => String
1051
+ # * {Types::DescribeWorkspaceImagePermissionsResult#image_permissions #image_permissions} => Array<Types::ImagePermission>
1052
+ # * {Types::DescribeWorkspaceImagePermissionsResult#next_token #next_token} => String
1053
+ #
1054
+ # @example Request syntax with placeholder values
1055
+ #
1056
+ # resp = client.describe_workspace_image_permissions({
1057
+ # image_id: "WorkspaceImageId", # required
1058
+ # next_token: "PaginationToken",
1059
+ # max_results: 1,
1060
+ # })
1061
+ #
1062
+ # @example Response structure
1063
+ #
1064
+ # resp.image_id #=> String
1065
+ # resp.image_permissions #=> Array
1066
+ # resp.image_permissions[0].shared_account_id #=> String
1067
+ # resp.next_token #=> String
1068
+ #
1069
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImagePermissions AWS API Documentation
1070
+ #
1071
+ # @overload describe_workspace_image_permissions(params = {})
1072
+ # @param [Hash] params ({})
1073
+ def describe_workspace_image_permissions(params = {}, options = {})
1074
+ req = build_request(:describe_workspace_image_permissions, params)
1075
+ req.send_request(options)
1076
+ end
1077
+
1031
1078
  # Retrieves a list that describes one or more specified images, if the
1032
1079
  # image identifiers are provided. Otherwise, all images in the account
1033
1080
  # are described.
@@ -1035,6 +1082,9 @@ module Aws::WorkSpaces
1035
1082
  # @option params [Array<String>] :image_ids
1036
1083
  # The identifier of the image.
1037
1084
  #
1085
+ # @option params [String] :image_type
1086
+ # The type (owned or shared) of the image.
1087
+ #
1038
1088
  # @option params [String] :next_token
1039
1089
  # If you received a `NextToken` from a previous call that was paginated,
1040
1090
  # provide this token to receive the next set of results.
@@ -1051,6 +1101,7 @@ module Aws::WorkSpaces
1051
1101
  #
1052
1102
  # resp = client.describe_workspace_images({
1053
1103
  # image_ids: ["WorkspaceImageId"],
1104
+ # image_type: "OWNED", # accepts OWNED, SHARED
1054
1105
  # next_token: "PaginationToken",
1055
1106
  # max_results: 1,
1056
1107
  # })
@@ -1066,6 +1117,8 @@ module Aws::WorkSpaces
1066
1117
  # resp.images[0].required_tenancy #=> String, one of "DEFAULT", "DEDICATED"
1067
1118
  # resp.images[0].error_code #=> String
1068
1119
  # resp.images[0].error_message #=> String
1120
+ # resp.images[0].created #=> Time
1121
+ # resp.images[0].owner_account_id #=> String
1069
1122
  # resp.next_token #=> String
1070
1123
  #
1071
1124
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImages AWS API Documentation
@@ -1568,6 +1621,7 @@ module Aws::WorkSpaces
1568
1621
  # resp = client.modify_workspace_creation_properties({
1569
1622
  # resource_id: "DirectoryId", # required
1570
1623
  # workspace_creation_properties: { # required
1624
+ # enable_work_docs: false,
1571
1625
  # enable_internet_access: false,
1572
1626
  # default_ou: "DefaultOu",
1573
1627
  # custom_security_group_id: "SecurityGroupId",
@@ -1585,7 +1639,13 @@ module Aws::WorkSpaces
1585
1639
  req.send_request(options)
1586
1640
  end
1587
1641
 
1588
- # Modifies the specified WorkSpace properties.
1642
+ # Modifies the specified WorkSpace properties. For important information
1643
+ # about how to modify the size of the root and user volumes, see [
1644
+ # Modify a WorkSpace][1].
1645
+ #
1646
+ #
1647
+ #
1648
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html
1589
1649
  #
1590
1650
  # @option params [required, String] :workspace_id
1591
1651
  # The identifier of the WorkSpace.
@@ -1693,7 +1753,7 @@ module Aws::WorkSpaces
1693
1753
  # Rebuilds the specified WorkSpace.
1694
1754
  #
1695
1755
  # You cannot rebuild a WorkSpace unless its state is `AVAILABLE`,
1696
- # `ERROR`, `UNHEALTHY`, or `STOPPED`.
1756
+ # `ERROR`, `UNHEALTHY`, `STOPPED`, or `REBOOTING`.
1697
1757
  #
1698
1758
  # Rebuilding a WorkSpace is a potentially destructive action that can
1699
1759
  # result in the loss of data. For more information, see [Rebuild a
@@ -2031,6 +2091,51 @@ module Aws::WorkSpaces
2031
2091
  req.send_request(options)
2032
2092
  end
2033
2093
 
2094
+ # Shares or unshares an image with one account by specifying whether
2095
+ # that account has permission to copy the image. If the copy image
2096
+ # permission is granted, the image is shared with that account. If the
2097
+ # copy image permission is revoked, the image is unshared with the
2098
+ # account.
2099
+ #
2100
+ # <note markdown="1"> * To delete an image that has been shared, you must unshare the image
2101
+ # before you delete it.
2102
+ #
2103
+ # * Sharing Bring Your Own License (BYOL) images across AWS accounts
2104
+ # isn't supported at this time in the AWS GovCloud (US-West) Region.
2105
+ # To share BYOL images across accounts in the AWS GovCloud (US-West)
2106
+ # Region, contact AWS Support.
2107
+ #
2108
+ # </note>
2109
+ #
2110
+ # @option params [required, String] :image_id
2111
+ # The identifier of the image.
2112
+ #
2113
+ # @option params [required, Boolean] :allow_copy_image
2114
+ # The permission to copy the image. This permission can be revoked only
2115
+ # after an image has been shared.
2116
+ #
2117
+ # @option params [required, String] :shared_account_id
2118
+ # The identifier of the AWS account to share or unshare the image with.
2119
+ #
2120
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2121
+ #
2122
+ # @example Request syntax with placeholder values
2123
+ #
2124
+ # resp = client.update_workspace_image_permission({
2125
+ # image_id: "WorkspaceImageId", # required
2126
+ # allow_copy_image: false, # required
2127
+ # shared_account_id: "AwsAccount", # required
2128
+ # })
2129
+ #
2130
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceImagePermission AWS API Documentation
2131
+ #
2132
+ # @overload update_workspace_image_permission(params = {})
2133
+ # @param [Hash] params ({})
2134
+ def update_workspace_image_permission(params = {}, options = {})
2135
+ req = build_request(:update_workspace_image_permission, params)
2136
+ req.send_request(options)
2137
+ end
2138
+
2034
2139
  # @!endgroup
2035
2140
 
2036
2141
  # @param params ({})
@@ -2044,7 +2149,7 @@ module Aws::WorkSpaces
2044
2149
  params: params,
2045
2150
  config: config)
2046
2151
  context[:gem_name] = 'aws-sdk-workspaces'
2047
- context[:gem_version] = '1.37.0'
2152
+ context[:gem_version] = '1.42.0'
2048
2153
  Seahorse::Client::Request.new(handlers, context)
2049
2154
  end
2050
2155
 
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -21,6 +23,7 @@ module Aws::WorkSpaces
21
23
  AssociateIpGroupsResult = Shapes::StructureShape.new(name: 'AssociateIpGroupsResult')
22
24
  AuthorizeIpRulesRequest = Shapes::StructureShape.new(name: 'AuthorizeIpRulesRequest')
23
25
  AuthorizeIpRulesResult = Shapes::StructureShape.new(name: 'AuthorizeIpRulesResult')
26
+ AwsAccount = Shapes::StringShape.new(name: 'AwsAccount')
24
27
  BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
25
28
  BundleId = Shapes::StringShape.new(name: 'BundleId')
26
29
  BundleIdList = Shapes::ListShape.new(name: 'BundleIdList')
@@ -70,6 +73,8 @@ module Aws::WorkSpaces
70
73
  DescribeWorkspaceBundlesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceBundlesResult')
71
74
  DescribeWorkspaceDirectoriesRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceDirectoriesRequest')
72
75
  DescribeWorkspaceDirectoriesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceDirectoriesResult')
76
+ DescribeWorkspaceImagePermissionsRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagePermissionsRequest')
77
+ DescribeWorkspaceImagePermissionsResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagePermissionsResult')
73
78
  DescribeWorkspaceImagesRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagesRequest')
74
79
  DescribeWorkspaceImagesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagesResult')
75
80
  DescribeWorkspaceSnapshotsRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceSnapshotsRequest')
@@ -97,6 +102,9 @@ module Aws::WorkSpaces
97
102
  FailedStopWorkspaceRequests = Shapes::ListShape.new(name: 'FailedStopWorkspaceRequests')
98
103
  FailedTerminateWorkspaceRequests = Shapes::ListShape.new(name: 'FailedTerminateWorkspaceRequests')
99
104
  FailedWorkspaceChangeRequest = Shapes::StructureShape.new(name: 'FailedWorkspaceChangeRequest')
105
+ ImagePermission = Shapes::StructureShape.new(name: 'ImagePermission')
106
+ ImagePermissions = Shapes::ListShape.new(name: 'ImagePermissions')
107
+ ImageType = Shapes::StringShape.new(name: 'ImageType')
100
108
  ImportWorkspaceImageRequest = Shapes::StructureShape.new(name: 'ImportWorkspaceImageRequest')
101
109
  ImportWorkspaceImageResult = Shapes::StructureShape.new(name: 'ImportWorkspaceImageResult')
102
110
  InvalidParameterValuesException = Shapes::StructureShape.new(name: 'InvalidParameterValuesException')
@@ -200,6 +208,8 @@ module Aws::WorkSpaces
200
208
  UnsupportedWorkspaceConfigurationException = Shapes::StructureShape.new(name: 'UnsupportedWorkspaceConfigurationException')
201
209
  UpdateRulesOfIpGroupRequest = Shapes::StructureShape.new(name: 'UpdateRulesOfIpGroupRequest')
202
210
  UpdateRulesOfIpGroupResult = Shapes::StructureShape.new(name: 'UpdateRulesOfIpGroupResult')
211
+ UpdateWorkspaceImagePermissionRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceImagePermissionRequest')
212
+ UpdateWorkspaceImagePermissionResult = Shapes::StructureShape.new(name: 'UpdateWorkspaceImagePermissionResult')
203
213
  UserName = Shapes::StringShape.new(name: 'UserName')
204
214
  UserStorage = Shapes::StructureShape.new(name: 'UserStorage')
205
215
  UserVolumeSizeGib = Shapes::IntegerShape.new(name: 'UserVolumeSizeGib')
@@ -391,7 +401,18 @@ module Aws::WorkSpaces
391
401
  DescribeWorkspaceDirectoriesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
392
402
  DescribeWorkspaceDirectoriesResult.struct_class = Types::DescribeWorkspaceDirectoriesResult
393
403
 
404
+ DescribeWorkspaceImagePermissionsRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: WorkspaceImageId, required: true, location_name: "ImageId"))
405
+ DescribeWorkspaceImagePermissionsRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
406
+ DescribeWorkspaceImagePermissionsRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Limit, location_name: "MaxResults"))
407
+ DescribeWorkspaceImagePermissionsRequest.struct_class = Types::DescribeWorkspaceImagePermissionsRequest
408
+
409
+ DescribeWorkspaceImagePermissionsResult.add_member(:image_id, Shapes::ShapeRef.new(shape: WorkspaceImageId, location_name: "ImageId"))
410
+ DescribeWorkspaceImagePermissionsResult.add_member(:image_permissions, Shapes::ShapeRef.new(shape: ImagePermissions, location_name: "ImagePermissions"))
411
+ DescribeWorkspaceImagePermissionsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
412
+ DescribeWorkspaceImagePermissionsResult.struct_class = Types::DescribeWorkspaceImagePermissionsResult
413
+
394
414
  DescribeWorkspaceImagesRequest.add_member(:image_ids, Shapes::ShapeRef.new(shape: WorkspaceImageIdList, location_name: "ImageIds"))
415
+ DescribeWorkspaceImagesRequest.add_member(:image_type, Shapes::ShapeRef.new(shape: ImageType, location_name: "ImageType"))
395
416
  DescribeWorkspaceImagesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
396
417
  DescribeWorkspaceImagesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Limit, location_name: "MaxResults"))
397
418
  DescribeWorkspaceImagesRequest.struct_class = Types::DescribeWorkspaceImagesRequest
@@ -461,6 +482,11 @@ module Aws::WorkSpaces
461
482
  FailedWorkspaceChangeRequest.add_member(:error_message, Shapes::ShapeRef.new(shape: Description, location_name: "ErrorMessage"))
462
483
  FailedWorkspaceChangeRequest.struct_class = Types::FailedWorkspaceChangeRequest
463
484
 
485
+ ImagePermission.add_member(:shared_account_id, Shapes::ShapeRef.new(shape: AwsAccount, location_name: "SharedAccountId"))
486
+ ImagePermission.struct_class = Types::ImagePermission
487
+
488
+ ImagePermissions.member = Shapes::ShapeRef.new(shape: ImagePermission)
489
+
464
490
  ImportWorkspaceImageRequest.add_member(:ec2_image_id, Shapes::ShapeRef.new(shape: Ec2ImageId, required: true, location_name: "Ec2ImageId"))
465
491
  ImportWorkspaceImageRequest.add_member(:ingestion_process, Shapes::ShapeRef.new(shape: WorkspaceImageIngestionProcess, required: true, location_name: "IngestionProcess"))
466
492
  ImportWorkspaceImageRequest.add_member(:image_name, Shapes::ShapeRef.new(shape: WorkspaceImageName, required: true, location_name: "ImageName"))
@@ -696,6 +722,13 @@ module Aws::WorkSpaces
696
722
 
697
723
  UpdateRulesOfIpGroupResult.struct_class = Types::UpdateRulesOfIpGroupResult
698
724
 
725
+ UpdateWorkspaceImagePermissionRequest.add_member(:image_id, Shapes::ShapeRef.new(shape: WorkspaceImageId, required: true, location_name: "ImageId"))
726
+ UpdateWorkspaceImagePermissionRequest.add_member(:allow_copy_image, Shapes::ShapeRef.new(shape: BooleanObject, required: true, location_name: "AllowCopyImage"))
727
+ UpdateWorkspaceImagePermissionRequest.add_member(:shared_account_id, Shapes::ShapeRef.new(shape: AwsAccount, required: true, location_name: "SharedAccountId"))
728
+ UpdateWorkspaceImagePermissionRequest.struct_class = Types::UpdateWorkspaceImagePermissionRequest
729
+
730
+ UpdateWorkspaceImagePermissionResult.struct_class = Types::UpdateWorkspaceImagePermissionResult
731
+
699
732
  UserStorage.add_member(:capacity, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Capacity"))
700
733
  UserStorage.struct_class = Types::UserStorage
701
734
 
@@ -744,6 +777,7 @@ module Aws::WorkSpaces
744
777
 
745
778
  WorkspaceConnectionStatusList.member = Shapes::ShapeRef.new(shape: WorkspaceConnectionStatus)
746
779
 
780
+ WorkspaceCreationProperties.add_member(:enable_work_docs, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "EnableWorkDocs"))
747
781
  WorkspaceCreationProperties.add_member(:enable_internet_access, Shapes::ShapeRef.new(shape: BooleanObject, location_name: "EnableInternetAccess"))
748
782
  WorkspaceCreationProperties.add_member(:default_ou, Shapes::ShapeRef.new(shape: DefaultOu, location_name: "DefaultOu"))
749
783
  WorkspaceCreationProperties.add_member(:custom_security_group_id, Shapes::ShapeRef.new(shape: SecurityGroupId, location_name: "CustomSecurityGroupId"))
@@ -779,6 +813,8 @@ module Aws::WorkSpaces
779
813
  WorkspaceImage.add_member(:required_tenancy, Shapes::ShapeRef.new(shape: WorkspaceImageRequiredTenancy, location_name: "RequiredTenancy"))
780
814
  WorkspaceImage.add_member(:error_code, Shapes::ShapeRef.new(shape: WorkspaceImageErrorCode, location_name: "ErrorCode"))
781
815
  WorkspaceImage.add_member(:error_message, Shapes::ShapeRef.new(shape: Description, location_name: "ErrorMessage"))
816
+ WorkspaceImage.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Created"))
817
+ WorkspaceImage.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AwsAccount, location_name: "OwnerAccountId"))
782
818
  WorkspaceImage.struct_class = Types::WorkspaceImage
783
819
 
784
820
  WorkspaceImageIdList.member = Shapes::ShapeRef.new(shape: WorkspaceImageId)
@@ -1033,6 +1069,17 @@ module Aws::WorkSpaces
1033
1069
  )
1034
1070
  end)
1035
1071
 
1072
+ api.add_operation(:describe_workspace_image_permissions, Seahorse::Model::Operation.new.tap do |o|
1073
+ o.name = "DescribeWorkspaceImagePermissions"
1074
+ o.http_method = "POST"
1075
+ o.http_request_uri = "/"
1076
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkspaceImagePermissionsRequest)
1077
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkspaceImagePermissionsResult)
1078
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1079
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1080
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1081
+ end)
1082
+
1036
1083
  api.add_operation(:describe_workspace_images, Seahorse::Model::Operation.new.tap do |o|
1037
1084
  o.name = "DescribeWorkspaceImages"
1038
1085
  o.http_method = "POST"
@@ -1182,6 +1229,7 @@ module Aws::WorkSpaces
1182
1229
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1183
1230
  o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1184
1231
  o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1232
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1185
1233
  end)
1186
1234
 
1187
1235
  api.add_operation(:modify_workspace_properties, Seahorse::Model::Operation.new.tap do |o|
@@ -1301,6 +1349,19 @@ module Aws::WorkSpaces
1301
1349
  o.errors << Shapes::ShapeRef.new(shape: InvalidResourceStateException)
1302
1350
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1303
1351
  end)
1352
+
1353
+ api.add_operation(:update_workspace_image_permission, Seahorse::Model::Operation.new.tap do |o|
1354
+ o.name = "UpdateWorkspaceImagePermission"
1355
+ o.http_method = "POST"
1356
+ o.http_request_uri = "/"
1357
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkspaceImagePermissionRequest)
1358
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkspaceImagePermissionResult)
1359
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1360
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1361
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1362
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1363
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1364
+ end)
1304
1365
  end
1305
1366
 
1306
1367
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  # WARNING ABOUT GENERATED CODE
2
4
  #
3
5
  # This file is generated. See the contributing guide for more information:
@@ -17,6 +19,7 @@ module Aws::WorkSpaces
17
19
  #
18
20
  class AccessDeniedException < Struct.new(
19
21
  :message)
22
+ SENSITIVE = []
20
23
  include Aws::Structure
21
24
  end
22
25
 
@@ -60,6 +63,7 @@ module Aws::WorkSpaces
60
63
  :start_time,
61
64
  :error_code,
62
65
  :error_message)
66
+ SENSITIVE = []
63
67
  include Aws::Structure
64
68
  end
65
69
 
@@ -84,6 +88,7 @@ module Aws::WorkSpaces
84
88
  class AssociateIpGroupsRequest < Struct.new(
85
89
  :directory_id,
86
90
  :group_ids)
91
+ SENSITIVE = []
87
92
  include Aws::Structure
88
93
  end
89
94
 
@@ -117,6 +122,7 @@ module Aws::WorkSpaces
117
122
  class AuthorizeIpRulesRequest < Struct.new(
118
123
  :group_id,
119
124
  :user_rules)
125
+ SENSITIVE = []
120
126
  include Aws::Structure
121
127
  end
122
128
 
@@ -143,6 +149,7 @@ module Aws::WorkSpaces
143
149
  #
144
150
  class ClientProperties < Struct.new(
145
151
  :reconnect_enabled)
152
+ SENSITIVE = []
146
153
  include Aws::Structure
147
154
  end
148
155
 
@@ -161,6 +168,7 @@ module Aws::WorkSpaces
161
168
  class ClientPropertiesResult < Struct.new(
162
169
  :resource_id,
163
170
  :client_properties)
171
+ SENSITIVE = []
164
172
  include Aws::Structure
165
173
  end
166
174
 
@@ -174,6 +182,7 @@ module Aws::WorkSpaces
174
182
  #
175
183
  class ComputeType < Struct.new(
176
184
  :name)
185
+ SENSITIVE = []
177
186
  include Aws::Structure
178
187
  end
179
188
 
@@ -221,6 +230,7 @@ module Aws::WorkSpaces
221
230
  :source_image_id,
222
231
  :source_region,
223
232
  :tags)
233
+ SENSITIVE = []
224
234
  include Aws::Structure
225
235
  end
226
236
 
@@ -232,6 +242,7 @@ module Aws::WorkSpaces
232
242
  #
233
243
  class CopyWorkspaceImageResult < Struct.new(
234
244
  :image_id)
245
+ SENSITIVE = []
235
246
  include Aws::Structure
236
247
  end
237
248
 
@@ -278,6 +289,7 @@ module Aws::WorkSpaces
278
289
  :group_desc,
279
290
  :user_rules,
280
291
  :tags)
292
+ SENSITIVE = []
281
293
  include Aws::Structure
282
294
  end
283
295
 
@@ -289,6 +301,7 @@ module Aws::WorkSpaces
289
301
  #
290
302
  class CreateIpGroupResult < Struct.new(
291
303
  :group_id)
304
+ SENSITIVE = []
292
305
  include Aws::Structure
293
306
  end
294
307
 
@@ -322,6 +335,7 @@ module Aws::WorkSpaces
322
335
  class CreateTagsRequest < Struct.new(
323
336
  :resource_id,
324
337
  :tags)
338
+ SENSITIVE = []
325
339
  include Aws::Structure
326
340
  end
327
341
 
@@ -366,6 +380,7 @@ module Aws::WorkSpaces
366
380
  #
367
381
  class CreateWorkspacesRequest < Struct.new(
368
382
  :workspaces)
383
+ SENSITIVE = []
369
384
  include Aws::Structure
370
385
  end
371
386
 
@@ -387,6 +402,7 @@ module Aws::WorkSpaces
387
402
  class CreateWorkspacesResult < Struct.new(
388
403
  :failed_requests,
389
404
  :pending_requests)
405
+ SENSITIVE = []
390
406
  include Aws::Structure
391
407
  end
392
408
 
@@ -426,8 +442,13 @@ module Aws::WorkSpaces
426
442
  # @return [String]
427
443
  #
428
444
  # @!attribute [rw] custom_security_group_id
429
- # The identifier of any security groups to apply to WorkSpaces when
430
- # they are created.
445
+ # The identifier of the default security group to apply to WorkSpaces
446
+ # when they are created. For more information, see [ Security Groups
447
+ # for Your WorkSpaces][1].
448
+ #
449
+ #
450
+ #
451
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/amazon-workspaces-security-groups.html
431
452
  # @return [String]
432
453
  #
433
454
  # @!attribute [rw] user_enabled_as_local_administrator
@@ -453,6 +474,7 @@ module Aws::WorkSpaces
453
474
  :custom_security_group_id,
454
475
  :user_enabled_as_local_administrator,
455
476
  :enable_maintenance_mode)
477
+ SENSITIVE = []
456
478
  include Aws::Structure
457
479
  end
458
480
 
@@ -471,6 +493,7 @@ module Aws::WorkSpaces
471
493
  #
472
494
  class DeleteIpGroupRequest < Struct.new(
473
495
  :group_id)
496
+ SENSITIVE = []
474
497
  include Aws::Structure
475
498
  end
476
499
 
@@ -501,6 +524,7 @@ module Aws::WorkSpaces
501
524
  class DeleteTagsRequest < Struct.new(
502
525
  :resource_id,
503
526
  :tag_keys)
527
+ SENSITIVE = []
504
528
  include Aws::Structure
505
529
  end
506
530
 
@@ -523,6 +547,7 @@ module Aws::WorkSpaces
523
547
  #
524
548
  class DeleteWorkspaceImageRequest < Struct.new(
525
549
  :image_id)
550
+ SENSITIVE = []
526
551
  include Aws::Structure
527
552
  end
528
553
 
@@ -548,6 +573,7 @@ module Aws::WorkSpaces
548
573
  #
549
574
  class DeregisterWorkspaceDirectoryRequest < Struct.new(
550
575
  :directory_id)
576
+ SENSITIVE = []
551
577
  include Aws::Structure
552
578
  end
553
579
 
@@ -571,6 +597,7 @@ module Aws::WorkSpaces
571
597
  #
572
598
  class DescribeAccountModificationsRequest < Struct.new(
573
599
  :next_token)
600
+ SENSITIVE = []
574
601
  include Aws::Structure
575
602
  end
576
603
 
@@ -588,6 +615,7 @@ module Aws::WorkSpaces
588
615
  class DescribeAccountModificationsResult < Struct.new(
589
616
  :account_modifications,
590
617
  :next_token)
618
+ SENSITIVE = []
591
619
  include Aws::Structure
592
620
  end
593
621
 
@@ -616,6 +644,7 @@ module Aws::WorkSpaces
616
644
  class DescribeAccountResult < Struct.new(
617
645
  :dedicated_tenancy_support,
618
646
  :dedicated_tenancy_management_cidr_range)
647
+ SENSITIVE = []
619
648
  include Aws::Structure
620
649
  end
621
650
 
@@ -634,6 +663,7 @@ module Aws::WorkSpaces
634
663
  #
635
664
  class DescribeClientPropertiesRequest < Struct.new(
636
665
  :resource_ids)
666
+ SENSITIVE = []
637
667
  include Aws::Structure
638
668
  end
639
669
 
@@ -645,6 +675,7 @@ module Aws::WorkSpaces
645
675
  #
646
676
  class DescribeClientPropertiesResult < Struct.new(
647
677
  :client_properties_list)
678
+ SENSITIVE = []
648
679
  include Aws::Structure
649
680
  end
650
681
 
@@ -676,6 +707,7 @@ module Aws::WorkSpaces
676
707
  :group_ids,
677
708
  :next_token,
678
709
  :max_results)
710
+ SENSITIVE = []
679
711
  include Aws::Structure
680
712
  end
681
713
 
@@ -693,6 +725,7 @@ module Aws::WorkSpaces
693
725
  class DescribeIpGroupsResult < Struct.new(
694
726
  :result,
695
727
  :next_token)
728
+ SENSITIVE = []
696
729
  include Aws::Structure
697
730
  end
698
731
 
@@ -713,6 +746,7 @@ module Aws::WorkSpaces
713
746
  #
714
747
  class DescribeTagsRequest < Struct.new(
715
748
  :resource_id)
749
+ SENSITIVE = []
716
750
  include Aws::Structure
717
751
  end
718
752
 
@@ -724,6 +758,7 @@ module Aws::WorkSpaces
724
758
  #
725
759
  class DescribeTagsResult < Struct.new(
726
760
  :tag_list)
761
+ SENSITIVE = []
727
762
  include Aws::Structure
728
763
  end
729
764
 
@@ -760,6 +795,7 @@ module Aws::WorkSpaces
760
795
  :bundle_ids,
761
796
  :owner,
762
797
  :next_token)
798
+ SENSITIVE = []
763
799
  include Aws::Structure
764
800
  end
765
801
 
@@ -778,6 +814,7 @@ module Aws::WorkSpaces
778
814
  class DescribeWorkspaceBundlesResult < Struct.new(
779
815
  :bundles,
780
816
  :next_token)
817
+ SENSITIVE = []
781
818
  include Aws::Structure
782
819
  end
783
820
 
@@ -810,6 +847,7 @@ module Aws::WorkSpaces
810
847
  :directory_ids,
811
848
  :limit,
812
849
  :next_token)
850
+ SENSITIVE = []
813
851
  include Aws::Structure
814
852
  end
815
853
 
@@ -827,6 +865,63 @@ module Aws::WorkSpaces
827
865
  class DescribeWorkspaceDirectoriesResult < Struct.new(
828
866
  :directories,
829
867
  :next_token)
868
+ SENSITIVE = []
869
+ include Aws::Structure
870
+ end
871
+
872
+ # @note When making an API call, you may pass DescribeWorkspaceImagePermissionsRequest
873
+ # data as a hash:
874
+ #
875
+ # {
876
+ # image_id: "WorkspaceImageId", # required
877
+ # next_token: "PaginationToken",
878
+ # max_results: 1,
879
+ # }
880
+ #
881
+ # @!attribute [rw] image_id
882
+ # The identifier of the image.
883
+ # @return [String]
884
+ #
885
+ # @!attribute [rw] next_token
886
+ # If you received a `NextToken` from a previous call that was
887
+ # paginated, provide this token to receive the next set of results.
888
+ # @return [String]
889
+ #
890
+ # @!attribute [rw] max_results
891
+ # The maximum number of items to return.
892
+ # @return [Integer]
893
+ #
894
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImagePermissionsRequest AWS API Documentation
895
+ #
896
+ class DescribeWorkspaceImagePermissionsRequest < Struct.new(
897
+ :image_id,
898
+ :next_token,
899
+ :max_results)
900
+ SENSITIVE = []
901
+ include Aws::Structure
902
+ end
903
+
904
+ # @!attribute [rw] image_id
905
+ # The identifier of the image.
906
+ # @return [String]
907
+ #
908
+ # @!attribute [rw] image_permissions
909
+ # The identifiers of the AWS accounts that the image has been shared
910
+ # with.
911
+ # @return [Array<Types::ImagePermission>]
912
+ #
913
+ # @!attribute [rw] next_token
914
+ # The token to use to retrieve the next set of results, or null if no
915
+ # more results are available.
916
+ # @return [String]
917
+ #
918
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImagePermissionsResult AWS API Documentation
919
+ #
920
+ class DescribeWorkspaceImagePermissionsResult < Struct.new(
921
+ :image_id,
922
+ :image_permissions,
923
+ :next_token)
924
+ SENSITIVE = []
830
925
  include Aws::Structure
831
926
  end
832
927
 
@@ -835,6 +930,7 @@ module Aws::WorkSpaces
835
930
  #
836
931
  # {
837
932
  # image_ids: ["WorkspaceImageId"],
933
+ # image_type: "OWNED", # accepts OWNED, SHARED
838
934
  # next_token: "PaginationToken",
839
935
  # max_results: 1,
840
936
  # }
@@ -843,6 +939,10 @@ module Aws::WorkSpaces
843
939
  # The identifier of the image.
844
940
  # @return [Array<String>]
845
941
  #
942
+ # @!attribute [rw] image_type
943
+ # The type (owned or shared) of the image.
944
+ # @return [String]
945
+ #
846
946
  # @!attribute [rw] next_token
847
947
  # If you received a `NextToken` from a previous call that was
848
948
  # paginated, provide this token to receive the next set of results.
@@ -856,8 +956,10 @@ module Aws::WorkSpaces
856
956
  #
857
957
  class DescribeWorkspaceImagesRequest < Struct.new(
858
958
  :image_ids,
959
+ :image_type,
859
960
  :next_token,
860
961
  :max_results)
962
+ SENSITIVE = []
861
963
  include Aws::Structure
862
964
  end
863
965
 
@@ -875,6 +977,7 @@ module Aws::WorkSpaces
875
977
  class DescribeWorkspaceImagesResult < Struct.new(
876
978
  :images,
877
979
  :next_token)
980
+ SENSITIVE = []
878
981
  include Aws::Structure
879
982
  end
880
983
 
@@ -893,6 +996,7 @@ module Aws::WorkSpaces
893
996
  #
894
997
  class DescribeWorkspaceSnapshotsRequest < Struct.new(
895
998
  :workspace_id)
999
+ SENSITIVE = []
896
1000
  include Aws::Structure
897
1001
  end
898
1002
 
@@ -912,6 +1016,7 @@ module Aws::WorkSpaces
912
1016
  class DescribeWorkspaceSnapshotsResult < Struct.new(
913
1017
  :rebuild_snapshots,
914
1018
  :restore_snapshots)
1019
+ SENSITIVE = []
915
1020
  include Aws::Structure
916
1021
  end
917
1022
 
@@ -938,6 +1043,7 @@ module Aws::WorkSpaces
938
1043
  class DescribeWorkspacesConnectionStatusRequest < Struct.new(
939
1044
  :workspace_ids,
940
1045
  :next_token)
1046
+ SENSITIVE = []
941
1047
  include Aws::Structure
942
1048
  end
943
1049
 
@@ -955,6 +1061,7 @@ module Aws::WorkSpaces
955
1061
  class DescribeWorkspacesConnectionStatusResult < Struct.new(
956
1062
  :workspaces_connection_status,
957
1063
  :next_token)
1064
+ SENSITIVE = []
958
1065
  include Aws::Structure
959
1066
  end
960
1067
 
@@ -1015,6 +1122,7 @@ module Aws::WorkSpaces
1015
1122
  :bundle_id,
1016
1123
  :limit,
1017
1124
  :next_token)
1125
+ SENSITIVE = []
1018
1126
  include Aws::Structure
1019
1127
  end
1020
1128
 
@@ -1035,6 +1143,7 @@ module Aws::WorkSpaces
1035
1143
  class DescribeWorkspacesResult < Struct.new(
1036
1144
  :workspaces,
1037
1145
  :next_token)
1146
+ SENSITIVE = []
1038
1147
  include Aws::Structure
1039
1148
  end
1040
1149
 
@@ -1059,6 +1168,7 @@ module Aws::WorkSpaces
1059
1168
  class DisassociateIpGroupsRequest < Struct.new(
1060
1169
  :directory_id,
1061
1170
  :group_ids)
1171
+ SENSITIVE = []
1062
1172
  include Aws::Structure
1063
1173
  end
1064
1174
 
@@ -1087,6 +1197,7 @@ module Aws::WorkSpaces
1087
1197
  :workspace_request,
1088
1198
  :error_code,
1089
1199
  :error_message)
1200
+ SENSITIVE = []
1090
1201
  include Aws::Structure
1091
1202
  end
1092
1203
 
@@ -1114,6 +1225,23 @@ module Aws::WorkSpaces
1114
1225
  :workspace_id,
1115
1226
  :error_code,
1116
1227
  :error_message)
1228
+ SENSITIVE = []
1229
+ include Aws::Structure
1230
+ end
1231
+
1232
+ # Describes the AWS accounts that have been granted permission to use a
1233
+ # shared image.
1234
+ #
1235
+ # @!attribute [rw] shared_account_id
1236
+ # The identifier of the AWS account that an image has been shared
1237
+ # with.
1238
+ # @return [String]
1239
+ #
1240
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/ImagePermission AWS API Documentation
1241
+ #
1242
+ class ImagePermission < Struct.new(
1243
+ :shared_account_id)
1244
+ SENSITIVE = []
1117
1245
  include Aws::Structure
1118
1246
  end
1119
1247
 
@@ -1161,6 +1289,7 @@ module Aws::WorkSpaces
1161
1289
  :image_name,
1162
1290
  :image_description,
1163
1291
  :tags)
1292
+ SENSITIVE = []
1164
1293
  include Aws::Structure
1165
1294
  end
1166
1295
 
@@ -1172,6 +1301,7 @@ module Aws::WorkSpaces
1172
1301
  #
1173
1302
  class ImportWorkspaceImageResult < Struct.new(
1174
1303
  :image_id)
1304
+ SENSITIVE = []
1175
1305
  include Aws::Structure
1176
1306
  end
1177
1307
 
@@ -1185,6 +1315,7 @@ module Aws::WorkSpaces
1185
1315
  #
1186
1316
  class InvalidParameterValuesException < Struct.new(
1187
1317
  :message)
1318
+ SENSITIVE = []
1188
1319
  include Aws::Structure
1189
1320
  end
1190
1321
 
@@ -1197,6 +1328,7 @@ module Aws::WorkSpaces
1197
1328
  #
1198
1329
  class InvalidResourceStateException < Struct.new(
1199
1330
  :message)
1331
+ SENSITIVE = []
1200
1332
  include Aws::Structure
1201
1333
  end
1202
1334
 
@@ -1223,6 +1355,7 @@ module Aws::WorkSpaces
1223
1355
  class IpRuleItem < Struct.new(
1224
1356
  :ip_rule,
1225
1357
  :rule_desc)
1358
+ SENSITIVE = []
1226
1359
  include Aws::Structure
1227
1360
  end
1228
1361
 
@@ -1256,6 +1389,7 @@ module Aws::WorkSpaces
1256
1389
  :management_cidr_range_constraint,
1257
1390
  :max_results,
1258
1391
  :next_token)
1392
+ SENSITIVE = []
1259
1393
  include Aws::Structure
1260
1394
  end
1261
1395
 
@@ -1274,6 +1408,7 @@ module Aws::WorkSpaces
1274
1408
  class ListAvailableManagementCidrRangesResult < Struct.new(
1275
1409
  :management_cidr_ranges,
1276
1410
  :next_token)
1411
+ SENSITIVE = []
1277
1412
  include Aws::Structure
1278
1413
  end
1279
1414
 
@@ -1299,6 +1434,7 @@ module Aws::WorkSpaces
1299
1434
  class MigrateWorkspaceRequest < Struct.new(
1300
1435
  :source_workspace_id,
1301
1436
  :bundle_id)
1437
+ SENSITIVE = []
1302
1438
  include Aws::Structure
1303
1439
  end
1304
1440
 
@@ -1317,6 +1453,7 @@ module Aws::WorkSpaces
1317
1453
  class MigrateWorkspaceResult < Struct.new(
1318
1454
  :source_workspace_id,
1319
1455
  :target_workspace_id)
1456
+ SENSITIVE = []
1320
1457
  include Aws::Structure
1321
1458
  end
1322
1459
 
@@ -1335,6 +1472,7 @@ module Aws::WorkSpaces
1335
1472
  class ModificationState < Struct.new(
1336
1473
  :resource,
1337
1474
  :state)
1475
+ SENSITIVE = []
1338
1476
  include Aws::Structure
1339
1477
  end
1340
1478
 
@@ -1364,6 +1502,7 @@ module Aws::WorkSpaces
1364
1502
  class ModifyAccountRequest < Struct.new(
1365
1503
  :dedicated_tenancy_support,
1366
1504
  :dedicated_tenancy_management_cidr_range)
1505
+ SENSITIVE = []
1367
1506
  include Aws::Structure
1368
1507
  end
1369
1508
 
@@ -1394,6 +1533,7 @@ module Aws::WorkSpaces
1394
1533
  class ModifyClientPropertiesRequest < Struct.new(
1395
1534
  :resource_id,
1396
1535
  :client_properties)
1536
+ SENSITIVE = []
1397
1537
  include Aws::Structure
1398
1538
  end
1399
1539
 
@@ -1428,6 +1568,7 @@ module Aws::WorkSpaces
1428
1568
  class ModifySelfservicePermissionsRequest < Struct.new(
1429
1569
  :resource_id,
1430
1570
  :selfservice_permissions)
1571
+ SENSITIVE = []
1431
1572
  include Aws::Structure
1432
1573
  end
1433
1574
 
@@ -1465,6 +1606,7 @@ module Aws::WorkSpaces
1465
1606
  class ModifyWorkspaceAccessPropertiesRequest < Struct.new(
1466
1607
  :resource_id,
1467
1608
  :workspace_access_properties)
1609
+ SENSITIVE = []
1468
1610
  include Aws::Structure
1469
1611
  end
1470
1612
 
@@ -1478,6 +1620,7 @@ module Aws::WorkSpaces
1478
1620
  # {
1479
1621
  # resource_id: "DirectoryId", # required
1480
1622
  # workspace_creation_properties: { # required
1623
+ # enable_work_docs: false,
1481
1624
  # enable_internet_access: false,
1482
1625
  # default_ou: "DefaultOu",
1483
1626
  # custom_security_group_id: "SecurityGroupId",
@@ -1499,6 +1642,7 @@ module Aws::WorkSpaces
1499
1642
  class ModifyWorkspaceCreationPropertiesRequest < Struct.new(
1500
1643
  :resource_id,
1501
1644
  :workspace_creation_properties)
1645
+ SENSITIVE = []
1502
1646
  include Aws::Structure
1503
1647
  end
1504
1648
 
@@ -1533,6 +1677,7 @@ module Aws::WorkSpaces
1533
1677
  class ModifyWorkspacePropertiesRequest < Struct.new(
1534
1678
  :workspace_id,
1535
1679
  :workspace_properties)
1680
+ SENSITIVE = []
1536
1681
  include Aws::Structure
1537
1682
  end
1538
1683
 
@@ -1561,6 +1706,7 @@ module Aws::WorkSpaces
1561
1706
  class ModifyWorkspaceStateRequest < Struct.new(
1562
1707
  :workspace_id,
1563
1708
  :workspace_state)
1709
+ SENSITIVE = []
1564
1710
  include Aws::Structure
1565
1711
  end
1566
1712
 
@@ -1578,6 +1724,7 @@ module Aws::WorkSpaces
1578
1724
  #
1579
1725
  class OperatingSystem < Struct.new(
1580
1726
  :type)
1727
+ SENSITIVE = []
1581
1728
  include Aws::Structure
1582
1729
  end
1583
1730
 
@@ -1591,6 +1738,7 @@ module Aws::WorkSpaces
1591
1738
  #
1592
1739
  class OperationInProgressException < Struct.new(
1593
1740
  :message)
1741
+ SENSITIVE = []
1594
1742
  include Aws::Structure
1595
1743
  end
1596
1744
 
@@ -1603,6 +1751,7 @@ module Aws::WorkSpaces
1603
1751
  #
1604
1752
  class OperationNotSupportedException < Struct.new(
1605
1753
  :message)
1754
+ SENSITIVE = []
1606
1755
  include Aws::Structure
1607
1756
  end
1608
1757
 
@@ -1623,6 +1772,7 @@ module Aws::WorkSpaces
1623
1772
  #
1624
1773
  class RebootRequest < Struct.new(
1625
1774
  :workspace_id)
1775
+ SENSITIVE = []
1626
1776
  include Aws::Structure
1627
1777
  end
1628
1778
 
@@ -1645,6 +1795,7 @@ module Aws::WorkSpaces
1645
1795
  #
1646
1796
  class RebootWorkspacesRequest < Struct.new(
1647
1797
  :reboot_workspace_requests)
1798
+ SENSITIVE = []
1648
1799
  include Aws::Structure
1649
1800
  end
1650
1801
 
@@ -1656,6 +1807,7 @@ module Aws::WorkSpaces
1656
1807
  #
1657
1808
  class RebootWorkspacesResult < Struct.new(
1658
1809
  :failed_requests)
1810
+ SENSITIVE = []
1659
1811
  include Aws::Structure
1660
1812
  end
1661
1813
 
@@ -1676,6 +1828,7 @@ module Aws::WorkSpaces
1676
1828
  #
1677
1829
  class RebuildRequest < Struct.new(
1678
1830
  :workspace_id)
1831
+ SENSITIVE = []
1679
1832
  include Aws::Structure
1680
1833
  end
1681
1834
 
@@ -1698,6 +1851,7 @@ module Aws::WorkSpaces
1698
1851
  #
1699
1852
  class RebuildWorkspacesRequest < Struct.new(
1700
1853
  :rebuild_workspace_requests)
1854
+ SENSITIVE = []
1701
1855
  include Aws::Structure
1702
1856
  end
1703
1857
 
@@ -1709,6 +1863,7 @@ module Aws::WorkSpaces
1709
1863
  #
1710
1864
  class RebuildWorkspacesResult < Struct.new(
1711
1865
  :failed_requests)
1866
+ SENSITIVE = []
1712
1867
  include Aws::Structure
1713
1868
  end
1714
1869
 
@@ -1785,6 +1940,7 @@ module Aws::WorkSpaces
1785
1940
  :enable_self_service,
1786
1941
  :tenancy,
1787
1942
  :tags)
1943
+ SENSITIVE = []
1788
1944
  include Aws::Structure
1789
1945
  end
1790
1946
 
@@ -1801,6 +1957,7 @@ module Aws::WorkSpaces
1801
1957
  #
1802
1958
  class ResourceAlreadyExistsException < Struct.new(
1803
1959
  :message)
1960
+ SENSITIVE = []
1804
1961
  include Aws::Structure
1805
1962
  end
1806
1963
 
@@ -1813,6 +1970,7 @@ module Aws::WorkSpaces
1813
1970
  #
1814
1971
  class ResourceAssociatedException < Struct.new(
1815
1972
  :message)
1973
+ SENSITIVE = []
1816
1974
  include Aws::Structure
1817
1975
  end
1818
1976
 
@@ -1825,6 +1983,7 @@ module Aws::WorkSpaces
1825
1983
  #
1826
1984
  class ResourceCreationFailedException < Struct.new(
1827
1985
  :message)
1986
+ SENSITIVE = []
1828
1987
  include Aws::Structure
1829
1988
  end
1830
1989
 
@@ -1838,6 +1997,7 @@ module Aws::WorkSpaces
1838
1997
  #
1839
1998
  class ResourceLimitExceededException < Struct.new(
1840
1999
  :message)
2000
+ SENSITIVE = []
1841
2001
  include Aws::Structure
1842
2002
  end
1843
2003
 
@@ -1856,6 +2016,7 @@ module Aws::WorkSpaces
1856
2016
  class ResourceNotFoundException < Struct.new(
1857
2017
  :message,
1858
2018
  :resource_id)
2019
+ SENSITIVE = []
1859
2020
  include Aws::Structure
1860
2021
  end
1861
2022
 
@@ -1874,6 +2035,7 @@ module Aws::WorkSpaces
1874
2035
  class ResourceUnavailableException < Struct.new(
1875
2036
  :message,
1876
2037
  :resource_id)
2038
+ SENSITIVE = []
1877
2039
  include Aws::Structure
1878
2040
  end
1879
2041
 
@@ -1892,6 +2054,7 @@ module Aws::WorkSpaces
1892
2054
  #
1893
2055
  class RestoreWorkspaceRequest < Struct.new(
1894
2056
  :workspace_id)
2057
+ SENSITIVE = []
1895
2058
  include Aws::Structure
1896
2059
  end
1897
2060
 
@@ -1920,6 +2083,7 @@ module Aws::WorkSpaces
1920
2083
  class RevokeIpRulesRequest < Struct.new(
1921
2084
  :group_id,
1922
2085
  :user_rules)
2086
+ SENSITIVE = []
1923
2087
  include Aws::Structure
1924
2088
  end
1925
2089
 
@@ -1937,6 +2101,7 @@ module Aws::WorkSpaces
1937
2101
  #
1938
2102
  class RootStorage < Struct.new(
1939
2103
  :capacity)
2104
+ SENSITIVE = []
1940
2105
  include Aws::Structure
1941
2106
  end
1942
2107
 
@@ -1991,6 +2156,7 @@ module Aws::WorkSpaces
1991
2156
  :change_compute_type,
1992
2157
  :switch_running_mode,
1993
2158
  :rebuild_workspace)
2159
+ SENSITIVE = []
1994
2160
  include Aws::Structure
1995
2161
  end
1996
2162
 
@@ -2004,6 +2170,7 @@ module Aws::WorkSpaces
2004
2170
  #
2005
2171
  class Snapshot < Struct.new(
2006
2172
  :snapshot_time)
2173
+ SENSITIVE = []
2007
2174
  include Aws::Structure
2008
2175
  end
2009
2176
 
@@ -2024,6 +2191,7 @@ module Aws::WorkSpaces
2024
2191
  #
2025
2192
  class StartRequest < Struct.new(
2026
2193
  :workspace_id)
2194
+ SENSITIVE = []
2027
2195
  include Aws::Structure
2028
2196
  end
2029
2197
 
@@ -2046,6 +2214,7 @@ module Aws::WorkSpaces
2046
2214
  #
2047
2215
  class StartWorkspacesRequest < Struct.new(
2048
2216
  :start_workspace_requests)
2217
+ SENSITIVE = []
2049
2218
  include Aws::Structure
2050
2219
  end
2051
2220
 
@@ -2057,6 +2226,7 @@ module Aws::WorkSpaces
2057
2226
  #
2058
2227
  class StartWorkspacesResult < Struct.new(
2059
2228
  :failed_requests)
2229
+ SENSITIVE = []
2060
2230
  include Aws::Structure
2061
2231
  end
2062
2232
 
@@ -2077,6 +2247,7 @@ module Aws::WorkSpaces
2077
2247
  #
2078
2248
  class StopRequest < Struct.new(
2079
2249
  :workspace_id)
2250
+ SENSITIVE = []
2080
2251
  include Aws::Structure
2081
2252
  end
2082
2253
 
@@ -2099,6 +2270,7 @@ module Aws::WorkSpaces
2099
2270
  #
2100
2271
  class StopWorkspacesRequest < Struct.new(
2101
2272
  :stop_workspace_requests)
2273
+ SENSITIVE = []
2102
2274
  include Aws::Structure
2103
2275
  end
2104
2276
 
@@ -2110,6 +2282,7 @@ module Aws::WorkSpaces
2110
2282
  #
2111
2283
  class StopWorkspacesResult < Struct.new(
2112
2284
  :failed_requests)
2285
+ SENSITIVE = []
2113
2286
  include Aws::Structure
2114
2287
  end
2115
2288
 
@@ -2136,6 +2309,7 @@ module Aws::WorkSpaces
2136
2309
  class Tag < Struct.new(
2137
2310
  :key,
2138
2311
  :value)
2312
+ SENSITIVE = []
2139
2313
  include Aws::Structure
2140
2314
  end
2141
2315
 
@@ -2156,6 +2330,7 @@ module Aws::WorkSpaces
2156
2330
  #
2157
2331
  class TerminateRequest < Struct.new(
2158
2332
  :workspace_id)
2333
+ SENSITIVE = []
2159
2334
  include Aws::Structure
2160
2335
  end
2161
2336
 
@@ -2178,6 +2353,7 @@ module Aws::WorkSpaces
2178
2353
  #
2179
2354
  class TerminateWorkspacesRequest < Struct.new(
2180
2355
  :terminate_workspace_requests)
2356
+ SENSITIVE = []
2181
2357
  include Aws::Structure
2182
2358
  end
2183
2359
 
@@ -2189,6 +2365,7 @@ module Aws::WorkSpaces
2189
2365
  #
2190
2366
  class TerminateWorkspacesResult < Struct.new(
2191
2367
  :failed_requests)
2368
+ SENSITIVE = []
2192
2369
  include Aws::Structure
2193
2370
  end
2194
2371
 
@@ -2208,6 +2385,7 @@ module Aws::WorkSpaces
2208
2385
  #
2209
2386
  class UnsupportedNetworkConfigurationException < Struct.new(
2210
2387
  :message)
2388
+ SENSITIVE = []
2211
2389
  include Aws::Structure
2212
2390
  end
2213
2391
 
@@ -2226,6 +2404,7 @@ module Aws::WorkSpaces
2226
2404
  #
2227
2405
  class UnsupportedWorkspaceConfigurationException < Struct.new(
2228
2406
  :message)
2407
+ SENSITIVE = []
2229
2408
  include Aws::Structure
2230
2409
  end
2231
2410
 
@@ -2255,6 +2434,7 @@ module Aws::WorkSpaces
2255
2434
  class UpdateRulesOfIpGroupRequest < Struct.new(
2256
2435
  :group_id,
2257
2436
  :user_rules)
2437
+ SENSITIVE = []
2258
2438
  include Aws::Structure
2259
2439
  end
2260
2440
 
@@ -2262,6 +2442,43 @@ module Aws::WorkSpaces
2262
2442
  #
2263
2443
  class UpdateRulesOfIpGroupResult < Aws::EmptyStructure; end
2264
2444
 
2445
+ # @note When making an API call, you may pass UpdateWorkspaceImagePermissionRequest
2446
+ # data as a hash:
2447
+ #
2448
+ # {
2449
+ # image_id: "WorkspaceImageId", # required
2450
+ # allow_copy_image: false, # required
2451
+ # shared_account_id: "AwsAccount", # required
2452
+ # }
2453
+ #
2454
+ # @!attribute [rw] image_id
2455
+ # The identifier of the image.
2456
+ # @return [String]
2457
+ #
2458
+ # @!attribute [rw] allow_copy_image
2459
+ # The permission to copy the image. This permission can be revoked
2460
+ # only after an image has been shared.
2461
+ # @return [Boolean]
2462
+ #
2463
+ # @!attribute [rw] shared_account_id
2464
+ # The identifier of the AWS account to share or unshare the image
2465
+ # with.
2466
+ # @return [String]
2467
+ #
2468
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceImagePermissionRequest AWS API Documentation
2469
+ #
2470
+ class UpdateWorkspaceImagePermissionRequest < Struct.new(
2471
+ :image_id,
2472
+ :allow_copy_image,
2473
+ :shared_account_id)
2474
+ SENSITIVE = []
2475
+ include Aws::Structure
2476
+ end
2477
+
2478
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceImagePermissionResult AWS API Documentation
2479
+ #
2480
+ class UpdateWorkspaceImagePermissionResult < Aws::EmptyStructure; end
2481
+
2265
2482
  # Describes the user storage for a WorkSpace bundle.
2266
2483
  #
2267
2484
  # @!attribute [rw] capacity
@@ -2272,6 +2489,7 @@ module Aws::WorkSpaces
2272
2489
  #
2273
2490
  class UserStorage < Struct.new(
2274
2491
  :capacity)
2492
+ SENSITIVE = []
2275
2493
  include Aws::Structure
2276
2494
  end
2277
2495
 
@@ -2316,7 +2534,13 @@ module Aws::WorkSpaces
2316
2534
  # @return [String]
2317
2535
  #
2318
2536
  # @!attribute [rw] computer_name
2319
- # The name of the WorkSpace, as seen by the operating system.
2537
+ # The name of the WorkSpace, as seen by the operating system. The
2538
+ # format of this name varies. For more information, see [ Launch a
2539
+ # WorkSpace][1].
2540
+ #
2541
+ #
2542
+ #
2543
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/launch-workspaces-tutorials.html
2320
2544
  # @return [String]
2321
2545
  #
2322
2546
  # @!attribute [rw] volume_encryption_key
@@ -2359,6 +2583,7 @@ module Aws::WorkSpaces
2359
2583
  :root_volume_encryption_enabled,
2360
2584
  :workspace_properties,
2361
2585
  :modification_states)
2586
+ SENSITIVE = []
2362
2587
  include Aws::Structure
2363
2588
  end
2364
2589
 
@@ -2442,6 +2667,7 @@ module Aws::WorkSpaces
2442
2667
  :device_type_android,
2443
2668
  :device_type_chrome_os,
2444
2669
  :device_type_zero_client)
2670
+ SENSITIVE = []
2445
2671
  include Aws::Structure
2446
2672
  end
2447
2673
 
@@ -2501,6 +2727,7 @@ module Aws::WorkSpaces
2501
2727
  :user_storage,
2502
2728
  :compute_type,
2503
2729
  :last_updated_time)
2730
+ SENSITIVE = []
2504
2731
  include Aws::Structure
2505
2732
  end
2506
2733
 
@@ -2530,6 +2757,7 @@ module Aws::WorkSpaces
2530
2757
  :connection_state,
2531
2758
  :connection_state_check_timestamp,
2532
2759
  :last_known_user_connection_timestamp)
2760
+ SENSITIVE = []
2533
2761
  include Aws::Structure
2534
2762
  end
2535
2763
 
@@ -2545,6 +2773,7 @@ module Aws::WorkSpaces
2545
2773
  # data as a hash:
2546
2774
  #
2547
2775
  # {
2776
+ # enable_work_docs: false,
2548
2777
  # enable_internet_access: false,
2549
2778
  # default_ou: "DefaultOu",
2550
2779
  # custom_security_group_id: "SecurityGroupId",
@@ -2552,6 +2781,30 @@ module Aws::WorkSpaces
2552
2781
  # enable_maintenance_mode: false,
2553
2782
  # }
2554
2783
  #
2784
+ # @!attribute [rw] enable_work_docs
2785
+ # Indicates whether Amazon WorkDocs is enabled for your WorkSpaces.
2786
+ #
2787
+ # <note markdown="1"> If WorkDocs is already enabled for a WorkSpaces directory and you
2788
+ # disable it, new WorkSpaces launched in the directory will not have
2789
+ # WorkDocs enabled. However, WorkDocs remains enabled for any existing
2790
+ # WorkSpaces, unless you either disable users' access to WorkDocs or
2791
+ # you delete the WorkDocs site. To disable users' access to WorkDocs,
2792
+ # see [Disabling Users][1] in the *Amazon WorkDocs Administration
2793
+ # Guide*. To delete a WorkDocs site, see [Deleting a Site][2] in the
2794
+ # *Amazon WorkDocs Administration Guide*.
2795
+ #
2796
+ # If you enable WorkDocs on a directory that already has existing
2797
+ # WorkSpaces, the existing WorkSpaces and any new WorkSpaces that are
2798
+ # launched in the directory will have WorkDocs enabled.
2799
+ #
2800
+ # </note>
2801
+ #
2802
+ #
2803
+ #
2804
+ # [1]: https://docs.aws.amazon.com/workdocs/latest/adminguide/inactive-user.html
2805
+ # [2]: https://docs.aws.amazon.com/workdocs/latest/adminguide/manage-sites.html
2806
+ # @return [Boolean]
2807
+ #
2555
2808
  # @!attribute [rw] enable_internet_access
2556
2809
  # Indicates whether internet access is enabled for your WorkSpaces.
2557
2810
  # @return [Boolean]
@@ -2581,11 +2834,13 @@ module Aws::WorkSpaces
2581
2834
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceCreationProperties AWS API Documentation
2582
2835
  #
2583
2836
  class WorkspaceCreationProperties < Struct.new(
2837
+ :enable_work_docs,
2584
2838
  :enable_internet_access,
2585
2839
  :default_ou,
2586
2840
  :custom_security_group_id,
2587
2841
  :user_enabled_as_local_administrator,
2588
2842
  :enable_maintenance_mode)
2843
+ SENSITIVE = []
2589
2844
  include Aws::Structure
2590
2845
  end
2591
2846
 
@@ -2688,6 +2943,7 @@ module Aws::WorkSpaces
2688
2943
  :workspace_access_properties,
2689
2944
  :tenancy,
2690
2945
  :selfservice_permissions)
2946
+ SENSITIVE = []
2691
2947
  include Aws::Structure
2692
2948
  end
2693
2949
 
@@ -2732,6 +2988,16 @@ module Aws::WorkSpaces
2732
2988
  # The text of the error message that is returned for the image.
2733
2989
  # @return [String]
2734
2990
  #
2991
+ # @!attribute [rw] created
2992
+ # The date when the image was created. If the image has been shared,
2993
+ # the AWS account that the image has been shared with sees the
2994
+ # original creation date of the image.
2995
+ # @return [Time]
2996
+ #
2997
+ # @!attribute [rw] owner_account_id
2998
+ # The identifier of the AWS account that owns the image.
2999
+ # @return [String]
3000
+ #
2735
3001
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceImage AWS API Documentation
2736
3002
  #
2737
3003
  class WorkspaceImage < Struct.new(
@@ -2742,7 +3008,10 @@ module Aws::WorkSpaces
2742
3008
  :state,
2743
3009
  :required_tenancy,
2744
3010
  :error_code,
2745
- :error_message)
3011
+ :error_message,
3012
+ :created,
3013
+ :owner_account_id)
3014
+ SENSITIVE = []
2746
3015
  include Aws::Structure
2747
3016
  end
2748
3017
 
@@ -2774,11 +3043,23 @@ module Aws::WorkSpaces
2774
3043
  # @return [Integer]
2775
3044
  #
2776
3045
  # @!attribute [rw] root_volume_size_gib
2777
- # The size of the root volume.
3046
+ # The size of the root volume. For important information about how to
3047
+ # modify the size of the root and user volumes, see [Modify a
3048
+ # WorkSpace][1].
3049
+ #
3050
+ #
3051
+ #
3052
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html
2778
3053
  # @return [Integer]
2779
3054
  #
2780
3055
  # @!attribute [rw] user_volume_size_gib
2781
- # The size of the user storage.
3056
+ # The size of the user storage. For important information about how to
3057
+ # modify the size of the root and user volumes, see [Modify a
3058
+ # WorkSpace][1].
3059
+ #
3060
+ #
3061
+ #
3062
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html
2782
3063
  # @return [Integer]
2783
3064
  #
2784
3065
  # @!attribute [rw] compute_type_name
@@ -2798,6 +3079,7 @@ module Aws::WorkSpaces
2798
3079
  :root_volume_size_gib,
2799
3080
  :user_volume_size_gib,
2800
3081
  :compute_type_name)
3082
+ SENSITIVE = []
2801
3083
  include Aws::Structure
2802
3084
  end
2803
3085
 
@@ -2877,6 +3159,7 @@ module Aws::WorkSpaces
2877
3159
  :root_volume_encryption_enabled,
2878
3160
  :workspace_properties,
2879
3161
  :tags)
3162
+ SENSITIVE = []
2880
3163
  include Aws::Structure
2881
3164
  end
2882
3165
 
@@ -2897,6 +3180,7 @@ module Aws::WorkSpaces
2897
3180
  #
2898
3181
  class WorkspacesDefaultRoleNotFoundException < Struct.new(
2899
3182
  :message)
3183
+ SENSITIVE = []
2900
3184
  include Aws::Structure
2901
3185
  end
2902
3186
 
@@ -2925,6 +3209,7 @@ module Aws::WorkSpaces
2925
3209
  :group_name,
2926
3210
  :group_desc,
2927
3211
  :user_rules)
3212
+ SENSITIVE = []
2928
3213
  include Aws::Structure
2929
3214
  end
2930
3215