aws-sdk-cloud9 1.19.0 → 1.20.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
  SHA1:
3
- metadata.gz: ff3d58e35d7c9cc43c0922dc13272a53a7e88669
4
- data.tar.gz: 2020b6fcfba7f800028fca4adb08c5e661ea8740
3
+ metadata.gz: 1e79540a4ddb328a6dfb4088cbfe60a66c69dbe1
4
+ data.tar.gz: c3d386d2602fa7f6eed714d3cf86920cb51b60a2
5
5
  SHA512:
6
- metadata.gz: 02d5312a6a50bd0638491e8fd119ce4f46559cb38e91fbce2c39454040a9fe1f2bbd73dc16109d06632457f416f53ab668fea274bf2d8a5c62d6dc448b677a23
7
- data.tar.gz: fae17931b59e04860c24a778ac5d0d8cc2ca7842ca5d274485064bdfb48ff403c83f25e2807a653b665947b581839a9c438442ea0614c37c2a7ae27ac17d3bbc
6
+ metadata.gz: 2d5e1ce21e8add0378102e98a709789e7ede0043a697a01da6891b382c25b6248eb891277cb38a98b3fd5a7aeb6cbf8c6ad5e692ad58af8e75c1bb2f5d986640
7
+ data.tar.gz: 843362789d8227e5342490e27eb7e4f5fbccd849bb1880de9e878867b3fa7975b2dc5b8f0887d80dbaa408183a5da70a234ee7ae439de04005e9222fe6f1db16
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-cloud9/customizations'
42
42
  # @service
43
43
  module Aws::Cloud9
44
44
 
45
- GEM_VERSION = '1.19.0'
45
+ GEM_VERSION = '1.20.0'
46
46
 
47
47
  end
@@ -304,6 +304,10 @@ module Aws::Cloud9
304
304
  # be the ARN of any AWS IAM principal. If this value is not specified,
305
305
  # the ARN defaults to this environment's creator.
306
306
  #
307
+ # @option params [Array<Types::Tag>] :tags
308
+ # An array of key-value pairs that will be associated with the new AWS
309
+ # Cloud9 development environment.
310
+ #
307
311
  # @return [Types::CreateEnvironmentEC2Result] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
308
312
  #
309
313
  # * {Types::CreateEnvironmentEC2Result#environment_id #environment_id} => String
@@ -335,6 +339,12 @@ module Aws::Cloud9
335
339
  # subnet_id: "SubnetId",
336
340
  # automatic_stop_time_minutes: 1,
337
341
  # owner_arn: "UserArn",
342
+ # tags: [
343
+ # {
344
+ # key: "TagKey", # required
345
+ # value: "TagValue", # required
346
+ # },
347
+ # ],
338
348
  # })
339
349
  #
340
350
  # @example Response structure
@@ -813,6 +823,102 @@ module Aws::Cloud9
813
823
  req.send_request(options)
814
824
  end
815
825
 
