aws-sdk-core 2.11.0 → 2.11.1

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: bbfc92121fb46822f558235ea244b9c885fbbe5e
4
- data.tar.gz: 1c9ac30c8038da9c126dbb6fe48a7188b94133ca
3
+ metadata.gz: 12d0504dcbd101169c96d0930bbd054eae14d21c
4
+ data.tar.gz: 43b0f27fa69a781cc84c6aeb7badec978ed4cfdf
5
5
  SHA512:
6
- metadata.gz: 8d9f30c4e601d6a19d5b90a047716703a302d9aa7606eb4e20c2ae2131005c28513168e3f925e46d9809425722205018e24c06e67cf8d9b1a13464de8747ab8b
7
- data.tar.gz: d7a9a0554e591c5121ae6293644ddd05f5b9cf7f4d2563b452f8a1a453d10042a9868c598c7145d329759c86f45b3e449a6c7474dcd44d2f2c6823033f368be5
6
+ metadata.gz: 4092841e5caa995e7f97d91c1442b33413a4d9b2fc4e2db7ff792da075a296d8562d47811a7144ccf4515c7af4336f3cce3d697bc272d07bf1e79eb92d349b2c
7
+ data.tar.gz: 5c47ab4ecb1865db53c758fa89d7b622c71c682f45bda588d5c66342f5bf9419c26220ebde281036982a6b0195eb0f7e67762514be21f2ce9e5a3b78797eaea7
@@ -18,7 +18,8 @@
18
18
  },
19
19
  "input":{"shape":"AttachInstancesQuery"},
20
20
  "errors":[
21
- {"shape":"ResourceContentionFault"}
21
+ {"shape":"ResourceContentionFault"},
22
+ {"shape":"ServiceLinkedRoleFailure"}
22
23
  ]
23
24
  },
24
25
  "AttachLoadBalancerTargetGroups":{
@@ -33,7 +34,8 @@
33
34
  "resultWrapper":"AttachLoadBalancerTargetGroupsResult"
34
35
  },
35
36
  "errors":[
36
- {"shape":"ResourceContentionFault"}
37
+ {"shape":"ResourceContentionFault"},
38
+ {"shape":"ServiceLinkedRoleFailure"}
37
39
  ]
38
40
  },
39
41
  "AttachLoadBalancers":{
@@ -48,7 +50,8 @@
48
50
  "resultWrapper":"AttachLoadBalancersResult"
49
51
  },
50
52
  "errors":[
51
- {"shape":"ResourceContentionFault"}
53
+ {"shape":"ResourceContentionFault"},
54
+ {"shape":"ServiceLinkedRoleFailure"}
52
55
  ]
53
56
  },
54
57
  "CompleteLifecycleAction":{
@@ -76,7 +79,8 @@
76
79
  "errors":[
77
80
  {"shape":"AlreadyExistsFault"},
78
81
  {"shape":"LimitExceededFault"},
79
- {"shape":"ResourceContentionFault"}
82
+ {"shape":"ResourceContentionFault"},
83
+ {"shape":"ServiceLinkedRoleFailure"}
80
84
  ]
81
85
  },
82
86
  "CreateLaunchConfiguration":{
@@ -165,7 +169,8 @@
165
169
  },
166
170
  "input":{"shape":"DeletePolicyType"},
167
171
  "errors":[
168
- {"shape":"ResourceContentionFault"}
172
+ {"shape":"ResourceContentionFault"},
173
+ {"shape":"ServiceLinkedRoleFailure"}
169
174
  ]
170
175
  },
171
176
  "DeleteScheduledAction":{
@@ -383,7 +388,8 @@
383
388
  },
384
389
  "errors":[
385
390
  {"shape":"InvalidNextToken"},
386
- {"shape":"ResourceContentionFault"}
391
+ {"shape":"ResourceContentionFault"},
392
+ {"shape":"ServiceLinkedRoleFailure"}
387
393
  ]
388
394
  },
389
395
  "DescribeScalingActivities":{
@@ -596,7 +602,8 @@
596
602
  "input":{"shape":"PutNotificationConfigurationType"},
597
603
  "errors":[
598
604
  {"shape":"LimitExceededFault"},
599
- {"shape":"ResourceContentionFault"}
605
+ {"shape":"ResourceContentionFault"},
606
+ {"shape":"ServiceLinkedRoleFailure"}
600
607
  ]
601
608
  },
