aws-sdk-core 2.9.11 → 2.9.12

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: 19666a284ff1e28fededab5d994f11f082ec4745
4
- data.tar.gz: 30e283ca51e2f39b21bf8e637807c8011214c5a8
3
+ metadata.gz: 0555466f36199c64564e61c733a1cbc3dd0d61a4
4
+ data.tar.gz: a23ae604659de77bb4e4bb8bf42a08e032d0de8c
5
5
  SHA512:
6
- metadata.gz: 4af1f3aa6a1a6f19c4bbe9dfcfd0eb0ba039d37f39143726a3a31cdf6ad8c30d15eb6578a0b4ace79832b8cf6530f03d05ff6e7232a37d369c20c647e8d5f89e
7
- data.tar.gz: 55d8a3c4e78ed0ab8dd4cc0fb02da840e8a8d65708be616137866ddf7475fba8dc4d9e5bacad0ac5d9a45feb7a41b7aec90fb2a993c9ca7fea544ff3a24ad66e
6
+ metadata.gz: 0d6e8411299e0184c5a95ce3342c3f10b0e147fee859784ea29244a28d3e020f0f6d99e67341b0bf0e1a8fe8416088b309ac07710d6fb59aff21be15a4b0adf0
7
+ data.tar.gz: 0c90112dc164a872f2e6faea2cb740e024b834e618a682105d88e0a74785106eefc4c25024357a9a032b89f13df2425298e44fbacc5b93d62fee8c1b9f2f64af
@@ -1403,22 +1403,21 @@
1403
1403
  },
1404
1404
  "errors":[
1405
1405
  {"shape":"DBClusterAlreadyExistsFault"},
1406
- {"shape":"DBClusterQuotaExceededFault"},
1407
- {"shape":"StorageQuotaExceededFault"},
1408
- {"shape":"DBSubnetGroupNotFoundFault"},
1409
1406
  {"shape":"DBClusterNotFoundFault"},
1407
+ {"shape":"DBClusterQuotaExceededFault"},
1410
1408
  {"shape":"DBClusterSnapshotNotFoundFault"},
1409
+ {"shape":"DBSubnetGroupNotFoundFault"},
1411
1410
  {"shape":"InsufficientDBClusterCapacityFault"},
1412
1411
  {"shape":"InsufficientStorageClusterCapacityFault"},
1413
- {"shape":"InvalidDBSnapshotStateFault"},
1414
1412
  {"shape":"InvalidDBClusterSnapshotStateFault"},
1415
- {"shape":"StorageQuotaExceededFault"},
1416
- {"shape":"InvalidVPCNetworkStateFault"},
1413
+ {"shape":"InvalidDBClusterStateFault"},
1414
+ {"shape":"InvalidDBSnapshotStateFault"},
1417
1415
  {"shape":"InvalidRestoreFault"},
1418
- {"shape":"DBSubnetGroupNotFoundFault"},
1419
1416
  {"shape":"InvalidSubnet"},
1417
+ {"shape":"InvalidVPCNetworkStateFault"},
1418
+ {"shape":"KMSKeyNotAccessibleFault"},
1420
1419
  {"shape":"OptionGroupNotFoundFault"},
1421
- {"shape":"KMSKeyNotAccessibleFault"}
1420
+ {"shape":"StorageQuotaExceededFault"}
1422
1421
  ]
1423
1422
  },
1424
1423
  "RestoreDBInstanceFromDBSnapshot":{
@@ -1845,7 +1844,8 @@
1845
1844
  "Tags":{"shape":"TagList"},
1846
1845
  "StorageEncrypted":{"shape":"BooleanOptional"},
1847
1846
  "KmsKeyId":{"shape":"String"},
1848
- "PreSignedUrl":{"shape":"String"}
1847
+ "PreSignedUrl":{"shape":"String"},
1848
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
1849
1849
  }
1850
1850
  },
1851
1851
  "CreateDBClusterParameterGroupMessage":{
@@ -1937,7 +1937,8 @@
1937
1937
  "MonitoringRoleArn":{"shape":"String"},
1938
1938
  "DomainIAMRoleName":{"shape":"String"},
1939
1939
  "PromotionTier":{"shape":"IntegerOptional"},
1940
- "Timezone":{"shape":"String"}
1940
+ "Timezone":{"shape":"String"},
1941
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
1941
1942
  }
