aws-sdk-workspaces 1.36.0 → 1.41.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: ddc031de07f10308cfee8d1883bd9a0d8cb9cf2d3dbbcd159a387bffaf8b5d54
4
- data.tar.gz: bf4537c57d78492d4c5fda39cb248cc5d9351682b486ce7b80490e1e9b25ce49
3
+ metadata.gz: 42f87d8c6c133b109ecd2620b41fb2cb2d9541e78ceaada1e05996fdc473ee4f
4
+ data.tar.gz: d4a0e50a962fce0f46d77a879eeea83c838dea576476f0ebe4039d555e05ab77
5
5
  SHA512:
6
- metadata.gz: b6c58d7ab30ea9bdaf9a94dc47e6eec0ef6e9c971237b3098b5b25ea966016723b24dd1cc31c70d38a0a106e1f22be6be2d21c55a41e73552a210887d1bb5703
7
- data.tar.gz: b50fafa696a746b87e9a5efa189af53ac13d4282f35228a958fcffdc297002a32a608558a30baf67315b469525868b7902b63887ce27f22fe80c1fd9e48f65d7
6
+ metadata.gz: 70f71cf6fafc14c0d3ba46446f86bfa1a66e7bc6faebd8fb3a7df5c90680feb257907876d0636b503b4bd4bdb7cd7c9e167c8e6d448e9f32ea129262c6dbaba0
7
+ data.tar.gz: 0c2c935962b96cc1ec24abb7178ec5ebad8b3f36d5d0a5681989b0322c681f19761087d9609ce1ddcaa27f371138425ed6193f0baef7e00bcd9fad0aff5436e2
@@ -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.36.0'
50
+ GEM_VERSION = '1.41.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
@@ -176,7 +180,7 @@ module Aws::WorkSpaces
176
180
  # requests fetching endpoints information. Defaults to 60 sec.
177
181
  #
178
182
  # @option options [Boolean] :endpoint_discovery (false)
179
- # When set to `true`, endpoint discovery will be enabled for operations when available. Defaults to `false`.
183
+ # When set to `true`, endpoint discovery will be enabled for operations when available.
180
184
  #
181
185
  # @option options [Aws::Log::Formatter] :log_formatter (Aws::Log::Formatter.default)
182
186
  # The log formatter.
@@ -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
@@ -1585,7 +1638,13 @@ module Aws::WorkSpaces
1585
1638
  req.send_request(options)
1586
1639
  end
1587
1640
 
1588
- # Modifies the specified WorkSpace properties.
1641
+ # Modifies the specified WorkSpace properties. For important information
1642
+ # about how to modify the size of the root and user volumes, see [
1643
+ # Modify a WorkSpace][1].
1644
+ #
1645
+ #
1646
+ #
1647
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html
1589
1648
  #
1590
1649
  # @option params [required, String] :workspace_id
1591
1650
  # The identifier of the WorkSpace.
@@ -1693,7 +1752,7 @@ module Aws::WorkSpaces
1693
1752
  # Rebuilds the specified WorkSpace.
1694
1753
  #
1695
1754
  # You cannot rebuild a WorkSpace unless its state is `AVAILABLE`,
1696
- # `ERROR`, `UNHEALTHY`, or `STOPPED`.
1755
+ # `ERROR`, `UNHEALTHY`, `STOPPED`, or `REBOOTING`.
1697
1756
  #
1698
1757
  # Rebuilding a WorkSpace is a potentially destructive action that can
1699
1758
  # result in the loss of data. For more information, see [Rebuild a
@@ -2031,6 +2090,51 @@ module Aws::WorkSpaces
2031
2090
  req.send_request(options)
2032
2091
  end
2033
2092
 
