aws-sdk-workspaces 1.40.0 → 1.41.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aa859e852c652711eb645458bed4ab030034ac1faa23083c777dfbc1e6768ab0
4
- data.tar.gz: 2a527e967670b451e635877a36a69bb7cab216c4a34d712954d01896d1c541ff
3
+ metadata.gz: 42f87d8c6c133b109ecd2620b41fb2cb2d9541e78ceaada1e05996fdc473ee4f
4
+ data.tar.gz: d4a0e50a962fce0f46d77a879eeea83c838dea576476f0ebe4039d555e05ab77
5
5
  SHA512:
6
- metadata.gz: c6b34d87068a7d04e265e8e56f2ddcac9d71c829fad89d4e8e19d2400d43f32dd4cbf9772358ac80958fdd685ddfea4e9d9cfaa74bcf0e28cdc2fae937488459
7
- data.tar.gz: 706cdf080cac173feb40a1fa97fb02141782efcb3061a5d9c4ad76df710a827449afd90278264b3c21e130deb03641bf906edffcdef2760346f39e8f0ab91645
6
+ metadata.gz: 70f71cf6fafc14c0d3ba46446f86bfa1a66e7bc6faebd8fb3a7df5c90680feb257907876d0636b503b4bd4bdb7cd7c9e167c8e6d448e9f32ea129262c6dbaba0
7
+ data.tar.gz: 0c2c935962b96cc1ec24abb7178ec5ebad8b3f36d5d0a5681989b0322c681f19761087d9609ce1ddcaa27f371138425ed6193f0baef7e00bcd9fad0aff5436e2
@@ -47,6 +47,6 @@ require_relative 'aws-sdk-workspaces/customizations'
47
47
  # @service
48
48
  module Aws::WorkSpaces
49
49
 
50
- GEM_VERSION = '1.40.0'
50
+ GEM_VERSION = '1.41.0'
51
51
 
52
52
  end
@@ -679,7 +679,7 @@ module Aws::WorkSpaces
679
679
 
680
680
  # Deletes the specified image from your account. To delete an image, you
681
681
  # must first delete any bundles that are associated with the image and
682
- # un-share the image if it is shared with other accounts.
682
+ # unshare the image if it is shared with other accounts.
683
683
  #
684
684
  # @option params [required, String] :image_id
685
685
  # The identifier of the image.
@@ -1032,6 +1032,49 @@ module Aws::WorkSpaces
1032
1032
  req.send_request(options)
1033
1033
  end
1034
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
+
1035
1078
  # Retrieves a list that describes one or more specified images, if the
1036
1079
  # image identifiers are provided. Otherwise, all images in the account
1037
1080
  # are described.
@@ -1039,6 +1082,9 @@ module Aws::WorkSpaces
1039
1082
  # @option params [Array<String>] :image_ids
1040
1083
  # The identifier of the image.
1041
1084
  #
1085
+ # @option params [String] :image_type
1086
+ # The type (owned or shared) of the image.
1087
+ #
1042
1088
  # @option params [String] :next_token
1043
1089
  # If you received a `NextToken` from a previous call that was paginated,
1044
1090
  # provide this token to receive the next set of results.
@@ -1055,6 +1101,7 @@ module Aws::WorkSpaces
1055
1101
  #
1056
1102
  # resp = client.describe_workspace_images({
1057
1103
  # image_ids: ["WorkspaceImageId"],
1104
+ # image_type: "OWNED", # accepts OWNED, SHARED
1058
1105
  # next_token: "PaginationToken",
1059
1106
  # max_results: 1,
1060
1107
  # })
@@ -1070,6 +1117,8 @@ module Aws::WorkSpaces
1070
1117
  # resp.images[0].required_tenancy #=> String, one of "DEFAULT", "DEDICATED"
1071
1118
  # resp.images[0].error_code #=> String
1072
1119
  # resp.images[0].error_message #=> String
1120
+ # resp.images[0].created #=> Time
1121
+ # resp.images[0].owner_account_id #=> String
1073
1122
  # resp.next_token #=> String
1074
1123
  #
1075
1124
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DescribeWorkspaceImages AWS API Documentation
@@ -1589,7 +1638,13 @@ module Aws::WorkSpaces
1589
1638
  req.send_request(options)