1942
1943
  },
1943
1944
  "CreateDBInstanceReadReplicaMessage":{
@@ -1963,7 +1964,8 @@
1963
1964
  "MonitoringInterval":{"shape":"IntegerOptional"},
1964
1965
  "MonitoringRoleArn":{"shape":"String"},
1965
1966
  "KmsKeyId":{"shape":"String"},
1966
- "PreSignedUrl":{"shape":"String"}
1967
+ "PreSignedUrl":{"shape":"String"},
1968
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
1967
1969
  }
1968
1970
  },
1969
1971
  "CreateDBInstanceReadReplicaResult":{
@@ -2133,6 +2135,7 @@
2133
2135
  "DbClusterResourceId":{"shape":"String"},
2134
2136
  "DBClusterArn":{"shape":"String"},
2135
2137
  "AssociatedRoles":{"shape":"DBClusterRoles"},
2138
+ "IAMDatabaseAuthenticationEnabled":{"shape":"Boolean"},
2136
2139
  "ClusterCreateTime":{"shape":"TStamp"}
2137
2140
  },
2138
2141
  "wrapper":true
@@ -2330,7 +2333,8 @@
2330
2333
  "PercentProgress":{"shape":"Integer"},
2331
2334
  "StorageEncrypted":{"shape":"Boolean"},
2332
2335
  "KmsKeyId":{"shape":"String"},
2333
- "DBClusterSnapshotArn":{"shape":"String"}
2336
+ "DBClusterSnapshotArn":{"shape":"String"},
2337
+ "IAMDatabaseAuthenticationEnabled":{"shape":"Boolean"}
2334
2338
  },
2335
2339
  "wrapper":true
2336
2340
  },
@@ -2470,7 +2474,8 @@
2470
2474
  "MonitoringRoleArn":{"shape":"String"},
2471
2475
  "PromotionTier":{"shape":"IntegerOptional"},
2472
2476
  "DBInstanceArn":{"shape":"String"},
2473
- "Timezone":{"shape":"String"}
2477
+ "Timezone":{"shape":"String"},
2478
+ "IAMDatabaseAuthenticationEnabled":{"shape":"Boolean"}
2474
2479
  },
2475
2480
  "wrapper":true
2476
2481
  },
@@ -2740,7 +2745,8 @@
2740
2745
  "Encrypted":{"shape":"Boolean"},
2741
2746
  "KmsKeyId":{"shape":"String"},
2742
2747
  "DBSnapshotArn":{"shape":"String"},
2743
- "Timezone":{"shape":"String"}
2748
+ "Timezone":{"shape":"String"},
2749
+ "IAMDatabaseAuthenticationEnabled":{"shape":"Boolean"}
2744
2750
  },
2745
2751
  "wrapper":true
2746
2752
  },
@@ -3823,7 +3829,8 @@
3823
3829
  "MasterUserPassword":{"shape":"String"},
3824
3830
  "OptionGroupName":{"shape":"String"},
3825
3831
  "PreferredBackupWindow":{"shape":"String"},
3826
- "PreferredMaintenanceWindow":{"shape":"String"}
3832
+ "PreferredMaintenanceWindow":{"shape":"String"},
3833
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
3827
3834
  }
3828
3835
  },
3829
3836
  "ModifyDBClusterParameterGroupMessage":{
@@ -3897,7 +3904,8 @@
3897
3904
  "PubliclyAccessible":{"shape":"BooleanOptional"},
3898
3905
  "MonitoringRoleArn":{"shape":"String"},
3899
3906
  "DomainIAMRoleName":{"shape":"String"},
3900
- "PromotionTier":{"shape":"IntegerOptional"}
3907
+ "PromotionTier":{"shape":"IntegerOptional"},
3908
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
3901
3909
  }
3902
3910
  },