2093
+ # Shares or unshares an image with one account by specifying whether
2094
+ # that account has permission to copy the image. If the copy image
2095
+ # permission is granted, the image is shared with that account. If the
2096
+ # copy image permission is revoked, the image is unshared with the
2097
+ # account.
2098
+ #
2099
+ # <note markdown="1"> * To delete an image that has been shared, you must unshare the image
2100
+ # before you delete it.
2101
+ #
2102
+ # * Sharing Bring Your Own License (BYOL) images across AWS accounts
2103
+ # isn't supported at this time in the AWS GovCloud (US-West) Region.
2104
+ # To share BYOL images across accounts in the AWS GovCloud (US-West)
2105
+ # Region, contact AWS Support.
2106
+ #
2107
+ # </note>
2108
+ #
2109
+ # @option params [required, String] :image_id
2110
+ # The identifier of the image.
2111
+ #
2112
+ # @option params [required, Boolean] :allow_copy_image
2113
+ # The permission to copy the image. This permission can be revoked only
2114
+ # after an image has been shared.
2115
+ #
2116
+ # @option params [required, String] :shared_account_id
2117
+ # The identifier of the AWS account to share or unshare the image with.
2118
+ #
2119
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
2120
+ #
2121
+ # @example Request syntax with placeholder values
2122
+ #
2123
+ # resp = client.update_workspace_image_permission({
2124
+ # image_id: "WorkspaceImageId", # required
2125
+ # allow_copy_image: false, # required
2126
+ # shared_account_id: "AwsAccount", # required
2127
+ # })
2128
+ #
2129
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceImagePermission AWS API Documentation
2130
+ #
2131
+ # @overload update_workspace_image_permission(params = {})
2132
+ # @param [Hash] params ({})
2133
+ def update_workspace_image_permission(params = {}, options = {})
2134
+ req = build_request(:update_workspace_image_permission, params)
2135
+ req.send_request(options)
2136
+ end
2137
+
2034
2138
  # @!endgroup
2035
2139
 
2036
2140
  # @param params ({})
@@ -2044,7 +2148,7 @@ module Aws::WorkSpaces
2044
2148
  params: params,
2045
2149
  config: config)
2046
2150
  context[:gem_name] = 'aws-sdk-workspaces'
2047
- context[:gem_version] = '1.36.0'
2151
+ context[:gem_version] = '1.41.0'
2048
2152
  Seahorse::Client::Request.new(handlers, context)
2049
2153
  end
2050
2154
 
@@ -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
 
@@ -779,6 +812,8 @@ module Aws::WorkSpaces
779
812
  WorkspaceImage.add_member(:required_tenancy, Shapes::ShapeRef.new(shape: WorkspaceImageRequiredTenancy, location_name: "RequiredTenancy"))
780
813
  WorkspaceImage.add_member(:error_code, Shapes::ShapeRef.new(shape: WorkspaceImageErrorCode, location_name: "ErrorCode"))
781
814
  WorkspaceImage.add_member(:error_message, Shapes::ShapeRef.new(shape: Description, location_name: "ErrorMessage"))
815
+ WorkspaceImage.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Created"))
816
+ WorkspaceImage.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AwsAccount, location_name: "OwnerAccountId"))
782
817
  WorkspaceImage.struct_class = Types::WorkspaceImage
783
818
 
784
819
  WorkspaceImageIdList.member = Shapes::ShapeRef.new(shape: WorkspaceImageId)
@@ -1033,6 +1068,17 @@ module Aws::WorkSpaces
1033
1068
  )
1034
1069
  end)
1035
1070
 
1071
+ api.add_operation(:describe_workspace_image_permissions, Seahorse::Model::Operation.new.tap do |o|
1072
+ o.name = "DescribeWorkspaceImagePermissions"
1073
+ o.http_method = "POST"
1074
+ o.http_request_uri = "/"
1075
+ o.input = Shapes::ShapeRef.new(shape: DescribeWorkspaceImagePermissionsRequest)
1076
+ o.output = Shapes::ShapeRef.new(shape: DescribeWorkspaceImagePermissionsResult)
1077
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1078
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1079
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1080
+ end)
1081
+
1036
1082
  api.add_operation(:describe_workspace_images, Seahorse::Model::Operation.new.tap do |o|
1037
1083
  o.name = "DescribeWorkspaceImages"
1038
1084
  o.http_method = "POST"
@@ -1301,6 +1347,19 @@ module Aws::WorkSpaces
1301
1347
  o.errors << Shapes::ShapeRef.new(shape: InvalidResourceStateException)
1302
1348
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1303
1349
  end)
