aws-sdk-appstream 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/aws-sdk-appstream.rb +1 -1
- data/lib/aws-sdk-appstream/client.rb +121 -1
- data/lib/aws-sdk-appstream/client_api.rb +61 -0
- data/lib/aws-sdk-appstream/types.rb +91 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5c004206ec0f841691513774218fd89ae06d4b64
|
4
|
+
data.tar.gz: 380bb1a790ce57bc69775ae23695026c62034b34
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d7c796fb32cf337d826057c70002a35dd18eb30db621db2a1f53c847430684a8111a0bc8bc9baa2106fc99b8639a2f34505b239cfc4c70936ce6f836c139751a
|
7
|
+
data.tar.gz: 0c9b8ad77f89b8a1e20359c58489ce3fe14bf4ee720f631cddd7cfe351f3dc8a4490b368131876ef0dfcaf2736965b8358faa06f5547237f53071af616a8be45
|
data/lib/aws-sdk-appstream.rb
CHANGED
@@ -1249,6 +1249,43 @@ module Aws::AppStream
|
|
1249
1249
|
req.send_request(options)
|
1250
1250
|
end
|
1251
1251
|
|
1252
|
+
# Lists the tags for the specified AppStream 2.0 resource. You can tag
|
1253
|
+
# AppStream 2.0 image builders, images, fleets, and stacks.
|
1254
|
+
#
|
1255
|
+
# For more information about tags, see [Tagging Your Resources][1] in
|
1256
|
+
# the *Amazon AppStream 2.0 Developer Guide*.
|
1257
|
+
#
|
1258
|
+
#
|
1259
|
+
#
|
1260
|
+
# [1]: http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic
|
1261
|
+
#
|
1262
|
+
# @option params [required, String] :resource_arn
|
1263
|
+
# The Amazon Resource Name (ARN) of the resource.
|
1264
|
+
#
|
1265
|
+
# @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
|
1266
|
+
#
|
1267
|
+
# * {Types::ListTagsForResourceResponse#tags #tags} => Hash<String,String>
|
1268
|
+
#
|
1269
|
+
# @example Request syntax with placeholder values
|
1270
|
+
#
|
1271
|
+
# resp = client.list_tags_for_resource({
|
1272
|
+
# resource_arn: "Arn", # required
|
1273
|
+
# })
|
1274
|
+
#
|
1275
|
+
# @example Response structure
|
1276
|
+
#
|
1277
|
+
# resp.tags #=> Hash
|
1278
|
+
# resp.tags["TagKey"] #=> String
|
1279
|
+
#
|
1280
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResource AWS API Documentation
|
1281
|
+
#
|
1282
|
+
# @overload list_tags_for_resource(params = {})
|
1283
|
+
# @param [Hash] params ({})
|
1284
|
+
def list_tags_for_resource(params = {}, options = {})
|
1285
|
+
req = build_request(:list_tags_for_resource, params)
|
1286
|
+
req.send_request(options)
|
1287
|
+
end
|
1288
|
+
|
1252
1289
|
# Starts the specified fleet.
|
1253
1290
|
#
|
1254
1291
|
# @option params [required, String] :name
|
@@ -1399,6 +1436,89 @@ module Aws::AppStream
|
|
1399
1436
|
req.send_request(options)
|
1400
1437
|
end
|
1401
1438
|
|
1439
|
+
# Adds or overwrites one or more tags for the specified AppStream 2.0
|
1440
|
+
# resource. You can tag AppStream 2.0 image builders, images, fleets,
|
1441
|
+
# and stacks.
|
1442
|
+
#
|
1443
|
+
# Each tag consists of a key and an optional value. If a resource
|
1444
|
+
# already has a tag with the same key, this operation updates its value.
|
1445
|
+
#
|
1446
|
+
# To list the current tags for your resources, use ListTagsForResource.
|
1447
|
+
# To disassociate tags from your resources, use UntagResource.
|
1448
|
+
#
|
1449
|
+
# For more information about tags, see [Tagging Your Resources][1] in
|
1450
|
+
# the *Amazon AppStream 2.0 Developer Guide*.
|
1451
|
+
#
|
1452
|
+
#
|
1453
|
+
#
|
1454
|
+
# [1]: http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic
|
1455
|
+
#
|
1456
|
+
# @option params [required, String] :resource_arn
|
1457
|
+
# The Amazon Resource Name (ARN) of the resource.
|
1458
|
+
#
|
1459
|
+
# @option params [required, Hash<String,String>] :tags
|
1460
|
+
# The tags to associate. A tag is a key-value pair (the value is
|
1461
|
+
# optional). For example, `Environment=Test`, or, if you do not specify
|
1462
|
+
# a value, `Environment=`.
|
1463
|
+
#
|
1464
|
+
# If you do not specify a value, we set the value to an empty string.
|
1465
|
+
#
|
1466
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1467
|
+
#
|
1468
|
+
# @example Request syntax with placeholder values
|
1469
|
+
#
|
1470
|
+
# resp = client.tag_resource({
|
1471
|
+
# resource_arn: "Arn", # required
|
1472
|
+
# tags: { # required
|
1473
|
+
# "TagKey" => "TagValue",
|
1474
|
+
# },
|
1475
|
+
# })
|
1476
|
+
#
|
1477
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResource AWS API Documentation
|
1478
|
+
#
|
1479
|
+
# @overload tag_resource(params = {})
|
1480
|
+
# @param [Hash] params ({})
|
1481
|
+
def tag_resource(params = {}, options = {})
|
1482
|
+
req = build_request(:tag_resource, params)
|
1483
|
+
req.send_request(options)
|
1484
|
+
end
|
1485
|
+
|
1486
|
+
# Disassociates the specified tags from the specified AppStream 2.0
|
1487
|
+
# resource.
|
1488
|
+
#
|
1489
|
+
# To list the current tags for your resources, use ListTagsForResource.
|
1490
|
+
#
|
1491
|
+
# For more information about tags, see [Tagging Your Resources][1] in
|
1492
|
+
# the *Amazon AppStream 2.0 Developer Guide*.
|
1493
|
+
#
|
1494
|
+
#
|
1495
|
+
#
|
1496
|
+
# [1]: http://docs.aws.amazon.com/appstream2/latest/developerguide/tagging-basic
|
1497
|
+
#
|
1498
|
+
# @option params [required, String] :resource_arn
|
1499
|
+
# The Amazon Resource Name (ARN) of the resource.
|
1500
|
+
#
|
1501
|
+
# @option params [required, Array<String>] :tag_keys
|
1502
|
+
# The tag keys for the tags to disassociate.
|
1503
|
+
#
|
1504
|
+
# @return [Struct] Returns an empty {Seahorse::Client::Response response}.
|
1505
|
+
#
|
1506
|
+
# @example Request syntax with placeholder values
|
1507
|
+
#
|
1508
|
+
# resp = client.untag_resource({
|
1509
|
+
# resource_arn: "Arn", # required
|
1510
|
+
# tag_keys: ["TagKey"], # required
|
1511
|
+
# })
|
1512
|
+
#
|
1513
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResource AWS API Documentation
|
1514
|
+
#
|
1515
|
+
# @overload untag_resource(params = {})
|
1516
|
+
# @param [Hash] params ({})
|
1517
|
+
def untag_resource(params = {}, options = {})
|
1518
|
+
req = build_request(:untag_resource, params)
|
1519
|
+
req.send_request(options)
|
1520
|
+
end
|
1521
|
+
|
1402
1522
|
# Updates the specified directory configuration.
|
1403
1523
|
#
|
1404
1524
|
# @option params [required, String] :directory_name
|
@@ -1675,7 +1795,7 @@ module Aws::AppStream
|
|
1675
1795
|
params: params,
|
1676
1796
|
config: config)
|
1677
1797
|
context[:gem_name] = 'aws-sdk-appstream'
|
1678
|
-
context[:gem_version] = '1.
|
1798
|
+
context[:gem_version] = '1.4.0'
|
1679
1799
|
Seahorse::Client::Request.new(handlers, context)
|
1680
1800
|
end
|
1681
1801
|
|
@@ -99,6 +99,8 @@ module Aws::AppStream
|
|
99
99
|
ListAssociatedFleetsResult = Shapes::StructureShape.new(name: 'ListAssociatedFleetsResult')
|
100
100
|
ListAssociatedStacksRequest = Shapes::StructureShape.new(name: 'ListAssociatedStacksRequest')
|
101
101
|
ListAssociatedStacksResult = Shapes::StructureShape.new(name: 'ListAssociatedStacksResult')
|
102
|
+
ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
|
103
|
+
ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
|
102
104
|
Long = Shapes::IntegerShape.new(name: 'Long')
|
103
105
|
Metadata = Shapes::MapShape.new(name: 'Metadata')
|
104
106
|
Name = Shapes::StringShape.new(name: 'Name')
|
@@ -138,7 +140,15 @@ module Aws::AppStream
|
|
138
140
|
String = Shapes::StringShape.new(name: 'String')
|
139
141
|
StringList = Shapes::ListShape.new(name: 'StringList')
|
140
142
|
SubnetIdList = Shapes::ListShape.new(name: 'SubnetIdList')
|
143
|
+
TagKey = Shapes::StringShape.new(name: 'TagKey')
|
144
|
+
TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
|
145
|
+
TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
|
146
|
+
TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
|
147
|
+
TagValue = Shapes::StringShape.new(name: 'TagValue')
|
148
|
+
Tags = Shapes::MapShape.new(name: 'Tags')
|
141
149
|
Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
|
150
|
+
UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
|
151
|
+
UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
|
142
152
|
UpdateDirectoryConfigRequest = Shapes::StructureShape.new(name: 'UpdateDirectoryConfigRequest')
|
143
153
|
UpdateDirectoryConfigResult = Shapes::StructureShape.new(name: 'UpdateDirectoryConfigResult')
|
144
154
|
UpdateFleetRequest = Shapes::StructureShape.new(name: 'UpdateFleetRequest')
|
@@ -436,6 +446,12 @@ module Aws::AppStream
|
|
436
446
|
ListAssociatedStacksResult.add_member(:next_token, Shapes::ShapeRef.new(shape: String, location_name: "NextToken"))
|
437
447
|
ListAssociatedStacksResult.struct_class = Types::ListAssociatedStacksResult
|
438
448
|
|
449
|
+
ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
|
450
|
+
ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
|
451
|
+
|
452
|
+
ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, location_name: "Tags"))
|
453
|
+
ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
|
454
|
+
|
439
455
|
Metadata.key = Shapes::ShapeRef.new(shape: String)
|
440
456
|
Metadata.value = Shapes::ShapeRef.new(shape: String)
|
441
457
|
|
@@ -514,6 +530,23 @@ module Aws::AppStream
|
|
514
530
|
|
515
531
|
SubnetIdList.member = Shapes::ShapeRef.new(shape: String)
|
516
532
|
|
533
|
+
TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
|
534
|
+
|
535
|
+
TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
|
536
|
+
TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: Tags, required: true, location_name: "Tags"))
|
537
|
+
TagResourceRequest.struct_class = Types::TagResourceRequest
|
538
|
+
|
539
|
+
TagResourceResponse.struct_class = Types::TagResourceResponse
|
540
|
+
|
541
|
+
Tags.key = Shapes::ShapeRef.new(shape: TagKey)
|
542
|
+
Tags.value = Shapes::ShapeRef.new(shape: TagValue)
|
543
|
+
|
544
|
+
UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: Arn, required: true, location_name: "ResourceArn"))
|
545
|
+
UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
|
546
|
+
UntagResourceRequest.struct_class = Types::UntagResourceRequest
|
547
|
+
|
548
|
+
UntagResourceResponse.struct_class = Types::UntagResourceResponse
|
549
|
+
|
517
550
|
UpdateDirectoryConfigRequest.add_member(:directory_name, Shapes::ShapeRef.new(shape: DirectoryName, required: true, location_name: "DirectoryName"))
|
518
551
|
UpdateDirectoryConfigRequest.add_member(:organizational_unit_distinguished_names, Shapes::ShapeRef.new(shape: OrganizationalUnitDistinguishedNamesList, location_name: "OrganizationalUnitDistinguishedNames"))
|
519
552
|
UpdateDirectoryConfigRequest.add_member(:service_account_credentials, Shapes::ShapeRef.new(shape: ServiceAccountCredentials, location_name: "ServiceAccountCredentials"))
|
@@ -805,6 +838,15 @@ module Aws::AppStream
|
|
805
838
|
o.output = Shapes::ShapeRef.new(shape: ListAssociatedStacksResult)
|
806
839
|
end)
|
807
840
|
|
841
|
+
api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
|
842
|
+
o.name = "ListTagsForResource"
|
843
|
+
o.http_method = "POST"
|
844
|
+
o.http_request_uri = "/"
|
845
|
+
o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
|
846
|
+
o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
|
847
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
848
|
+
end)
|
849
|
+
|
808
850
|
api.add_operation(:start_fleet, Seahorse::Model::Operation.new.tap do |o|
|
809
851
|
o.name = "StartFleet"
|
810
852
|
o.http_method = "POST"
|
@@ -850,6 +892,25 @@ module Aws::AppStream
|
|
850
892
|
o.errors << Shapes::ShapeRef.new(shape: ConcurrentModificationException)
|
851
893
|
end)
|
852
894
|
|
895
|
+
api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
|
896
|
+
o.name = "TagResource"
|
897
|
+
o.http_method = "POST"
|
898
|
+
o.http_request_uri = "/"
|
899
|
+
o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
|
900
|
+
o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
|
901
|
+
o.errors << Shapes::ShapeRef.new(shape: LimitExceededException)
|
902
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
903
|
+
end)
|
904
|
+
|
905
|
+
api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
|
906
|
+
o.name = "UntagResource"
|
907
|
+
o.http_method = "POST"
|
908
|
+
o.http_request_uri = "/"
|
909
|
+
o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
|
910
|
+
o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
|
911
|
+
o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
|
912
|
+
end)
|
913
|
+
|
853
914
|
api.add_operation(:update_directory_config, Seahorse::Model::Operation.new.tap do |o|
|
854
915
|
o.name = "UpdateDirectoryConfig"
|
855
916
|
o.http_method = "POST"
|
@@ -1513,6 +1513,35 @@ module Aws::AppStream
|
|
1513
1513
|
include Aws::Structure
|
1514
1514
|
end
|
1515
1515
|
|
1516
|
+
# @note When making an API call, you may pass ListTagsForResourceRequest
|
1517
|
+
# data as a hash:
|
1518
|
+
#
|
1519
|
+
# {
|
1520
|
+
# resource_arn: "Arn", # required
|
1521
|
+
# }
|
1522
|
+
#
|
1523
|
+
# @!attribute [rw] resource_arn
|
1524
|
+
# The Amazon Resource Name (ARN) of the resource.
|
1525
|
+
# @return [String]
|
1526
|
+
#
|
1527
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResourceRequest AWS API Documentation
|
1528
|
+
#
|
1529
|
+
class ListTagsForResourceRequest < Struct.new(
|
1530
|
+
:resource_arn)
|
1531
|
+
include Aws::Structure
|
1532
|
+
end
|
1533
|
+
|
1534
|
+
# @!attribute [rw] tags
|
1535
|
+
# The information about the tags.
|
1536
|
+
# @return [Hash<String,String>]
|
1537
|
+
#
|
1538
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/ListTagsForResourceResponse AWS API Documentation
|
1539
|
+
#
|
1540
|
+
class ListTagsForResourceResponse < Struct.new(
|
1541
|
+
:tags)
|
1542
|
+
include Aws::Structure
|
1543
|
+
end
|
1544
|
+
|
1516
1545
|
# Describes a resource error.
|
1517
1546
|
#
|
1518
1547
|
# @!attribute [rw] error_code
|
@@ -1802,6 +1831,68 @@ module Aws::AppStream
|
|
1802
1831
|
include Aws::Structure
|
1803
1832
|
end
|
1804
1833
|
|
1834
|
+
# @note When making an API call, you may pass TagResourceRequest
|
1835
|
+
# data as a hash:
|
1836
|
+
#
|
1837
|
+
# {
|
1838
|
+
# resource_arn: "Arn", # required
|
1839
|
+
# tags: { # required
|
1840
|
+
# "TagKey" => "TagValue",
|
1841
|
+
# },
|
1842
|
+
# }
|
1843
|
+
#
|
1844
|
+
# @!attribute [rw] resource_arn
|
1845
|
+
# The Amazon Resource Name (ARN) of the resource.
|
1846
|
+
# @return [String]
|
1847
|
+
#
|
1848
|
+
# @!attribute [rw] tags
|
1849
|
+
# The tags to associate. A tag is a key-value pair (the value is
|
1850
|
+
# optional). For example, `Environment=Test`, or, if you do not
|
1851
|
+
# specify a value, `Environment=`.
|
1852
|
+
#
|
1853
|
+
# If you do not specify a value, we set the value to an empty string.
|
1854
|
+
# @return [Hash<String,String>]
|
1855
|
+
#
|
1856
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResourceRequest AWS API Documentation
|
1857
|
+
#
|
1858
|
+
class TagResourceRequest < Struct.new(
|
1859
|
+
:resource_arn,
|
1860
|
+
:tags)
|
1861
|
+
include Aws::Structure
|
1862
|
+
end
|
1863
|
+
|
1864
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/TagResourceResponse AWS API Documentation
|
1865
|
+
#
|
1866
|
+
class TagResourceResponse < Aws::EmptyStructure; end
|
1867
|
+
|
1868
|
+
# @note When making an API call, you may pass UntagResourceRequest
|
1869
|
+
# data as a hash:
|
1870
|
+
#
|
1871
|
+
# {
|
1872
|
+
# resource_arn: "Arn", # required
|
1873
|
+
# tag_keys: ["TagKey"], # required
|
1874
|
+
# }
|
1875
|
+
#
|
1876
|
+
# @!attribute [rw] resource_arn
|
1877
|
+
# The Amazon Resource Name (ARN) of the resource.
|
1878
|
+
# @return [String]
|
1879
|
+
#
|
1880
|
+
# @!attribute [rw] tag_keys
|
1881
|
+
# The tag keys for the tags to disassociate.
|
1882
|
+
# @return [Array<String>]
|
1883
|
+
#
|
1884
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResourceRequest AWS API Documentation
|
1885
|
+
#
|
1886
|
+
class UntagResourceRequest < Struct.new(
|
1887
|
+
:resource_arn,
|
1888
|
+
:tag_keys)
|
1889
|
+
include Aws::Structure
|
1890
|
+
end
|
1891
|
+
|
1892
|
+
# @see http://docs.aws.amazon.com/goto/WebAPI/appstream-2016-12-01/UntagResourceResponse AWS API Documentation
|
1893
|
+
#
|
1894
|
+
class UntagResourceResponse < Aws::EmptyStructure; end
|
1895
|
+
|
1805
1896
|
# @note When making an API call, you may pass UpdateDirectoryConfigRequest
|
1806
1897
|
# data as a hash:
|
1807
1898
|
#
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aws-sdk-appstream
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.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: 2017-12-
|
11
|
+
date: 2017-12-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-core
|