602
609
  "PutScalingPolicy":{
@@ -612,7 +619,8 @@
612
619
  },
613
620
  "errors":[
614
621
  {"shape":"LimitExceededFault"},
615
- {"shape":"ResourceContentionFault"}
622
+ {"shape":"ResourceContentionFault"},
623
+ {"shape":"ServiceLinkedRoleFailure"}
616
624
  ]
617
625
  },
618
626
  "PutScheduledUpdateGroupAction":{
@@ -731,7 +739,8 @@
731
739
  "input":{"shape":"UpdateAutoScalingGroupType"},
732
740
  "errors":[
733
741
  {"shape":"ScalingActivityInProgressFault"},
734
- {"shape":"ResourceContentionFault"}
742
+ {"shape":"ResourceContentionFault"},
743
+ {"shape":"ServiceLinkedRoleFailure"}
735
744
  ]
736
745
  }
737
746
  },
@@ -895,7 +904,8 @@
895
904
  "Status":{"shape":"XmlStringMaxLen255"},
896
905
  "Tags":{"shape":"TagDescriptionList"},
897
906
  "TerminationPolicies":{"shape":"TerminationPolicies"},
898
- "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"}
907
+ "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"},
908
+ "ServiceLinkedRoleARN":{"shape":"ResourceName"}
899
909
  }
900
910
  },
901
911
  "AutoScalingGroupDesiredCapacity":{"type":"integer"},
@@ -1048,7 +1058,8 @@
1048
1058
  "TerminationPolicies":{"shape":"TerminationPolicies"},
1049
1059
  "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"},
1050
1060
  "LifecycleHookSpecificationList":{"shape":"LifecycleHookSpecifications"},
1051
- "Tags":{"shape":"Tags"}
1061
+ "Tags":{"shape":"Tags"},
1062
+ "ServiceLinkedRoleARN":{"shape":"ResourceName"}
1052
1063
  }
1053
1064
  },
1054
1065
  "CreateLaunchConfigurationType":{
@@ -2052,6 +2063,18 @@
2052
2063
  "type":"list",
2053
2064
  "member":{"shape":"XmlString"}
2054
2065
  },
2066
+ "ServiceLinkedRoleFailure":{
2067
+ "type":"structure",
2068
+ "members":{
2069
+ "message":{"shape":"XmlStringMaxLen255"}
2070
+ },
2071
+ "error":{
2072
+ "code":"ServiceLinkedRoleFailure",
2073
+ "httpStatusCode":500,
2074
+ "senderFault":true
2075
+ },
2076
+ "exception":true
2077
+ },
2055
2078
  "SetDesiredCapacityType":{
2056
2079
  "type":"structure",
2057
2080
  "required":[
@@ -2220,7 +2243,8 @@
2220
2243
  "PlacementGroup":{"shape":"XmlStringMaxLen255"},
2221
2244
  "VPCZoneIdentifier":{"shape":"XmlStringMaxLen2047"},
2222
2245
  "TerminationPolicies":{"shape":"TerminationPolicies"},
2223
- "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"}
2246
+ "NewInstancesProtectedFromScaleIn":{"shape":"InstanceProtected"},
2247
+ "ServiceLinkedRoleARN":{"shape":"ResourceName"}
2224
2248
  }
2225
2249
  },
2226
2250
  "Values":{
@@ -260,6 +260,20 @@
260
260
  {"shape":"WAFNonEmptyEntityException"}
261
261
  ]
262
262
  },
263
+ "DeletePermissionPolicy":{
264
+ "name":"DeletePermissionPolicy",
265
+ "http":{
266
+ "method":"POST",
267
+ "requestUri":"/"
268
+ },
269
+ "input":{"shape":"DeletePermissionPolicyRequest"},
270
+ "output":{"shape":"DeletePermissionPolicyResponse"},
271
+ "errors":[
272
+ {"shape":"WAFInternalErrorException"},
273
+ {"shape":"WAFStaleDataException"},
274
+ {"shape":"WAFNonexistentItemException"}
275
+ ]
276
+ },
263
277
  "DeleteRateBasedRule":{
264
278
  "name":"DeleteRateBasedRule",
265
279
  "http":{
@@ -479,6 +493,19 @@
479
493
  {"shape":"WAFNonexistentItemException"}
480
494
  ]
481
495
  },