1350
+
1351
+ api.add_operation(:update_workspace_image_permission, Seahorse::Model::Operation.new.tap do |o|
1352
+ o.name = "UpdateWorkspaceImagePermission"
1353
+ o.http_method = "POST"
1354
+ o.http_request_uri = "/"
1355
+ o.input = Shapes::ShapeRef.new(shape: UpdateWorkspaceImagePermissionRequest)
1356
+ o.output = Shapes::ShapeRef.new(shape: UpdateWorkspaceImagePermissionResult)
1357
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1358
+ o.errors << Shapes::ShapeRef.new(shape: ResourceUnavailableException)
1359
+ o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1360
+ o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
1361
+ o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
1362
+ end)
1304
1363
  end
1305
1364
 
1306
1365
  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
 
@@ -1499,6 +1641,7 @@ module Aws::WorkSpaces
1499
1641
  class ModifyWorkspaceCreationPropertiesRequest < Struct.new(
1500
1642
  :resource_id,
1501
1643
  :workspace_creation_properties)
1644
+ SENSITIVE = []
1502
1645
  include Aws::Structure
1503
1646
  end
1504
1647
 
@@ -1533,6 +1676,7 @@ module Aws::WorkSpaces
1533
1676
  class ModifyWorkspacePropertiesRequest < Struct.new(
1534
1677
  :workspace_id,
1535
1678
  :workspace_properties)
1679
+ SENSITIVE = []
1536
1680
  include Aws::Structure
1537
1681
  end
1538
1682
 
@@ -1561,6 +1705,7 @@ module Aws::WorkSpaces
1561
1705
  class ModifyWorkspaceStateRequest < Struct.new(
1562
1706
  :workspace_id,
1563
1707
  :workspace_state)
1708
+ SENSITIVE = []
1564
1709
  include Aws::Structure
1565
1710
  end
1566
1711
 
@@ -1578,6 +1723,7 @@ module Aws::WorkSpaces
1578
1723
  #
1579
1724
  class OperatingSystem < Struct.new(
1580
1725
  :type)
1726
+ SENSITIVE = []
1581
1727
  include Aws::Structure
1582
1728
  end
1583
1729
 
@@ -1591,6 +1737,7 @@ module Aws::WorkSpaces
1591
1737
  #
1592
1738
  class OperationInProgressException < Struct.new(
1593
1739
  :message)
1740
+ SENSITIVE = []
1594
1741
  include Aws::Structure
1595
1742
  end
1596
1743
 
@@ -1603,6 +1750,7 @@ module Aws::WorkSpaces
1603
1750
  #
1604
1751
  class OperationNotSupportedException < Struct.new(
1605
1752
  :message)
1753
+ SENSITIVE = []
1606
1754
  include Aws::Structure
1607
1755
  end
1608
1756
 
@@ -1623,6 +1771,7 @@ module Aws::WorkSpaces
1623
1771
  #
1624
1772
  class RebootRequest < Struct.new(
1625
1773
  :workspace_id)
1774
+ SENSITIVE = []
1626
1775
  include Aws::Structure
1627
1776
  end
1628
1777
 
@@ -1645,6 +1794,7 @@ module Aws::WorkSpaces
1645
1794
  #
1646
1795
  class RebootWorkspacesRequest < Struct.new(
1647
1796
  :reboot_workspace_requests)
1797
+ SENSITIVE = []
1648
1798
  include Aws::Structure
1649
1799
  end
1650
1800
 
@@ -1656,6 +1806,7 @@ module Aws::WorkSpaces
1656
1806
  #
1657
1807
  class RebootWorkspacesResult < Struct.new(
1658
1808
  :failed_requests)
1809
+ SENSITIVE = []
1659
1810
  include Aws::Structure
1660
1811
  end
1661
1812
 
@@ -1676,6 +1827,7 @@ module Aws::WorkSpaces
1676
1827
  #
1677
1828
  class RebuildRequest < Struct.new(
1678
1829
  :workspace_id)
1830
+ SENSITIVE = []
1679
1831
  include Aws::Structure
