aws-sdk-elasticbeanstalk 1.1.0 → 1.2.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
  SHA1:
3
- metadata.gz: b44e303672f38bb4d17754207346ea96fd321c3f
4
- data.tar.gz: fd696b1d7e8430af0172b67f6229beff371fa9d2
3
+ metadata.gz: 70a8ef8856a808647647fed62b9437cdeed30cf4
4
+ data.tar.gz: a6a0ab1c3826dfaa5b985b0e157ccd210d270b82
5
5
  SHA512:
6
- metadata.gz: fcd1560cd59301225774beca43e05367d10a7ac914fa1cc6bdd1e1fa4787d1920f9a1cae5e04ea06132a9330e0cf6abbcb9b99e5b46120152bf677883d649ec8
7
- data.tar.gz: 5d22c5ff72363a0c0ec3ea9c5ab0f4753c0fdfb796e6547f394cd645df6a4f3c7228df3a2720812318f0ded96f50cd97e61f888a725b3f4148961530e1e80694
6
+ metadata.gz: 5a9dbbf860cc9102ac7be99387833054a2183095c89319fba1dc385f3a37442e8140d0844d81b06f89094329372be1aa87e81b38f577c10ed988c18acf99a5ff
7
+ data.tar.gz: 775ad10c1144eae7d0578f9dfc41c9253b1d4c9000e173727cd325d061d3042e1ca841753c7464bd964ff36a89744a7f5f4e2fccb8cfdd57b5731c48744cb956
@@ -42,6 +42,6 @@ require_relative 'aws-sdk-elasticbeanstalk/customizations'
42
42
  # @service
43
43
  module Aws::ElasticBeanstalk
44
44
 
45
- GEM_VERSION = '1.1.0'
45
+ GEM_VERSION = '1.2.0'
46
46
 
47
47
  end
@@ -2666,6 +2666,45 @@ module Aws::ElasticBeanstalk
2666
2666
  req.send_request(options)
2667
2667
  end
2668
2668
 
2669
+ # Returns the tags applied to an AWS Elastic Beanstalk resource. The
2670
+ # response contains a list of tag key-value pairs.
2671
+ #
2672
+ # Currently, Elastic Beanstalk only supports tagging Elastic Beanstalk
2673
+ # environments.
2674
+ #
2675
+ # @option params [required, String] :resource_arn
2676
+ # The Amazon Resource Name (ARN) of the resouce for which a tag list is
2677
+ # requested.
2678
+ #
2679
+ # Must be the ARN of an Elastic Beanstalk environment.
2680
+ #
2681
+ # @return [Types::ResourceTagsDescriptionMessage] Returns a {Seahorse::Client::Response response} object which responds to the following methods:
2682
+ #
2683
+ # * {Types::ResourceTagsDescriptionMessage#resource_arn #resource_arn} => String
2684
+ # * {Types::ResourceTagsDescriptionMessage#resource_tags #resource_tags} => Array<Types::Tag>
2685
+ #
2686
+ # @example Request syntax with placeholder values
2687
+ #
2688
+ # resp = client.list_tags_for_resource({
2689
+ # resource_arn: "ResourceArn", # required
2690
+ # })
2691
+ #
2692
+ # @example Response structure
2693
+ #
2694
+ # resp.resource_arn #=> String
2695
+ # resp.resource_tags #=> Array
2696
+ # resp.resource_tags[0].key #=> String
2697
+ # resp.resource_tags[0].value #=> String
2698
+ #
2699
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResource AWS API Documentation
2700
+ #
2701
+ # @overload list_tags_for_resource(params = {})
2702
+ # @param [Hash] params ({})
2703
+ def list_tags_for_resource(params = {}, options = {})
2704
+ req = build_request(:list_tags_for_resource, params)
2705
+ req.send_request(options)
2706
+ end
2707
+
2669
2708
  # Deletes and recreates all of the AWS resources (for example: the Auto
2670
2709
  # Scaling group, load balancer, etc.) for a specified environment and
2671
2710
  # forces a restart.
@@ -3728,6 +3767,52 @@ module Aws::ElasticBeanstalk
3728
3767
  req.send_request(options)
3729
3768
  end
3730
3769
 
