Update github.com/aws/aws-sdk-go

from v1.44.116 to v1.44.136
This commit is contained in:
ialidzhikov 2022-11-13 19:29:27 +02:00
parent 72acaad839
commit 712dea4ae3
19 changed files with 2794 additions and 238 deletions

2
go.mod
View File

@ -20,7 +20,7 @@ require (
github.com/Microsoft/hcsshim v0.8.22
github.com/armon/circbuf v0.0.0-20150827004946-bbbad097214e
github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5
github.com/aws/aws-sdk-go v1.44.116
github.com/aws/aws-sdk-go v1.44.136
github.com/blang/semver/v4 v4.0.0
github.com/container-storage-interface/spec v1.7.0
github.com/coredns/corefile-migration v1.0.17

13
go.sum
View File

@ -107,8 +107,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a h1:idn718Q4B6AGu/h5Sxe66HYVdqdGu2l9Iebqhi/AEoA=
github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a/go.mod h1:lB+ZfQJz7igIIfQNfa7Ml4HSf2uFQQRzpGGRXenZAgY=
github.com/aws/aws-sdk-go v1.35.24/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
github.com/aws/aws-sdk-go v1.44.116 h1:NpLIhcvLWXJZAEwvPj3TDHeqp7DleK6ZUVYyW01WNHY=
github.com/aws/aws-sdk-go v1.44.116/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.136 h1:J1KJJssa8pjU8jETYUxwRS37KTcxjACfKd9GK8t+5ZU=
github.com/aws/aws-sdk-go v1.44.136/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/benbjohnson/clock v1.1.0 h1:Q92kusRqC1XV2MjkWETPvjJVqKetz1OzxZB7mHJLju8=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
@ -705,6 +705,7 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.etcd.io/bbolt v1.3.2/go.mod h1:IbVyRI1SCnLcuJnV2u8VeU0CEYM7e686BmAb1XKL+uU=
go.etcd.io/bbolt v1.3.6 h1:/ecaJf0sk1l4l6V4awd65v2C3ILy7MSj+s/x1ADCIMU=
go.etcd.io/bbolt v1.3.6/go.mod h1:qXsaaIqmgQH0T+OPdb99Bf+PKfBBQVAdyD6TY9G8XM4=
@ -822,6 +823,7 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/mod v0.6.0 h1:b9gGHsz9/HhJ3HF5DHQytPpuwocVTChQJK3AvoLRD5I=
golang.org/x/mod v0.6.0/go.mod h1:4mET923SAdbXp2ki8ey+zGs1SLqsuM2Y0uvdZR/fUNI=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@ -871,6 +873,8 @@ golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 h1:Frnccbp+ok2GkUS2tC84yAq/U9Vg+0sIO7aRL3T4Xnc=
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
@ -982,11 +986,14 @@ golang.org/x/sys v0.0.0-20211116061358-0a5406a5449c/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220908164124-27713097b956/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.3.0 h1:qoo4akIqOcDME5bhc/NgxUdovd6BSS2uMsVjB56q1xI=
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@ -998,6 +1005,7 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM=
golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@ -1066,6 +1074,7 @@ golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/tools v0.2.0 h1:G6AHpWxTMGY1KyEYoAQ5WTtIekUUvDNjan3ugu60JvE=
golang.org/x/tools v0.2.0/go.mod h1:y4OqIKeOV/fWJetJ8bXPU1sEVniLMIyDAZWeHdV+NTA=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

View File

@ -12,7 +12,7 @@ require (
github.com/Azure/go-autorest/autorest/mocks v0.4.2
github.com/Azure/go-autorest/autorest/to v0.4.0
github.com/GoogleCloudPlatform/k8s-cloud-provider v1.18.1-0.20220218231025-f11817397a1b
github.com/aws/aws-sdk-go v1.44.116
github.com/aws/aws-sdk-go v1.44.136
github.com/golang/mock v1.6.0
github.com/google/go-cmp v0.5.9
github.com/rubiojr/go-vhd v0.0.0-20200706105327-02e210299021

View File

@ -77,8 +77,8 @@ github.com/alecthomas/units v0.0.0-20151022065526-2efee857e7cf/go.mod h1:ybxpYRF
github.com/alecthomas/units v0.0.0-20190717042225-c3de453c63f4/go.mod h1:ybxpYRFXyAe+OPACYpWeL0wqObRcbAqCMya13uyzqw0=
github.com/alecthomas/units v0.0.0-20190924025748-f65c72e2690d/go.mod h1:rBZYJk541a8SKzHPHnH3zbiI+7dagKZ0cgpgrD7Fyho=
github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY=
github.com/aws/aws-sdk-go v1.44.116 h1:NpLIhcvLWXJZAEwvPj3TDHeqp7DleK6ZUVYyW01WNHY=
github.com/aws/aws-sdk-go v1.44.116/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
github.com/aws/aws-sdk-go v1.44.136 h1:J1KJJssa8pjU8jETYUxwRS37KTcxjACfKd9GK8t+5ZU=
github.com/aws/aws-sdk-go v1.44.136/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
github.com/beorn7/perks v1.0.1 h1:VlbKKnNfV8bJzeqoa4cOKqO6bYr3WgKZxO8Z16+hsOM=
@ -355,6 +355,7 @@ github.com/yuin/goldmark v1.1.27/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9de
github.com/yuin/goldmark v1.1.32/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.2.1/go.mod h1:3hX8gzYuyVAZsxl0MRgGTJEmQBFcNTphYh9decYSb74=
github.com/yuin/goldmark v1.3.5/go.mod h1:mwnBkeHKe2W/ZEtQ+71ViKU8L12m81fl3OWwC1Zlc8k=
github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY=
go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU=
go.opencensus.io v0.22.0/go.mod h1:+kGneAE2xo2IficOXnaByMWTGM9T73dGwxeWcUqIpI8=
go.opencensus.io v0.22.2/go.mod h1:yxeiOL68Rb0Xd1ddK5vPZ/oVn4vY4Ynel7k9FzqtOIw=
@ -409,6 +410,7 @@ golang.org/x/mod v0.3.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA=
golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4=
golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20180826012351-8a410e7b638d/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
@ -450,6 +452,8 @@ golang.org/x/net v0.0.0-20210525063256-abc453219eb5/go.mod h1:9nx3DQGgdP8bBQD5qx
golang.org/x/net v0.0.0-20211112202133-69e39bad7dc2/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20220127200216-cd36cc0744dd/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220225172249-27dd8689420f/go.mod h1:CfG3xpIq0wQ8r1q4Su4UZFWDARRcnwPjda9FqA0JpMk=
golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c=
golang.org/x/net v0.1.0/go.mod h1:Cx3nUiGt4eDBEyega/BKRp+/AlGL8hYe7U9odMt2Cco=
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10 h1:Frnccbp+ok2GkUS2tC84yAq/U9Vg+0sIO7aRL3T4Xnc=
golang.org/x/net v0.3.1-0.20221206200815-1e63c2f08a10/go.mod h1:MBQ8lrhLObU/6UmLb4fmbmk5OcyYmqtbGd/9yIeKjEE=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
@ -481,6 +485,7 @@ golang.org/x/sync v0.0.0-20200625203802-6e8e738ad208/go.mod h1:RxMgew5VJxzue5/jJ
golang.org/x/sync v0.0.0-20201020160332-67f06af15bc9/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20201207232520-09787c993a3a/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20180830151530-49385e6e1522/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20180905080454-ebe1bf3edb33/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20181116152217-5ac8a444bdc5/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
@ -538,10 +543,14 @@ golang.org/x/sys v0.0.0-20210908233432-aa78b53d3365/go.mod h1:oPkhp1MJrh7nUepCBc
golang.org/x/sys v0.0.0-20211025201205-69cdffdb9359/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20211216021012-1d35b9e2eb4e/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220114195835-da31bd327af9/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/sys v0.3.0 h1:w8ZOecv6NaNa/zC8944JTU3vz4u6Lagfk4RPQxv92NQ=
golang.org/x/sys v0.3.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg=
golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo=
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8=
golang.org/x/term v0.3.0 h1:qoo4akIqOcDME5bhc/NgxUdovd6BSS2uMsVjB56q1xI=
golang.org/x/term v0.3.0/go.mod h1:q750SLmJuPmVoN1blW3UFBPREJfb1KmY3vwxfr+nFDA=
golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ=
@ -553,6 +562,7 @@ golang.org/x/text v0.3.4/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.5/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ=
golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ=
golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/text v0.5.0 h1:OLmvp0KP+FVG99Ct/qFiL/Fhk4zp4QQnZ7b2U+5piUM=
golang.org/x/text v0.5.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8=
golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ=
@ -613,6 +623,7 @@ golang.org/x/tools v0.1.2/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.3/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.4/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.5/go.mod h1:o0xws9oXOQQZyjljx8fwUC0k7L1pTE6eaCbjGeHmOkk=
golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc=
golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191011141410-1b5146add898/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=

File diff suppressed because it is too large Load Diff

View File

@ -5,4 +5,4 @@ package aws
const SDKName = "aws-sdk-go"
// SDKVersion is the version of this SDK
const SDKVersion = "1.44.116"
const SDKVersion = "1.44.136"

View File

@ -1,9 +1,8 @@
package shareddefaults
import (
"os"
"os/user"
"path/filepath"
"runtime"
)
// SharedCredentialsFilename returns the SDK's default file path
@ -31,10 +30,17 @@ func SharedConfigFilename() string {
// UserHomeDir returns the home directory for the user the process is
// running under.
func UserHomeDir() string {
if runtime.GOOS == "windows" { // Windows
return os.Getenv("USERPROFILE")
var home string
home = userHomeDir()
if len(home) > 0 {
return home
}
// *nix
return os.Getenv("HOME")
currUser, _ := user.Current()
if currUser != nil {
home = currUser.HomeDir
}
return home
}

View File

@ -0,0 +1,18 @@
//go:build !go1.12
// +build !go1.12
package shareddefaults
import (
"os"
"runtime"
)
func userHomeDir() string {
if runtime.GOOS == "windows" { // Windows
return os.Getenv("USERPROFILE")
}
// *nix
return os.Getenv("HOME")
}

View File

@ -0,0 +1,13 @@
//go:build go1.12
// +build go1.12
package shareddefaults
import (
"os"
)
func userHomeDir() string {
home, _ := os.UserHomeDir()
return home
}

View File

@ -4,7 +4,6 @@ package jsonutil
import (
"bytes"
"encoding/base64"
"encoding/json"
"fmt"
"math"
"reflect"
@ -16,6 +15,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
floatNaN = "NaN"
floatInf = "Infinity"
floatNegInf = "-Infinity"
)
var timeType = reflect.ValueOf(time.Time{}).Type()
var byteSliceType = reflect.ValueOf([]byte{}).Type()
@ -211,10 +216,16 @@ func buildScalar(v reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) erro
buf.Write(strconv.AppendInt(scratch[:0], value.Int(), 10))
case reflect.Float64:
f := value.Float()
if math.IsInf(f, 0) || math.IsNaN(f) {
return &json.UnsupportedValueError{Value: v, Str: strconv.FormatFloat(f, 'f', -1, 64)}
switch {
case math.IsNaN(f):
writeString(floatNaN, buf)
case math.IsInf(f, 1):
writeString(floatInf, buf)
case math.IsInf(f, -1):
writeString(floatNegInf, buf)
default:
buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64))
}
buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64))
default:
switch converted := value.Interface().(type) {
case time.Time:

View File

@ -6,6 +6,7 @@ import (
"encoding/json"
"fmt"
"io"
"math"
"math/big"
"reflect"
"strings"
@ -258,6 +259,18 @@ func (u unmarshaler) unmarshalScalar(value reflect.Value, data interface{}, tag
return err
}
value.Set(reflect.ValueOf(v))
case *float64:
// These are regular strings when parsed by encoding/json's unmarshaler.
switch {
case strings.EqualFold(d, floatNaN):
value.Set(reflect.ValueOf(aws.Float64(math.NaN())))
case strings.EqualFold(d, floatInf):
value.Set(reflect.ValueOf(aws.Float64(math.Inf(1))))
case strings.EqualFold(d, floatNegInf):
value.Set(reflect.ValueOf(aws.Float64(math.Inf(-1))))
default:
return fmt.Errorf("unknown JSON number value: %s", d)
}
default:
return fmt.Errorf("unsupported value: %v (%s)", value.Interface(), value.Type())
}

View File

@ -3,6 +3,7 @@ package queryutil
import (
"encoding/base64"
"fmt"
"math"
"net/url"
"reflect"
"sort"
@ -13,6 +14,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
floatNaN = "NaN"
floatInf = "Infinity"
floatNegInf = "-Infinity"
)
// Parse parses an object i and fills a url.Values object. The isEC2 flag
// indicates if this is the EC2 Query sub-protocol.
func Parse(body url.Values, i interface{}, isEC2 bool) error {
@ -228,9 +235,32 @@ func (q *queryParser) parseScalar(v url.Values, r reflect.Value, name string, ta
case int:
v.Set(name, strconv.Itoa(value))
case float64:
v.Set(name, strconv.FormatFloat(value, 'f', -1, 64))
var str string
switch {
case math.IsNaN(value):
str = floatNaN
case math.IsInf(value, 1):
str = floatInf
case math.IsInf(value, -1):
str = floatNegInf
default:
str = strconv.FormatFloat(value, 'f', -1, 64)
}
v.Set(name, str)
case float32:
v.Set(name, strconv.FormatFloat(float64(value), 'f', -1, 32))
asFloat64 := float64(value)
var str string
switch {
case math.IsNaN(asFloat64):
str = floatNaN
case math.IsInf(asFloat64, 1):
str = floatInf
case math.IsInf(asFloat64, -1):
str = floatNegInf
default:
str = strconv.FormatFloat(asFloat64, 'f', -1, 32)
}
v.Set(name, str)
case time.Time:
const ISO8601UTC = "2006-01-02T15:04:05Z"
format := tag.Get("timestampFormat")

View File

@ -6,6 +6,7 @@ import (
"encoding/base64"
"fmt"
"io"
"math"
"net/http"
"net/url"
"path"
@ -20,6 +21,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
floatNaN = "NaN"
floatInf = "Infinity"
floatNegInf = "-Infinity"
)
// Whether the byte value can be sent without escaping in AWS URLs
var noEscape [256]bool
@ -302,7 +309,16 @@ func convertType(v reflect.Value, tag reflect.StructTag) (str string, err error)
case int64:
str = strconv.FormatInt(value, 10)
case float64:
str = strconv.FormatFloat(value, 'f', -1, 64)
switch {
case math.IsNaN(value):
str = floatNaN
case math.IsInf(value, 1):
str = floatInf
case math.IsInf(value, -1):
str = floatNegInf
default:
str = strconv.FormatFloat(value, 'f', -1, 64)
}
case time.Time:
format := tag.Get("timestampFormat")
if len(format) == 0 {

View File

@ -6,6 +6,7 @@ import (
"fmt"
"io"
"io/ioutil"
"math"
"net/http"
"reflect"
"strconv"
@ -231,9 +232,20 @@ func unmarshalHeader(v reflect.Value, header string, tag reflect.StructTag) erro
}
v.Set(reflect.ValueOf(&i))
case *float64:
f, err := strconv.ParseFloat(header, 64)
if err != nil {
return err
var f float64
switch {
case strings.EqualFold(header, floatNaN):
f = math.NaN()
case strings.EqualFold(header, floatInf):
f = math.Inf(1)
case strings.EqualFold(header, floatNegInf):
f = math.Inf(-1)
default:
var err error
f, err = strconv.ParseFloat(header, 64)
if err != nil {
return err
}
}
v.Set(reflect.ValueOf(&f))
case *time.Time:

View File

@ -5,6 +5,7 @@ import (
"encoding/base64"
"encoding/xml"
"fmt"
"math"
"reflect"
"sort"
"strconv"
@ -14,6 +15,12 @@ import (
"github.com/aws/aws-sdk-go/private/protocol"
)
const (
floatNaN = "NaN"
floatInf = "Infinity"
floatNegInf = "-Infinity"
)
// BuildXML will serialize params into an xml.Encoder. Error will be returned
// if the serialization of any of the params or nested values fails.
func BuildXML(params interface{}, e *xml.Encoder) error {
@ -275,6 +282,7 @@ func (b *xmlBuilder) buildMap(value reflect.Value, current *XMLNode, tag reflect
// Error will be returned if the value type is unsupported.
func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
var str string
switch converted := value.Interface().(type) {
case string:
str = converted
@ -289,9 +297,29 @@ func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag refl
case int:
str = strconv.Itoa(converted)
case float64:
str = strconv.FormatFloat(converted, 'f', -1, 64)
switch {
case math.IsNaN(converted):
str = floatNaN
case math.IsInf(converted, 1):
str = floatInf
case math.IsInf(converted, -1):
str = floatNegInf
default:
str = strconv.FormatFloat(converted, 'f', -1, 64)
}
case float32:
str = strconv.FormatFloat(float64(converted), 'f', -1, 32)
// The SDK doesn't render float32 values in types, only float64. This case would never be hit currently.
asFloat64 := float64(converted)
switch {
case math.IsNaN(asFloat64):
str = floatNaN
case math.IsInf(asFloat64, 1):
str = floatInf
case math.IsInf(asFloat64, -1):
str = floatNegInf
default:
str = strconv.FormatFloat(asFloat64, 'f', -1, 32)
}
case time.Time:
format := tag.Get("timestampFormat")
if len(format) == 0 {

View File

@ -6,6 +6,7 @@ import (
"encoding/xml"
"fmt"
"io"
"math"
"reflect"
"strconv"
"strings"
@ -276,9 +277,20 @@ func parseScalar(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
}
r.Set(reflect.ValueOf(&v))
case *float64:
v, err := strconv.ParseFloat(node.Text, 64)
if err != nil {
return err
var v float64
switch {
case strings.EqualFold(node.Text, floatNaN):
v = math.NaN()
case strings.EqualFold(node.Text, floatInf):
v = math.Inf(1)
case strings.EqualFold(node.Text, floatNegInf):
v = math.Inf(-1)
default:
var err error
v, err = strconv.ParseFloat(node.Text, 64)
if err != nil {
return err
}
}
r.Set(reflect.ValueOf(&v))
case *time.Time:

View File

@ -859,6 +859,13 @@ func (c *AutoScaling) CreateLaunchConfigurationRequest(input *CreateLaunchConfig
// For more information, see Launch configurations (https://docs.aws.amazon.com/autoscaling/ec2/userguide/LaunchConfiguration.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// Amazon EC2 Auto Scaling configures instances launched as part of an Auto
// Scaling group using either a launch template or a launch configuration. We
// strongly recommend that you do not use launch configurations. They do not
// provide full functionality for Amazon EC2 Auto Scaling or Amazon EC2. For
// information about using launch templates, see Launch templates (https://docs.aws.amazon.com/autoscaling/ec2/userguide/launch-templates.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@ -1051,10 +1058,9 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou
// Deletes the specified Auto Scaling group.
//
// If the group has instances or scaling activities in progress, you must specify
// the option to force the deletion in order for it to succeed.
//
// If the group has policies, deleting the group deletes the policies, the underlying
// alarm actions, and any alarm that no longer has an associated action.
// the option to force the deletion in order for it to succeed. The force delete
// operation will also terminate the EC2 instances. If the group has a warm
// pool, the force delete option also deletes the warm pool.
//
// To remove instances from the Auto Scaling group before deleting it, call
// the DetachInstances API with the list of instances and the option to decrement
@ -1065,6 +1071,13 @@ func (c *AutoScaling) DeleteAutoScalingGroupRequest(input *DeleteAutoScalingGrou
// UpdateAutoScalingGroup API and set the minimum size and desired capacity
// of the Auto Scaling group to zero.
//
// If the group has scaling policies, deleting the group deletes the policies,
// the underlying alarm actions, and any alarm that no longer has an associated
// action.
//
// For more information, see Delete your Auto Scaling infrastructure (https://docs.aws.amazon.com/autoscaling/ec2/userguide/as-process-shutdown.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
// with awserr.Error's Code and Message methods to get detailed information about
// the error.
@ -7327,6 +7340,11 @@ type CreateAutoScalingGroupInput struct {
// The name of the Auto Scaling group. This name must be unique per Region per
// account.
//
// The name can contain any ASCII character 33 to 126 including most punctuation
// characters, digits, and upper and lowercased letters.
//
// You cannot use a colon (:) in the name.
//
// AutoScalingGroupName is a required field
AutoScalingGroupName *string `min:"1" type:"string" required:"true"`
@ -7405,7 +7423,7 @@ type CreateAutoScalingGroupInput struct {
// and marking it unhealthy due to a failed Elastic Load Balancing or custom
// health check. This is useful if your instances do not immediately pass these
// health checks after they enter the InService state. For more information,
// see Health check grace period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period)
// see Set the health check grace period for an Auto Scaling group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// Default: 0 seconds
@ -7480,10 +7498,8 @@ type CreateAutoScalingGroupInput struct {
// MinSize is a required field
MinSize *int64 `type:"integer" required:"true"`
// An embedded object that specifies a mixed instances policy.
//
// For more information, see Auto Scaling groups with multiple instance types
// and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// The mixed instances policy. For more information, see Auto Scaling groups
// with multiple instance types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// in the Amazon EC2 Auto Scaling User Guide.
MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"`
@ -7842,21 +7858,10 @@ type CreateLaunchConfigurationInput struct {
// in the Amazon EC2 User Guide for Linux Instances.
BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
// EC2-Classic retires on August 15, 2022. This property is not supported after
// that date.
//
// The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
// For more information, see ClassicLink (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/vpc-classiclink.html)
// in the Amazon EC2 User Guide for Linux Instances.
// Available for backward compatibility.
ClassicLinkVPCId *string `min:"1" type:"string"`
// EC2-Classic retires on August 15, 2022. This property is not supported after
// that date.
//
// The IDs of one or more security groups for the specified ClassicLink-enabled
// VPC.
//
// If you specify the ClassicLinkVPCId property, you must specify ClassicLinkVPCSecurityGroups.
// Available for backward compatibility.
ClassicLinkVPCSecurityGroups []*string `type:"list"`
// Specifies whether the launch configuration is optimized for EBS I/O (true)
@ -10954,11 +10959,13 @@ type DesiredConfiguration struct {
// in the Amazon EC2 Auto Scaling User Guide.
LaunchTemplate *LaunchTemplateSpecification `type:"structure"`
// Describes a mixed instances policy. A mixed instances policy contains the
// instance types that Amazon EC2 Auto Scaling can launch and other information
// that Amazon EC2 Auto Scaling can use to launch instances and help optimize
// your costs. For more information, see Auto Scaling groups with multiple instance
// types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// Use this structure to launch multiple instance types and On-Demand Instances
// and Spot Instances within a single Auto Scaling group.
//
// A mixed instances policy contains information that Amazon EC2 Auto Scaling
// can use to launch instances and help optimize your costs. For more information,
// see Auto Scaling groups with multiple instance types and purchase options
// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// in the Amazon EC2 Auto Scaling User Guide.
MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"`
}
@ -13431,15 +13438,34 @@ func (s *InstanceRefreshWarmPoolProgress) SetPercentageComplete(v int64) *Instan
return s
}
// When you specify multiple parameters, you get instance types that satisfy
// all of the specified parameters. If you specify multiple values for a parameter,
// The attributes for the instance types for a mixed instances policy. Amazon
// EC2 Auto Scaling uses your specified requirements to identify instance types.
// Then, it uses your On-Demand and Spot allocation strategies to launch instances
// from these instance types.
//
// When you specify multiple attributes, you get instance types that satisfy
// all of the specified attributes. If you specify multiple values for an attribute,
// you get instance types that satisfy any of the specified values.
//
// Represents requirements for the types of instances that can be launched.
// You must specify VCpuCount and MemoryMiB, but all other parameters are optional.
// To limit the list of instance types from which Amazon EC2 Auto Scaling can
// identify matching instance types, you can use one of the following parameters,
// but not both in the same request:
//
// - AllowedInstanceTypes - The instance types to include in the list. All
// other instance types are ignored, even if they match your specified attributes.
//
// - ExcludedInstanceTypes - The instance types to exclude from the list,
// even if they match your specified attributes.
//
// You must specify VCpuCount and MemoryMiB. All other attributes are optional.
// Any unspecified optional attribute is set to its default.
//
// For more information, see Creating an Auto Scaling group using attribute-based
// instance type selection (https://docs.aws.amazon.com/autoscaling/ec2/userguide/create-asg-instance-type-requirements.html)
// in the Amazon EC2 Auto Scaling User Guide.
// in the Amazon EC2 Auto Scaling User Guide. For help determining which instance
// types match your attributes before you apply them to your Auto Scaling group,
// see Preview instance types with specified attributes (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-attribute-based-instance-type-selection.html#ec2fleet-get-instance-types-from-instance-requirements)
// in the Amazon EC2 User Guide for Linux Instances.
type InstanceRequirements struct {
_ struct{} `type:"structure"`
@ -13448,7 +13474,7 @@ type InstanceRequirements struct {
//
// To exclude accelerator-enabled instance types, set Max to 0.
//
// Default: No minimum or maximum
// Default: No minimum or maximum limits
AcceleratorCount *AcceleratorCountRequest `type:"structure"`
// Indicates whether instance types must have accelerators by specific manufacturers.
@ -13486,7 +13512,7 @@ type InstanceRequirements struct {
// The minimum and maximum total memory size for the accelerators on an instance
// type, in MiB.
//
// Default: No minimum or maximum
// Default: No minimum or maximum limits
AcceleratorTotalMemoryMiB *AcceleratorTotalMemoryMiBRequest `type:"structure"`
// Lists the accelerator types that must be on an instance type.
@ -13500,6 +13526,23 @@ type InstanceRequirements struct {
// Default: Any accelerator type
AcceleratorTypes []*string `type:"list" enum:"AcceleratorType"`
// The instance types to apply your specified attributes against. All other
// instance types are ignored, even if they match your specified attributes.
//
// You can use strings with one or more wild cards, represented by an asterisk
// (*), to allow an instance type, size, or generation. The following are examples:
// m5.8xlarge, c5*.*, m5a.*, r*, *3*.
//
// For example, if you specify c5*, Amazon EC2 Auto Scaling will allow the entire
// C5 instance family, which includes all C5a and C5n instance types. If you
// specify m5a.*, Amazon EC2 Auto Scaling will allow all the M5a instance types,
// but not the M5n instance types.
//
// If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.
//
// Default: All instance types
AllowedInstanceTypes []*string `type:"list"`
// Indicates whether bare metal instance types are included, excluded, or required.
//
// Default: excluded
@ -13509,7 +13552,7 @@ type InstanceRequirements struct {
// in Mbps. For more information, see Amazon EBSoptimized instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-optimized.html)
// in the Amazon EC2 User Guide for Linux Instances.
//
// Default: No minimum or maximum
// Default: No minimum or maximum limits
BaselineEbsBandwidthMbps *BaselineEbsBandwidthMbpsRequest `type:"structure"`
// Indicates whether burstable performance instance types are included, excluded,
@ -13534,13 +13577,17 @@ type InstanceRequirements struct {
// Default: Any manufacturer
CpuManufacturers []*string `type:"list" enum:"CpuManufacturer"`
// Lists which instance types to exclude. You can use strings with one or more
// wild cards, represented by an asterisk (*). The following are examples: c5*,
// m5a.*, r*, *3*.
// The instance types to exclude. You can use strings with one or more wild
// cards, represented by an asterisk (*), to exclude an instance family, type,
// size, or generation. The following are examples: m5.8xlarge, c5*.*, m5a.*,
// r*, *3*.
//
// For example, if you specify c5*, you are excluding the entire C5 instance
// family, which includes all C5a and C5n instance types. If you specify m5a.*,
// you are excluding all the M5a instance types, but not the M5n instance types.
// Amazon EC2 Auto Scaling will exclude all the M5a instance types, but not
// the M5n instance types.
//
// If you specify ExcludedInstanceTypes, you can't specify AllowedInstanceTypes.
//
// Default: No excluded instance types
ExcludedInstanceTypes []*string `type:"list"`
@ -13578,7 +13625,7 @@ type InstanceRequirements struct {
// The minimum and maximum amount of memory per vCPU for an instance type, in
// GiB.
//
// Default: No minimum or maximum
// Default: No minimum or maximum limits
MemoryGiBPerVCpu *MemoryGiBPerVCpuRequest `type:"structure"`
// The minimum and maximum instance memory size for an instance type, in MiB.
@ -13586,9 +13633,15 @@ type InstanceRequirements struct {
// MemoryMiB is a required field
MemoryMiB *MemoryMiBRequest `type:"structure" required:"true"`
// The minimum and maximum amount of network bandwidth, in gigabits per second
// (Gbps).
//
// Default: No minimum or maximum limits
NetworkBandwidthGbps *NetworkBandwidthGbpsRequest `type:"structure"`
// The minimum and maximum number of network interfaces for an instance type.
//
// Default: No minimum or maximum
// Default: No minimum or maximum limits
NetworkInterfaceCount *NetworkInterfaceCountRequest `type:"structure"`
// The price protection threshold for On-Demand Instances. This is the maximum
@ -13632,7 +13685,7 @@ type InstanceRequirements struct {
// The minimum and maximum total local storage size for an instance type, in
// GB.
//
// Default: No minimum or maximum
// Default: No minimum or maximum limits
TotalLocalStorageGB *TotalLocalStorageGBRequest `type:"structure"`
// The minimum and maximum number of vCPUs for an instance type.
@ -13715,6 +13768,12 @@ func (s *InstanceRequirements) SetAcceleratorTypes(v []*string) *InstanceRequire
return s
}
// SetAllowedInstanceTypes sets the AllowedInstanceTypes field's value.
func (s *InstanceRequirements) SetAllowedInstanceTypes(v []*string) *InstanceRequirements {
s.AllowedInstanceTypes = v
return s
}
// SetBareMetal sets the BareMetal field's value.
func (s *InstanceRequirements) SetBareMetal(v string) *InstanceRequirements {
s.BareMetal = &v
@ -13775,6 +13834,12 @@ func (s *InstanceRequirements) SetMemoryMiB(v *MemoryMiBRequest) *InstanceRequir
return s
}
// SetNetworkBandwidthGbps sets the NetworkBandwidthGbps field's value.
func (s *InstanceRequirements) SetNetworkBandwidthGbps(v *NetworkBandwidthGbpsRequest) *InstanceRequirements {
s.NetworkBandwidthGbps = v
return s
}
// SetNetworkInterfaceCount sets the NetworkInterfaceCount field's value.
func (s *InstanceRequirements) SetNetworkInterfaceCount(v *NetworkInterfaceCountRequest) *InstanceRequirements {
s.NetworkInterfaceCount = v
@ -13847,36 +13912,45 @@ func (s *InstanceReusePolicy) SetReuseOnScaleIn(v bool) *InstanceReusePolicy {
return s
}
// Describes an instances distribution for an Auto Scaling group.
// Use this structure to specify the distribution of On-Demand Instances and
// Spot Instances and the allocation strategies used to fulfill On-Demand and
// Spot capacities for a mixed instances policy.
type InstancesDistribution struct {
_ struct{} `type:"structure"`
// The order of the launch template overrides to use in fulfilling On-Demand
// capacity.
// The allocation strategy to apply to your On-Demand Instances when they are
// launched. Possible instance types are determined by the launch template overrides
// that you specify.
//
// If you specify lowest-price, Amazon EC2 Auto Scaling uses price to determine
// the order, launching the lowest price first.
// The following lists the valid values:
//
// If you specify prioritized, Amazon EC2 Auto Scaling uses the priority that
// you assigned to each launch template override, launching the highest priority
// first. If all your On-Demand capacity cannot be fulfilled using your highest
// priority instance, then Amazon EC2 Auto Scaling launches the remaining capacity
// using the second priority instance type, and so on.
// lowest-price
//
// Default: lowest-price for Auto Scaling groups that specify InstanceRequirements
// in the overrides and prioritized for Auto Scaling groups that don't.
// Uses price to determine which instance types are the highest priority, launching
// the lowest priced instance types within an Availability Zone first. This
// is the default value for Auto Scaling groups that specify InstanceRequirements.
//
// Valid values: lowest-price | prioritized
// prioritized
//
// You set the order of instance types for the launch template overrides from
// highest to lowest priority (from first to last in the list). Amazon EC2 Auto
// Scaling launches your highest priority instance types first. If all your
// On-Demand capacity cannot be fulfilled using your highest priority instance
// type, then Amazon EC2 Auto Scaling launches the remaining capacity using
// the second priority instance type, and so on. This is the default value for
// Auto Scaling groups that don't specify InstanceRequirements and cannot be
// used for groups that do.
OnDemandAllocationStrategy *string `type:"string"`
// The minimum amount of the Auto Scaling group's capacity that must be fulfilled
// by On-Demand Instances. This base portion is launched first as your group
// scales.
//
// If you specify weights for the instance types in the overrides, the base
// capacity is measured in the same unit of measurement as the instance types.
// If you specify InstanceRequirements in the overrides, the base capacity is
// measured in the same unit of measurement as your group's desired capacity.
// This number has the same unit of measurement as the group's desired capacity.
// If you change the default unit of measurement (number of instances) by specifying
// weighted capacity values in your launch template overrides list, or by changing
// the default desired capacity type setting of the group, you must specify
// this number using the same unit of measurement.
//
// Default: 0
OnDemandBaseCapacity *int64 `type:"integer"`
@ -13889,41 +13963,63 @@ type InstancesDistribution struct {
// Default: 100
OnDemandPercentageAboveBaseCapacity *int64 `type:"integer"`
// Indicates how to allocate instances across Spot Instance pools.
// The allocation strategy to apply to your Spot Instances when they are launched.
// Possible instance types are determined by the launch template overrides that
// you specify.
//
// If the allocation strategy is lowest-price, the Auto Scaling group launches
// instances using the Spot pools with the lowest price, and evenly allocates
// your instances across the number of Spot pools that you specify.
// The following lists the valid values:
//
// If the allocation strategy is capacity-optimized (recommended), the Auto
// Scaling group launches instances using Spot pools that are optimally chosen
// based on the available Spot capacity. Alternatively, you can use capacity-optimized-prioritized
// and set the order of instance types in the list of launch template overrides
// from highest to lowest priority (from first to last in the list). Amazon
// EC2 Auto Scaling honors the instance type priorities on a best-effort basis
// but optimizes for capacity first.
// capacity-optimized
//
// Default: lowest-price
// Requests Spot Instances using pools that are optimally chosen based on the
// available Spot capacity. This strategy has the lowest risk of interruption.
// To give certain instance types a higher chance of launching first, use capacity-optimized-prioritized.
//
// Valid values: lowest-price | capacity-optimized | capacity-optimized-prioritized
// capacity-optimized-prioritized
//
// You set the order of instance types for the launch template overrides from
// highest to lowest priority (from first to last in the list). Amazon EC2 Auto
// Scaling honors the instance type priorities on a best effort basis but optimizes
// for capacity first. Note that if the On-Demand allocation strategy is set
// to prioritized, the same priority is applied when fulfilling On-Demand capacity.
// This is not a valid value for Auto Scaling groups that specify InstanceRequirements.
//
// lowest-price
//
// Requests Spot Instances using the lowest priced pools within an Availability
// Zone, across the number of Spot pools that you specify for the SpotInstancePools
// property. To ensure that your desired capacity is met, you might receive
// Spot Instances from several pools. This is the default value, but it might
// lead to high interruption rates because this strategy only considers instance
// price and not available capacity.
//
// price-capacity-optimized (recommended)
//
// Amazon EC2 Auto Scaling identifies the pools with the highest capacity availability
// for the number of instances that are launching. This means that we will request
// Spot Instances from the pools that we believe have the lowest chance of interruption
// in the near term. Amazon EC2 Auto Scaling then requests Spot Instances from
// the lowest priced of these pools.
SpotAllocationStrategy *string `type:"string"`
// The number of Spot Instance pools across which to allocate your Spot Instances.
// The Spot pools are determined from the different instance types in the overrides.
// Valid only when the Spot allocation strategy is lowest-price. Value must
// be in the range of 120.
// Valid only when the SpotAllocationStrategy is lowest-price. Value must be
// in the range of 120.
//
// Default: 2
SpotInstancePools *int64 `type:"integer"`
// The maximum price per unit hour that you are willing to pay for a Spot Instance.
// If you keep the value at its default (unspecified), Amazon EC2 Auto Scaling
// uses the On-Demand price as the maximum Spot price. To remove a value that
// you previously set, include the property but specify an empty string ("")
// for the value.
//
// If your maximum price is lower than the Spot price for the instance types
// that you selected, your Spot Instances are not launched.
// that you selected, your Spot Instances are not launched. We do not recommend
// specifying a maximum price because it can lead to increased interruptions.
// When Spot Instances launch, you pay the current Spot price. To remove a maximum
// price that you previously set, include the property but specify an empty
// string ("") for the value.
//
// If you specify a maximum price, your instances will be interrupted more frequently
// than if you do not specify one.
//
// Valid Range: Minimum value of 0.001
SpotMaxPrice *string `type:"string"`
@ -14004,16 +14100,10 @@ type LaunchConfiguration struct {
// in the Amazon EC2 User Guide for Linux Instances.
BlockDeviceMappings []*BlockDeviceMapping `type:"list"`
// EC2-Classic retires on August 15, 2022. This property is not supported after
// that date.
//
// The ID of a ClassicLink-enabled VPC to link your EC2-Classic instances to.
// Available for backward compatibility.
ClassicLinkVPCId *string `min:"1" type:"string"`
// EC2-Classic retires on August 15, 2022. This property is not supported after
// that date.
//
// The IDs of one or more security groups for the VPC specified in ClassicLinkVPCId.
// Available for backward compatibility.
ClassicLinkVPCSecurityGroups []*string `type:"list"`
// The creation date and time for the launch configuration.
@ -14250,21 +14340,16 @@ func (s *LaunchConfiguration) SetUserData(v string) *LaunchConfiguration {
return s
}
// Describes a launch template and overrides. You specify these properties as
// part of a mixed instances policy.
// Use this structure to specify the launch templates and instance types (overrides)
// for a mixed instances policy.
type LaunchTemplate struct {
_ struct{} `type:"structure"`
// The launch template to use.
// The launch template.
LaunchTemplateSpecification *LaunchTemplateSpecification `type:"structure"`
// Any properties that you specify override the same properties in the launch
// template. If not provided, Amazon EC2 Auto Scaling uses the instance type
// or instance type requirements specified in the launch template when it launches
// an instance.
//
// The overrides can include either one or more instance types or a set of instance
// requirements, but not both.
// template.
Overrides []*LaunchTemplateOverrides `type:"list"`
}
@ -14323,45 +14408,82 @@ func (s *LaunchTemplate) SetOverrides(v []*LaunchTemplateOverrides) *LaunchTempl
return s
}
// Describes an override for a launch template. For more information, see Configuring
// overrides (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-configuring-overrides.html)
// in the Amazon EC2 Auto Scaling User Guide.
// Use this structure to let Amazon EC2 Auto Scaling do the following when the
// Auto Scaling group has a mixed instances policy:
//
// - Override the instance type that is specified in the launch template.
//
// - Use multiple instance types.
//
// Specify the instance types that you want, or define your instance requirements
// instead and let Amazon EC2 Auto Scaling provision the available instance
// types that meet your requirements. This can provide Amazon EC2 Auto Scaling
// with a larger selection of instance types to choose from when fulfilling
// Spot and On-Demand capacities. You can view which instance types are matched
// before you apply the instance requirements to your Auto Scaling group.
//
// After you define your instance requirements, you don't have to keep updating
// these settings to get new EC2 instance types automatically. Amazon EC2 Auto
// Scaling uses the instance requirements of the Auto Scaling group to determine
// whether a new EC2 instance type can be used.
type LaunchTemplateOverrides struct {
_ struct{} `type:"structure"`
// The instance requirements. When you specify instance requirements, Amazon
// EC2 Auto Scaling finds instance types that satisfy your requirements, and
// then uses your On-Demand and Spot allocation strategies to launch instances
// from these instance types, in the same way as when you specify a list of
// specific instance types.
// The instance requirements. Amazon EC2 Auto Scaling uses your specified requirements
// to identify instance types. Then, it uses your On-Demand and Spot allocation
// strategies to launch instances from these instance types.
//
// You can specify up to four separate sets of instance requirements per Auto
// Scaling group. This is useful for provisioning instances from different Amazon
// Machine Images (AMIs) in the same Auto Scaling group. To do this, create
// the AMIs and create a new launch template for each AMI. Then, create a compatible
// set of instance requirements for each launch template.
//
// If you specify InstanceRequirements, you can't specify InstanceType.
InstanceRequirements *InstanceRequirements `type:"structure"`
// The instance type, such as m3.xlarge. You must use an instance type that
// The instance type, such as m3.xlarge. You must specify an instance type that
// is supported in your requested Region and Availability Zones. For more information,
// see Instance types (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html)
// in the Amazon Elastic Compute Cloud User Guide.
//
// You can specify up to 40 instance types per Auto Scaling group.
InstanceType *string `min:"1" type:"string"`
// Provides a launch template for the specified instance type or instance requirements.
// For example, some instance types might require a launch template with a different
// AMI. If not provided, Amazon EC2 Auto Scaling uses the launch template that's
// defined for your mixed instances policy. For more information, see Specifying
// a different launch template for an instance type (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html)
// Provides a launch template for the specified instance type or set of instance
// requirements. For example, some instance types might require a launch template
// with a different AMI. If not provided, Amazon EC2 Auto Scaling uses the launch
// template that's specified in the LaunchTemplate definition. For more information,
// see Specifying a different launch template for an instance type (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-launch-template-overrides.html)
// in the Amazon EC2 Auto Scaling User Guide.
//
// You can specify up to 20 launch templates per Auto Scaling group. The launch
// templates specified in the overrides and in the LaunchTemplate definition
// count towards this limit.
LaunchTemplateSpecification *LaunchTemplateSpecification `type:"structure"`
// The number of capacity units provided by the instance type specified in InstanceType
// in terms of virtual CPUs, memory, storage, throughput, or other relative
// performance characteristic. When a Spot or On-Demand Instance is launched,
// the capacity units count toward the desired capacity. Amazon EC2 Auto Scaling
// launches instances until the desired capacity is totally fulfilled, even
// if this results in an overage. For example, if there are two units remaining
// to fulfill capacity, and Amazon EC2 Auto Scaling can only launch an instance
// with a WeightedCapacity of five units, the instance is launched, and the
// desired capacity is exceeded by three units. For more information, see Configuring
// instance weighting for Amazon EC2 Auto Scaling (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html)
// If you provide a list of instance types to use, you can specify the number
// of capacity units provided by each instance type in terms of virtual CPUs,
// memory, storage, throughput, or other relative performance characteristic.
// When a Spot or On-Demand Instance is launched, the capacity units count toward
// the desired capacity. Amazon EC2 Auto Scaling launches instances until the
// desired capacity is totally fulfilled, even if this results in an overage.
// For example, if there are two units remaining to fulfill capacity, and Amazon
// EC2 Auto Scaling can only launch an instance with a WeightedCapacity of five
// units, the instance is launched, and the desired capacity is exceeded by
// three units. For more information, see Configuring instance weighting for
// Amazon EC2 Auto Scaling (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups-instance-weighting.html)
// in the Amazon EC2 Auto Scaling User Guide. Value must be in the range of
// 1999.
//
// If you specify a value for WeightedCapacity for one instance type, you must
// specify a value for WeightedCapacity for all of them.
//
// Every Auto Scaling group has three size parameters (DesiredCapacity, MaxSize,
// and MinSize). Usually, you set these sizes based on a specific number of
// instances. However, if you configure a mixed instances policy that defines
// weights for the instance types, you must specify these sizes with the same
// units that you use for weighting instances.
WeightedCapacity *string `min:"1" type:"string"`
}
@ -15519,11 +15641,13 @@ func (s *MetricStat) SetUnit(v string) *MetricStat {
return s
}
// Describes a mixed instances policy. A mixed instances policy contains the
// instance types that Amazon EC2 Auto Scaling can launch and other information
// that Amazon EC2 Auto Scaling can use to launch instances and help optimize
// your costs. For more information, see Auto Scaling groups with multiple instance
// types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// Use this structure to launch multiple instance types and On-Demand Instances
// and Spot Instances within a single Auto Scaling group.
//
// A mixed instances policy contains information that Amazon EC2 Auto Scaling
// can use to launch instances and help optimize your costs. For more information,
// see Auto Scaling groups with multiple instance types and purchase options
// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// in the Amazon EC2 Auto Scaling User Guide.
type MixedInstancesPolicy struct {
_ struct{} `type:"structure"`
@ -15581,6 +15705,55 @@ func (s *MixedInstancesPolicy) SetLaunchTemplate(v *LaunchTemplate) *MixedInstan
return s
}
// Specifies the minimum and maximum for the NetworkBandwidthGbps object when
// you specify InstanceRequirements for an Auto Scaling group.
//
// Setting the minimum bandwidth does not guarantee that your instance will
// achieve the minimum bandwidth. Amazon EC2 will identify instance types that
// support the specified minimum bandwidth, but the actual bandwidth of your
// instance might go below the specified minimum at times. For more information,
// see Available instance bandwidth (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html#available-instance-bandwidth)
// in the Amazon EC2 User Guide for Linux Instances.
type NetworkBandwidthGbpsRequest struct {
_ struct{} `type:"structure"`
// The maximum amount of network bandwidth, in gigabits per second (Gbps).
Max *float64 `type:"double"`
// The minimum amount of network bandwidth, in gigabits per second (Gbps).
Min *float64 `type:"double"`
}
// String returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s NetworkBandwidthGbpsRequest) String() string {
return awsutil.Prettify(s)
}
// GoString returns the string representation.
//
// API parameter values that are decorated as "sensitive" in the API will not
// be included in the string output. The member name will be present, but the
// value will be replaced with "sensitive".
func (s NetworkBandwidthGbpsRequest) GoString() string {
return s.String()
}
// SetMax sets the Max field's value.
func (s *NetworkBandwidthGbpsRequest) SetMax(v float64) *NetworkBandwidthGbpsRequest {
s.Max = &v
return s
}
// SetMin sets the Min field's value.
func (s *NetworkBandwidthGbpsRequest) SetMin(v float64) *NetworkBandwidthGbpsRequest {
s.Min = &v
return s
}
// Specifies the minimum and maximum for the NetworkInterfaceCount object when
// you specify InstanceRequirements for an Auto Scaling group.
type NetworkInterfaceCountRequest struct {
@ -19352,7 +19525,7 @@ type UpdateAutoScalingGroupInput struct {
// and marking it unhealthy due to a failed Elastic Load Balancing or custom
// health check. This is useful if your instances do not immediately pass these
// health checks after they enter the InService state. For more information,
// see Health check grace period (https://docs.aws.amazon.com/autoscaling/ec2/userguide/healthcheck.html#health-check-grace-period)
// see Set the health check grace period for an Auto Scaling group (https://docs.aws.amazon.com/autoscaling/ec2/userguide/health-check-grace-period.html)
// in the Amazon EC2 Auto Scaling User Guide.
HealthCheckGracePeriod *int64 `type:"integer"`
@ -19391,9 +19564,8 @@ type UpdateAutoScalingGroupInput struct {
// The minimum size of the Auto Scaling group.
MinSize *int64 `type:"integer"`
// An embedded object that specifies a mixed instances policy. For more information,
// see Auto Scaling groups with multiple instance types and purchase options
// (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// The mixed instances policy. For more information, see Auto Scaling groups
// with multiple instance types and purchase options (https://docs.aws.amazon.com/autoscaling/ec2/userguide/ec2-auto-scaling-mixed-instances-groups.html)
// in the Amazon EC2 Auto Scaling User Guide.
MixedInstancesPolicy *MixedInstancesPolicy `type:"structure"`

File diff suppressed because it is too large Load Diff

2
vendor/modules.txt vendored
View File

@ -105,7 +105,7 @@ github.com/armon/go-socks5
# github.com/asaskevich/govalidator v0.0.0-20190424111038-f61b66f89f4a
## explicit
github.com/asaskevich/govalidator
# github.com/aws/aws-sdk-go v1.44.116
# github.com/aws/aws-sdk-go v1.44.136
## explicit; go 1.11
github.com/aws/aws-sdk-go/aws
github.com/aws/aws-sdk-go/aws/awserr