1680
1832
  end
1681
1833
 
@@ -1698,6 +1850,7 @@ module Aws::WorkSpaces
1698
1850
  #
1699
1851
  class RebuildWorkspacesRequest < Struct.new(
1700
1852
  :rebuild_workspace_requests)
1853
+ SENSITIVE = []
1701
1854
  include Aws::Structure
1702
1855
  end
1703
1856
 
@@ -1709,6 +1862,7 @@ module Aws::WorkSpaces
1709
1862
  #
1710
1863
  class RebuildWorkspacesResult < Struct.new(
1711
1864
  :failed_requests)
1865
+ SENSITIVE = []
1712
1866
  include Aws::Structure
1713
1867
  end
1714
1868
 
@@ -1785,6 +1939,7 @@ module Aws::WorkSpaces
1785
1939
  :enable_self_service,
1786
1940
  :tenancy,
1787
1941
  :tags)
1942
+ SENSITIVE = []
1788
1943
  include Aws::Structure
1789
1944
  end
1790
1945
 
@@ -1801,6 +1956,7 @@ module Aws::WorkSpaces
1801
1956
  #
1802
1957
  class ResourceAlreadyExistsException < Struct.new(
1803
1958
  :message)
1959
+ SENSITIVE = []
1804
1960
  include Aws::Structure
1805
1961
  end
1806
1962
 
@@ -1813,6 +1969,7 @@ module Aws::WorkSpaces
1813
1969
  #
1814
1970
  class ResourceAssociatedException < Struct.new(
1815
1971
  :message)
1972
+ SENSITIVE = []
1816
1973
  include Aws::Structure
1817
1974
  end
1818
1975
 
@@ -1825,6 +1982,7 @@ module Aws::WorkSpaces
1825
1982
  #
1826
1983
  class ResourceCreationFailedException < Struct.new(
1827
1984
  :message)
1985
+ SENSITIVE = []
1828
1986
  include Aws::Structure
1829
1987
  end
1830
1988
 
@@ -1838,6 +1996,7 @@ module Aws::WorkSpaces
1838
1996
  #
1839
1997
  class ResourceLimitExceededException < Struct.new(
1840
1998
  :message)
1999
+ SENSITIVE = []
1841
2000
  include Aws::Structure
1842
2001
  end
1843
2002
 
@@ -1856,6 +2015,7 @@ module Aws::WorkSpaces
1856
2015
  class ResourceNotFoundException < Struct.new(
1857
2016
  :message,
1858
2017
  :resource_id)
2018
+ SENSITIVE = []
1859
2019
  include Aws::Structure
1860
2020
  end
1861
2021
 
@@ -1874,6 +2034,7 @@ module Aws::WorkSpaces
1874
2034
  class ResourceUnavailableException < Struct.new(
1875
2035
  :message,
1876
2036
  :resource_id)
2037
+ SENSITIVE = []
1877
2038
  include Aws::Structure
1878
2039
  end
1879
2040
 
@@ -1892,6 +2053,7 @@ module Aws::WorkSpaces
1892
2053
  #
1893
2054
  class RestoreWorkspaceRequest < Struct.new(
1894
2055
  :workspace_id)
2056
+ SENSITIVE = []
1895
2057
  include Aws::Structure
1896
2058
  end
1897
2059
 
@@ -1920,6 +2082,7 @@ module Aws::WorkSpaces
1920
2082
  class RevokeIpRulesRequest < Struct.new(
1921
2083
  :group_id,
1922
2084
  :user_rules)
2085
+ SENSITIVE = []
1923
2086
  include Aws::Structure
1924
2087
  end
1925
2088
 
@@ -1937,6 +2100,7 @@ module Aws::WorkSpaces
1937
2100
  #
1938
2101
  class RootStorage < Struct.new(
1939
2102
  :capacity)
2103
+ SENSITIVE = []
1940
2104
  include Aws::Structure
1941
2105
  end
1942
2106
 
@@ -1991,6 +2155,7 @@ module Aws::WorkSpaces
1991
2155
  :change_compute_type,
1992
2156
  :switch_running_mode,