1590
1639
  end
1591
1640
 
1592
- # 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
1593
1648
  #
1594
1649
  # @option params [required, String] :workspace_id
1595
1650
  # The identifier of the WorkSpace.
@@ -1697,7 +1752,7 @@ module Aws::WorkSpaces
1697
1752
  # Rebuilds the specified WorkSpace.
1698
1753
  #
1699
1754
  # You cannot rebuild a WorkSpace unless its state is `AVAILABLE`,
1700
- # `ERROR`, `UNHEALTHY`, or `STOPPED`.
1755
+ # `ERROR`, `UNHEALTHY`, `STOPPED`, or `REBOOTING`.
1701
1756
  #
1702
1757
  # Rebuilding a WorkSpace is a potentially destructive action that can
1703
1758
  # result in the loss of data. For more information, see [Rebuild a
@@ -2035,6 +2090,51 @@ module Aws::WorkSpaces
2035
2090
  req.send_request(options)
2036
2091
  end
2037
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
+
2038
2138
  # @!endgroup
2039
2139
 
2040
2140
  # @param params ({})
@@ -2048,7 +2148,7 @@ module Aws::WorkSpaces
2048
2148
  params: params,
2049
2149
  config: config)
2050
2150
  context[:gem_name] = 'aws-sdk-workspaces'
2051
- context[:gem_version] = '1.40.0'
2151
+ context[:gem_version] = '1.41.0'
2052
2152
  Seahorse::Client::Request.new(handlers, context)
2053
2153
  end
2054
2154
 
@@ -23,6 +23,7 @@ module Aws::WorkSpaces
23
23
  AssociateIpGroupsResult = Shapes::StructureShape.new(name: 'AssociateIpGroupsResult')
24
24
  AuthorizeIpRulesRequest = Shapes::StructureShape.new(name: 'AuthorizeIpRulesRequest')
25
25
  AuthorizeIpRulesResult = Shapes::StructureShape.new(name: 'AuthorizeIpRulesResult')
26
+ AwsAccount = Shapes::StringShape.new(name: 'AwsAccount')
26
27
  BooleanObject = Shapes::BooleanShape.new(name: 'BooleanObject')
27
28
  BundleId = Shapes::StringShape.new(name: 'BundleId')
28
29
  BundleIdList = Shapes::ListShape.new(name: 'BundleIdList')
@@ -72,6 +73,8 @@ module Aws::WorkSpaces
72
73
  DescribeWorkspaceBundlesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceBundlesResult')
73
74
  DescribeWorkspaceDirectoriesRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceDirectoriesRequest')
74
75
  DescribeWorkspaceDirectoriesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceDirectoriesResult')
76
+ DescribeWorkspaceImagePermissionsRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagePermissionsRequest')
77
+ DescribeWorkspaceImagePermissionsResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagePermissionsResult')
75
78
  DescribeWorkspaceImagesRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagesRequest')
76
79
  DescribeWorkspaceImagesResult = Shapes::StructureShape.new(name: 'DescribeWorkspaceImagesResult')
77
80
  DescribeWorkspaceSnapshotsRequest = Shapes::StructureShape.new(name: 'DescribeWorkspaceSnapshotsRequest')
@@ -99,6 +102,9 @@ module Aws::WorkSpaces
99
102
  FailedStopWorkspaceRequests = Shapes::ListShape.new(name: 'FailedStopWorkspaceRequests')
100
103
  FailedTerminateWorkspaceRequests = Shapes::ListShape.new(name: 'FailedTerminateWorkspaceRequests')
101
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')
102
108
  ImportWorkspaceImageRequest = Shapes::StructureShape.new(name: 'ImportWorkspaceImageRequest')
103
109
  ImportWorkspaceImageResult = Shapes::StructureShape.new(name: 'ImportWorkspaceImageResult')
104
110
  InvalidParameterValuesException = Shapes::StructureShape.new(name: 'InvalidParameterValuesException')
@@ -202,6 +208,8 @@ module Aws::WorkSpaces
202
208
  UnsupportedWorkspaceConfigurationException = Shapes::StructureShape.new(name: 'UnsupportedWorkspaceConfigurationException')