496
+ "GetPermissionPolicy":{
497
+ "name":"GetPermissionPolicy",
498
+ "http":{
499
+ "method":"POST",
500
+ "requestUri":"/"
501
+ },
502
+ "input":{"shape":"GetPermissionPolicyRequest"},
503
+ "output":{"shape":"GetPermissionPolicyResponse"},
504
+ "errors":[
505
+ {"shape":"WAFInternalErrorException"},
506
+ {"shape":"WAFNonexistentItemException"}
507
+ ]
508
+ },
482
509
  "GetRateBasedRule":{
483
510
  "name":"GetRateBasedRule",
484
511
  "http":{
@@ -814,6 +841,21 @@
814
841
  {"shape":"WAFInvalidAccountException"}
815
842
  ]
816
843
  },
844
+ "PutPermissionPolicy":{
845
+ "name":"PutPermissionPolicy",
846
+ "http":{
847
+ "method":"POST",
848
+ "requestUri":"/"
849
+ },
850
+ "input":{"shape":"PutPermissionPolicyRequest"},
851
+ "output":{"shape":"PutPermissionPolicyResponse"},
852
+ "errors":[
853
+ {"shape":"WAFInternalErrorException"},
854
+ {"shape":"WAFStaleDataException"},
855
+ {"shape":"WAFNonexistentItemException"},
856
+ {"shape":"WAFInvalidPermissionPolicyException"}
857
+ ]
858
+ },
817
859
  "UpdateByteMatchSet":{
818
860
  "name":"UpdateByteMatchSet",
819
861
  "http":{
@@ -1444,6 +1486,18 @@
1444
1486
  "ChangeToken":{"shape":"ChangeToken"}
1445
1487
  }
1446
1488
  },
1489
+ "DeletePermissionPolicyRequest":{
1490
+ "type":"structure",
1491
+ "required":["ResourceArn"],
1492
+ "members":{
1493
+ "ResourceArn":{"shape":"ResourceArn"}
1494
+ }
1495
+ },
1496
+ "DeletePermissionPolicyResponse":{
1497
+ "type":"structure",
1498
+ "members":{
1499
+ }
1500
+ },
1447
1501
  "DeleteRateBasedRuleRequest":{
1448
1502
  "type":"structure",
1449
1503
  "required":[
@@ -1984,6 +2038,19 @@
1984
2038
  "IPSet":{"shape":"IPSet"}
1985
2039
  }
1986
2040
  },
2041
+ "GetPermissionPolicyRequest":{
2042
+ "type":"structure",
2043
+ "required":["ResourceArn"],
2044
+ "members":{
2045
+ "ResourceArn":{"shape":"ResourceArn"}
2046
+ }
2047
+ },
2048
+ "GetPermissionPolicyResponse":{
2049
+ "type":"structure",
2050
+ "members":{
2051
+ "Policy":{"shape":"PolicyString"}
2052
+ }
2053
+ },
1987
2054
  "GetRateBasedRuleManagedKeysRequest":{
1988
2055
  "type":"structure",
1989
2056
  "required":["RuleId"],
@@ -2492,6 +2559,10 @@
2492
2559
  "ILLEGAL_COMBINATION"
2493
2560
  ]
2494
2561
  },
2562
+ "PolicyString":{
2563
+ "type":"string",
2564
+ "min":1
2565
+ },
2495
2566
  "PopulationSize":{"type":"long"},
2496
2567
  "PositionalConstraint":{
2497
2568
  "type":"string",
@@ -2532,6 +2603,22 @@
2532
2603
  "type":"list",
2533
2604
  "member":{"shape":"Predicate"}
2534
2605
  },
2606
+ "PutPermissionPolicyRequest":{
2607
+ "type":"structure",
2608
+ "required":[
2609
+ "ResourceArn",
2610
+ "Policy"
2611
+ ],
2612
+ "members":{
2613
+ "ResourceArn":{"shape":"ResourceArn"},
2614
+ "Policy":{"shape":"PolicyString"}
2615
+ }
2616
+ },
2617
+ "PutPermissionPolicyResponse":{
2618
+ "type":"structure",
2619
+ "members":{
2620
+ }
2621
+ },
2535
2622
  "RateBasedRule":{
2536
2623
  "type":"structure",
2537
2624
  "required":[
@@ -2665,6 +2752,11 @@
2665
2752
  "member":{"shape":"RegexPatternString"},
2666
2753
  "max":10
2667
2754
  },
2755
+ "ResourceArn":{
2756
+ "type":"string",
2757
+ "max":1224,
2758
+ "min":1
2759
+ },
2668
2760
  "ResourceId":{
2669
2761
  "type":"string",
2670
2762
  "max":128,
@@ -3214,6 +3306,13 @@
3214
3306
  },
3215
3307
  "exception":true
3216
3308
  },