1993
2157
  :rebuild_workspace)
2158
+ SENSITIVE = []
1994
2159
  include Aws::Structure
1995
2160
  end
1996
2161
 
@@ -2004,6 +2169,7 @@ module Aws::WorkSpaces
2004
2169
  #
2005
2170
  class Snapshot < Struct.new(
2006
2171
  :snapshot_time)
2172
+ SENSITIVE = []
2007
2173
  include Aws::Structure
2008
2174
  end
2009
2175
 
@@ -2024,6 +2190,7 @@ module Aws::WorkSpaces
2024
2190
  #
2025
2191
  class StartRequest < Struct.new(
2026
2192
  :workspace_id)
2193
+ SENSITIVE = []
2027
2194
  include Aws::Structure
2028
2195
  end
2029
2196
 
@@ -2046,6 +2213,7 @@ module Aws::WorkSpaces
2046
2213
  #
2047
2214
  class StartWorkspacesRequest < Struct.new(
2048
2215
  :start_workspace_requests)
2216
+ SENSITIVE = []
2049
2217
  include Aws::Structure
2050
2218
  end
2051
2219
 
@@ -2057,6 +2225,7 @@ module Aws::WorkSpaces
2057
2225
  #
2058
2226
  class StartWorkspacesResult < Struct.new(
2059
2227
  :failed_requests)
2228
+ SENSITIVE = []
2060
2229
  include Aws::Structure
2061
2230
  end
2062
2231
 
@@ -2077,6 +2246,7 @@ module Aws::WorkSpaces
2077
2246
  #
2078
2247
  class StopRequest < Struct.new(
2079
2248
  :workspace_id)
2249
+ SENSITIVE = []
2080
2250
  include Aws::Structure
2081
2251
  end
2082
2252
 
@@ -2099,6 +2269,7 @@ module Aws::WorkSpaces
2099
2269
  #
2100
2270
  class StopWorkspacesRequest < Struct.new(
2101
2271
  :stop_workspace_requests)
2272
+ SENSITIVE = []
2102
2273
  include Aws::Structure
2103
2274
  end
2104
2275
 
@@ -2110,6 +2281,7 @@ module Aws::WorkSpaces
2110
2281
  #
2111
2282
  class StopWorkspacesResult < Struct.new(
2112
2283
  :failed_requests)
2284
+ SENSITIVE = []
2113
2285
  include Aws::Structure
2114
2286
  end
2115
2287
 
@@ -2136,6 +2308,7 @@ module Aws::WorkSpaces
2136
2308
  class Tag < Struct.new(
2137
2309
  :key,
2138
2310
  :value)
2311
+ SENSITIVE = []
2139
2312
  include Aws::Structure
2140
2313
  end
2141
2314
 
@@ -2156,6 +2329,7 @@ module Aws::WorkSpaces
2156
2329
  #
2157
2330
  class TerminateRequest < Struct.new(
2158
2331
  :workspace_id)
2332
+ SENSITIVE = []
2159
2333
  include Aws::Structure
2160
2334
  end
2161
2335
 
@@ -2178,6 +2352,7 @@ module Aws::WorkSpaces
2178
2352
  #
2179
2353
  class TerminateWorkspacesRequest < Struct.new(
2180
2354
  :terminate_workspace_requests)
2355
+ SENSITIVE = []
2181
2356
  include Aws::Structure
2182
2357
  end
2183
2358
 
@@ -2189,6 +2364,7 @@ module Aws::WorkSpaces
2189
2364
  #
2190
2365
  class TerminateWorkspacesResult < Struct.new(
2191
2366
  :failed_requests)
2367
+ SENSITIVE = []
2192
2368
  include Aws::Structure
2193
2369
  end
2194
2370
 
@@ -2208,6 +2384,7 @@ module Aws::WorkSpaces
2208
2384
  #
2209
2385
  class UnsupportedNetworkConfigurationException < Struct.new(
2210
2386
  :message)
2387
+ SENSITIVE = []
2211
2388
  include Aws::Structure
2212
2389
  end
2213
2390
 
@@ -2226,6 +2403,7 @@ module Aws::WorkSpaces
2226
2403
  #