826
+ # Gets a list of the tags associated with an AWS Cloud9 development
827
+ # environment.
828
+ #
829
+ # @option params [required, String] :resource_arn
830
+ # The Amazon Resource Name (ARN) of the AWS Cloud9 development
831
+ # environment to get the tags for.
832
+ #
833
+ # @return [Types::ListTagsForResourceResponse] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
834
+ #
835
+ # * {Types::ListTagsForResourceResponse#tags #tags} => Array&lt;Types::Tag&gt;
836
+ #
837
+ # @example Request syntax with placeholder values
838
+ #
839
+ # resp = client.list_tags_for_resource({
840
+ # resource_arn: "EnvironmentArn", # required
841
+ # })
842
+ #
843
+ # @example Response structure
844
+ #
845
+ # resp.tags #=> Array
846
+ # resp.tags[0].key #=> String
847
+ # resp.tags[0].value #=> String
848
+ #
849
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/ListTagsForResource AWS API Documentation
850
+ #
851
+ # @overload list_tags_for_resource(params = {})
852
+ # @param [Hash] params ({})
853
+ def list_tags_for_resource(params = {}, options = {})
854
+ req = build_request(:list_tags_for_resource, params)
855
+ req.send_request(options)
856
+ end
857
+
858
+ # Adds tags to an AWS Cloud9 development environment.
859
+ #
860
+ # Tags that you add to an AWS Cloud9 environment by using this method
861
+ # will NOT be automatically propagated to underlying resources.
862
+ #
863
+ # @option params [required, String] :resource_arn
864
+ # The Amazon Resource Name (ARN) of the AWS Cloud9 development
865
+ # environment to add tags to.
866
+ #
867
+ # @option params [required, Array<Types::Tag>] :tags
868
+ # The list of tags to add to the given AWS Cloud9 development
869
+ # environment.
870
+ #
871
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
872
+ #
873
+ # @example Request syntax with placeholder values
874
+ #
875
+ # resp = client.tag_resource({
876
+ # resource_arn: "EnvironmentArn", # required
877
+ # tags: [ # required
878
+ # {
879
+ # key: "TagKey", # required
880
+ # value: "TagValue", # required
881
+ # },
882
+ # ],
883
+ # })
884
+ #
885
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/TagResource AWS API Documentation
886
+ #
887
+ # @overload tag_resource(params = {})
888
+ # @param [Hash] params ({})
889
+ def tag_resource(params = {}, options = {})
890
+ req = build_request(:tag_resource, params)
891
+ req.send_request(options)
892
+ end
893
+
894
+ # Removes tags from an AWS Cloud9 development environment.
895
+ #
896
+ # @option params [required, String] :resource_arn
897
+ # The Amazon Resource Name (ARN) of the AWS Cloud9 development
898
+ # environment to remove tags from.
899
+ #
900
+ # @option params [required, Array<String>] :tag_keys
901
+ # The tag names of the tags to remove from the given AWS Cloud9
902
+ # development environment.
903
+ #
904
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
905
+ #
906
+ # @example Request syntax with placeholder values
907
+ #
908
+ # resp = client.untag_resource({
909
+ # resource_arn: "EnvironmentArn", # required
910
+ # tag_keys: ["TagKey"], # required
911
+ # })
912
+ #
913
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/UntagResource AWS API Documentation
914
+ #
915
+ # @overload untag_resource(params = {})
916
+ # @param [Hash] params ({})
917
+ def untag_resource(params = {}, options = {})
918
+ req = build_request(:untag_resource, params)
919
+ req.send_request(options)
920
+ end
921
+
816
922
  # Changes the settings of an existing AWS Cloud9 development
817
923
  # environment.
818
924
  #
@@ -937,7 +1043,7 @@ module Aws::Cloud9
937
1043
  params: params,
938
1044
  config: config)
939
1045
  context[:gem_name] = 'aws-sdk-cloud9'
940
- context[:gem_version] = '1.19.0'
1046
+ context[:gem_version] = '1.20.0'
941
1047
  Seahorse::Client::Request.new(handlers, context)
942
1048
  end
943
1049
 
@@ -31,6 +31,7 @@ module Aws::Cloud9
31
31
  DescribeEnvironmentsRequest = Shapes::StructureShape.new(name: 'DescribeEnvironmentsRequest')
32
32
  DescribeEnvironmentsResult = Shapes::StructureShape.new(name: 'DescribeEnvironmentsResult')
33
33
  Environment = Shapes::StructureShape.new(name: 'Environment')
34
+ EnvironmentArn = Shapes::StringShape.new(name: 'EnvironmentArn')
34
35
  EnvironmentDescription = Shapes::StringShape.new(name: 'EnvironmentDescription')
35
36
  EnvironmentId = Shapes::StringShape.new(name: 'EnvironmentId')
36
37
  EnvironmentIdList = Shapes::ListShape.new(name: 'EnvironmentIdList')
@@ -48,6 +49,8 @@ module Aws::Cloud9
48
49
  LimitExceededException = Shapes::StructureShape.new(name: 'LimitExceededException')
49
50
  ListEnvironmentsRequest = Shapes::StructureShape.new(name: 'ListEnvironmentsRequest')
50
51
  ListEnvironmentsResult = Shapes::StructureShape.new(name: 'ListEnvironmentsResult')
52
+ ListTagsForResourceRequest = Shapes::StructureShape.new(name: 'ListTagsForResourceRequest')
53
+ ListTagsForResourceResponse = Shapes::StructureShape.new(name: 'ListTagsForResourceResponse')
51
54
  MaxResults = Shapes::IntegerShape.new(name: 'MaxResults')
52
55
  MemberPermissions = Shapes::StringShape.new(name: 'MemberPermissions')
53
56
  NotFoundException = Shapes::StructureShape.new(name: 'NotFoundException')