3309
+ "WAFInvalidPermissionPolicyException":{
3310
+ "type":"structure",
3311
+ "members":{
3312
+ "message":{"shape":"errorMessage"}
3313
+ },
3314
+ "exception":true
3315
+ },
3217
3316
  "WAFInvalidRegexPatternException":{
3218
3317
  "type":"structure",
3219
3318
  "members":{
@@ -276,6 +276,20 @@
276
276
  {"shape":"WAFNonEmptyEntityException"}
277
277
  ]
278
278
  },
279
+ "DeletePermissionPolicy":{
280
+ "name":"DeletePermissionPolicy",
281
+ "http":{
282
+ "method":"POST",
283
+ "requestUri":"/"
284
+ },
285
+ "input":{"shape":"DeletePermissionPolicyRequest"},
286
+ "output":{"shape":"DeletePermissionPolicyResponse"},
287
+ "errors":[
288
+ {"shape":"WAFInternalErrorException"},
289
+ {"shape":"WAFStaleDataException"},
290
+ {"shape":"WAFNonexistentItemException"}
291
+ ]
292
+ },
279
293
  "DeleteRateBasedRule":{
280
294
  "name":"DeleteRateBasedRule",
281
295
  "http":{
@@ -510,6 +524,19 @@
510
524
  {"shape":"WAFNonexistentItemException"}
511
525
  ]
512
526
  },
527
+ "GetPermissionPolicy":{
528
+ "name":"GetPermissionPolicy",
529
+ "http":{
530
+ "method":"POST",
531
+ "requestUri":"/"
532
+ },
533
+ "input":{"shape":"GetPermissionPolicyRequest"},
534
+ "output":{"shape":"GetPermissionPolicyResponse"},
535
+ "errors":[
536
+ {"shape":"WAFInternalErrorException"},
537
+ {"shape":"WAFNonexistentItemException"}
538
+ ]
539
+ },
513
540
  "GetRateBasedRule":{
514
541
  "name":"GetRateBasedRule",
515
542
  "http":{
@@ -875,6 +902,21 @@
875
902
  {"shape":"WAFInvalidAccountException"}
876
903
  ]
877
904
  },
905
+ "PutPermissionPolicy":{
906
+ "name":"PutPermissionPolicy",
907
+ "http":{
908
+ "method":"POST",
909
+ "requestUri":"/"
910
+ },
911
+ "input":{"shape":"PutPermissionPolicyRequest"},
912
+ "output":{"shape":"PutPermissionPolicyResponse"},
913
+ "errors":[
914
+ {"shape":"WAFInternalErrorException"},
915
+ {"shape":"WAFStaleDataException"},
916
+ {"shape":"WAFNonexistentItemException"},
917
+ {"shape":"WAFInvalidPermissionPolicyException"}
918
+ ]
919
+ },
878
920
  "UpdateByteMatchSet":{
879
921
  "name":"UpdateByteMatchSet",
880
922
  "http":{
@@ -1521,6 +1563,18 @@
1521
1563
  "ChangeToken":{"shape":"ChangeToken"}
1522
1564
  }
1523
1565
  },
1566
+ "DeletePermissionPolicyRequest":{
1567
+ "type":"structure",
1568
+ "required":["ResourceArn"],
1569
+ "members":{
1570
+ "ResourceArn":{"shape":"ResourceArn"}
1571
+ }
1572
+ },
1573
+ "DeletePermissionPolicyResponse":{
1574
+ "type":"structure",
1575
+ "members":{
1576
+ }
1577
+ },
1524
1578
  "DeleteRateBasedRuleRequest":{
1525
1579
  "type":"structure",
1526
1580
  "required":[
@@ -2073,6 +2127,19 @@
2073
2127
  "IPSet":{"shape":"IPSet"}
2074
2128
  }
2075
2129
  },
