aws-sdk-workspaces 1.70.0 → 1.71.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/VERSION +1 -1
- data/lib/aws-sdk-workspaces/client.rb +62 -1
- data/lib/aws-sdk-workspaces/client_api.rb +33 -0
- data/lib/aws-sdk-workspaces/types.rb +115 -5
- data/lib/aws-sdk-workspaces.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 250a357bcddb89710d7544d0bf729d75a7da0d5f3bee68e0607ea7ea2e6f14a8
|
4
|
+
data.tar.gz: d99d78683667cfc5013683b507cab6d8074a7cf26c12d7098f039e3c9341a9db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b01fe5fe35b8b882bfadd8c67c2ee481b78e44284fcbe0e00cb689bfd9daf379eb9a509d955c978664fd25b7dc690113db6649b48288ee3092a58b45b478849
|
7
|
+
data.tar.gz: a519b09ce7aa758563fb065c4cce78a0175ae94205f11696307773627a3dee061ed5a53f2cf58e54af6bc6666a4e87a17cf98662edff010dc86f445382c003e9
|
data/CHANGELOG.md
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.71.0
|
@@ -881,6 +881,67 @@ module Aws::WorkSpaces
|
|
881
881
|
req.send_request(options)
|
882
882
|
end
|
883
883
|
|
884
|
+
# Creates a new WorkSpace image from an existing WorkSpace.
|
885
|
+
#
|
886
|
+
# @option params [required, String] :name
|
887
|
+
# The name of the new WorkSpace image.
|
888
|
+
#
|
889
|
+
# @option params [required, String] :description
|
890
|
+
# The description of the new WorkSpace image.
|
891
|
+
#
|
892
|
+
# @option params [required, String] :workspace_id
|
893
|
+
# The identifier of the source WorkSpace
|
894
|
+
#
|
895
|
+
# @option params [Array<Types::Tag>] :tags
|
896
|
+
# The tags that you want to add to the new WorkSpace image. To add tags
|
897
|
+
# when you're creating the image, you must create an IAM policy that
|
898
|
+
# grants your IAM user permission to use `workspaces:CreateTags`.
|
899
|
+
#
|
900
|
+
# @return [Types::CreateWorkspaceImageResult] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
901
|
+
#
|
902
|
+
# * {Types::CreateWorkspaceImageResult#image_id #image_id} => String
|
903
|
+
# * {Types::CreateWorkspaceImageResult#name #name} => String
|
904
|
+
# * {Types::CreateWorkspaceImageResult#description #description} => String
|
905
|
+
# * {Types::CreateWorkspaceImageResult#operating_system #operating_system} => Types::OperatingSystem
|
906
|
+
# * {Types::CreateWorkspaceImageResult#state #state} => String
|
907
|
+
# * {Types::CreateWorkspaceImageResult#required_tenancy #required_tenancy} => String
|
908
|
+
# * {Types::CreateWorkspaceImageResult#created #created} => Time
|
909
|
+
# * {Types::CreateWorkspaceImageResult#owner_account_id #owner_account_id} => String
|
910
|
+
#
|
911
|
+
# @example Request syntax with placeholder values
|
912
|
+
#
|
913
|
+
# resp = client.create_workspace_image({
|
914
|
+
# name: "WorkspaceImageName", # required
|
915
|
+
# description: "WorkspaceImageDescription", # required
|
916
|
+
# workspace_id: "WorkspaceId", # required
|
917
|
+
# tags: [
|
918
|
+
# {
|
919
|
+
# key: "TagKey", # required
|
920
|
+
# value: "TagValue",
|
921
|
+
# },
|
922
|
+
# ],
|
923
|
+
# })
|
924
|
+
#
|
925
|
+
# @example Response structure
|
926
|
+
#
|
927
|
+
# resp.image_id #=> String
|
928
|
+
# resp.name #=> String
|
929
|
+
# resp.description #=> String
|
930
|
+
# resp.operating_system.type #=> String, one of "WINDOWS", "LINUX"
|
931
|
+
# resp.state #=> String, one of "AVAILABLE", "PENDING", "ERROR"
|
932
|
+
# resp.required_tenancy #=> String, one of "DEFAULT", "DEDICATED"
|
933
|
+
# resp.created #=> Time
|
934
|
+
# resp.owner_account_id #=> String
|
935
|
+
#
|
936
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaceImage AWS API Documentation
|
937
|
+
#
|
938
|
+
# @overload create_workspace_image(params = {})
|
939
|
+
# @param [Hash] params ({})
|
940
|
+
def create_workspace_image(params = {}, options = {})
|
941
|
+
req = build_request(:create_workspace_image, params)
|
942
|
+
req.send_request(options)
|
943
|
+
end
|
944
|
+
|
884
945
|
# Creates one or more WorkSpaces.
|
885
946
|
#
|
886
947
|
# This operation is asynchronous and returns before the WorkSpaces are
|
@@ -3296,7 +3357,7 @@ module Aws::WorkSpaces
|
|
3296
3357
|
params: params,
|
3297
3358
|
config: config)
|
3298
3359
|
context[:gem_name] = 'aws-sdk-workspaces'
|
3299
|
-
context[:gem_version] = '1.
|
3360
|
+
context[:gem_version] = '1.71.0'
|
3300
3361
|
Seahorse::Client::Request.new(handlers, context)
|
3301
3362
|
end
|
3302
3363
|
|
@@ -77,6 +77,8 @@ module Aws::WorkSpaces
|
|
77
77
|
CreateUpdatedWorkspaceImageResult = Shapes::StructureShape.new(name: 'CreateUpdatedWorkspaceImageResult')
|
78
78
|
CreateWorkspaceBundleRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceBundleRequest')
|
79
79
|
CreateWorkspaceBundleResult = Shapes::StructureShape.new(name: 'CreateWorkspaceBundleResult')
|
80
|
+
CreateWorkspaceImageRequest = Shapes::StructureShape.new(name: 'CreateWorkspaceImageRequest')
|
81
|
+
CreateWorkspaceImageResult = Shapes::StructureShape.new(name: 'CreateWorkspaceImageResult')
|
80
82
|
CreateWorkspacesRequest = Shapes::StructureShape.new(name: 'CreateWorkspacesRequest')
|
81
83
|
CreateWorkspacesResult = Shapes::StructureShape.new(name: 'CreateWorkspacesResult')
|
82
84
|
DedicatedTenancyCidrRangeList = Shapes::ListShape.new(name: 'DedicatedTenancyCidrRangeList')
|
@@ -466,6 +468,22 @@ module Aws::WorkSpaces
|
|
466
468
|
CreateWorkspaceBundleResult.add_member(:workspace_bundle, Shapes::ShapeRef.new(shape: WorkspaceBundle, location_name: "WorkspaceBundle"))
|
467
469
|
CreateWorkspaceBundleResult.struct_class = Types::CreateWorkspaceBundleResult
|
468
470
|
|
471
|
+
CreateWorkspaceImageRequest.add_member(:name, Shapes::ShapeRef.new(shape: WorkspaceImageName, required: true, location_name: "Name"))
|
472
|
+
CreateWorkspaceImageRequest.add_member(:description, Shapes::ShapeRef.new(shape: WorkspaceImageDescription, required: true, location_name: "Description"))
|
473
|
+
CreateWorkspaceImageRequest.add_member(:workspace_id, Shapes::ShapeRef.new(shape: WorkspaceId, required: true, location_name: "WorkspaceId"))
|
474
|
+
CreateWorkspaceImageRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
|
475
|
+
CreateWorkspaceImageRequest.struct_class = Types::CreateWorkspaceImageRequest
|
476
|
+
|
477
|
+
CreateWorkspaceImageResult.add_member(:image_id, Shapes::ShapeRef.new(shape: WorkspaceImageId, location_name: "ImageId"))
|
478
|
+
CreateWorkspaceImageResult.add_member(:name, Shapes::ShapeRef.new(shape: WorkspaceImageName, location_name: "Name"))
|
479
|
+
CreateWorkspaceImageResult.add_member(:description, Shapes::ShapeRef.new(shape: WorkspaceImageDescription, location_name: "Description"))
|
480
|
+
CreateWorkspaceImageResult.add_member(:operating_system, Shapes::ShapeRef.new(shape: OperatingSystem, location_name: "OperatingSystem"))
|
481
|
+
CreateWorkspaceImageResult.add_member(:state, Shapes::ShapeRef.new(shape: WorkspaceImageState, location_name: "State"))
|
482
|
+
CreateWorkspaceImageResult.add_member(:required_tenancy, Shapes::ShapeRef.new(shape: WorkspaceImageRequiredTenancy, location_name: "RequiredTenancy"))
|
483
|
+
CreateWorkspaceImageResult.add_member(:created, Shapes::ShapeRef.new(shape: Timestamp, location_name: "Created"))
|
484
|
+
CreateWorkspaceImageResult.add_member(:owner_account_id, Shapes::ShapeRef.new(shape: AwsAccount, location_name: "OwnerAccountId"))
|
485
|
+
CreateWorkspaceImageResult.struct_class = Types::CreateWorkspaceImageResult
|
486
|
+
|
469
487
|
CreateWorkspacesRequest.add_member(:workspaces, Shapes::ShapeRef.new(shape: WorkspaceRequestList, required: true, location_name: "Workspaces"))
|
470
488
|
CreateWorkspacesRequest.struct_class = Types::CreateWorkspacesRequest
|
471
489
|
|
@@ -1310,6 +1328,21 @@ module Aws::WorkSpaces
|
|
1310
1328
|
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1311
1329
|
end)
|
1312
1330
|
|
1331
|
+
api.add_operation(:create_workspace_image, Seahorse::Model::Operation.new.tap do |o|
|
1332
|
+
o.name = "CreateWorkspaceImage"
|
1333
|
+
o.http_method = "POST"
|
1334
|
+
o.http_request_uri = "/"
|
1335
|
+
o.input = Shapes::ShapeRef.new(shape: CreateWorkspaceImageRequest)
|
1336
|
+
o.output = Shapes::ShapeRef.new(shape: CreateWorkspaceImageResult)
|
1337
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceLimitExceededException)
|
1338
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceAlreadyExistsException)
|
1339
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
1340
|
+
o.errors << Shapes::ShapeRef.new(shape: OperationNotSupportedException)
|
1341
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidResourceStateException)
|
1342
|
+
o.errors << Shapes::ShapeRef.new(shape: AccessDeniedException)
|
1343
|
+
o.errors << Shapes::ShapeRef.new(shape: InvalidParameterValuesException)
|
1344
|
+
end)
|
1345
|
+
|
1313
1346
|
api.add_operation(:create_workspaces, Seahorse::Model::Operation.new.tap do |o|
|
1314
1347
|
o.name = "CreateWorkspaces"
|
1315
1348
|
o.http_method = "POST"
|
@@ -770,6 +770,104 @@ module Aws::WorkSpaces
|
|
770
770
|
include Aws::Structure
|
771
771
|
end
|
772
772
|
|
773
|
+
# @note When making an API call, you may pass CreateWorkspaceImageRequest
|
774
|
+
# data as a hash:
|
775
|
+
#
|
776
|
+
# {
|
777
|
+
# name: "WorkspaceImageName", # required
|
778
|
+
# description: "WorkspaceImageDescription", # required
|
779
|
+
# workspace_id: "WorkspaceId", # required
|
780
|
+
# tags: [
|
781
|
+
# {
|
782
|
+
# key: "TagKey", # required
|
783
|
+
# value: "TagValue",
|
784
|
+
# },
|
785
|
+
# ],
|
786
|
+
# }
|
787
|
+
#
|
788
|
+
# @!attribute [rw] name
|
789
|
+
# The name of the new WorkSpace image.
|
790
|
+
# @return [String]
|
791
|
+
#
|
792
|
+
# @!attribute [rw] description
|
793
|
+
# The description of the new WorkSpace image.
|
794
|
+
# @return [String]
|
795
|
+
#
|
796
|
+
# @!attribute [rw] workspace_id
|
797
|
+
# The identifier of the source WorkSpace
|
798
|
+
# @return [String]
|
799
|
+
#
|
800
|
+
# @!attribute [rw] tags
|
801
|
+
# The tags that you want to add to the new WorkSpace image. To add
|
802
|
+
# tags when you're creating the image, you must create an IAM policy
|
803
|
+
# that grants your IAM user permission to use `workspaces:CreateTags`.
|
804
|
+
# @return [Array<Types::Tag>]
|
805
|
+
#
|
806
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaceImageRequest AWS API Documentation
|
807
|
+
#
|
808
|
+
class CreateWorkspaceImageRequest < Struct.new(
|
809
|
+
:name,
|
810
|
+
:description,
|
811
|
+
:workspace_id,
|
812
|
+
:tags)
|
813
|
+
SENSITIVE = []
|
814
|
+
include Aws::Structure
|
815
|
+
end
|
816
|
+
|
817
|
+
# @!attribute [rw] image_id
|
818
|
+
# The identifier of the new WorkSpace image.
|
819
|
+
# @return [String]
|
820
|
+
#
|
821
|
+
# @!attribute [rw] name
|
822
|
+
# The name of the image.
|
823
|
+
# @return [String]
|
824
|
+
#
|
825
|
+
# @!attribute [rw] description
|
826
|
+
# The description of the image.
|
827
|
+
# @return [String]
|
828
|
+
#
|
829
|
+
# @!attribute [rw] operating_system
|
830
|
+
# The operating system that the image is running.
|
831
|
+
# @return [Types::OperatingSystem]
|
832
|
+
#
|
833
|
+
# @!attribute [rw] state
|
834
|
+
# The availability status of the image.
|
835
|
+
# @return [String]
|
836
|
+
#
|
837
|
+
# @!attribute [rw] required_tenancy
|
838
|
+
# Specifies whether the image is running on dedicated hardware. When
|
839
|
+
# Bring Your Own License (BYOL) is enabled, this value is set to
|
840
|
+
# DEDICATED. For more information, see [ Bring Your Own Windows
|
841
|
+
# Desktop Images.][1]
|
842
|
+
#
|
843
|
+
#
|
844
|
+
#
|
845
|
+
# [1]: https://docs.aws.amazon.com/workspaces/latest/adminguide/byol-windows-images.htm
|
846
|
+
# @return [String]
|
847
|
+
#
|
848
|
+
# @!attribute [rw] created
|
849
|
+
# The date when the image was created.
|
850
|
+
# @return [Time]
|
851
|
+
#
|
852
|
+
# @!attribute [rw] owner_account_id
|
853
|
+
# The identifier of the AWS account that owns the image.
|
854
|
+
# @return [String]
|
855
|
+
#
|
856
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/CreateWorkspaceImageResult AWS API Documentation
|
857
|
+
#
|
858
|
+
class CreateWorkspaceImageResult < Struct.new(
|
859
|
+
:image_id,
|
860
|
+
:name,
|
861
|
+
:description,
|
862
|
+
:operating_system,
|
863
|
+
:state,
|
864
|
+
:required_tenancy,
|
865
|
+
:created,
|
866
|
+
:owner_account_id)
|
867
|
+
SENSITIVE = []
|
868
|
+
include Aws::Structure
|
869
|
+
end
|
870
|
+
|
773
871
|
# @note When making an API call, you may pass CreateWorkspacesRequest
|
774
872
|
# data as a hash:
|
775
873
|
#
|
@@ -840,7 +938,7 @@ module Aws::WorkSpaces
|
|
840
938
|
# include sensitive information.
|
841
939
|
#
|
842
940
|
# @!attribute [rw] logo_url
|
843
|
-
# The logo
|
941
|
+
# The logo. The only image format accepted is a binary data object
|
844
942
|
# that is converted from a `.png` file.
|
845
943
|
# @return [String]
|
846
944
|
#
|
@@ -877,7 +975,10 @@ module Aws::WorkSpaces
|
|
877
975
|
# @!attribute [rw] login_message
|
878
976
|
# The login message. Specified as a key value pair, in which the key
|
879
977
|
# is a locale and the value is the localized message for that locale.
|
880
|
-
# The only key supported is `en_US`.
|
978
|
+
# The only key supported is `en_US`. The HTML tags supported include
|
979
|
+
# the following: `a, b, blockquote, br, cite, code, dd, dl, dt, div,
|
980
|
+
# em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u,
|
981
|
+
# ul`.
|
881
982
|
# @return [Hash<String,String>]
|
882
983
|
#
|
883
984
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DefaultClientBrandingAttributes AWS API Documentation
|
@@ -949,7 +1050,10 @@ module Aws::WorkSpaces
|
|
949
1050
|
# @!attribute [rw] login_message
|
950
1051
|
# The login message. Specified as a key value pair, in which the key
|
951
1052
|
# is a locale and the value is the localized message for that locale.
|
952
|
-
# The only key supported is `en_US`.
|
1053
|
+
# The only key supported is `en_US`. The HTML tags supported include
|
1054
|
+
# the following: `a, b, blockquote, br, cite, code, dd, dl, dt, div,
|
1055
|
+
# em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u,
|
1056
|
+
# ul`.
|
953
1057
|
# @return [Hash<String,String>]
|
954
1058
|
#
|
955
1059
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/DefaultImportClientBrandingAttributes AWS API Documentation
|
@@ -2490,7 +2594,10 @@ module Aws::WorkSpaces
|
|
2490
2594
|
# @!attribute [rw] login_message
|
2491
2595
|
# The login message. Specified as a key value pair, in which the key
|
2492
2596
|
# is a locale and the value is the localized message for that locale.
|
2493
|
-
# The only key supported is `en_US`.
|
2597
|
+
# The only key supported is `en_US`. The HTML tags supported include
|
2598
|
+
# the following: `a, b, blockquote, br, cite, code, dd, dl, dt, div,
|
2599
|
+
# em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u,
|
2600
|
+
# ul`.
|
2494
2601
|
# @return [Hash<String,String>]
|
2495
2602
|
#
|
2496
2603
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/IosClientBrandingAttributes AWS API Documentation
|
@@ -2600,7 +2707,10 @@ module Aws::WorkSpaces
|
|
2600
2707
|
# @!attribute [rw] login_message
|
2601
2708
|
# The login message. Specified as a key value pair, in which the key
|
2602
2709
|
# is a locale and the value is the localized message for that locale.
|
2603
|
-
# The only key supported is `en_US`.
|
2710
|
+
# The only key supported is `en_US`. The HTML tags supported include
|
2711
|
+
# the following: `a, b, blockquote, br, cite, code, dd, dl, dt, div,
|
2712
|
+
# em, i, li, ol, p, pre, q, small, span, strike, strong, sub, sup, u,
|
2713
|
+
# ul`.
|
2604
2714
|
# @return [Hash<String,String>]
|
2605
2715
|
#
|
2606
2716
|
# @see http://docs.aws.amazon.com/goto/WebAPI/workspaces-2015-04-08/IosImportClientBrandingAttributes AWS API Documentation
|
data/lib/aws-sdk-workspaces.rb
CHANGED
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.
|
4
|
+
version: 1.71.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: 2022-07-
|
11
|
+
date: 2022-07-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|