@@ -55,8 +58,17 @@ module Aws::Cloud9
55
58
  PermissionsList = Shapes::ListShape.new(name: 'PermissionsList')
56
59
  String = Shapes::StringShape.new(name: 'String')
57
60
  SubnetId = Shapes::StringShape.new(name: 'SubnetId')
61
+ Tag = Shapes::StructureShape.new(name: 'Tag')
62
+ TagKey = Shapes::StringShape.new(name: 'TagKey')
63
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
64
+ TagList = Shapes::ListShape.new(name: 'TagList')
65
+ TagResourceRequest = Shapes::StructureShape.new(name: 'TagResourceRequest')
66
+ TagResourceResponse = Shapes::StructureShape.new(name: 'TagResourceResponse')
67
+ TagValue = Shapes::StringShape.new(name: 'TagValue')
58
68
  Timestamp = Shapes::TimestampShape.new(name: 'Timestamp')
59
69
  TooManyRequestsException = Shapes::StructureShape.new(name: 'TooManyRequestsException')
70
+ UntagResourceRequest = Shapes::StructureShape.new(name: 'UntagResourceRequest')
71
+ UntagResourceResponse = Shapes::StructureShape.new(name: 'UntagResourceResponse')
60
72
  UpdateEnvironmentMembershipRequest = Shapes::StructureShape.new(name: 'UpdateEnvironmentMembershipRequest')
61
73
  UpdateEnvironmentMembershipResult = Shapes::StructureShape.new(name: 'UpdateEnvironmentMembershipResult')
62
74
  UpdateEnvironmentRequest = Shapes::StructureShape.new(name: 'UpdateEnvironmentRequest')
@@ -72,6 +84,7 @@ module Aws::Cloud9
72
84
  CreateEnvironmentEC2Request.add_member(:subnet_id, Shapes::ShapeRef.new(shape: SubnetId, location_name: "subnetId"))
73
85
  CreateEnvironmentEC2Request.add_member(:automatic_stop_time_minutes, Shapes::ShapeRef.new(shape: AutomaticStopTimeMinutes, location_name: "automaticStopTimeMinutes"))
74
86
  CreateEnvironmentEC2Request.add_member(:owner_arn, Shapes::ShapeRef.new(shape: UserArn, location_name: "ownerArn"))
87
+ CreateEnvironmentEC2Request.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "tags"))
75
88
  CreateEnvironmentEC2Request.struct_class = Types::CreateEnvironmentEC2Request
76
89
 
77
90
  CreateEnvironmentEC2Result.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, location_name: "environmentId"))
@@ -155,8 +168,34 @@ module Aws::Cloud9
155
168
  ListEnvironmentsResult.add_member(:environment_ids, Shapes::ShapeRef.new(shape: EnvironmentIdList, location_name: "environmentIds"))
156
169
  ListEnvironmentsResult.struct_class = Types::ListEnvironmentsResult
157
170
 
171
+ ListTagsForResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, required: true, location_name: "ResourceARN"))
172
+ ListTagsForResourceRequest.struct_class = Types::ListTagsForResourceRequest
173
+
174
+ ListTagsForResourceResponse.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, location_name: "Tags"))
175
+ ListTagsForResourceResponse.struct_class = Types::ListTagsForResourceResponse
176
+
158
177
  PermissionsList.member = Shapes::ShapeRef.new(shape: Permissions)
159
178
 
179
+ Tag.add_member(:key, Shapes::ShapeRef.new(shape: TagKey, required: true, location_name: "Key"))
180
+ Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, required: true, location_name: "Value"))
181
+ Tag.struct_class = Types::Tag
182
+
183
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
184
+
185
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
186
+
187
+ TagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, required: true, location_name: "ResourceARN"))
188
+ TagResourceRequest.add_member(:tags, Shapes::ShapeRef.new(shape: TagList, required: true, location_name: "Tags"))
189
+ TagResourceRequest.struct_class = Types::TagResourceRequest
190
+
191
+ TagResourceResponse.struct_class = Types::TagResourceResponse
192
+
193
+ UntagResourceRequest.add_member(:resource_arn, Shapes::ShapeRef.new(shape: EnvironmentArn, required: true, location_name: "ResourceARN"))
194
+ UntagResourceRequest.add_member(:tag_keys, Shapes::ShapeRef.new(shape: TagKeyList, required: true, location_name: "TagKeys"))
195
+ UntagResourceRequest.struct_class = Types::UntagResourceRequest
196
+
197
+ UntagResourceResponse.struct_class = Types::UntagResourceResponse
198
+
160
199
  UpdateEnvironmentMembershipRequest.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, required: true, location_name: "environmentId"))
