aws-sdk 1.35.0 → 1.36.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.
@@ -1,4 +1,4 @@
1
- # Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1
+ # Copyright 2011-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License"). You
4
4
  # may not use this file except in compliance with the License. A copy of
@@ -313,6 +313,12 @@
313
313
  :children:
314
314
  Enabled:
315
315
  :type: :boolean
316
+ AccessLog:
317
+ :children:
318
+ Enabled:
319
+ :type: :boolean
320
+ EmitInterval:
321
+ :type: :integer
316
322
  - :name: DescribeLoadBalancerPolicies
317
323
  :method: :describe_load_balancer_policies
318
324
  :inputs:
@@ -552,11 +558,35 @@
552
558
  Enabled:
553
559
  - :boolean
554
560
  - :required
561
+ AccessLog:
562
+ - :structure:
563
+ Enabled:
564
+ - :boolean
565
+ - :required
566
+ S3BucketName:
567
+ - :string
568
+ EmitInterval:
569
+ - :integer
570
+ S3BucketPrefix:
571
+ - :string
555
572
  - :required
556
573
  :outputs:
557
574
  :children:
558
575
  ModifyLoadBalancerAttributesResult:
559
576
  :ignore: true
577
+ :children:
578
+ LoadBalancerAttributes:
579
+ :children:
580
+ CrossZoneLoadBalancing:
581
+ :children:
582
+ Enabled:
583
+ :type: :boolean
584
+ AccessLog:
585
+ :children:
586
+ Enabled:
587
+ :type: :boolean
588
+ EmitInterval:
589
+ :type: :integer
560
590
  - :name: RegisterInstancesWithLoadBalancer
561
591
  :method: :register_instances_with_load_balancer
562
592
  :inputs:
@@ -1,4 +1,4 @@
1
- # Copyright 2011-2013 Amazon.com, Inc. or its affiliates. All Rights Reserved.
1
+ # Copyright 2011-2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
2
  #
3
3
  # Licensed under the Apache License, Version 2.0 (the "License"). You
4
4
  # may not use this file except in compliance with the License. A copy of
@@ -16,7 +16,7 @@ module AWS
16
16
 
17
17
  class Client < Core::RESTXMLClient
18
18
 
19
- API_VERSION = '2013-11-22'
19
+ API_VERSION = '2014-01-31'
20
20
 
21
21
  signature_version :Version4, 'cloudfront'
22
22
 
@@ -45,5 +45,9 @@ module AWS
45
45
  define_client_methods('2013-11-22')
46
46
  end
47
47
 
48
+ class Client::V20140131 < Client
49
+ define_client_methods('2014-01-31')
50
+ end
51
+
48
52
  end
49
53
  end
@@ -33,8 +33,7 @@ module AWS
33
33
  # @api private
34
34
  class ConnectionPool
35
35
 
36
- @pools_mutex = Mutex.new
37
- @pools = {}
36
+ @pools = []
38
37
 
39
38
  # @api private
40
39
  OPTIONS = [
@@ -226,16 +225,15 @@ module AWS
226
225
  #
227
226
  # @return [ConnectionPool]
228
227
  def new options = {}
229
- options = pool_options(options)
230
- @pools_mutex.synchronize do
231
- @pools[options] ||= super(options)
232
- end
228
+ pool = super(pool_options(options))
229
+ @pools << pool
230
+ pool
233
231
  end
234
232
 
235
233
  # @return [Array<ConnectionPool>] Returns a list of of the constructed
236
234
  # connection pools.
237
235
  def pools
238
- @pools.values
236
+ @pools.dup
239
237
  end
240
238
 
241
239
  private
@@ -48,6 +48,14 @@ module AWS
48
48
  resp.vpc_set.find{|v| v.vpc_id == vpc_id }
49
49
  end
50
50
 
51
+ # @return [Boolean] Returns `true` if the resource exists.
52
+ def exists?
53
+ get_resource
54
+ true
55
+ rescue Errors::InvalidVpcID::NotFound
56
+ false
57
+ end
58
+
51
59
  # Deletes the current VPC. The VPC must be empty before it can
52
60
  # be deleted.
53
61
  # @return [nil]
@@ -61,7 +61,7 @@ module AWS
61
61
  endpoint_prefix 'glacier'
62
62
 
63
63
  # @option options[String] :account_id ('-')
64
- def intialize options = {}
64
+ def initialize options = {}
65
65
  @account_id = options[:account_id] || '-'
66
66
  super
67
67
  end
@@ -13,5 +13,5 @@
13
13
 
14
14
  module AWS
15
15
  # Current version of the AWS SDK for Ruby
16
- VERSION = '1.35.0'
16
+ VERSION = '1.36.0'
17
17
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.35.0
4
+ version: 1.36.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: 2014-02-27 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uuidtools
@@ -573,6 +573,7 @@ files:
573
573
  - lib/aws/api_config/CloudFront-2013-09-27.yml
574
574
  - lib/aws/api_config/CloudFront-2013-11-11.yml
575
575
  - lib/aws/api_config/CloudFront-2013-11-22.yml
576
+ - lib/aws/api_config/CloudFront-2014-01-31.yml
576
577
  - lib/aws/api_config/CloudSearch-2011-02-01.yml
577
578
  - lib/aws/api_config/CloudTrail-2013-11-01.yml
578
579
  - lib/aws/api_config/CloudWatch-2010-08-01.yml