3770
+ # Update the list of tags applied to an AWS Elastic Beanstalk resource.
3771
+ # Two lists can be passed: `TagsToAdd` for tags to add or update, and
3772
+ # `TagsToRemove`.
3773
+ #
3774
+ # Currently, Elastic Beanstalk only supports tagging of Elastic
3775
+ # Beanstalk environments.
3776
+ #
3777
+ # @option params [required, String] :resource_arn
3778
+ # The Amazon Resource Name (ARN) of the resouce to be updated.
3779
+ #
3780
+ # Must be the ARN of an Elastic Beanstalk environment.
3781
+ #
3782
+ # @option params [Array<Types::Tag>] :tags_to_add
3783
+ # A list of tags to add or update.
3784
+ #
3785
+ # If a key of an existing tag is added, the tag's value is updated.
3786
+ #
3787
+ # @option params [Array<String>] :tags_to_remove
3788
+ # A list of tag keys to remove.
3789
+ #
3790
+ # If a tag key doesn't exist, it is silently ignored.
3791
+ #
3792
+ # @return [Struct] Returns an empty {Seahorse::Client::Response response}.
3793
+ #
3794
+ # @example Request syntax with placeholder values
3795
+ #
3796
+ # resp = client.update_tags_for_resource({
3797
+ # resource_arn: "ResourceArn", # required
3798
+ # tags_to_add: [
3799
+ # {
3800
+ # key: "TagKey",
3801
+ # value: "TagValue",
3802
+ # },
3803
+ # ],
3804
+ # tags_to_remove: ["TagKey"],
3805
+ # })
3806
+ #
3807
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResource AWS API Documentation
3808
+ #
3809
+ # @overload update_tags_for_resource(params = {})
3810
+ # @param [Hash] params ({})
3811
+ def update_tags_for_resource(params = {}, options = {})
3812
+ req = build_request(:update_tags_for_resource, params)
3813
+ req.send_request(options)
3814
+ end
3815
+
3731
3816
  # Takes a set of configuration settings and either a configuration
3732
3817
  # template or environment, and determines whether those values are
3733
3818
  # valid.
@@ -3827,7 +3912,7 @@ module Aws::ElasticBeanstalk
3827
3912
  params: params,
3828
3913
  config: config)
3829
3914
  context[:gem_name] = 'aws-sdk-elasticbeanstalk'
3830
- context[:gem_version] = '1.1.0'
3915
+ context[:gem_version] = '1.2.0'
3831
3916
  Seahorse::Client::Request.new(handlers, context)
3832
3917
  end
3833
3918
 
@@ -167,6 +167,7 @@ module Aws::ElasticBeanstalk
167
167
  ListAvailableSolutionStacksResultMessage = Shapes::StructureShape.new(name: 'ListAvailableSolutionStacksResultMessage')
168
168
  ListPlatformVersionsRequest = Shapes::StructureShape.new(name: 'ListPlatformVersionsRequest')
169
169
  ListPlatformVersionsResult = Shapes::StructureShape.new(name: 'ListPlatformVersionsResult')
170
+ ListTagsForResourceMessage = Shapes::StructureShape.new(name: 'ListTagsForResourceMessage')
170
171
  Listener = Shapes::StructureShape.new(name: 'Listener')
171
172
  LoadAverage = Shapes::ListShape.new(name: 'LoadAverage')
172
173
  LoadAverageValue = Shapes::FloatShape.new(name: 'LoadAverageValue')
@@ -229,8 +230,12 @@ module Aws::ElasticBeanstalk
229
230
  RequestCount = Shapes::IntegerShape.new(name: 'RequestCount')
230
231
  RequestEnvironmentInfoMessage = Shapes::StructureShape.new(name: 'RequestEnvironmentInfoMessage')
231
232
  RequestId = Shapes::StringShape.new(name: 'RequestId')
233
+ ResourceArn = Shapes::StringShape.new(name: 'ResourceArn')
232
234
  ResourceId = Shapes::StringShape.new(name: 'ResourceId')
233
235
  ResourceName = Shapes::StringShape.new(name: 'ResourceName')
236
+ ResourceNotFoundException = Shapes::StructureShape.new(name: 'ResourceNotFoundException')
237
+ ResourceTagsDescriptionMessage = Shapes::StructureShape.new(name: 'ResourceTagsDescriptionMessage')
238
+ ResourceTypeNotSupportedException = Shapes::StructureShape.new(name: 'ResourceTypeNotSupportedException')
234
239
  RestartAppServerMessage = Shapes::StructureShape.new(name: 'RestartAppServerMessage')
235
240
  RetrieveEnvironmentInfoMessage = Shapes::StructureShape.new(name: 'RetrieveEnvironmentInfoMessage')
