Update dependencies

This commit is contained in:
github-actions 2022-11-18 06:09:02 +00:00
parent 306dd51565
commit a9613f81ef
26 changed files with 1961 additions and 331 deletions

8
go.mod
View File

@ -5,7 +5,7 @@ go 1.19
require (
cloud.google.com/go/compute/metadata v0.2.1
github.com/Azure/azure-pipeline-go v0.2.3
github.com/Azure/azure-sdk-for-go v67.0.0+incompatible
github.com/Azure/azure-sdk-for-go v67.1.0+incompatible
github.com/Azure/azure-storage-blob-go v0.15.0
github.com/Azure/go-autorest/autorest v0.11.28
github.com/Azure/go-autorest/autorest/azure/auth v0.5.11
@ -14,10 +14,10 @@ require (
github.com/Masterminds/sprig/v3 v3.2.2
github.com/apparentlymart/go-cidr v1.1.0
github.com/aws/amazon-ec2-instance-selector/v2 v2.4.0
github.com/aws/aws-sdk-go v1.44.135
github.com/aws/aws-sdk-go v1.44.140
github.com/blang/semver/v4 v4.0.0
github.com/cert-manager/cert-manager v1.10.0
github.com/digitalocean/godo v1.89.0
github.com/digitalocean/godo v1.90.0
github.com/go-ini/ini v1.67.0
github.com/go-logr/logr v1.2.3
github.com/gogo/protobuf v1.3.2
@ -45,7 +45,7 @@ require (
github.com/weaveworks/mesh v0.0.0-20191105120815-58dbcc3e8e63
github.com/zclconf/go-cty v1.12.1
go.uber.org/multierr v1.8.0
golang.org/x/crypto v0.2.0
golang.org/x/crypto v0.3.0
golang.org/x/net v0.2.0
golang.org/x/oauth2 v0.2.0
golang.org/x/sync v0.1.0

16
go.sum
View File

@ -54,8 +54,8 @@ cloud.google.com/go/storage v1.14.0/go.mod h1:GrKmX003DSIwi9o29oFT7YDnHYwZoctc3f
dmitri.shuralyov.com/gpu/mtl v0.0.0-20190408044501-666a987793e9/go.mod h1:H6x//7gZCb22OMCxBHrMx7a5I7Hp++hsVxbQ4BYO7hU=
github.com/Azure/azure-pipeline-go v0.2.3 h1:7U9HBg1JFK3jHl5qmo4CTZKFTVgMwdFHMVtCdfBE21U=
github.com/Azure/azure-pipeline-go v0.2.3/go.mod h1:x841ezTBIMG6O3lAcl8ATHnsOPVl2bqk7S3ta6S6u4k=
github.com/Azure/azure-sdk-for-go v67.0.0+incompatible h1:SVBwznSETB0Sipd0uyGJr7khLhJOFRUEUb+0JgkCvDo=
github.com/Azure/azure-sdk-for-go v67.0.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-sdk-for-go v67.1.0+incompatible h1:oziYcaopbnIKfM69DL05wXdypiqfrUKdxUKrKpynJTw=
github.com/Azure/azure-sdk-for-go v67.1.0+incompatible/go.mod h1:9XXNKU+eRnpl9moKnB4QOLf1HestfXbmab5FXxiDBjc=
github.com/Azure/azure-storage-blob-go v0.15.0 h1:rXtgp8tN1p29GvpGgfJetavIG0V7OgcSXPpwp3tx6qk=
github.com/Azure/azure-storage-blob-go v0.15.0/go.mod h1:vbjsVbX0dlxnRc4FFMPsS9BsJWPcne7GB7onqlPvz58=
github.com/Azure/go-ansiterm v0.0.0-20210617225240-d185dfc1b5a1 h1:UQHMgLO+TxOElx5B5HZ4hJQsoJ/PvUvKRhJHDQXO8P8=
@ -133,8 +133,8 @@ github.com/atotto/clipboard v0.1.4 h1:EH0zSVneZPSuFR11BlR9YppQTVDbh5+16AmcJi4g1z
github.com/atotto/clipboard v0.1.4/go.mod h1:ZY9tmq7sm5xIbd9bOK4onWV4S6X0u6GY7Vn0Yu86PYI=
github.com/aws/amazon-ec2-instance-selector/v2 v2.4.0 h1:9l68/pwVYm6EOAeBmoVUL4ekw6VlbwtPyX9/F+IpMxQ=
github.com/aws/amazon-ec2-instance-selector/v2 v2.4.0/go.mod h1:AEJrtkLkCkfIBIazidrVrgZqaXl+9dxI/wRgjdw+7G0=
github.com/aws/aws-sdk-go v1.44.135 h1:DJJP/CkEpgafA5p5jlY9VzDRyKrfABVixzIxrK/3tWU=
github.com/aws/aws-sdk-go v1.44.135/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.140 h1:6MxVSiAORc6AG+oh6401TEgWHb1ZzFL8y6+eBLoJtdU=
github.com/aws/aws-sdk-go v1.44.140/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=
@ -201,8 +201,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/dgryski/go-sip13 v0.0.0-20181026042036-e10d5fee7954/go.mod h1:vAd38F8PWV+bWy6jNmig1y/TA+kYO4g3RSRF0IAv0no=
github.com/digitalocean/godo v1.89.0 h1:UL3Ii4qfk86m4qEKg2iSwop0puvgOCKvwzXvwArU05E=
github.com/digitalocean/godo v1.89.0/go.mod h1:NRpFznZFvhHjBoqZAaOD3khVzsJ3EibzKqFL4R60dmA=
github.com/digitalocean/godo v1.90.0 h1:mnluEWL5eXFNYnLzHFuwsPuXZsWmzGoMNYSLZi9QPgc=
github.com/digitalocean/godo v1.90.0/go.mod h1:NRpFznZFvhHjBoqZAaOD3khVzsJ3EibzKqFL4R60dmA=
github.com/dimchansky/utfbom v1.1.1 h1:vV6w1AhK4VMnhBno/TPVCoK9U/LP0PkLCS9tbxHdi/U=
github.com/dimchansky/utfbom v1.1.1/go.mod h1:SxdoEBH5qIqFocHMyGOXVAybYJdr71b1Q/j0mACtrfE=
github.com/distribution/distribution/v3 v3.0.0-20220526142353-ffbd94cbe269 h1:hbCT8ZPPMqefiAWD2ZKjn7ypokIGViTvBBg/ExLSdCk=
@ -845,8 +845,8 @@ golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220722155217-630584e8d5aa/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.2.0 h1:BRXPfhNivWL5Yq0BGQ39a2sW6t44aODpfxkWjYdzewE=
golang.org/x/crypto v0.2.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8=

View File

@ -39,7 +39,7 @@ require (
github.com/apparentlymart/go-cidr v1.1.0 // indirect
github.com/armon/go-metrics v0.4.0 // indirect
github.com/armon/go-radix v1.0.0 // indirect
github.com/aws/aws-sdk-go v1.44.135 // indirect
github.com/aws/aws-sdk-go v1.44.140 // indirect
github.com/beorn7/perks v1.0.1 // indirect
github.com/blang/semver v3.5.1+incompatible // indirect
github.com/cenkalti/backoff/v3 v3.0.0 // indirect
@ -147,7 +147,7 @@ require (
go.opencensus.io v0.24.0 // indirect
go.uber.org/atomic v1.9.0 // indirect
go4.org v0.0.0-20201209231011-d4a079459e60 // indirect
golang.org/x/crypto v0.2.0 // indirect
golang.org/x/crypto v0.3.0 // indirect
golang.org/x/mod v0.6.0 // indirect
golang.org/x/net v0.2.0 // indirect
golang.org/x/oauth2 v0.2.0 // indirect

View File

@ -312,8 +312,8 @@ github.com/aws/aws-sdk-go v1.31.6/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU
github.com/aws/aws-sdk-go v1.31.12/go.mod h1:5zCpMtNQVjRREroY7sYe8lOMRSxkhG6MZveU8YkpAk0=
github.com/aws/aws-sdk-go v1.34.28/go.mod h1:H7NKnBqNVzoTJpGfLrQkkD+ytBA93eiDYi/+8rV9s48=
github.com/aws/aws-sdk-go v1.37.22/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
github.com/aws/aws-sdk-go v1.44.135 h1:DJJP/CkEpgafA5p5jlY9VzDRyKrfABVixzIxrK/3tWU=
github.com/aws/aws-sdk-go v1.44.135/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go v1.44.140 h1:6MxVSiAORc6AG+oh6401TEgWHb1ZzFL8y6+eBLoJtdU=
github.com/aws/aws-sdk-go v1.44.140/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aybabtme/rgbterm v0.0.0-20170906152045-cc83f3b3ce59/go.mod h1:q/89r3U2H7sSsE2t6Kca0lfwTK8JdoNGS/yzM/4iH5I=
github.com/bazelbuild/buildtools v0.0.0-20190917191645-69366ca98f89/go.mod h1:5JP0TXzWDHXv8qvxRC4InIazwdyDseBDbzESUMKk1yU=
github.com/bazelbuild/buildtools v0.0.0-20200922170545-10384511ce98/go.mod h1:5JP0TXzWDHXv8qvxRC4InIazwdyDseBDbzESUMKk1yU=
@ -2153,8 +2153,8 @@ golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5y
golang.org/x/crypto v0.0.0-20211202192323-5770296d904e/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20211215153901-e495a2d5b3d3/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.0.0-20220214200702-86341886e292/go.mod h1:IxCIyHEi3zRg3s0A5j5BB6A9Jmi73HwBIUl50j+osU4=
golang.org/x/crypto v0.2.0 h1:BRXPfhNivWL5Yq0BGQ39a2sW6t44aODpfxkWjYdzewE=
golang.org/x/crypto v0.2.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/crypto v0.3.0 h1:a06MkbcxBrEFc0w0QIZWXrH/9cCX6KJyWbBOIwAn+7A=
golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4=
golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=

View File

@ -4,4 +4,4 @@ package version
// Licensed under the MIT License. See License.txt in the project root for license information.
// Number contains the semantic version of this SDK.
const Number = "v67.0.0"
const Number = "v67.1.0"

View File

@ -31,6 +31,7 @@ const (
EuCentral2RegionID = "eu-central-2" // Europe (Zurich).
EuNorth1RegionID = "eu-north-1" // Europe (Stockholm).
EuSouth1RegionID = "eu-south-1" // Europe (Milan).
EuSouth2RegionID = "eu-south-2" // Europe (Spain).
EuWest1RegionID = "eu-west-1" // Europe (Ireland).
EuWest2RegionID = "eu-west-2" // Europe (London).
EuWest3RegionID = "eu-west-3" // Europe (Paris).
@ -182,6 +183,9 @@ var awsPartition = partition{
"eu-south-1": region{
Description: "Europe (Milan)",
},
"eu-south-2": region{
Description: "Europe (Spain)",
},
"eu-west-1": region{
Description: "Europe (Ireland)",
},
@ -271,6 +275,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -445,6 +452,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -1230,6 +1240,14 @@ var awsPartition = partition{
Region: "eu-south-1",
},
},
endpointKey{
Region: "eu-south-2",
}: endpoint{
Hostname: "api.ecr.eu-south-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "eu-south-2",
},
},
endpointKey{
Region: "eu-west-1",
}: endpoint{
@ -2024,6 +2042,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -2203,6 +2224,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -2403,6 +2427,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -3420,6 +3447,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -4118,6 +4148,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -4294,6 +4327,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -4566,6 +4602,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -5026,6 +5065,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -6066,6 +6108,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -6968,6 +7013,9 @@ var awsPartition = partition{
},
Deprecated: boxedTrue,
},
endpointKey{
Region: "me-central-1",
}: endpoint{},
endpointKey{
Region: "me-south-1",
}: endpoint{},
@ -7208,6 +7256,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -7466,6 +7517,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -7845,6 +7899,9 @@ var awsPartition = partition{
},
Deprecated: boxedTrue,
},
endpointKey{
Region: "me-central-1",
}: endpoint{},
endpointKey{
Region: "me-south-1",
}: endpoint{},
@ -7953,6 +8010,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -8155,6 +8215,9 @@ var awsPartition = partition{
},
Deprecated: boxedTrue,
},
endpointKey{
Region: "me-central-1",
}: endpoint{},
endpointKey{
Region: "me-south-1",
}: endpoint{},
@ -8260,6 +8323,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -8435,6 +8501,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -8737,6 +8806,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -9435,6 +9507,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -9585,6 +9660,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -9740,6 +9818,9 @@ var awsPartition = partition{
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
endpointKey{
Region: "ap-southeast-3",
}: endpoint{},
endpointKey{
Region: "ca-central-1",
}: endpoint{},
@ -10123,6 +10204,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -10268,6 +10352,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -11466,6 +11553,9 @@ var awsPartition = partition{
},
"gamesparks": service{
Endpoints: serviceEndpoints{
endpointKey{
Region: "ap-northeast-1",
}: endpoint{},
endpointKey{
Region: "us-east-1",
}: endpoint{},
@ -11892,6 +11982,22 @@ var awsPartition = partition{
endpointKey{
Region: "ca-central-1",
}: endpoint{},
endpointKey{
Region: "dataplane-ap-south-1",
}: endpoint{
Hostname: "greengrass-ats.iot.ap-south-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "ap-south-1",
},
},
endpointKey{
Region: "dataplane-us-east-2",
}: endpoint{
Hostname: "greengrass-ats.iot.us-east-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-2",
},
},
endpointKey{
Region: "eu-central-1",
}: endpoint{},
@ -13690,6 +13796,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -14176,6 +14285,15 @@ var awsPartition = partition{
},
Deprecated: boxedTrue,
},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
Variant: fipsVariant,
}: endpoint{
Hostname: "kms-fips.eu-south-2.amazonaws.com",
},
endpointKey{
Region: "eu-south-2-fips",
}: endpoint{
@ -14622,6 +14740,15 @@ var awsPartition = partition{
}: endpoint{
Hostname: "lambda.eu-south-1.api.aws",
},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
Variant: dualStackVariant,
}: endpoint{
Hostname: "lambda.eu-south-2.api.aws",
},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -15121,6 +15248,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -15284,6 +15414,15 @@ var awsPartition = partition{
},
"m2": service{
Endpoints: serviceEndpoints{
endpointKey{
Region: "ap-northeast-1",
}: endpoint{},
endpointKey{
Region: "ap-south-1",
}: endpoint{},
endpointKey{
Region: "ap-southeast-1",
}: endpoint{},
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
@ -15296,6 +15435,12 @@ var awsPartition = partition{
endpointKey{
Region: "eu-west-1",
}: endpoint{},
endpointKey{
Region: "eu-west-2",
}: endpoint{},
endpointKey{
Region: "eu-west-3",
}: endpoint{},
endpointKey{
Region: "sa-east-1",
}: endpoint{},
@ -16033,12 +16178,18 @@ var awsPartition = partition{
endpointKey{
Region: "eu-north-1",
}: endpoint{},
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
endpointKey{
Region: "eu-west-2",
}: endpoint{},
endpointKey{
Region: "eu-west-3",
}: endpoint{},
endpointKey{
Region: "fips",
}: endpoint{
@ -16140,6 +16291,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -16483,6 +16637,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -16892,9 +17049,6 @@ var awsPartition = partition{
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
endpointKey{
Region: "ap-southeast-3",
}: endpoint{},
endpointKey{
Region: "ca-central-1",
}: endpoint{},
@ -17605,6 +17759,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -18472,6 +18629,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -18632,6 +18792,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -19018,6 +19181,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -20407,6 +20573,15 @@ var awsPartition = partition{
}: endpoint{
Hostname: "s3.dualstack.eu-south-1.amazonaws.com",
},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
Variant: dualStackVariant,
}: endpoint{
Hostname: "s3.dualstack.eu-south-2.amazonaws.com",
},
endpointKey{
Region: "eu-west-1",
}: endpoint{
@ -21260,6 +21435,37 @@ var awsPartition = partition{
},
},
},
"scheduler": service{
Endpoints: serviceEndpoints{
endpointKey{
Region: "ap-northeast-1",
}: endpoint{},
endpointKey{
Region: "ap-southeast-1",
}: endpoint{},
endpointKey{
Region: "ap-southeast-2",
}: endpoint{},
endpointKey{
Region: "eu-central-1",
}: endpoint{},
endpointKey{
Region: "eu-north-1",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
endpointKey{
Region: "us-east-1",
}: endpoint{},
endpointKey{
Region: "us-east-2",
}: endpoint{},
endpointKey{
Region: "us-west-2",
}: endpoint{},
},
},
"schemas": service{
Endpoints: serviceEndpoints{
endpointKey{
@ -21410,6 +21616,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -22890,6 +23099,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -23032,6 +23244,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -23177,6 +23392,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -23435,6 +23653,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -23736,6 +23957,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -23830,6 +24054,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -23992,6 +24219,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -24128,6 +24358,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -24264,6 +24497,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -24973,13 +25209,19 @@ var awsPartition = partition{
endpointKey{
Region: "fips-us-east-1",
}: endpoint{
Hostname: "voiceid-fips.us-east-1.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-east-1",
},
Deprecated: boxedTrue,
},
endpointKey{
Region: "fips-us-west-2",
}: endpoint{
Hostname: "voiceid-fips.us-west-2.amazonaws.com",
CredentialScope: credentialScope{
Region: "us-west-2",
},
Deprecated: boxedTrue,
},
endpointKey{
@ -24988,14 +25230,18 @@ var awsPartition = partition{
endpointKey{
Region: "us-east-1",
Variant: fipsVariant,
}: endpoint{},
}: endpoint{
Hostname: "voiceid-fips.us-east-1.amazonaws.com",
},
endpointKey{
Region: "us-west-2",
}: endpoint{},
endpointKey{
Region: "us-west-2",
Variant: fipsVariant,
}: endpoint{},
}: endpoint{
Hostname: "voiceid-fips.us-west-2.amazonaws.com",
},
},
},
"waf": service{
@ -26548,6 +26794,9 @@ var awsPartition = partition{
endpointKey{
Region: "eu-south-1",
}: endpoint{},
endpointKey{
Region: "eu-south-2",
}: endpoint{},
endpointKey{
Region: "eu-west-1",
}: endpoint{},
@ -27464,6 +27713,14 @@ var awscnPartition = partition{
endpointKey{
Region: "cn-north-1",
}: endpoint{},
endpointKey{
Region: "dataplane-cn-north-1",
}: endpoint{
Hostname: "greengrass.ats.iot.cn-north-1.amazonaws.com.cn",
CredentialScope: credentialScope{
Region: "cn-north-1",
},
},
},
},
"guardduty": service{
@ -30868,6 +31125,13 @@ var awsusgovPartition = partition{
},
},
},
"ingest.timestream": service{
Endpoints: serviceEndpoints{
endpointKey{
Region: "us-gov-west-1",
}: endpoint{},
},
},
"inspector": service{
Endpoints: serviceEndpoints{
endpointKey{

View File

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

View File

@ -23221,6 +23221,9 @@ const (
// HandlerErrorCodeUnknown is a HandlerErrorCode enum value
HandlerErrorCodeUnknown = "Unknown"
// HandlerErrorCodeUnsupportedTarget is a HandlerErrorCode enum value
HandlerErrorCodeUnsupportedTarget = "UnsupportedTarget"
)
// HandlerErrorCode_Values returns all elements of the HandlerErrorCode enum
@ -23244,6 +23247,7 @@ func HandlerErrorCode_Values() []string {
HandlerErrorCodeHandlerInternalFailure,
HandlerErrorCodeNonCompliant,
HandlerErrorCodeUnknown,
HandlerErrorCodeUnsupportedTarget,
}
}

View File

@ -64469,10 +64469,12 @@ type CreateFlowLogsInput struct {
LogDestinationType *string `type:"string" enum:"LogDestinationType"`
// The fields to include in the flow log record. List the fields in the order
// in which they should appear. For more information about the available fields,
// see Flow log records (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records).
// If you omit this parameter, the flow log is created using the default format.
// If you specify this parameter, you must include at least one field.
// in which they should appear. If you omit this parameter, the flow log is
// created using the default format. If you specify this parameter, you must
// include at least one field. For more information about the available fields,
// see Flow log records (https://docs.aws.amazon.com/vpc/latest/userguide/flow-logs.html#flow-log-records)
// in the Amazon VPC User Guide or Transit Gateway Flow Log records (https://docs.aws.amazon.com/vpc/latest/tgw/tgw-flow-logs.html#flow-log-records)
// in the Amazon Web Services Transit Gateway Guide.
//
// Specify the fields using the ${field-id} format, separated by spaces. For
// the CLI, surround this parameter value with single quotes on Linux or double
@ -64486,8 +64488,9 @@ type CreateFlowLogsInput struct {
LogGroupName *string `type:"string"`
// The maximum interval of time during which a flow of packets is captured and
// aggregated into a flow log record. You can specify 60 seconds (1 minute)
// or 600 seconds (10 minutes).
// aggregated into a flow log record. The possible values are 60 seconds (1
// minute) or 600 seconds (10 minutes). This parameter must be 60 seconds for
// transit gateway resource types.
//
// When a network interface is attached to a Nitro-based instance (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/instance-types.html#ec2-nitro-instances),
// the aggregation interval is always 60 seconds or less, regardless of the
@ -64499,7 +64502,8 @@ type CreateFlowLogsInput struct {
// The IDs of the resources to monitor. For example, if the resource type is
// VPC, specify the IDs of the VPCs.
//
// Constraints: Maximum of 1000 resources
// Constraints: Maximum of 25 for transit gateway resource types. Maximum of
// 1000 for the other resource types.
//
// ResourceIds is a required field
ResourceIds []*string `locationName:"ResourceId" locationNameList:"item" type:"list" required:"true"`
@ -64513,7 +64517,8 @@ type CreateFlowLogsInput struct {
TagSpecifications []*TagSpecification `locationName:"TagSpecification" locationNameList:"item" type:"list"`
// The type of traffic to monitor (accepted traffic, rejected traffic, or all
// traffic).
// traffic). This parameter is not supported for transit gateway resource types.
// It is required for the other resource types.
TrafficType *string `type:"string" enum:"TrafficType"`
}
@ -66941,6 +66946,10 @@ type CreateNatGatewayInput struct {
// it is UnauthorizedOperation.
DryRun *bool `type:"boolean"`
// The private IPv4 address to assign to the NAT gateway. If you don't provide
// an address, a private IPv4 address will be automatically assigned.
PrivateIpAddress *string `type:"string"`
// The subnet in which to create the NAT gateway.
//
// SubnetId is a required field
@ -67005,6 +67014,12 @@ func (s *CreateNatGatewayInput) SetDryRun(v bool) *CreateNatGatewayInput {
return s
}
// SetPrivateIpAddress sets the PrivateIpAddress field's value.
func (s *CreateNatGatewayInput) SetPrivateIpAddress(v string) *CreateNatGatewayInput {
s.PrivateIpAddress = &v
return s
}
// SetSubnetId sets the SubnetId field's value.
func (s *CreateNatGatewayInput) SetSubnetId(v string) *CreateNatGatewayInput {
s.SubnetId = &v
@ -155411,44 +155426,27 @@ type SpotFleetRequestConfigData struct {
// For more information, see Allocation strategies for Spot Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-allocation-strategy.html)
// in the Amazon EC2 User Guide.
//
// priceCapacityOptimized (recommended)
// lowestPrice - Spot Fleet launches instances from the lowest-price Spot Instance
// pool that has available capacity. If the cheapest pool doesn't have available
// capacity, the Spot Instances come from the next cheapest pool that has available
// capacity. If a pool runs out of capacity before fulfilling your desired capacity,
// Spot Fleet will continue to fulfill your request by drawing from the next
// cheapest pool. To ensure that your desired capacity is met, you might receive
// Spot Instances from several pools.
//
// Spot Fleet 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. Spot Fleet then requests Spot Instances from the lowest
// priced of these pools.
// diversified - Spot Fleet launches instances from all of the Spot Instance
// pools that you specify.
//
// capacityOptimized
//
// Spot Fleet 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. To give certain instance types a higher chance of launching
// first, use capacityOptimizedPrioritized. Set a priority for each instance
// type by using the Priority parameter for LaunchTemplateOverrides. You can
// assign the same priority to different LaunchTemplateOverrides. EC2 implements
// the priorities on a best-effort basis, but optimizes for capacity first.
// capacityOptimizedPrioritized is supported only if your Spot Fleet uses a
// launch template. Note that if the OnDemandAllocationStrategy is set to prioritized,
// the same priority is applied when fulfilling On-Demand capacity.
//
// diversified
//
// Spot Fleet requests instances from all of the Spot Instance pools that you
// specify.
//
// lowestPrice
//
// Spot Fleet requests instances from the lowest priced Spot Instance pool that
// has available capacity. If the lowest priced pool doesn't have available
// capacity, the Spot Instances come from the next lowest priced pool that has
// available capacity. If a pool runs out of capacity before fulfilling your
// desired capacity, Spot Fleet will continue to fulfill your request by drawing
// from the next lowest priced pool. To ensure that your desired capacity is
// met, you might receive Spot Instances from several pools. Because this strategy
// only considers instance price and not capacity availability, it might lead
// to high interruption rates.
// capacityOptimized (recommended) - Spot Fleet launches instances from Spot
// Instance pools with optimal capacity for the number of instances that are
// launching. To give certain instance types a higher chance of launching first,
// use capacityOptimizedPrioritized. Set a priority for each instance type by
// using the Priority parameter for LaunchTemplateOverrides. You can assign
// the same priority to different LaunchTemplateOverrides. EC2 implements the
// priorities on a best-effort basis, but optimizes for capacity first. capacityOptimizedPrioritized
// is supported only if your Spot Fleet uses a launch template. Note that if
// the OnDemandAllocationStrategy is set to prioritized, the same priority is
// applied when fulfilling On-Demand capacity.
//
// Default: lowestPrice
AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"AllocationStrategy"`
@ -156312,44 +156310,27 @@ type SpotOptions struct {
// For more information, see Allocation strategies for Spot Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html)
// in the Amazon EC2 User Guide.
//
// price-capacity-optimized (recommended)
// lowest-price - EC2 Fleet launches instances from the lowest-price Spot Instance
// pool that has available capacity. If the cheapest pool doesn't have available
// capacity, the Spot Instances come from the next cheapest pool that has available
// capacity. If a pool runs out of capacity before fulfilling your desired capacity,
// EC2 Fleet will continue to fulfill your request by drawing from the next
// cheapest pool. To ensure that your desired capacity is met, you might receive
// Spot Instances from several pools.
//
// EC2 Fleet 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. EC2 Fleet then requests Spot Instances from the lowest
// priced of these pools.
// diversified - EC2 Fleet launches instances from all of the Spot Instance
// pools that you specify.
//
// capacity-optimized
//
// EC2 Fleet 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. To give certain instance types a higher chance of launching
// first, use capacity-optimized-prioritized. Set a priority for each instance
// type by using the Priority parameter for LaunchTemplateOverrides. You can
// assign the same priority to different LaunchTemplateOverrides. EC2 implements
// the priorities on a best-effort basis, but optimizes for capacity first.
// capacity-optimized-prioritized is supported only if your EC2 Fleet uses a
// launch template. Note that if the On-Demand AllocationStrategy is set to
// prioritized, the same priority is applied when fulfilling On-Demand capacity.
//
// diversified
//
// EC2 Fleet requests instances from all of the Spot Instance pools that you
// specify.
//
// lowest-price
//
// EC2 Fleet requests instances from the lowest priced Spot Instance pool that
// has available capacity. If the lowest priced pool doesn't have available
// capacity, the Spot Instances come from the next lowest priced pool that has
// available capacity. If a pool runs out of capacity before fulfilling your
// desired capacity, EC2 Fleet will continue to fulfill your request by drawing
// from the next lowest priced pool. To ensure that your desired capacity is
// met, you might receive Spot Instances from several pools. Because this strategy
// only considers instance price and not capacity availability, it might lead
// to high interruption rates.
// capacity-optimized (recommended) - EC2 Fleet launches instances from Spot
// Instance pools with optimal capacity for the number of instances that are
// launching. To give certain instance types a higher chance of launching first,
// use capacity-optimized-prioritized. Set a priority for each instance type
// by using the Priority parameter for LaunchTemplateOverrides. You can assign
// the same priority to different LaunchTemplateOverrides. EC2 implements the
// priorities on a best-effort basis, but optimizes for capacity first. capacity-optimized-prioritized
// is supported only if your fleet uses a launch template. Note that if the
// On-Demand AllocationStrategy is set to prioritized, the same priority is
// applied when fulfilling On-Demand capacity.
//
// Default: lowest-price
AllocationStrategy *string `locationName:"allocationStrategy" type:"string" enum:"SpotAllocationStrategy"`
@ -156484,44 +156465,27 @@ type SpotOptionsRequest struct {
// For more information, see Allocation strategies for Spot Instances (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-fleet-allocation-strategy.html)
// in the Amazon EC2 User Guide.
//
// price-capacity-optimized (recommended)
// lowest-price - EC2 Fleet launches instances from the lowest-price Spot Instance
// pool that has available capacity. If the cheapest pool doesn't have available
// capacity, the Spot Instances come from the next cheapest pool that has available
// capacity. If a pool runs out of capacity before fulfilling your desired capacity,
// EC2 Fleet will continue to fulfill your request by drawing from the next
// cheapest pool. To ensure that your desired capacity is met, you might receive
// Spot Instances from several pools.
//
// EC2 Fleet 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. EC2 Fleet then requests Spot Instances from the lowest
// priced of these pools.
// diversified - EC2 Fleet launches instances from all of the Spot Instance
// pools that you specify.
//
// capacity-optimized
//
// EC2 Fleet 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. To give certain instance types a higher chance of launching
// first, use capacity-optimized-prioritized. Set a priority for each instance
// type by using the Priority parameter for LaunchTemplateOverrides. You can
// assign the same priority to different LaunchTemplateOverrides. EC2 implements
// the priorities on a best-effort basis, but optimizes for capacity first.
// capacity-optimized-prioritized is supported only if your EC2 Fleet uses a
// launch template. Note that if the On-Demand AllocationStrategy is set to
// prioritized, the same priority is applied when fulfilling On-Demand capacity.
//
// diversified
//
// EC2 Fleet requests instances from all of the Spot Instance pools that you
// specify.
//
// lowest-price
//
// EC2 Fleet requests instances from the lowest priced Spot Instance pool that
// has available capacity. If the lowest priced pool doesn't have available
// capacity, the Spot Instances come from the next lowest priced pool that has
// available capacity. If a pool runs out of capacity before fulfilling your
// desired capacity, EC2 Fleet will continue to fulfill your request by drawing
// from the next lowest priced pool. To ensure that your desired capacity is
// met, you might receive Spot Instances from several pools. Because this strategy
// only considers instance price and not capacity availability, it might lead
// to high interruption rates.
// capacity-optimized (recommended) - EC2 Fleet launches instances from Spot
// Instance pools with optimal capacity for the number of instances that are
// launching. To give certain instance types a higher chance of launching first,
// use capacity-optimized-prioritized. Set a priority for each instance type
// by using the Priority parameter for LaunchTemplateOverrides. You can assign
// the same priority to different LaunchTemplateOverrides. EC2 implements the
// priorities on a best-effort basis, but optimizes for capacity first. capacity-optimized-prioritized
// is supported only if your fleet uses a launch template. Note that if the
// On-Demand AllocationStrategy is set to prioritized, the same priority is
// applied when fulfilling On-Demand capacity.
//
// Default: lowest-price
AllocationStrategy *string `type:"string" enum:"SpotAllocationStrategy"`

View File

@ -2655,9 +2655,6 @@ func (c *ELBV2) ModifyTargetGroupRequest(input *ModifyTargetGroupInput) (req *re
// Modifies the health checks used when evaluating the health state of the targets
// in the specified target group.
//
// If the protocol of the target group is TCP, TLS, UDP, or TCP_UDP, you can't
// modify the health check protocol, interval, timeout, or success codes.
//
// 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.
@ -4805,11 +4802,10 @@ type CreateTargetGroupInput struct {
HealthCheckEnabled *bool `type:"boolean"`
// The approximate amount of time, in seconds, between health checks of an individual
// target. If the target group protocol is HTTP or HTTPS, the default is 30
// seconds. If the target group protocol is TCP, TLS, UDP, or TCP_UDP, the supported
// values are 10 and 30 seconds and the default is 30 seconds. If the target
// group protocol is GENEVE, the default is 10 seconds. If the target type is
// lambda, the default is 35 seconds.
// target. The range is 5-300. If the target group protocol is TCP, TLS, UDP,
// TCP_UDP, HTTP or HTTPS, the default is 30 seconds. If the target group protocol
// is GENEVE, the default is 10 seconds. If the target type is lambda, the default
// is 35 seconds.
HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
// [HTTP/HTTPS health checks] The destination for health checks on the targets.
@ -4834,17 +4830,18 @@ type CreateTargetGroupInput struct {
HealthCheckProtocol *string `type:"string" enum:"ProtocolEnum"`
// The amount of time, in seconds, during which no response from a target means
// a failed health check. For target groups with a protocol of HTTP, HTTPS,
// or GENEVE, the default is 5 seconds. For target groups with a protocol of
// TCP or TLS, this value must be 6 seconds for HTTP health checks and 10 seconds
// for TCP and HTTPS health checks. If the target type is lambda, the default
// is 30 seconds.
// a failed health check. The range is 2120 seconds. For target groups with
// a protocol of HTTP, the default is 6 seconds. For target groups with a protocol
// of TCP, TLS or HTTPS, the default is 10 seconds. For target groups with a
// protocol of GENEVE, the default is 5 seconds. If the target type is lambda,
// the default is 30 seconds.
HealthCheckTimeoutSeconds *int64 `min:"2" type:"integer"`
// The number of consecutive health checks successes required before considering
// an unhealthy target healthy. For target groups with a protocol of HTTP or
// HTTPS, the default is 5. For target groups with a protocol of TCP, TLS, or
// GENEVE, the default is 3. If the target type is lambda, the default is 5.
// The number of consecutive health check successes required before considering
// a target healthy. The range is 2-10. If the target group protocol is TCP,
// TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 5. For target groups with
// a protocol of GENEVE, the default is 3. If the target type is lambda, the
// default is 5.
HealthyThresholdCount *int64 `min:"2" type:"integer"`
// The type of IP address used for this target group. The possible values are
@ -4853,7 +4850,10 @@ type CreateTargetGroupInput struct {
IpAddressType *string `type:"string" enum:"TargetGroupIpAddressTypeEnum"`
// [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for
// a successful response from a target.
// a successful response from a target. For target groups with a protocol of
// TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol
// of HTTP or HTTPS, the range is 200-499. For target groups with a protocol
// of GENEVE, the range is 200-399.
Matcher *Matcher `type:"structure"`
// The name of the target group.
@ -4905,10 +4905,10 @@ type CreateTargetGroupInput struct {
TargetType *string `type:"string" enum:"TargetTypeEnum"`
// The number of consecutive health check failures required before considering
// a target unhealthy. If the target group protocol is HTTP or HTTPS, the default
// is 2. If the target group protocol is TCP or TLS, this value must be the
// same as the healthy threshold count. If the target group protocol is GENEVE,
// the default is 3. If the target type is lambda, the default is 2.
// a target unhealthy. The range is 2-10. If the target group protocol is TCP,
// TCP_UDP, UDP, TLS, HTTP or HTTPS, the default is 2. For target groups with
// a protocol of GENEVE, the default is 3. If the target type is lambda, the
// default is 5.
UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
// The identifier of the virtual private cloud (VPC). If the target is a Lambda
@ -6659,8 +6659,8 @@ type ForwardActionConfig struct {
// The target group stickiness for the rule.
TargetGroupStickinessConfig *TargetGroupStickinessConfig `type:"structure"`
// One or more target groups. For Network Load Balancers, you can specify a
// single target group.
// The target groups. For Network Load Balancers, you can specify a single target
// group.
TargetGroups []*TargetGroupTuple `type:"list"`
}
@ -6698,9 +6698,9 @@ func (s *ForwardActionConfig) SetTargetGroups(v []*TargetGroupTuple) *ForwardAct
type HostHeaderConditionConfig struct {
_ struct{} `type:"structure"`
// One or more host names. The maximum size of each name is 128 characters.
// The comparison is case insensitive. The following wildcard characters are
// supported: * (matches 0 or more characters) and ? (matches exactly 1 character).
// The host names. The maximum size of each name is 128 characters. The comparison
// is case insensitive. The following wildcard characters are supported: * (matches
// 0 or more characters) and ? (matches exactly 1 character).
//
// If you specify multiple strings, the condition is satisfied if one of the
// strings matches the host name.
@ -6746,10 +6746,10 @@ type HttpHeaderConditionConfig struct {
// to specify a host header condition.
HttpHeaderName *string `type:"string"`
// One or more strings to compare against the value of the HTTP header. The
// maximum size of each string is 128 characters. The comparison strings are
// case insensitive. The following wildcard characters are supported: * (matches
// 0 or more characters) and ? (matches exactly 1 character).
// The strings to compare against the value of the HTTP header. The maximum
// size of each string is 128 characters. The comparison strings are case insensitive.
// The following wildcard characters are supported: * (matches 0 or more characters)
// and ? (matches exactly 1 character).
//
// If the same header appears multiple times in the request, we search them
// in order until a match is found.
@ -7226,11 +7226,16 @@ type LoadBalancerAttribute struct {
// The name of the attribute.
//
// The following attribute is supported by all load balancers:
// The following attributes are supported by all load balancers:
//
// * deletion_protection.enabled - Indicates whether deletion protection
// is enabled. The value is true or false. The default is false.
//
// * load_balancing.cross_zone.enabled - Indicates whether cross-zone load
// balancing is enabled. The possible values are true and false. The default
// for Network Load Balancers and Gateway Load Balancers is false. The default
// for Application Load Balancers is true, and cannot be changed.
//
// The following attributes are supported by both Application Load Balancers
// and Network Load Balancers:
//
@ -7305,13 +7310,6 @@ type LoadBalancerAttribute struct {
// balancer to route requests to targets if it is unable to forward the request
// to Amazon Web Services WAF. The possible values are true and false. The
// default is false.
//
// The following attribute is supported by Network Load Balancers and Gateway
// Load Balancers:
//
// * load_balancing.cross_zone.enabled - Indicates whether cross-zone load
// balancing is enabled. The possible values are true and false. The default
// is false.
Key *string `type:"string"`
// The value of the attribute.
@ -7405,10 +7403,14 @@ type Matcher struct {
GrpcCode *string `type:"string"`
// For Application Load Balancers, you can specify values between 200 and 499,
// and the default value is 200. You can specify multiple values (for example,
// with the default value being 200. You can specify multiple values (for example,
// "200,202") or a range of values (for example, "200-299").
//
// For Network Load Balancers and Gateway Load Balancers, this must be "200399".
// For Network Load Balancers, you can specify values between 200 and 599, with
// the default value being 200-399. You can specify multiple values (for example,
// "200,202") or a range of values (for example, "200-299").
//
// For Gateway Load Balancers, this must be "200399".
//
// Note that when using shorthand syntax, some values such as commas need to
// be escaped.
@ -7909,7 +7911,7 @@ type ModifyTargetGroupInput struct {
HealthCheckEnabled *bool `type:"boolean"`
// The approximate amount of time, in seconds, between health checks of an individual
// target. For TCP health checks, the supported values are 10 or 30 seconds.
// target.
HealthCheckIntervalSeconds *int64 `min:"5" type:"integer"`
// [HTTP/HTTPS health checks] The destination for health checks on the targets.
@ -7941,7 +7943,10 @@ type ModifyTargetGroupInput struct {
HealthyThresholdCount *int64 `min:"2" type:"integer"`
// [HTTP/HTTPS health checks] The HTTP or gRPC codes to use when checking for
// a successful response from a target.
// a successful response from a target. For target groups with a protocol of
// TCP, TCP_UDP, UDP or TLS the range is 200-599. For target groups with a protocol
// of HTTP or HTTPS, the range is 200-499. For target groups with a protocol
// of GENEVE, the range is 200-399.
Matcher *Matcher `type:"structure"`
// The Amazon Resource Name (ARN) of the target group.
@ -7950,8 +7955,7 @@ type ModifyTargetGroupInput struct {
TargetGroupArn *string `type:"string" required:"true"`
// The number of consecutive health check failures required before considering
// the target unhealthy. For target groups with a protocol of TCP or TLS, this
// value must be the same as the healthy threshold count.
// the target unhealthy.
UnhealthyThresholdCount *int64 `min:"2" type:"integer"`
}
@ -8096,10 +8100,10 @@ func (s *ModifyTargetGroupOutput) SetTargetGroups(v []*TargetGroup) *ModifyTarge
type PathPatternConditionConfig struct {
_ struct{} `type:"structure"`
// One or more path patterns to compare against the request URL. The maximum
// size of each string is 128 characters. The comparison is case sensitive.
// The following wildcard characters are supported: * (matches 0 or more characters)
// and ? (matches exactly 1 character).
// The path patterns to compare against the request URL. The maximum size of
// each string is 128 characters. The comparison is case sensitive. The following
// wildcard characters are supported: * (matches 0 or more characters) and ?
// (matches exactly 1 character).
//
// If you specify multiple strings, the condition is satisfied if one of them
// matches the request URL. The path pattern is compared only to the path of
@ -8141,9 +8145,9 @@ func (s *PathPatternConditionConfig) SetValues(v []*string) *PathPatternConditio
type QueryStringConditionConfig struct {
_ struct{} `type:"structure"`
// One or more key/value pairs or values to find in the query string. The maximum
// size of each string is 128 characters. The comparison is case insensitive.
// The following wildcard characters are supported: * (matches 0 or more characters)
// The key/value pairs or values to find in the query string. The maximum size
// of each string is 128 characters. The comparison is case insensitive. The
// following wildcard characters are supported: * (matches 0 or more characters)
// and ? (matches exactly 1 character). To search for a literal '*' or '?' character
// in a query string, you must escape these characters in Values using a '\'
// character.
@ -9292,8 +9296,8 @@ func (s *SetSubnetsOutput) SetIpAddressType(v string) *SetSubnetsOutput {
type SourceIpConditionConfig struct {
_ struct{} `type:"structure"`
// One or more source IP addresses, in CIDR format. You can use both IPv4 and
// IPv6 addresses. Wildcards are not supported.
// The source IP addresses, in CIDR format. You can use both IPv4 and IPv6 addresses.
// Wildcards are not supported.
//
// If you specify multiple addresses, the condition is satisfied if the source
// IP address of the request matches one of the CIDR blocks. This condition
@ -9553,6 +9557,10 @@ type TargetDescription struct {
// traffic from the load balancer nodes in the specified Availability Zone or
// from all enabled Availability Zones for the load balancer.
//
// For Application Load Balancer target groups, the specified Availability Zone
// value is only applicable when cross-zone load balancing is off. Otherwise
// the parameter is ignored and treated as all.
//
// This parameter is not supported if the target type of the target group is
// instance or alb.
//
@ -9561,8 +9569,10 @@ type TargetDescription struct {
// parameter is optional. If the IP address is outside the VPC, this parameter
// is required.
//
// With an Application Load Balancer, if the target type is ip and the IP address
// is outside the VPC for the target group, the only supported value is all.
// For Application Load Balancer target groups with cross-zone load balancing
// off, if the target type is ip and the IP address is outside of the VPC for
// the target group, this should be an Availability Zone inside the VPC for
// the target group.
//
// If the target type is lambda, this parameter is optional and the only supported
// value is all.
@ -9842,7 +9852,7 @@ type TargetGroupAttribute struct {
// The name of the attribute.
//
// The following attribute is supported by all load balancers:
// The following attributes are supported by all load balancers:
//
// * deregistration_delay.timeout_seconds - The amount of time, in seconds,
// for Elastic Load Balancing to wait before changing the state of a deregistering
@ -9850,9 +9860,6 @@ type TargetGroupAttribute struct {
// value is 300 seconds. If the target is a Lambda function, this attribute
// is not supported.
//
// The following attributes are supported by Application Load Balancers, Network
// Load Balancers, and Gateway Load Balancers:
//
// * stickiness.enabled - Indicates whether target stickiness is enabled.
// The value is true or false. The default is false.
//
@ -9861,6 +9868,37 @@ type TargetGroupAttribute struct {
// for Network Load Balancers. source_ip_dest_ip and source_ip_dest_ip_proto
// for Gateway Load Balancers.
//
// The following attributes are supported by Application Load Balancers and
// Network Load Balancers:
//
// * load_balancing.cross_zone.enabled - Indicates whether cross zone load
// balancing is enabled. The value is true, false or use_load_balancer_configuration.
// The default is use_load_balancer_configuration.
//
// * target_group_health.dns_failover.minimum_healthy_targets.count - The
// minimum number of targets that must be healthy. If the number of healthy
// targets is below this value, mark the zone as unhealthy in DNS, so that
// traffic is routed only to healthy zones. The possible values are off or
// an integer from 1 to the maximum number of targets. The default is off.
//
// * target_group_health.dns_failover.minimum_healthy_targets.percentage
// - The minimum percentage of targets that must be healthy. If the percentage
// of healthy targets is below this value, mark the zone as unhealthy in
// DNS, so that traffic is routed only to healthy zones. The possible values
// are off or an integer from 1 to 100. The default is off.
//
// * target_group_health.unhealthy_state_routing.minimum_healthy_targets.count
// - The minimum number of targets that must be healthy. If the number of
// healthy targets is below this value, send traffic to all targets, including
// unhealthy targets. The possible values are 1 to the maximum number of
// targets. The default is 1.
//
// * target_group_health.unhealthy_state_routing.minimum_healthy_targets.percentage
// - The minimum percentage of targets that must be healthy. If the percentage
// of healthy targets is below this value, send traffic to all targets, including
// unhealthy targets. The possible values are off or an integer from 1 to
// 100. The default is off.
//
// The following attributes are supported only if the load balancer is an Application
// Load Balancer and the target is an instance or an IP address:
//

View File

@ -20404,6 +20404,9 @@ const (
// CloudWatchRegionEuSouth1 is a CloudWatchRegion enum value
CloudWatchRegionEuSouth1 = "eu-south-1"
// CloudWatchRegionEuSouth2 is a CloudWatchRegion enum value
CloudWatchRegionEuSouth2 = "eu-south-2"
// CloudWatchRegionUsGovWest1 is a CloudWatchRegion enum value
CloudWatchRegionUsGovWest1 = "us-gov-west-1"
@ -20449,6 +20452,7 @@ func CloudWatchRegion_Values() []string {
CloudWatchRegionCnNorth1,
CloudWatchRegionAfSouth1,
CloudWatchRegionEuSouth1,
CloudWatchRegionEuSouth2,
CloudWatchRegionUsGovWest1,
CloudWatchRegionUsGovEast1,
CloudWatchRegionUsIsoEast1,
@ -20775,6 +20779,9 @@ const (
// ResourceRecordSetRegionEuSouth1 is a ResourceRecordSetRegion enum value
ResourceRecordSetRegionEuSouth1 = "eu-south-1"
// ResourceRecordSetRegionEuSouth2 is a ResourceRecordSetRegion enum value
ResourceRecordSetRegionEuSouth2 = "eu-south-2"
)
// ResourceRecordSetRegion_Values returns all elements of the ResourceRecordSetRegion enum
@ -20806,6 +20813,7 @@ func ResourceRecordSetRegion_Values() []string {
ResourceRecordSetRegionApSouth1,
ResourceRecordSetRegionAfSouth1,
ResourceRecordSetRegionEuSouth1,
ResourceRecordSetRegionEuSouth2,
}
}
@ -20955,6 +20963,9 @@ const (
// VPCRegionEuSouth1 is a VPCRegion enum value
VPCRegionEuSouth1 = "eu-south-1"
// VPCRegionEuSouth2 is a VPCRegion enum value
VPCRegionEuSouth2 = "eu-south-2"
)
// VPCRegion_Values returns all elements of the VPCRegion enum
@ -20990,5 +21001,6 @@ func VPCRegion_Values() []string {
VPCRegionCnNorth1,
VPCRegionAfSouth1,
VPCRegionEuSouth1,
VPCRegionEuSouth2,
}
}

File diff suppressed because it is too large Load Diff

View File

@ -572,6 +572,14 @@ const (
// The size limit of a document is 64 KB.
ErrCodeMaxDocumentSizeExceeded = "MaxDocumentSizeExceeded"
// ErrCodeOpsItemAccessDeniedException for service response error code
// "OpsItemAccessDeniedException".
//
// You don't have permission to view OpsItems in the specified account. Verify
// that your account is configured either as a Systems Manager delegated administrator
// or that you are logged into the Organizations management account.
ErrCodeOpsItemAccessDeniedException = "OpsItemAccessDeniedException"
// ErrCodeOpsItemAlreadyExistsException for service response error code
// "OpsItemAlreadyExistsException".
//
@ -769,6 +777,29 @@ const (
// in the Amazon Web Services General Reference.
ErrCodeResourceLimitExceededException = "ResourceLimitExceededException"
// ErrCodeResourcePolicyConflictException for service response error code
// "ResourcePolicyConflictException".
//
// The hash provided in the call doesn't match the stored hash. This exception
// is thrown when trying to update an obsolete policy version or when multiple
// requests to update a policy are sent.
ErrCodeResourcePolicyConflictException = "ResourcePolicyConflictException"
// ErrCodeResourcePolicyInvalidParameterException for service response error code
// "ResourcePolicyInvalidParameterException".
//
// One or more parameters specified for the call aren't valid. Verify the parameters
// and their values and try again.
ErrCodeResourcePolicyInvalidParameterException = "ResourcePolicyInvalidParameterException"
// ErrCodeResourcePolicyLimitExceededException for service response error code
// "ResourcePolicyLimitExceededException".
//
// The PutResourcePolicy API action enforces two limits. A policy can't be greater
// than 1024 bytes in size. And only one policy can be attached to OpsItemGroup.
// Verify these limits and try again.
ErrCodeResourcePolicyLimitExceededException = "ResourcePolicyLimitExceededException"
// ErrCodeServiceSettingNotFound for service response error code
// "ServiceSettingNotFound".
//
@ -963,6 +994,7 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ItemContentMismatchException": newErrorItemContentMismatchException,
"ItemSizeLimitExceededException": newErrorItemSizeLimitExceededException,
"MaxDocumentSizeExceeded": newErrorMaxDocumentSizeExceeded,
"OpsItemAccessDeniedException": newErrorOpsItemAccessDeniedException,
"OpsItemAlreadyExistsException": newErrorOpsItemAlreadyExistsException,
"OpsItemInvalidParameterException": newErrorOpsItemInvalidParameterException,
"OpsItemLimitExceededException": newErrorOpsItemLimitExceededException,
@ -990,6 +1022,9 @@ var exceptionFromCode = map[string]func(protocol.ResponseMetadata) error{
"ResourceDataSyncNotFoundException": newErrorResourceDataSyncNotFoundException,
"ResourceInUseException": newErrorResourceInUseException,
"ResourceLimitExceededException": newErrorResourceLimitExceededException,
"ResourcePolicyConflictException": newErrorResourcePolicyConflictException,
"ResourcePolicyInvalidParameterException": newErrorResourcePolicyInvalidParameterException,
"ResourcePolicyLimitExceededException": newErrorResourcePolicyLimitExceededException,
"ServiceSettingNotFound": newErrorServiceSettingNotFound,
"StatusUnchanged": newErrorStatusUnchanged,
"SubTypeCountLimitExceededException": newErrorSubTypeCountLimitExceededException,

View File

@ -152,6 +152,10 @@ type SSMAPI interface {
DeleteResourceDataSyncWithContext(aws.Context, *ssm.DeleteResourceDataSyncInput, ...request.Option) (*ssm.DeleteResourceDataSyncOutput, error)
DeleteResourceDataSyncRequest(*ssm.DeleteResourceDataSyncInput) (*request.Request, *ssm.DeleteResourceDataSyncOutput)
DeleteResourcePolicy(*ssm.DeleteResourcePolicyInput) (*ssm.DeleteResourcePolicyOutput, error)
DeleteResourcePolicyWithContext(aws.Context, *ssm.DeleteResourcePolicyInput, ...request.Option) (*ssm.DeleteResourcePolicyOutput, error)
DeleteResourcePolicyRequest(*ssm.DeleteResourcePolicyInput) (*request.Request, *ssm.DeleteResourcePolicyOutput)
DeregisterManagedInstance(*ssm.DeregisterManagedInstanceInput) (*ssm.DeregisterManagedInstanceOutput, error)
DeregisterManagedInstanceWithContext(aws.Context, *ssm.DeregisterManagedInstanceInput, ...request.Option) (*ssm.DeregisterManagedInstanceOutput, error)
DeregisterManagedInstanceRequest(*ssm.DeregisterManagedInstanceInput) (*request.Request, *ssm.DeregisterManagedInstanceOutput)
@ -491,6 +495,13 @@ type SSMAPI interface {
GetPatchBaselineForPatchGroupWithContext(aws.Context, *ssm.GetPatchBaselineForPatchGroupInput, ...request.Option) (*ssm.GetPatchBaselineForPatchGroupOutput, error)
GetPatchBaselineForPatchGroupRequest(*ssm.GetPatchBaselineForPatchGroupInput) (*request.Request, *ssm.GetPatchBaselineForPatchGroupOutput)
GetResourcePolicies(*ssm.GetResourcePoliciesInput) (*ssm.GetResourcePoliciesOutput, error)
GetResourcePoliciesWithContext(aws.Context, *ssm.GetResourcePoliciesInput, ...request.Option) (*ssm.GetResourcePoliciesOutput, error)
GetResourcePoliciesRequest(*ssm.GetResourcePoliciesInput) (*request.Request, *ssm.GetResourcePoliciesOutput)
GetResourcePoliciesPages(*ssm.GetResourcePoliciesInput, func(*ssm.GetResourcePoliciesOutput, bool) bool) error
GetResourcePoliciesPagesWithContext(aws.Context, *ssm.GetResourcePoliciesInput, func(*ssm.GetResourcePoliciesOutput, bool) bool, ...request.Option) error
GetServiceSetting(*ssm.GetServiceSettingInput) (*ssm.GetServiceSettingOutput, error)
GetServiceSettingWithContext(aws.Context, *ssm.GetServiceSettingInput, ...request.Option) (*ssm.GetServiceSettingOutput, error)
GetServiceSettingRequest(*ssm.GetServiceSettingInput) (*request.Request, *ssm.GetServiceSettingOutput)
@ -618,6 +629,10 @@ type SSMAPI interface {
PutParameterWithContext(aws.Context, *ssm.PutParameterInput, ...request.Option) (*ssm.PutParameterOutput, error)
PutParameterRequest(*ssm.PutParameterInput) (*request.Request, *ssm.PutParameterOutput)
PutResourcePolicy(*ssm.PutResourcePolicyInput) (*ssm.PutResourcePolicyOutput, error)
PutResourcePolicyWithContext(aws.Context, *ssm.PutResourcePolicyInput, ...request.Option) (*ssm.PutResourcePolicyOutput, error)
PutResourcePolicyRequest(*ssm.PutResourcePolicyInput) (*request.Request, *ssm.PutResourcePolicyOutput)
RegisterDefaultPatchBaseline(*ssm.RegisterDefaultPatchBaselineInput) (*ssm.RegisterDefaultPatchBaselineOutput, error)
RegisterDefaultPatchBaselineWithContext(aws.Context, *ssm.RegisterDefaultPatchBaselineInput, ...request.Option) (*ssm.RegisterDefaultPatchBaselineOutput, error)
RegisterDefaultPatchBaselineRequest(*ssm.RegisterDefaultPatchBaselineInput) (*request.Request, *ssm.RegisterDefaultPatchBaselineOutput)

View File

@ -74,16 +74,16 @@ func (c *STS) AssumeRoleRequest(input *AssumeRoleInput) (req *request.Request, o
//
// (Optional) You can pass inline or managed session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plaintext that you use for both inline
// and managed session policies can't exceed 2,048 characters. Passing policies
// to this operation returns new temporary credentials. The resulting session's
// permissions are the intersection of the role's identity-based policy and
// the session policies. You can use the role's temporary credentials in subsequent
// Amazon Web Services API calls to access resources in the account that owns
// the role. You cannot use session policies to grant more permissions than
// those allowed by the identity-based policy of the role that is being assumed.
// For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// inline session policy. You can also specify up to 10 managed policy Amazon
// Resource Names (ARNs) to use as managed session policies. The plaintext that
// you use for both inline and managed session policies can't exceed 2,048 characters.
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
// policy and the session policies. You can use the role's temporary credentials
// in subsequent Amazon Web Services API calls to access resources in the account
// that owns the role. You cannot use session policies to grant more permissions
// than those allowed by the identity-based policy of the role that is being
// assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide.
//
// When you create a role, you create two policies: A role trust policy that
@ -307,16 +307,16 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
//
// (Optional) You can pass inline or managed session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plaintext that you use for both inline
// and managed session policies can't exceed 2,048 characters. Passing policies
// to this operation returns new temporary credentials. The resulting session's
// permissions are the intersection of the role's identity-based policy and
// the session policies. You can use the role's temporary credentials in subsequent
// Amazon Web Services API calls to access resources in the account that owns
// the role. You cannot use session policies to grant more permissions than
// those allowed by the identity-based policy of the role that is being assumed.
// For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// inline session policy. You can also specify up to 10 managed policy Amazon
// Resource Names (ARNs) to use as managed session policies. The plaintext that
// you use for both inline and managed session policies can't exceed 2,048 characters.
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
// policy and the session policies. You can use the role's temporary credentials
// in subsequent Amazon Web Services API calls to access resources in the account
// that owns the role. You cannot use session policies to grant more permissions
// than those allowed by the identity-based policy of the role that is being
// assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide.
//
// Calling AssumeRoleWithSAML does not require the use of Amazon Web Services
@ -343,11 +343,12 @@ func (c *STS) AssumeRoleWithSAMLRequest(input *AssumeRoleWithSAMLInput) (req *re
// and additional limits, see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
// in the IAM User Guide.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// You can pass a session tag with the same key as a tag that is attached to
// the role. When you do, session tags override the role's tags with the same
@ -563,16 +564,16 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
//
// (Optional) You can pass inline or managed session policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plaintext that you use for both inline
// and managed session policies can't exceed 2,048 characters. Passing policies
// to this operation returns new temporary credentials. The resulting session's
// permissions are the intersection of the role's identity-based policy and
// the session policies. You can use the role's temporary credentials in subsequent
// Amazon Web Services API calls to access resources in the account that owns
// the role. You cannot use session policies to grant more permissions than
// those allowed by the identity-based policy of the role that is being assumed.
// For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// inline session policy. You can also specify up to 10 managed policy Amazon
// Resource Names (ARNs) to use as managed session policies. The plaintext that
// you use for both inline and managed session policies can't exceed 2,048 characters.
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
// policy and the session policies. You can use the role's temporary credentials
// in subsequent Amazon Web Services API calls to access resources in the account
// that owns the role. You cannot use session policies to grant more permissions
// than those allowed by the identity-based policy of the role that is being
// assumed. For more information, see Session Policies (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// in the IAM User Guide.
//
// # Tags
@ -588,11 +589,12 @@ func (c *STS) AssumeRoleWithWebIdentityRequest(input *AssumeRoleWithWebIdentityI
// and additional limits, see IAM and STS Character Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
// in the IAM User Guide.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// You can pass a session tag with the same key as a tag that is attached to
// the role. When you do, the session tag overrides the role tag with the same
@ -1110,9 +1112,9 @@ func (c *STS) GetFederationTokenRequest(input *GetFederationTokenInput) (req *re
//
// You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plaintext that you use for both inline
// and managed session policies can't exceed 2,048 characters.
// inline session policy. You can also specify up to 10 managed policy Amazon
// Resource Names (ARNs) to use as managed session policies. The plaintext that
// you use for both inline and managed session policies can't exceed 2,048 characters.
//
// Though the session policy parameters are optional, if you do not pass a policy,
// then the resulting federated user session has no permissions. When you pass
@ -1424,11 +1426,12 @@ type AssumeRoleInput struct {
// \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
// return (\u000D) characters.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@ -1441,11 +1444,12 @@ type AssumeRoleInput struct {
// Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
@ -1520,11 +1524,12 @@ type AssumeRoleInput struct {
// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
// in the IAM User Guide.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// You can pass a session tag with the same key as a tag that is already attached
// to the role. When you do, session tags override a role tag with the same
@ -1843,11 +1848,12 @@ type AssumeRoleWithSAMLInput struct {
// \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
// return (\u000D) characters.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@ -1860,11 +1866,12 @@ type AssumeRoleWithSAMLInput struct {
// Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
@ -2190,11 +2197,12 @@ type AssumeRoleWithWebIdentityInput struct {
// \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
// return (\u000D) characters.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@ -2207,11 +2215,12 @@ type AssumeRoleWithWebIdentityInput struct {
// Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// Passing policies to this operation returns new temporary credentials. The
// resulting session's permissions are the intersection of the role's identity-based
@ -2934,8 +2943,8 @@ type GetFederationTokenInput struct {
//
// You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies.
// inline session policy. You can also specify up to 10 managed policy Amazon
// Resource Names (ARNs) to use as managed session policies.
//
// This parameter is optional. However, if you do not pass any session policies,
// then the resulting federated user session has no permissions.
@ -2960,11 +2969,12 @@ type GetFederationTokenInput struct {
// \u00FF). It can also include the tab (\u0009), linefeed (\u000A), and carriage
// return (\u000D) characters.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
Policy *string `min:"1" type:"string"`
// The Amazon Resource Names (ARNs) of the IAM managed policies that you want
@ -2973,11 +2983,12 @@ type GetFederationTokenInput struct {
//
// You must pass an inline or managed session policy (https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies.html#policies_session)
// to this operation. You can pass a single JSON policy document to use as an
// inline session policy. You can also specify up to 10 managed policies to
// use as managed session policies. The plaintext that you use for both inline
// and managed session policies can't exceed 2,048 characters. You can provide
// up to 10 managed policy ARNs. For more information about ARNs, see Amazon
// Resource Names (ARNs) and Amazon Web Services Service Namespaces (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// inline session policy. You can also specify up to 10 managed policy Amazon
// Resource Names (ARNs) to use as managed session policies. The plaintext that
// you use for both inline and managed session policies can't exceed 2,048 characters.
// You can provide up to 10 managed policy ARNs. For more information about
// ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces
// (https://docs.aws.amazon.com/general/latest/gr/aws-arns-and-namespaces.html)
// in the Amazon Web Services General Reference.
//
// This parameter is optional. However, if you do not pass any session policies,
@ -2997,11 +3008,12 @@ type GetFederationTokenInput struct {
// by the policy. These permissions are granted in addition to the permissions
// that are granted by the session policies.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
PolicyArns []*PolicyDescriptorType `type:"list"`
// A list of session tags. Each session tag consists of a key name and an associated
@ -3015,11 +3027,12 @@ type GetFederationTokenInput struct {
// Limits (https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_iam-limits.html#reference_iam-limits-entity-length)
// in the IAM User Guide.
//
// An Amazon Web Services conversion compresses the passed session policies
// and session tags into a packed binary format that has a separate limit. Your
// request can fail for this limit even if your plaintext meets the other requirements.
// The PackedPolicySize response element indicates by percentage how close the
// policies and tags for your request are to the upper size limit.
// An Amazon Web Services conversion compresses the passed inline session policy,
// managed policy ARNs, and session tags into a packed binary format that has
// a separate limit. Your request can fail for this limit even if your plaintext
// meets the other requirements. The PackedPolicySize response element indicates
// by percentage how close the policies and tags for your request are to the
// upper size limit.
//
// You can pass a session tag with the same key as a tag that is already attached
// to the user you are federating. When you do, session tags override a user

View File

@ -1,5 +1,13 @@
# Change Log
## [v1.90.0] - 2022-11-16
- #571 - @kraai - Add WaitForAvailable
- #579 - @bentranter - Deprecate old pointer helpers, use generic one
- #580 - @StephenVarela - LBAAS Fixup default http idle timeout behaviour
- #578 - @StephenVarela - LBAAS-2430 Add support for HTTP idle timeout seconds
- #577 - @ddebarros - Functions api support
## [v1.89.0] - 2022-11-02
- #575 - @ghostlandr - apps: add option to get projects data from Apps List endpoint
@ -532,16 +540,19 @@
## [v1.1.0] - 2017-06-06
### Added
- #145 Add FirewallsService for managing Firewalls with the DigitalOcean API. - @viola
- #139 Add TTL field to the Domains. - @xmudrii
### Fixed
- #143 Fix oauth2.NoContext depreciation. - @jbowens
- #141 Fix DropletActions on tagged resources. - @xmudrii
## [v1.0.0] - 2017-03-10
### Added
- #130 Add Convert to ImageActionsService. - @xmudrii
- #126 Add CertificatesService for managing certificates with the DigitalOcean API. - @viola
- #125 Add LoadBalancersService for managing load balancers with the DigitalOcean API. - @viola

110
vendor/github.com/digitalocean/godo/functions.go generated vendored Normal file
View File

@ -0,0 +1,110 @@
package godo
import (
"context"
"fmt"
"net/http"
"time"
)
const (
functionsBasePath = "/v2/functions/namespaces"
functionsNamespacePath = functionsBasePath + "/%s"
)
type FunctionsService interface {
ListNamespaces(context.Context) ([]FunctionsNamespace, *Response, error)
GetNamespace(context.Context, string) (*FunctionsNamespace, *Response, error)
CreateNamespace(context.Context, *FunctionsNamespaceCreateRequest) (*FunctionsNamespace, *Response, error)
DeleteNamespace(context.Context, string) (*Response, error)
}
type FunctionsServiceOp struct {
client *Client
}
var _ FunctionsService = &FunctionsServiceOp{}
type namespacesRoot struct {
Namespaces []FunctionsNamespace `json:"namespaces,omitempty"`
}
type namespaceRoot struct {
Namespace *FunctionsNamespace `json:"namespace,omitempty"`
}
type FunctionsNamespace struct {
ApiHost string `json:"api_host,omitempty"`
Namespace string `json:"namespace,omitempty"`
CreatedAt time.Time `json:"created_at,omitempty"`
UpdatedAt time.Time `json:"updated_at,omitempty"`
Label string `json:"label,omitempty"`
Region string `json:"region,omitempty"`
UUID string `json:"uuid,omitempty"`
Key string `json:"key,omitempty"`
}
type FunctionsNamespaceCreateRequest struct {
Label string `json:"label"`
Region string `json:"region"`
}
// Gets a list of namespaces
func (s *FunctionsServiceOp) ListNamespaces(ctx context.Context) ([]FunctionsNamespace, *Response, error) {
req, err := s.client.NewRequest(ctx, http.MethodGet, functionsBasePath, nil)
if err != nil {
return nil, nil, err
}
nsRoot := new(namespacesRoot)
resp, err := s.client.Do(ctx, req, nsRoot)
if err != nil {
return nil, resp, err
}
return nsRoot.Namespaces, resp, nil
}
// Gets a single namespace
func (s *FunctionsServiceOp) GetNamespace(ctx context.Context, namespace string) (*FunctionsNamespace, *Response, error) {
path := fmt.Sprintf(functionsNamespacePath, namespace)
req, err := s.client.NewRequest(ctx, http.MethodGet, path, nil)
if err != nil {
return nil, nil, err
}
nsRoot := new(namespaceRoot)
resp, err := s.client.Do(ctx, req, nsRoot)
if err != nil {
return nil, resp, err
}
return nsRoot.Namespace, resp, nil
}
// Creates a namespace
func (s *FunctionsServiceOp) CreateNamespace(ctx context.Context, opts *FunctionsNamespaceCreateRequest) (*FunctionsNamespace, *Response, error) {
req, err := s.client.NewRequest(ctx, http.MethodPost, functionsBasePath, opts)
if err != nil {
return nil, nil, err
}
nsRoot := new(namespaceRoot)
resp, err := s.client.Do(ctx, req, nsRoot)
if err != nil {
return nil, resp, err
}
return nsRoot.Namespace, resp, nil
}
// Delete a namespace
func (s *FunctionsServiceOp) DeleteNamespace(ctx context.Context, namespace string) (*Response, error) {
path := fmt.Sprintf(functionsNamespacePath, namespace)
req, err := s.client.NewRequest(ctx, http.MethodDelete, path, nil)
if err != nil {
return nil, err
}
resp, err := s.client.Do(ctx, req, nil)
if err != nil {
return resp, err
}
return resp, nil
}

View File

@ -21,7 +21,7 @@ import (
)
const (
libraryVersion = "1.89.0"
libraryVersion = "1.90.0"
defaultBaseURL = "https://api.digitalocean.com/"
userAgent = "godo/" + libraryVersion
mediaType = "application/json"
@ -81,6 +81,7 @@ type Client struct {
VPCs VPCsService
OneClick OneClickService
Monitoring MonitoringService
Functions FunctionsService
// Optional function called after every successful request made to the DO APIs
onRequestCompleted RequestCompletionCallback
@ -248,7 +249,7 @@ func NewClient(httpClient *http.Client) *Client {
c.VPCs = &VPCsServiceOp{client: c}
c.OneClick = &OneClickServiceOp{client: c}
c.Monitoring = &MonitoringServiceOp{client: c}
c.Functions = &FunctionsServiceOp{client: c}
c.headers = make(map[string]string)
return c
@ -504,8 +505,15 @@ func (r Rate) String() string {
return Stringify(r)
}
// PtrTo returns a pointer to the provided input.
func PtrTo[T any](v T) *T {
return &v
}
// String is a helper routine that allocates a new string value
// to store v and returns a pointer to it.
//
// Deprecated: Use PtrTo instead.
func String(v string) *string {
p := new(string)
*p = v
@ -515,6 +523,8 @@ func String(v string) *string {
// Int is a helper routine that allocates a new int32 value
// to store v and returns a pointer to it, but unlike Int32
// its argument value is an int.
//
// Deprecated: Use PtrTo instead.
func Int(v int) *int {
p := new(int)
*p = v
@ -523,6 +533,8 @@ func Int(v int) *int {
// Bool is a helper routine that allocates a new bool value
// to store v and returns a pointer to it.
//
// Deprecated: Use PtrTo instead.
func Bool(v bool) *bool {
p := new(bool)
*p = v

View File

@ -4,6 +4,7 @@ import (
"context"
"fmt"
"net/http"
"net/url"
)
// ImageActionsService is an interface for interfacing with the image actions
@ -11,6 +12,7 @@ import (
// See: https://docs.digitalocean.com/reference/api/api-reference/#tag/Image-Actions
type ImageActionsService interface {
Get(context.Context, int, int) (*Action, *Response, error)
GetByURI(context.Context, string) (*Action, *Response, error)
Transfer(context.Context, int, *ActionRequest) (*Action, *Response, error)
Convert(context.Context, int) (*Action, *Response, error)
}
@ -86,7 +88,20 @@ func (i *ImageActionsServiceOp) Get(ctx context.Context, imageID, actionID int)
}
path := fmt.Sprintf("v2/images/%d/actions/%d", imageID, actionID)
return i.get(ctx, path)
}
// GetByURI gets an action for a particular image by URI.
func (i *ImageActionsServiceOp) GetByURI(ctx context.Context, rawurl string) (*Action, *Response, error) {
u, err := url.Parse(rawurl)
if err != nil {
return nil, nil, err
}
return i.get(ctx, u.Path)
}
func (i *ImageActionsServiceOp) get(ctx context.Context, path string) (*Action, *Response, error) {
req, err := i.client.NewRequest(ctx, http.MethodGet, path, nil)
if err != nil {
return nil, nil, err

View File

@ -52,6 +52,7 @@ type LoadBalancer struct {
DisableLetsEncryptDNSRecords *bool `json:"disable_lets_encrypt_dns_records,omitempty"`
ValidateOnly bool `json:"validate_only,omitempty"`
ProjectID string `json:"project_id,omitempty"`
HTTPIdleTimeoutSeconds *uint64 `json:"http_idle_timeout_seconds,omitempty"`
}
// String creates a human-readable description of a LoadBalancer.
@ -83,6 +84,7 @@ func (l LoadBalancer) AsRequest() *LoadBalancerRequest {
DisableLetsEncryptDNSRecords: l.DisableLetsEncryptDNSRecords,
ValidateOnly: l.ValidateOnly,
ProjectID: l.ProjectID,
HTTPIdleTimeoutSeconds: l.HTTPIdleTimeoutSeconds,
}
if l.DisableLetsEncryptDNSRecords != nil {
@ -100,6 +102,7 @@ func (l LoadBalancer) AsRequest() *LoadBalancerRequest {
if l.Region != nil {
r.Region = l.Region.Slug
}
return &r
}
@ -168,6 +171,7 @@ type LoadBalancerRequest struct {
DisableLetsEncryptDNSRecords *bool `json:"disable_lets_encrypt_dns_records,omitempty"`
ValidateOnly bool `json:"validate_only,omitempty"`
ProjectID string `json:"project_id,omitempty"`
HTTPIdleTimeoutSeconds *uint64 `json:"http_idle_timeout_seconds,omitempty"`
}
// String creates a human-readable description of a LoadBalancerRequest.

View File

@ -50,7 +50,7 @@ func (ih InvalidHashPrefixError) Error() string {
type InvalidCostError int
func (ic InvalidCostError) Error() string {
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), int(MinCost), int(MaxCost))
return fmt.Sprintf("crypto/bcrypt: cost %d is outside allowed range (%d,%d)", int(ic), MinCost, MaxCost)
}
const (

View File

@ -532,7 +532,7 @@ func (s *String) ReadASN1BitString(out *encoding_asn1.BitString) bool {
return false
}
paddingBits := uint8(bytes[0])
paddingBits := bytes[0]
bytes = bytes[1:]
if paddingBits > 7 ||
len(bytes) == 0 && paddingBits != 0 ||
@ -554,7 +554,7 @@ func (s *String) ReadASN1BitStringAsBytes(out *[]byte) bool {
return false
}
paddingBits := uint8(bytes[0])
paddingBits := bytes[0]
if paddingBits != 0 {
return false
}

View File

@ -10,6 +10,7 @@ import (
"fmt"
"io"
"math"
"strings"
"sync"
_ "crypto/sha1"
@ -118,6 +119,20 @@ func algorithmsForKeyFormat(keyFormat string) []string {
}
}
// supportedPubKeyAuthAlgos specifies the supported client public key
// authentication algorithms. Note that this doesn't include certificate types
// since those use the underlying algorithm. This list is sent to the client if
// it supports the server-sig-algs extension. Order is irrelevant.
var supportedPubKeyAuthAlgos = []string{
KeyAlgoED25519,
KeyAlgoSKED25519, KeyAlgoSKECDSA256,
KeyAlgoECDSA256, KeyAlgoECDSA384, KeyAlgoECDSA521,
KeyAlgoRSASHA256, KeyAlgoRSASHA512, KeyAlgoRSA,
KeyAlgoDSA,
}
var supportedPubKeyAuthAlgosList = strings.Join(supportedPubKeyAuthAlgos, ",")
// unexpectedMessageError results when the SSH message that we received didn't
// match what we wanted.
func unexpectedMessageError(expected, got uint8) error {

View File

@ -615,7 +615,8 @@ func (t *handshakeTransport) enterKeyExchange(otherInitPacket []byte) error {
return err
}
if t.sessionID == nil {
firstKeyExchange := t.sessionID == nil
if firstKeyExchange {
t.sessionID = result.H
}
result.SessionID = t.sessionID
@ -626,6 +627,24 @@ func (t *handshakeTransport) enterKeyExchange(otherInitPacket []byte) error {
if err = t.conn.writePacket([]byte{msgNewKeys}); err != nil {
return err
}
// On the server side, after the first SSH_MSG_NEWKEYS, send a SSH_MSG_EXT_INFO
// message with the server-sig-algs extension if the client supports it. See
// RFC 8308, Sections 2.4 and 3.1.
if !isClient && firstKeyExchange && contains(clientInit.KexAlgos, "ext-info-c") {
extInfo := &extInfoMsg{
NumExtensions: 1,
Payload: make([]byte, 0, 4+15+4+len(supportedPubKeyAuthAlgosList)),
}
extInfo.Payload = appendInt(extInfo.Payload, len("server-sig-algs"))
extInfo.Payload = append(extInfo.Payload, "server-sig-algs"...)
extInfo.Payload = appendInt(extInfo.Payload, len(supportedPubKeyAuthAlgosList))
extInfo.Payload = append(extInfo.Payload, supportedPubKeyAuthAlgosList...)
if err := t.conn.writePacket(Marshal(extInfo)); err != nil {
return err
}
}
if packet, err := t.conn.readPacket(); err != nil {
return err
} else if packet[0] != msgNewKeys {

View File

@ -291,15 +291,6 @@ func (s *connection) serverHandshake(config *ServerConfig) (*Permissions, error)
return perms, err
}
func isAcceptableAlgo(algo string) bool {
switch algo {
case KeyAlgoRSA, KeyAlgoRSASHA256, KeyAlgoRSASHA512, KeyAlgoDSA, KeyAlgoECDSA256, KeyAlgoECDSA384, KeyAlgoECDSA521, KeyAlgoSKECDSA256, KeyAlgoED25519, KeyAlgoSKED25519,
CertAlgoRSAv01, CertAlgoDSAv01, CertAlgoECDSA256v01, CertAlgoECDSA384v01, CertAlgoECDSA521v01, CertAlgoSKECDSA256v01, CertAlgoED25519v01, CertAlgoSKED25519v01:
return true
}
return false
}
func checkSourceAddress(addr net.Addr, sourceAddrs string) error {
if addr == nil {
return errors.New("ssh: no address known for client, but source-address match required")
@ -514,7 +505,7 @@ userAuthLoop:
return nil, parseError(msgUserAuthRequest)
}
algo := string(algoBytes)
if !isAcceptableAlgo(algo) {
if !contains(supportedPubKeyAuthAlgos, underlyingAlgo(algo)) {
authErr = fmt.Errorf("ssh: algorithm %q not accepted", algo)
break
}
@ -572,7 +563,7 @@ userAuthLoop:
// algorithm name that corresponds to algo with
// sig.Format. This is usually the same, but
// for certs, the names differ.
if !isAcceptableAlgo(sig.Format) {
if !contains(supportedPubKeyAuthAlgos, sig.Format) {
authErr = fmt.Errorf("ssh: algorithm %q not accepted", sig.Format)
break
}

8
vendor/modules.txt generated vendored
View File

@ -7,7 +7,7 @@ cloud.google.com/go/compute/metadata
# github.com/Azure/azure-pipeline-go v0.2.3
## explicit; go 1.14
github.com/Azure/azure-pipeline-go/pipeline
# github.com/Azure/azure-sdk-for-go v67.0.0+incompatible
# github.com/Azure/azure-sdk-for-go v67.1.0+incompatible
## explicit
github.com/Azure/azure-sdk-for-go/services/compute/mgmt/2022-08-01/compute
github.com/Azure/azure-sdk-for-go/services/network/mgmt/2022-05-01/network
@ -106,7 +106,7 @@ github.com/aws/amazon-ec2-instance-selector/v2/pkg/instancetypes
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector
github.com/aws/amazon-ec2-instance-selector/v2/pkg/selector/outputs
github.com/aws/amazon-ec2-instance-selector/v2/pkg/sorter
# github.com/aws/aws-sdk-go v1.44.135
# github.com/aws/aws-sdk-go v1.44.140
## explicit; go 1.11
github.com/aws/aws-sdk-go/aws
github.com/aws/aws-sdk-go/aws/arn
@ -259,7 +259,7 @@ github.com/cpuguy83/go-md2man/v2/md2man
# github.com/davecgh/go-spew v1.1.1
## explicit
github.com/davecgh/go-spew/spew
# github.com/digitalocean/godo v1.89.0
# github.com/digitalocean/godo v1.90.0
## explicit; go 1.18
github.com/digitalocean/godo
github.com/digitalocean/godo/metrics
@ -956,7 +956,7 @@ go.uber.org/atomic
# go.uber.org/multierr v1.8.0
## explicit; go 1.14
go.uber.org/multierr
# golang.org/x/crypto v0.2.0
# golang.org/x/crypto v0.3.0
## explicit; go 1.17
golang.org/x/crypto/bcrypt
golang.org/x/crypto/blake2b