2227
2404
  class UnsupportedWorkspaceConfigurationException < Struct.new(
2228
2405
  :message)
2406
+ SENSITIVE = []
2229
2407
  include Aws::Structure
2230
2408
  end
2231
2409
 
@@ -2255,6 +2433,7 @@ module Aws::WorkSpaces
2255
2433
  class UpdateRulesOfIpGroupRequest < Struct.new(
2256
2434
  :group_id,
2257
2435
  :user_rules)
2436
+ SENSITIVE = []
2258
2437
  include Aws::Structure
2259
2438
  end
2260
2439
 
@@ -2262,6 +2441,43 @@ module Aws::WorkSpaces
2262
2441
  #
2263
2442
  class UpdateRulesOfIpGroupResult < Aws::EmptyStructure; end
2264
2443
 
2444
+ # @note When making an API call, you may pass UpdateWorkspaceImagePermissionRequest
2445
+ # data as a hash:
2446
+ #
2447
+ # {
2448
+ # image_id: "WorkspaceImageId", # required
2449
+ # allow_copy_image: false, # required
2450
+ # shared_account_id: "AwsAccount", # required
2451
+ # }
2452
+ #
2453
+ # @!attribute [rw] image_id
2454
+ # The identifier of the image.
2455
+ # @return [String]
2456
+ #
2457
+ # @!attribute [rw] allow_copy_image
2458
+ # The permission to copy the image. This permission can be revoked
2459
+ # only after an image has been shared.
2460
+ # @return [Boolean]
2461
+ #
2462
+ # @!attribute [rw] shared_account_id
2463
+ # The identifier of the AWS account to share or unshare the image
2464
+ # with.
2465
+ # @return [String]
2466
+ #
2467
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceImagePermissionRequest AWS API Documentation
2468
+ #
2469
+ class UpdateWorkspaceImagePermissionRequest < Struct.new(
2470
+ :image_id,
2471
+ :allow_copy_image,
2472
+ :shared_account_id)
2473
+ SENSITIVE = []
2474
+ include Aws::Structure
2475
+ end
2476
+
2477
+ # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/UpdateWorkspaceImagePermissionResult AWS API Documentation
2478
+ #
2479
+ class UpdateWorkspaceImagePermissionResult < Aws::EmptyStructure; end
2480
+
2265
2481
  # Describes the user storage for a WorkSpace bundle.
2266
2482
  #
2267
2483
  # @!attribute [rw] capacity
@@ -2272,6 +2488,7 @@ module Aws::WorkSpaces
2272
2488
  #
2273
2489
  class UserStorage < Struct.new(
2274
2490
  :capacity)
2491
+ SENSITIVE = []
2275
2492
  include Aws::Structure
2276
2493
  end
2277
2494
 
@@ -2359,6 +2576,7 @@ module Aws::WorkSpaces
2359
2576
  :root_volume_encryption_enabled,
2360
2577
  :workspace_properties,
2361
2578
  :modification_states)
2579
+ SENSITIVE = []
2362
2580
  include Aws::Structure
2363
2581
  end
2364
2582
 
@@ -2442,6 +2660,7 @@ module Aws::WorkSpaces
2442
2660
  :device_type_android,
2443
2661
  :device_type_chrome_os,
2444
2662
  :device_type_zero_client)
2663
+ SENSITIVE = []
2445
2664
  include Aws::Structure
2446
2665
  end
2447
2666
 
@@ -2501,6 +2720,7 @@ module Aws::WorkSpaces
2501
2720
  :user_storage,
2502
2721
  :compute_type,
2503
2722
  :last_updated_time)
2723
+ SENSITIVE = []
2504
2724
  include Aws::Structure
2505
2725
  end
2506
2726
 
@@ -2530,6 +2750,7 @@ module Aws::WorkSpaces
2530
2750
  :connection_state,
2531
2751
  :connection_state_check_timestamp,
2532
2752
  :last_known_user_connection_timestamp)
2753
+ SENSITIVE = []
2533
2754
  include Aws::Structure
2534
2755
  end
2535
2756
 