236
241
  RetrieveEnvironmentInfoResultMessage = Shapes::StructureShape.new(name: 'RetrieveEnvironmentInfoResultMessage')
@@ -260,6 +265,8 @@ module Aws::ElasticBeanstalk
260
265
  SystemStatus = Shapes::StructureShape.new(name: 'SystemStatus')
261
266
  Tag = Shapes::StructureShape.new(name: 'Tag')
262
267
  TagKey = Shapes::StringShape.new(name: 'TagKey')
268
+ TagKeyList = Shapes::ListShape.new(name: 'TagKeyList')
269
+ TagList = Shapes::ListShape.new(name: 'TagList')
263
270
  TagValue = Shapes::StringShape.new(name: 'TagValue')
264
271
  Tags = Shapes::ListShape.new(name: 'Tags')
265
272
  TerminateEnvForce = Shapes::BooleanShape.new(name: 'TerminateEnvForce')
@@ -275,6 +282,7 @@ module Aws::ElasticBeanstalk
275
282
  TooManyConfigurationTemplatesException = Shapes::StructureShape.new(name: 'TooManyConfigurationTemplatesException')
276
283
  TooManyEnvironmentsException = Shapes::StructureShape.new(name: 'TooManyEnvironmentsException')
277
284
  TooManyPlatformsException = Shapes::StructureShape.new(name: 'TooManyPlatformsException')
285
+ TooManyTagsException = Shapes::StructureShape.new(name: 'TooManyTagsException')
278
286
  Trigger = Shapes::StructureShape.new(name: 'Trigger')
279
287
  TriggerList = Shapes::ListShape.new(name: 'TriggerList')
280
288
  UpdateApplicationMessage = Shapes::StructureShape.new(name: 'UpdateApplicationMessage')
@@ -283,6 +291,7 @@ module Aws::ElasticBeanstalk
283
291
  UpdateConfigurationTemplateMessage = Shapes::StructureShape.new(name: 'UpdateConfigurationTemplateMessage')
284
292
  UpdateDate = Shapes::TimestampShape.new(name: 'UpdateDate')
285
293
  UpdateEnvironmentMessage = Shapes::StructureShape.new(name: 'UpdateEnvironmentMessage')
294
+ UpdateTagsForResourceMessage = Shapes::StructureShape.new(name: 'UpdateTagsForResourceMessage')
286
295
  UserDefinedOption = Shapes::BooleanShape.new(name: 'UserDefinedOption')
287
296
  ValidateConfigurationSettingsMessage = Shapes::StructureShape.new(name: 'ValidateConfigurationSettingsMessage')
288
297
  ValidationMessage = Shapes::StructureShape.new(name: 'ValidationMessage')
@@ -781,6 +790,9 @@ module Aws::ElasticBeanstalk
781
790
  ListPlatformVersionsResult.add_member(:next_token, Shapes::ShapeRef.new(shape: Token, location_name: "NextToken"))
782
791
  ListPlatformVersionsResult.struct_class = Types::ListPlatformVersionsResult
783
792
 
793
+ ListTagsForResourceMessage.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
794
+ ListTagsForResourceMessage.struct_class = Types::ListTagsForResourceMessage
795
+
784
796
  Listener.add_member(:protocol, Shapes::ShapeRef.new(shape: String, location_name: "Protocol"))
785
797
  Listener.add_member(:port, Shapes::ShapeRef.new(shape: Integer, location_name: "Port"))
786
798
  Listener.struct_class = Types::Listener
@@ -909,6 +921,10 @@ module Aws::ElasticBeanstalk
909
921
  RequestEnvironmentInfoMessage.add_member(:info_type, Shapes::ShapeRef.new(shape: EnvironmentInfoType, required: true, location_name: "InfoType"))
910
922
  RequestEnvironmentInfoMessage.struct_class = Types::RequestEnvironmentInfoMessage
911
923
 
924
+ ResourceTagsDescriptionMessage.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, location_name: "ResourceArn"))
925
+ ResourceTagsDescriptionMessage.add_member(:resource_tags, Shapes::ShapeRef.new(shape: TagList, location_name: "ResourceTags"))
926
+ ResourceTagsDescriptionMessage.struct_class = Types::ResourceTagsDescriptionMessage
927
+
912
928
  RestartAppServerMessage.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, location_name: "EnvironmentId"))
913
929
  RestartAppServerMessage.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "EnvironmentName"))
914
930
  RestartAppServerMessage.struct_class = Types::RestartAppServerMessage