203
209
  UpdateRulesOfIpGroupRequest = Shapes::StructureShape.new(name: 'UpdateRulesOfIpGroupRequest')
204
210
  UpdateRulesOfIpGroupResult = Shapes::StructureShape.new(name: 'UpdateRulesOfIpGroupResult')
211
+ UpdateWorkspaceImagePermissionRequest = Shapes::StructureShape.new(name: 'UpdateWorkspaceImagePermissionRequest')
212
+ UpdateWorkspaceImagePermissionResult = Shapes::StructureShape.new(name: 'UpdateWorkspaceImagePermissionResult')
205
213
  UserName = Shapes::StringShape.new(name: 'UserName')
206
214
  UserStorage = Shapes::StructureShape.new(name: 'UserStorage')
207
215
  UserVolumeSizeGib = Shapes::IntegerShape.new(name: 'UserVolumeSizeGib')
@@ -393,7 +401,18 @@ module Aws::WorkSpaces
393
401
  DescribeWorkspaceDirectoriesResult.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
394
402
  DescribeWorkspaceDirectoriesResult.struct_class = Types::DescribeWorkspaceDirectoriesResult
395
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
+
396
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"))
397
416
  DescribeWorkspaceImagesRequest.add_member(:next_token, Shapes::ShapeRef.new(shape: PaginationToken, location_name: "NextToken"))
398
417
  DescribeWorkspaceImagesRequest.add_member(:max_results, Shapes::ShapeRef.new(shape: Limit, location_name: "MaxResults"))
399
418
  DescribeWorkspaceImagesRequest.struct_class = Types::DescribeWorkspaceImagesRequest
@@ -463,6 +482,11 @@ module Aws::WorkSpaces
463
482
  FailedWorkspaceChangeRequest.add_member(:error_message, Shapes::ShapeRef.new(shape: Description, location_name: "ErrorMessage"))
464
483
  FailedWorkspaceChangeRequest.struct_class = Types::FailedWorkspaceChangeRequest
465
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
+
466
490
  ImportWorkspaceImageRequest.add_member(:ec2_image_id, Shapes::ShapeRef.new(shape: Ec2ImageId, required: true, location_name: "Ec2ImageId"))
467
491
  ImportWorkspaceImageRequest.add_member(:ingestion_process, Shapes::ShapeRef.new(shape: WorkspaceImageIngestionProcess, required: true, location_name: "IngestionProcess"))
468
492
  ImportWorkspaceImageRequest.add_member(:image_name, Shapes::ShapeRef.new(shape: WorkspaceImageName, required: true, location_name: "ImageName"))
@@ -698,6 +722,13 @@ module Aws::WorkSpaces
698
722
 
699
723
  UpdateRulesOfIpGroupResult.struct_class = Types::UpdateRulesOfIpGroupResult
700
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
+
701
732
  UserStorage.add_member(:capacity, Shapes::ShapeRef.new(shape: NonEmptyString, location_name: "Capacity"))
702
733
  UserStorage.struct_class = Types::UserStorage
703
734
 
@@ -781,6 +812,8 @@ module Aws::WorkSpaces
781
812
  WorkspaceImage.add_member(:required_tenancy, Shapes::ShapeRef.new(shape: WorkspaceImageRequiredTenancy, location_name: "RequiredTenancy"))
782
813
  WorkspaceImage.add_member(:error_code, Shapes::ShapeRef.new(shape: WorkspaceImageErrorCode, location_name: "ErrorCode"))
783
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"))
784
817
  WorkspaceImage.struct_class = Types::WorkspaceImage
785
818
 
786
819
  WorkspaceImageIdList.member = Shapes::ShapeRef.new(shape: WorkspaceImageId)
@@ -1035,6 +1068,17 @@ module Aws::WorkSpaces
1035
1068
  )
1036
1069
  end)
1037
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
+
1038
1082
  api.add_operation(:describe_workspace_images, Seahorse::Model::Operation.new.tap do |o|
1039
1083
  o.name = "DescribeWorkspaceImages"
1040
1084
  o.http_method = "POST"
@@ -1303,6 +1347,19 @@ module Aws::WorkSpaces
1303
1347
  o.errors << Shapes::ShapeRef.new(shape: InvalidResourceStateException)
1304
1348
  o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
1305
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)
1306
1363
  end