161
200
  UpdateEnvironmentMembershipRequest.add_member(:user_arn, Shapes::ShapeRef.new(shape: UserArn, required: true, location_name: "userArn"))
162
201
  UpdateEnvironmentMembershipRequest.add_member(:permissions, Shapes::ShapeRef.new(shape: MemberPermissions, required: true, location_name: "permissions"))
@@ -322,6 +361,39 @@ module Aws::Cloud9
322
361
  )
323
362
  end)
324
363
 
364
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
365
+ o.name = "ListTagsForResource"
366
+ o.http_method = "POST"
367
+ o.http_request_uri = "/"
368
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceRequest)
369
+ o.output = Shapes::ShapeRef.new(shape: ListTagsForResourceResponse)
370
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
371
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
372
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
373
+ end)
374
+
375
+ api.add_operation(:tag_resource, Seahorse::Model::Operation.new.tap do |o|
376
+ o.name = "TagResource"
377
+ o.http_method = "POST"
378
+ o.http_request_uri = "/"
379
+ o.input = Shapes::ShapeRef.new(shape: TagResourceRequest)
380
+ o.output = Shapes::ShapeRef.new(shape: TagResourceResponse)
381
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
382
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
383
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
384
+ end)
385
+
386
+ api.add_operation(:untag_resource, Seahorse::Model::Operation.new.tap do |o|
387
+ o.name = "UntagResource"
388
+ o.http_method = "POST"
389
+ o.http_request_uri = "/"
390
+ o.input = Shapes::ShapeRef.new(shape: UntagResourceRequest)
391
+ o.output = Shapes::ShapeRef.new(shape: UntagResourceResponse)
392
+ o.errors << Shapes::ShapeRef.new(shape: NotFoundException)
393
+ o.errors << Shapes::ShapeRef.new(shape: InternalServerErrorException)
394
+ o.errors << Shapes::ShapeRef.new(shape: BadRequestException)
395
+ end)
396
+
325
397
  api.add_operation(:update_environment, Seahorse::Model::Operation.new.tap do |o|
326
398
  o.name = "UpdateEnvironment"
327
399
  o.http_method = "POST"
@@ -19,6 +19,12 @@ module Aws::Cloud9
19
19
  # subnet_id: "SubnetId",
20
20
  # automatic_stop_time_minutes: 1,
21
21
  # owner_arn: "UserArn",
22
+ # tags: [
23
+ # {
24
+ # key: "TagKey", # required
25
+ # value: "TagValue", # required
26
+ # },
27
+ # ],
22
28
  # }
23
29
  #
24
30
  # @!attribute [rw] name
@@ -64,6 +70,11 @@ module Aws::Cloud9
64
70
  # specified, the ARN defaults to this environment's creator.
65
71
  # @return [String]
66
72
  #
73
+ # @!attribute [rw] tags
74
+ # An array of key-value pairs that will be associated with the new AWS
75
+ # Cloud9 development environment.
76
+ # @return [Array<Types::Tag>]
77
+ #
67
78
  # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/CreateEnvironmentEC2Request AWS API Documentation
68
79
  #
69
80
  class CreateEnvironmentEC2Request < Struct.new(
@@ -73,7 +84,8 @@ module Aws::Cloud9
73
84
  :instance_type,
74
85
  :subnet_id,
75
86
  :automatic_stop_time_minutes,
76
- :owner_arn)
87
+ :owner_arn,
88
+ :tags)
77
89
  include Aws::Structure
78
90
  end
79
91
 
@@ -520,6 +532,133 @@ module Aws::Cloud9
520
532
  include Aws::Structure
521
533
  end
522
534
 