@@ -976,6 +992,10 @@ module Aws::ElasticBeanstalk
976
992
  Tag.add_member(:value, Shapes::ShapeRef.new(shape: TagValue, location_name: "Value"))
977
993
  Tag.struct_class = Types::Tag
978
994
 
995
+ TagKeyList.member = Shapes::ShapeRef.new(shape: TagKey)
996
+
997
+ TagList.member = Shapes::ShapeRef.new(shape: Tag)
998
+
979
999
  Tags.member = Shapes::ShapeRef.new(shape: Tag)
980
1000
 
981
1001
  TerminateEnvironmentMessage.add_member(:environment_id, Shapes::ShapeRef.new(shape: EnvironmentId, location_name: "EnvironmentId"))
@@ -1023,6 +1043,11 @@ module Aws::ElasticBeanstalk
1023
1043
  UpdateEnvironmentMessage.add_member(:options_to_remove, Shapes::ShapeRef.new(shape: OptionsSpecifierList, location_name: "OptionsToRemove"))
1024
1044
  UpdateEnvironmentMessage.struct_class = Types::UpdateEnvironmentMessage
1025
1045
 
1046
+ UpdateTagsForResourceMessage.add_member(:resource_arn, Shapes::ShapeRef.new(shape: ResourceArn, required: true, location_name: "ResourceArn"))
1047
+ UpdateTagsForResourceMessage.add_member(:tags_to_add, Shapes::ShapeRef.new(shape: TagList, location_name: "TagsToAdd"))
1048
+ UpdateTagsForResourceMessage.add_member(:tags_to_remove, Shapes::ShapeRef.new(shape: TagKeyList, location_name: "TagsToRemove"))
1049
+ UpdateTagsForResourceMessage.struct_class = Types::UpdateTagsForResourceMessage
1050
+
1026
1051
  ValidateConfigurationSettingsMessage.add_member(:application_name, Shapes::ShapeRef.new(shape: ApplicationName, required: true, location_name: "ApplicationName"))
1027
1052
  ValidateConfigurationSettingsMessage.add_member(:template_name, Shapes::ShapeRef.new(shape: ConfigurationTemplateName, location_name: "TemplateName"))
1028
1053
  ValidateConfigurationSettingsMessage.add_member(:environment_name, Shapes::ShapeRef.new(shape: EnvironmentName, location_name: "EnvironmentName"))
@@ -1338,6 +1363,17 @@ module Aws::ElasticBeanstalk
1338
1363
  o.errors << Shapes::ShapeRef.new(shape: ElasticBeanstalkServiceException)
1339
1364
  end)
1340
1365
 
1366
+ api.add_operation(:list_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1367
+ o.name = "ListTagsForResource"
1368
+ o.http_method = "POST"
1369
+ o.http_request_uri = "/"
1370
+ o.input = Shapes::ShapeRef.new(shape: ListTagsForResourceMessage)
1371
+ o.output = Shapes::ShapeRef.new(shape: ResourceTagsDescriptionMessage)
1372
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientPrivilegesException)
1373
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1374
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
1375
+ end)
1376
+
1341
1377
  api.add_operation(:rebuild_environment, Seahorse::Model::Operation.new.tap do |o|
1342
1378
  o.name = "RebuildEnvironment"
1343
1379
  o.http_method = "POST"
@@ -1433,6 +1469,19 @@ module Aws::ElasticBeanstalk
1433
1469
  o.errors << Shapes::ShapeRef.new(shape: TooManyBucketsException)
1434
1470
  end)
1435
1471
 