2130
+ "GetPermissionPolicyRequest":{
2131
+ "type":"structure",
2132
+ "required":["ResourceArn"],
2133
+ "members":{
2134
+ "ResourceArn":{"shape":"ResourceArn"}
2135
+ }
2136
+ },
2137
+ "GetPermissionPolicyResponse":{
2138
+ "type":"structure",
2139
+ "members":{
2140
+ "Policy":{"shape":"PolicyString"}
2141
+ }
2142
+ },
2076
2143
  "GetRateBasedRuleManagedKeysRequest":{
2077
2144
  "type":"structure",
2078
2145
  "required":["RuleId"],
@@ -2607,6 +2674,10 @@
2607
2674
  "ILLEGAL_COMBINATION"
2608
2675
  ]
2609
2676
  },
2677
+ "PolicyString":{
2678
+ "type":"string",
2679
+ "min":1
2680
+ },
2610
2681
  "PopulationSize":{"type":"long"},
2611
2682
  "PositionalConstraint":{
2612
2683
  "type":"string",
@@ -2647,6 +2718,22 @@
2647
2718
  "type":"list",
2648
2719
  "member":{"shape":"Predicate"}
2649
2720
  },
2721
+ "PutPermissionPolicyRequest":{
2722
+ "type":"structure",
2723
+ "required":[
2724
+ "ResourceArn",
2725
+ "Policy"
2726
+ ],
2727
+ "members":{
2728
+ "ResourceArn":{"shape":"ResourceArn"},
2729
+ "Policy":{"shape":"PolicyString"}
2730
+ }
2731
+ },
2732
+ "PutPermissionPolicyResponse":{
2733
+ "type":"structure",
2734
+ "members":{
2735
+ }
2736
+ },
2650
2737
  "RateBasedRule":{
2651
2738
  "type":"structure",
2652
2739
  "required":[
@@ -3338,6 +3425,13 @@
3338
3425
  },
3339
3426
  "exception":true
3340
3427
  },
3428
+ "WAFInvalidPermissionPolicyException":{
3429
+ "type":"structure",
3430
+ "members":{
3431
+ "message":{"shape":"errorMessage"}
3432
+ },
3433
+ "exception":true
3434
+ },
3341
3435
  "WAFInvalidRegexPatternException":{
3342
3436
  "type":"structure",
3343
3437
  "members":{
data/endpoints.json CHANGED
@@ -1548,6 +1548,7 @@
1548
1548
  "ap-northeast-1" : { },
1549
1549
  "ap-south-1" : { },
1550
1550
  "ap-southeast-2" : { },
1551
+ "ca-central-1" : { },
1551
1552
  "eu-central-1" : { },
1552
1553
  "eu-west-1" : { },
1553
1554
  "eu-west-2" : { },
@@ -83,19 +83,28 @@ module Aws
83
83
  def get_credentials
84
84
  # Retry loading credentials a configurable number of times if
85
85
  # the instance metadata service is not responding.
86
- begin
87
- retry_errors(NETWORK_ERRORS, max_retries: @retries) do
88
- open_connection do |conn|
89
- path = '/latest/meta-data/iam/security-credentials/'
90
- profile_name = http_get(conn, path).lines.first.strip
91
- http_get(conn, path + profile_name)
86
+ if _metadata_disabled?
87
+ '{}'
88
+ else
89
+ begin
90
+ retry_errors(NETWORK_ERRORS, max_retries: @retries) do
91
+ open_connection do |conn|
92
+ path = '/latest/meta-data/iam/security-credentials/'
93
+ profile_name = http_get(conn, path).lines.first.strip
94
+ http_get(conn, path + profile_name)
95
+ end
92
96
  end
97
+ rescue
98
+ '{}'
93
99
  end
94
- rescue
95
- '{}'
96
100
  end
97
101
  end
98
102
 
103
+ def _metadata_disabled?
104
+ flag = ENV["AWS_EC2_METADATA_DISABLED"]
105
+ !flag.nil? && flag.downcase == "true"
106
+ end
107
+
99
108
  def open_connection
100
109
  http = Net::HTTP.new(@ip_address, @port, nil)
101
110
  http.open_timeout = @http_open_timeout
@@ -1,3 +1,3 @@
1
1
  module Aws
2
- VERSION = '2.11.0'
2
+ VERSION = '2.11.1'
3
3
  end
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.11.0
4
+ version: 2.11.1
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: 2018-02-19 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jmespath