3903
3911
  "ModifyDBInstanceResult":{
@@ -4240,7 +4248,8 @@
4240
4248
  "SupportsStorageEncryption":{"shape":"Boolean"},
4241
4249
  "StorageType":{"shape":"String"},
4242
4250
  "SupportsIops":{"shape":"Boolean"},
4243
- "SupportsEnhancedMonitoring":{"shape":"Boolean"}
4251
+ "SupportsEnhancedMonitoring":{"shape":"Boolean"},
4252
+ "SupportsIAMDatabaseAuthentication":{"shape":"Boolean"}
4244
4253
  },
4245
4254
  "wrapper":true
4246
4255
  },
@@ -4663,6 +4672,7 @@
4663
4672
  "Tags":{"shape":"TagList"},
4664
4673
  "StorageEncrypted":{"shape":"BooleanOptional"},
4665
4674
  "KmsKeyId":{"shape":"String"},
4675
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"},
4666
4676
  "SourceEngine":{"shape":"String"},
4667
4677
  "SourceEngineVersion":{"shape":"String"},
4668
4678
  "S3BucketName":{"shape":"String"},
@@ -4695,7 +4705,8 @@
4695
4705
  "OptionGroupName":{"shape":"String"},
4696
4706
  "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"},
4697
4707
  "Tags":{"shape":"TagList"},
4698
- "KmsKeyId":{"shape":"String"}
4708
+ "KmsKeyId":{"shape":"String"},
4709
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
4699
4710
  }
4700
4711
  },
4701
4712
  "RestoreDBClusterFromSnapshotResult":{
@@ -4720,7 +4731,8 @@
4720
4731
  "OptionGroupName":{"shape":"String"},
4721
4732
  "VpcSecurityGroupIds":{"shape":"VpcSecurityGroupIdList"},
4722
4733
  "Tags":{"shape":"TagList"},
4723
- "KmsKeyId":{"shape":"String"}
4734
+ "KmsKeyId":{"shape":"String"},
4735
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
4724
4736
  }
4725
4737
  },
4726
4738
  "RestoreDBClusterToPointInTimeResult":{
@@ -4756,7 +4768,8 @@
4756
4768
  "TdeCredentialPassword":{"shape":"String"},
4757
4769
  "Domain":{"shape":"String"},
4758
4770
  "CopyTagsToSnapshot":{"shape":"BooleanOptional"},
4759
- "DomainIAMRoleName":{"shape":"String"}
4771
+ "DomainIAMRoleName":{"shape":"String"},
4772
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
4760
4773
  }
4761
4774
  },
4762
4775
  "RestoreDBInstanceFromDBSnapshotResult":{
@@ -4794,7 +4807,8 @@
4794
4807
  "TdeCredentialArn":{"shape":"String"},
4795
4808
  "TdeCredentialPassword":{"shape":"String"},
4796
4809
  "Domain":{"shape":"String"},
4797
- "DomainIAMRoleName":{"shape":"String"}
4810
+ "DomainIAMRoleName":{"shape":"String"},
4811
+ "EnableIAMDatabaseAuthentication":{"shape":"BooleanOptional"}
4798
4812
  }
4799
4813
  },
4800
4814
  "RestoreDBInstanceToPointInTimeResult":{
@@ -183,6 +183,7 @@
183
183
  "ap-southeast-1": {},
184
184
  "ap-southeast-2": {},
185
185
  "eu-west-1": {},
186
+ "eu-west-2": {},
186
187
  "us-east-1": {},
187
188
  "us-east-2": {},
188
189
  "us-west-2": {}
@@ -678,8 +679,10 @@
678
679
  "ap-south-1": {},
679
680
  "ap-southeast-1": {},
680
681
  "ap-southeast-2": {},
682
+ "ca-central-1": {},
681
683
  "eu-central-1": {},
682
684
  "eu-west-1": {},
685
+ "eu-west-2": {},
683
686
  "sa-east-1": {},
684
687
  "us-east-1": {},
685
688
  "us-east-2": {},
@@ -932,6 +935,16 @@
932
935
  "us-east-1": {}
933
936
  }
934
937
  },