@@ -2586,6 +2807,7 @@ module Aws::WorkSpaces
2586
2807
  :custom_security_group_id,
2587
2808
  :user_enabled_as_local_administrator,
2588
2809
  :enable_maintenance_mode)
2810
+ SENSITIVE = []
2589
2811
  include Aws::Structure
2590
2812
  end
2591
2813
 
@@ -2688,6 +2910,7 @@ module Aws::WorkSpaces
2688
2910
  :workspace_access_properties,
2689
2911
  :tenancy,
2690
2912
  :selfservice_permissions)
2913
+ SENSITIVE = []
2691
2914
  include Aws::Structure
2692
2915
  end
2693
2916
 
@@ -2732,6 +2955,16 @@ module Aws::WorkSpaces
2732
2955
  # The text of the error message that is returned for the image.
2733
2956
  # @return [String]
2734
2957
  #
2958
+ # @!attribute [rw] created
2959
+ # The date when the image was created. If the image has been shared,
2960
+ # the AWS account that the image has been shared with sees the
2961
+ # original creation date of the image.
2962
+ # @return [Time]
2963
+ #
2964
+ # @!attribute [rw] owner_account_id
2965
+ # The identifier of the AWS account that owns the image.
2966
+ # @return [String]
2967
+ #
2735
2968
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceImage AWS API Documentation
2736
2969
  #
2737
2970
  class WorkspaceImage < Struct.new(
@@ -2742,7 +2975,10 @@ module Aws::WorkSpaces
2742
2975
  :state,
2743
2976
  :required_tenancy,
2744
2977
  :error_code,
2745
- :error_message)
2978
+ :error_message,
2979
+ :created,
2980
+ :owner_account_id)
2981
+ SENSITIVE = []
2746
2982
  include Aws::Structure
2747
2983
  end
2748
2984
 
@@ -2774,11 +3010,23 @@ module Aws::WorkSpaces
2774
3010
  # @return [Integer]
2775
3011
  #
2776
3012
  # @!attribute [rw] root_volume_size_gib
2777
- # The size of the root volume.
3013
+ # The size of the root volume. For important information about how to
3014
+ # modify the size of the root and user volumes, see [Modify a
3015
+ # WorkSpace][1].
3016
+ #
3017
+ #
3018
+ #
3019
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html
2778
3020
  # @return [Integer]
2779
3021
  #
2780
3022
  # @!attribute [rw] user_volume_size_gib
2781
- # The size of the user storage.
3023
+ # The size of the user storage. For important information about how to
3024
+ # modify the size of the root and user volumes, see [Modify a
3025
+ # WorkSpace][1].
3026
+ #
3027
+ #
3028
+ #
3029
+ # [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/modify-workspaces.html
2782
3030
  # @return [Integer]
2783
3031
  #
2784
3032
  # @!attribute [rw] compute_type_name
@@ -2798,6 +3046,7 @@ module Aws::WorkSpaces
2798
3046
  :root_volume_size_gib,
2799
3047
  :user_volume_size_gib,
2800
3048
  :compute_type_name)
3049
+ SENSITIVE = []
2801
3050
  include Aws::Structure
2802
3051
  end
2803
3052
 
@@ -2877,6 +3126,7 @@ module Aws::WorkSpaces
2877
3126
  :root_volume_encryption_enabled,
2878
3127
  :workspace_properties,
2879
3128
  :tags)
3129
+ SENSITIVE = []
2880
3130
  include Aws::Structure
2881
3131
  end
2882
3132
 
@@ -2897,6 +3147,7 @@ module Aws::WorkSpaces
2897
3147
  #
2898
3148
  class WorkspacesDefaultRoleNotFoundException < Struct.new(
2899
3149
  :message)
3150
+ SENSITIVE = []
2900
3151
  include Aws::Structure
2901
3152
  end
2902
3153
 
@@ -2925,6 +3176,7 @@ module Aws::WorkSpaces
2925
3176
  :group_name,
2926
3177
  :group_desc,
2927
3178
  :user_rules)
3179
+ SENSITIVE = []
2928
3180
  include Aws::Structure
2929
3181
  end
2930
3182