535
+ # @note When making an API call, you may pass ListTagsForResourceRequest
536
+ # data as a hash:
537
+ #
538
+ # {
539
+ # resource_arn: "EnvironmentArn", # required
540
+ # }
541
+ #
542
+ # @!attribute [rw] resource_arn
543
+ # The Amazon Resource Name (ARN) of the AWS Cloud9 development
544
+ # environment to get the tags for.
545
+ # @return [String]
546
+ #
547
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/ListTagsForResourceRequest AWS API Documentation
548
+ #
549
+ class ListTagsForResourceRequest < Struct.new(
550
+ :resource_arn)
551
+ include Aws::Structure
552
+ end
553
+
554
+ # @!attribute [rw] tags
555
+ # The list of tags associated with the AWS Cloud9 development
556
+ # environment.
557
+ # @return [Array<Types::Tag>]
558
+ #
559
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/ListTagsForResourceResponse AWS API Documentation
560
+ #
561
+ class ListTagsForResourceResponse < Struct.new(
562
+ :tags)
563
+ include Aws::Structure
564
+ end
565
+
566
+ # Metadata that is associated with AWS resources. In particular, a
567
+ # name-value pair that can be associated with an AWS Cloud9 development
568
+ # environment. There are two types of tags: *user tags* and *system
569
+ # tags*. A user tag is created by the user. A system tag is
570
+ # automatically created by AWS services. A system tag is prefixed with
571
+ # "aws:" and cannot be modified by the user.
572
+ #
573
+ # @note When making an API call, you may pass Tag
574
+ # data as a hash:
575
+ #
576
+ # {
577
+ # key: "TagKey", # required
578
+ # value: "TagValue", # required
579
+ # }
580
+ #
581
+ # @!attribute [rw] key
582
+ # The **name** part of a tag.
583
+ # @return [String]
584
+ #
585
+ # @!attribute [rw] value
586
+ # The **value** part of a tag.
587
+ # @return [String]
588
+ #
589
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/Tag AWS API Documentation
590
+ #
591
+ class Tag < Struct.new(
592
+ :key,
593
+ :value)
594
+ include Aws::Structure
595
+ end
596
+
597
+ # @note When making an API call, you may pass TagResourceRequest
598
+ # data as a hash:
599
+ #
600
+ # {
601
+ # resource_arn: "EnvironmentArn", # required
602
+ # tags: [ # required
603
+ # {
604
+ # key: "TagKey", # required
605
+ # value: "TagValue", # required
606
+ # },
607
+ # ],
608
+ # }
609
+ #
610
+ # @!attribute [rw] resource_arn
611
+ # The Amazon Resource Name (ARN) of the AWS Cloud9 development
612
+ # environment to add tags to.
613
+ # @return [String]
614
+ #
615
+ # @!attribute [rw] tags
616
+ # The list of tags to add to the given AWS Cloud9 development
617
+ # environment.
618
+ # @return [Array<Types::Tag>]
619
+ #
620
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/TagResourceRequest AWS API Documentation
621
+ #
622
+ class TagResourceRequest < Struct.new(
623
+ :resource_arn,
624
+ :tags)
625
+ include Aws::Structure
626
+ end
627
+
628
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/TagResourceResponse AWS API Documentation
629
+ #
630
+ class TagResourceResponse < Aws::EmptyStructure; end
631
+
632
+ # @note When making an API call, you may pass UntagResourceRequest
633
+ # data as a hash:
634
+ #
635
+ # {
636
+ # resource_arn: "EnvironmentArn", # required
637
+ # tag_keys: ["TagKey"], # required
638
+ # }
639
+ #
640
+ # @!attribute [rw] resource_arn
641
+ # The Amazon Resource Name (ARN) of the AWS Cloud9 development
642
+ # environment to remove tags from.
643
+ # @return [String]
644
+ #
645
+ # @!attribute [rw] tag_keys
646
+ # The tag names of the tags to remove from the given AWS Cloud9
647
+ # development environment.
648
+ # @return [Array<String>]
649
+ #
650
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/UntagResourceRequest AWS API Documentation
651
+ #
652
+ class UntagResourceRequest < Struct.new(
653
+ :resource_arn,
654
+ :tag_keys)
655
+ include Aws::Structure
656
+ end
657
+
658
+ # @see http://docs.aws.amazon.com/goto/WebAPI/cloud9-2017-09-23/UntagResourceResponse AWS API Documentation
659
+ #
660
+ class UntagResourceResponse < Aws::EmptyStructure; end
661
+
523
662
  # @note When making an API call, you may pass UpdateEnvironmentMembershipRequest
524
663
  # data as a hash:
525
664
  #
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-cloud9
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.0
4
+ version: 1.20.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: 2019-10-29 00:00:00.000000000 Z
11
+ date: 2020-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core