938
+ "models.lex": {
939
+ "defaults": {
940
+ "credentialScope": {
941
+ "service": "lex"
942
+ }
943
+ },
944
+ "endpoints": {
945
+ "us-east-1": {}
946
+ }
947
+ },
935
948
  "monitoring": {
936
949
  "defaults": {
937
950
  "protocols": [
@@ -6,3 +6,11 @@ Aws.add_service(:RDS, {
6
6
  resources: "#{Aws::API_DIR}/rds/2014-10-31/resources-1.json",
7
7
  waiters: "#{Aws::API_DIR}/rds/2014-10-31/waiters-2.json",
8
8
  })
9
+
10
+ module Aws
11
+ module RDS
12
+
13
+ autoload :AuthTokenGenerator, 'aws-sdk-core/rds/auth_token_generator'
14
+
15
+ end
16
+ end
@@ -0,0 +1,63 @@
1
+ require 'aws-sigv4'
2
+
3
+ module Aws
4
+ module RDS
5
+
6
+ # The utility class helps generate an auth token that supports database login
7
+ # It provides a method:
8
+ #
9
+ # * {#auth_token} - Computes a login token which is similar to
10
+ # a presigned url
11
+ class AuthTokenGenerator
12
+
13
+ # @option options [required, Credentials] :credentials
14
+ # You need provide an object that responds to `#credentials`
15
+ # returning another object that responds to `#access_key_id`, `#secret_access_key`,
16
+ # and `#session_token`.
17
+ #
18
+ # For example, you could provide an instance of following classes:
19
+ # * `Aws::Credentials`
20
+ # * `Aws::SharedCredentials`
21
+ # * `Aws::InstanceProfileCredentials`
22
+ # * `Aws::AssumeRoleCredentials`
23
+ # * `Aws::ECSCredentials`
24
+ def initialize(options = {})
25
+ @credentials = options.fetch(:credentials)
26
+ end
27
+
28
+ # To create a auth login token, following parameters are required:
29
+ #
30
+ # @params [required, String] :region Region the databaseis located in
31
+ # @params [required, String] :endpoint Hostname of the database with port number
32
+ # For example: my-instance.us-west-2.rds.amazonaws.com:3306
33
+ # @params [required, String] :user_name Username to login as
34
+ #
35
+ # @return [String]
36
+ def auth_token(params)
37
+ region = params.fetch(:region)
38
+ endpoint = params.fetch(:endpoint)
39
+ user_name = params.fetch(:user_name)
40
+
41
+ param_list = Aws::Query::ParamList.new
42
+ param_list.set('Action', 'connect')
43
+ param_list.set('DBUser', user_name)
44
+
45
+ signer = Aws::Sigv4::Signer.new(
46
+ service: 'rds-db',
47
+ region: region,
48
+ credentials_provider: @credentials
49
+ )
50
+ url = "https://" + endpoint + "/?#{param_list.to_s}"
51
+ presigned_url = signer.presign_url(
52
+ http_method: 'GET',
53
+ url: url,
54
+ body: '',
55
+ expires_in: 900
56
+ ).to_s
57
+ # Remove extra scheme for token
58
+ presigned_url[8..-1]
59
+ end
60
+
61
+ end
62
+ end
63
+ end
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.9.11'
2
+ VERSION = '2.9.12'
3
3
  end
@@ -11,7 +11,11 @@ module Aws
11
11
  end
12
12
 
13
13
  def parse(xml)
14
- Ox.sax_parse(@stack, StringIO.new(xml), :convert_special => true)
14
+ Ox.sax_parse(
15
+ @stack, StringIO.new(xml),
16
+ :convert_special => true,
17
+ :skip => :skip_white
18
+ )
15
19
  end
16
20
 
17
21
  end
@@ -390,4 +390,4 @@
390
390
  "models": "xray/2016-04-12",
391
391
  "endpoint": "xray"
392
392
  }
393
- }
393
+ }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aws-sdk-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.9.11
4
+ version: 2.9.12
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-04-21 00:00:00.000000000 Z
11
+ date: 2017-04-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath
@@ -588,6 +588,7 @@ files:
588
588
  - lib/aws-sdk-core/query/param_builder.rb
589
589
  - lib/aws-sdk-core/query/param_list.rb
590
590
  - lib/aws-sdk-core/rds.rb
591
+ - lib/aws-sdk-core/rds/auth_token_generator.rb
591
592
  - lib/aws-sdk-core/redshift.rb
592
593
  - lib/aws-sdk-core/refreshing_credentials.rb
593
594
  - lib/aws-sdk-core/rekognition.rb