1472
+ api.add_operation(:update_tags_for_resource, Seahorse::Model::Operation.new.tap do |o|
1473
+ o.name = "UpdateTagsForResource"
1474
+ o.http_method = "POST"
1475
+ o.http_request_uri = "/"
1476
+ o.input = Shapes::ShapeRef.new(shape: UpdateTagsForResourceMessage)
1477
+ o.output = Shapes::ShapeRef.new(shape: Shapes::StructureShape.new(struct_class: Aws::EmptyStructure))
1478
+ o.errors << Shapes::ShapeRef.new(shape: InsufficientPrivilegesException)
1479
+ o.errors << Shapes::ShapeRef.new(shape: OperationInProgressException)
1480
+ o.errors << Shapes::ShapeRef.new(shape: TooManyTagsException)
1481
+ o.errors << Shapes::ShapeRef.new(shape: ResourceNotFoundException)
1482
+ o.errors << Shapes::ShapeRef.new(shape: ResourceTypeNotSupportedException)
1483
+ end)
1484
+
1436
1485
  api.add_operation(:validate_configuration_settings, Seahorse::Model::Operation.new.tap do |o|
1437
1486
  o.name = "ValidateConfigurationSettings"
1438
1487
  o.http_method = "POST"
@@ -2889,6 +2889,27 @@ module Aws::ElasticBeanstalk
2889
2889
  include Aws::Structure
2890
2890
  end
2891
2891
 
2892
+ # @note When making an API call, you may pass ListTagsForResourceMessage
2893
+ # data as a hash:
2894
+ #
2895
+ # {
2896
+ # resource_arn: "ResourceArn", # required
2897
+ # }
2898
+ #
2899
+ # @!attribute [rw] resource_arn
2900
+ # The Amazon Resource Name (ARN) of the resouce for which a tag list
2901
+ # is requested.
2902
+ #
2903
+ # Must be the ARN of an Elastic Beanstalk environment.
2904
+ # @return [String]
2905
+ #
2906
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ListTagsForResourceMessage AWS API Documentation
2907
+ #
2908
+ class ListTagsForResourceMessage < Struct.new(
2909
+ :resource_arn)
2910
+ include Aws::Structure
2911
+ end
2912
+
2892
2913
  # Describes the properties of a Listener for the LoadBalancer.
2893
2914
  #
2894
2915
  # @!attribute [rw] protocol
@@ -3474,6 +3495,23 @@ module Aws::ElasticBeanstalk
3474
3495
  include Aws::Structure
3475
3496
  end
3476
3497
 
3498
+ # @!attribute [rw] resource_arn
3499
+ # The Amazon Resource Name (ARN) of the resouce for which a tag list
3500
+ # was requested.
3501
+ # @return [String]
3502
+ #
3503
+ # @!attribute [rw] resource_tags
3504
+ # A list of tag key-value pairs.
3505
+ # @return [Array<Types::Tag>]
3506
+ #
3507
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/ResourceTagsDescriptionMessage AWS API Documentation
3508
+ #
3509
+ class ResourceTagsDescriptionMessage < Struct.new(
3510
+ :resource_arn,
3511
+ :resource_tags)
3512
+ include Aws::Structure
3513
+ end
3514
+
3477
3515
  # @note When making an API call, you may pass RestartAppServerMessage
3478
3516
  # data as a hash:
3479
3517
  #
@@ -4293,6 +4331,47 @@ module Aws::ElasticBeanstalk
4293
4331
  include Aws::Structure
4294
4332
  end
4295
4333
 
4334
+ # @note When making an API call, you may pass UpdateTagsForResourceMessage
4335
+ # data as a hash:
4336
+ #
4337
+ # {
4338
+ # resource_arn: "ResourceArn", # required
4339
+ # tags_to_add: [
4340
+ # {
4341
+ # key: "TagKey",
4342
+ # value: "TagValue",
4343
+ # },
4344
+ # ],
4345
+ # tags_to_remove: ["TagKey"],
4346
+ # }
4347
+ #
4348
+ # @!attribute [rw] resource_arn
4349
+ # The Amazon Resource Name (ARN) of the resouce to be updated.
4350
+ #
4351
+ # Must be the ARN of an Elastic Beanstalk environment.
4352
+ # @return [String]
4353
+ #
4354
+ # @!attribute [rw] tags_to_add
4355
+ # A list of tags to add or update.
4356
+ #
4357
+ # If a key of an existing tag is added, the tag's value is updated.
4358
+ # @return [Array<Types::Tag>]
4359
+ #
4360
+ # @!attribute [rw] tags_to_remove
4361
+ # A list of tag keys to remove.
4362
+ #
4363
+ # If a tag key doesn't exist, it is silently ignored.
4364
+ # @return [Array<String>]
4365
+ #
4366
+ # @see http://docs.aws.amazon.com/goto/WebAPI/elasticbeanstalk-2010-12-01/UpdateTagsForResourceMessage AWS API Documentation
4367
+ #
4368
+ class UpdateTagsForResourceMessage < Struct.new(
4369
+ :resource_arn,
4370
+ :tags_to_add,
4371
+ :tags_to_remove)
4372
+ include Aws::Structure
4373
+ end
4374
+
4296
4375
  # A list of validation messages for a specified configuration template.
4297
4376
  #
4298
4377
  # @note When making an API call, you may pass ValidateConfigurationSettingsMessage
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-elasticbeanstalk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.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-09-13 00:00:00.000000000 Z
11
+ date: 2017-10-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk-core