1307
1364
 
1308
1365
  end
@@ -442,8 +442,13 @@ module Aws::WorkSpaces
442
442
  # @return [String]
443
443
  #
444
444
  # @!attribute [rw] custom_security_group_id
445
- # The identifier of any security groups to apply to WorkSpaces when
446
- # 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
447
452
  # @return [String]
448
453
  #
449
454
  # @!attribute [rw] user_enabled_as_local_administrator
@@ -864,11 +869,68 @@ module Aws::WorkSpaces
864
869
  include Aws::Structure
865
870
  end
866
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 = []
925
+ include Aws::Structure
926
+ end
927
+
867
928
  # @note When making an API call, you may pass DescribeWorkspaceImagesRequest
868
929
  # data as a hash:
869
930
  #
870
931
  # {
871
932
  # image_ids: ["WorkspaceImageId"],
933
+ # image_type: "OWNED", # accepts OWNED, SHARED
872
934
  # next_token: "PaginationToken",
873
935
  # max_results: 1,
874
936
  # }
@@ -877,6 +939,10 @@ module Aws::WorkSpaces
877
939
  # The identifier of the image.
878
940
  # @return [Array<String>]
879
941
  #
942
+ # @!attribute [rw] image_type
943
+ # The type (owned or shared) of the image.
944
+ # @return [String]
945
+ #
880
946
  # @!attribute [rw] next_token
881
947
  # If you received a `NextToken` from a previous call that was
882
948
  # paginated, provide this token to receive the next set of results.
@@ -890,6 +956,7 @@ module Aws::WorkSpaces
890
956
  #
891
957
  class DescribeWorkspaceImagesRequest < Struct.new(
892
958
  :image_ids,
959
+ :image_type,
893
960
  :next_token,
894
961
  :max_results)
895
962
  SENSITIVE = []
@@ -1162,6 +1229,22 @@ module Aws::WorkSpaces
1162
1229
  include Aws::Structure
1163
1230
  end
1164
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 = []
1245
+ include Aws::Structure
1246
+ end
1247
+
1165
1248
  # @note When making an API call, you may pass ImportWorkspaceImageRequest
1166
1249
  # data as a hash:
1167
1250
  #
@@ -2358,6 +2441,43 @@ module Aws::WorkSpaces
2358
2441
  #
2359
2442
  class UpdateRulesOfIpGroupResult < Aws::EmptyStructure; end
2360
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
+
2361
2481
  # Describes the user storage for a WorkSpace bundle.
2362
2482
  #
2363
2483
  # @!attribute [rw] capacity
@@ -2835,6 +2955,16 @@ module Aws::WorkSpaces
2835
2955
  # The text of the error message that is returned for the image.
2836
2956
  # @return [String]
2837
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
+ #
2838
2968
  # @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/WorkspaceImage AWS API Documentation
2839
2969
  #
2840
2970
  class WorkspaceImage < Struct.new(
@@ -2845,7 +2975,9 @@ module Aws::WorkSpaces
2845
2975
  :state,
2846
2976
  :required_tenancy,
2847
2977
  :error_code,
2848
- :error_message)
2978
+ :error_message,
2979
+ :created,
2980
+ :owner_account_id)
2849
2981
  SENSITIVE = []
2850
2982
  include Aws::Structure
2851
2983
  end
@@ -2878,11 +3010,23 @@ module Aws::WorkSpaces
2878
3010
  # @return [Integer]
2879
3011
  #
2880
3012
  # @!attribute [rw] root_volume_size_gib
2881
- # 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
2882
3020
  # @return [Integer]
2883
3021
  #
2884
3022
  # @!attribute [rw] user_volume_size_gib
2885
- # 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
2886
3030
  # @return [Integer]
2887
3031
  #
2888
3032
  # @!attribute [rw] compute_type_name
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-workspaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.40.0
4
+ version: 1.41.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Amazon Web Services
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-07-02 00:00:00.000000000 Z
11
+ date: 2020-07-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core