mirror of
https://github.com/ceph/ceph-csi.git
synced 2024-11-09 16:00:22 +00:00
rebase: bump github.com/aws/aws-sdk-go from 1.44.127 to 1.44.132
Bumps [github.com/aws/aws-sdk-go](https://github.com/aws/aws-sdk-go) from 1.44.127 to 1.44.132. - [Release notes](https://github.com/aws/aws-sdk-go/releases) - [Commits](https://github.com/aws/aws-sdk-go/compare/v1.44.127...v1.44.132) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
03480d2927
commit
c65a4e1d8a
2
go.mod
2
go.mod
@ -4,7 +4,7 @@ go 1.17
|
||||
|
||||
require (
|
||||
github.com/IBM/keyprotect-go-client v0.9.0
|
||||
github.com/aws/aws-sdk-go v1.44.127
|
||||
github.com/aws/aws-sdk-go v1.44.132
|
||||
github.com/aws/aws-sdk-go-v2/service/sts v1.17.1
|
||||
github.com/ceph/ceph-csi/api v0.0.0-00010101000000-000000000000
|
||||
// TODO: API for managing subvolume metadata and snapshot metadata requires `ceph_ci_untested` build-tag
|
||||
|
4
go.sum
4
go.sum
@ -160,8 +160,8 @@ github.com/aws/aws-sdk-go v1.25.41/go.mod h1:KmX6BPdI08NWTb3/sm4ZGu5ShLoqVDhKgpi
|
||||
github.com/aws/aws-sdk-go v1.35.24/go.mod h1:tlPOdRjfxPBpNIwqDj61rmsnA85v9jc0Ps9+muhnW+k=
|
||||
github.com/aws/aws-sdk-go v1.38.49/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro=
|
||||
github.com/aws/aws-sdk-go v1.44.67/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
|
||||
github.com/aws/aws-sdk-go v1.44.127 h1:IoO2VfuIQg1aMXnl8l6OpNUKT4Qq5CnJMOyIWoTYXj0=
|
||||
github.com/aws/aws-sdk-go v1.44.127/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo=
|
||||
github.com/aws/aws-sdk-go v1.44.132 h1:+IjL9VoR0OXScQ5gyme9xjcolwUkd3uaH144f4Ao+4s=
|
||||
github.com/aws/aws-sdk-go v1.44.132/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
|
||||
github.com/aws/aws-sdk-go-v2 v1.17.1 h1:02c72fDJr87N8RAC2s3Qu0YuvMRZKNZJ9F+lAehCazk=
|
||||
github.com/aws/aws-sdk-go-v2 v1.17.1/go.mod h1:JLnGeGONAyi2lWXI1p0PCIOIy333JMVK1U7Hf0aRFLw=
|
||||
github.com/aws/aws-sdk-go-v2/internal/configsources v1.1.25 h1:nBO/RFxeq/IS5G9Of+ZrgucRciie2qpLy++3UGZ+q2E=
|
||||
|
94
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
94
vendor/github.com/aws/aws-sdk-go/aws/endpoints/defaults.go
generated
vendored
@ -8454,6 +8454,9 @@ var awsPartition = partition{
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "me-south-1",
|
||||
}: endpoint{},
|
||||
@ -10323,6 +10326,9 @@ var awsPartition = partition{
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "me-south-1",
|
||||
}: endpoint{},
|
||||
@ -12159,6 +12165,7 @@ var awsPartition = partition{
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-1",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-fips-us-east-2",
|
||||
@ -12167,6 +12174,7 @@ var awsPartition = partition{
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-fips-us-west-2",
|
||||
@ -12175,6 +12183,61 @@ var awsPartition = partition{
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-west-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-us-east-1",
|
||||
}: endpoint{
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-1",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-us-east-1",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "ingest.timestream-fips.us-east-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-1",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-us-east-2",
|
||||
}: endpoint{
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-us-east-2",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "ingest.timestream-fips.us-east-2.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-east-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-us-west-2",
|
||||
}: endpoint{
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-west-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ingest-us-west-2",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "ingest.timestream-fips.us-west-2.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "us-west-2",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "us-east-1",
|
||||
@ -14397,6 +14460,12 @@ var awsPartition = partition{
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "me-central-1",
|
||||
Variant: dualStackVariant,
|
||||
}: endpoint{
|
||||
Hostname: "lambda.me-central-1.api.aws",
|
||||
},
|
||||
endpointKey{
|
||||
Region: "me-south-1",
|
||||
}: endpoint{},
|
||||
@ -17354,7 +17423,21 @@ var awsPartition = partition{
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "ca-central-1",
|
||||
}: endpoint{},
|
||||
}: endpoint{
|
||||
Hostname: "pinpoint.ca-central-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "ca-central-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "ca-central-1",
|
||||
Variant: fipsVariant,
|
||||
}: endpoint{
|
||||
Hostname: "pinpoint-fips.ca-central-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "ca-central-1",
|
||||
},
|
||||
},
|
||||
endpointKey{
|
||||
Region: "eu-central-1",
|
||||
}: endpoint{},
|
||||
@ -17364,6 +17447,15 @@ var awsPartition = partition{
|
||||
endpointKey{
|
||||
Region: "eu-west-2",
|
||||
}: endpoint{},
|
||||
endpointKey{
|
||||
Region: "fips-ca-central-1",
|
||||
}: endpoint{
|
||||
Hostname: "pinpoint-fips.ca-central-1.amazonaws.com",
|
||||
CredentialScope: credentialScope{
|
||||
Region: "ca-central-1",
|
||||
},
|
||||
Deprecated: boxedTrue,
|
||||
},
|
||||
endpointKey{
|
||||
Region: "fips-us-east-1",
|
||||
}: endpoint{
|
||||
|
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go/aws/version.go
generated
vendored
@ -5,4 +5,4 @@ package aws
|
||||
const SDKName = "aws-sdk-go"
|
||||
|
||||
// SDKVersion is the version of this SDK
|
||||
const SDKVersion = "1.44.127"
|
||||
const SDKVersion = "1.44.132"
|
||||
|
19
vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go
generated
vendored
19
vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/build.go
generated
vendored
@ -4,7 +4,6 @@ package jsonutil
|
||||
import (
|
||||
"bytes"
|
||||
"encoding/base64"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"math"
|
||||
"reflect"
|
||||
@ -16,6 +15,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
floatNaN = "NaN"
|
||||
floatInf = "Infinity"
|
||||
floatNegInf = "-Infinity"
|
||||
)
|
||||
|
||||
var timeType = reflect.ValueOf(time.Time{}).Type()
|
||||
var byteSliceType = reflect.ValueOf([]byte{}).Type()
|
||||
|
||||
@ -211,10 +216,16 @@ func buildScalar(v reflect.Value, buf *bytes.Buffer, tag reflect.StructTag) erro
|
||||
buf.Write(strconv.AppendInt(scratch[:0], value.Int(), 10))
|
||||
case reflect.Float64:
|
||||
f := value.Float()
|
||||
if math.IsInf(f, 0) || math.IsNaN(f) {
|
||||
return &json.UnsupportedValueError{Value: v, Str: strconv.FormatFloat(f, 'f', -1, 64)}
|
||||
switch {
|
||||
case math.IsNaN(f):
|
||||
writeString(floatNaN, buf)
|
||||
case math.IsInf(f, 1):
|
||||
writeString(floatInf, buf)
|
||||
case math.IsInf(f, -1):
|
||||
writeString(floatNegInf, buf)
|
||||
default:
|
||||
buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64))
|
||||
}
|
||||
buf.Write(strconv.AppendFloat(scratch[:0], f, 'f', -1, 64))
|
||||
default:
|
||||
switch converted := value.Interface().(type) {
|
||||
case time.Time:
|
||||
|
13
vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
generated
vendored
13
vendor/github.com/aws/aws-sdk-go/private/protocol/json/jsonutil/unmarshal.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"math/big"
|
||||
"reflect"
|
||||
"strings"
|
||||
@ -258,6 +259,18 @@ func (u unmarshaler) unmarshalScalar(value reflect.Value, data interface{}, tag
|
||||
return err
|
||||
}
|
||||
value.Set(reflect.ValueOf(v))
|
||||
case *float64:
|
||||
// These are regular strings when parsed by encoding/json's unmarshaler.
|
||||
switch {
|
||||
case strings.EqualFold(d, floatNaN):
|
||||
value.Set(reflect.ValueOf(aws.Float64(math.NaN())))
|
||||
case strings.EqualFold(d, floatInf):
|
||||
value.Set(reflect.ValueOf(aws.Float64(math.Inf(1))))
|
||||
case strings.EqualFold(d, floatNegInf):
|
||||
value.Set(reflect.ValueOf(aws.Float64(math.Inf(-1))))
|
||||
default:
|
||||
return fmt.Errorf("unknown JSON number value: %s", d)
|
||||
}
|
||||
default:
|
||||
return fmt.Errorf("unsupported value: %v (%s)", value.Interface(), value.Type())
|
||||
}
|
||||
|
34
vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
generated
vendored
34
vendor/github.com/aws/aws-sdk-go/private/protocol/query/queryutil/queryutil.go
generated
vendored
@ -3,6 +3,7 @@ package queryutil
|
||||
import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"math"
|
||||
"net/url"
|
||||
"reflect"
|
||||
"sort"
|
||||
@ -13,6 +14,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
floatNaN = "NaN"
|
||||
floatInf = "Infinity"
|
||||
floatNegInf = "-Infinity"
|
||||
)
|
||||
|
||||
// Parse parses an object i and fills a url.Values object. The isEC2 flag
|
||||
// indicates if this is the EC2 Query sub-protocol.
|
||||
func Parse(body url.Values, i interface{}, isEC2 bool) error {
|
||||
@ -228,9 +235,32 @@ func (q *queryParser) parseScalar(v url.Values, r reflect.Value, name string, ta
|
||||
case int:
|
||||
v.Set(name, strconv.Itoa(value))
|
||||
case float64:
|
||||
v.Set(name, strconv.FormatFloat(value, 'f', -1, 64))
|
||||
var str string
|
||||
switch {
|
||||
case math.IsNaN(value):
|
||||
str = floatNaN
|
||||
case math.IsInf(value, 1):
|
||||
str = floatInf
|
||||
case math.IsInf(value, -1):
|
||||
str = floatNegInf
|
||||
default:
|
||||
str = strconv.FormatFloat(value, 'f', -1, 64)
|
||||
}
|
||||
v.Set(name, str)
|
||||
case float32:
|
||||
v.Set(name, strconv.FormatFloat(float64(value), 'f', -1, 32))
|
||||
asFloat64 := float64(value)
|
||||
var str string
|
||||
switch {
|
||||
case math.IsNaN(asFloat64):
|
||||
str = floatNaN
|
||||
case math.IsInf(asFloat64, 1):
|
||||
str = floatInf
|
||||
case math.IsInf(asFloat64, -1):
|
||||
str = floatNegInf
|
||||
default:
|
||||
str = strconv.FormatFloat(asFloat64, 'f', -1, 32)
|
||||
}
|
||||
v.Set(name, str)
|
||||
case time.Time:
|
||||
const ISO8601UTC = "2006-01-02T15:04:05Z"
|
||||
format := tag.Get("timestampFormat")
|
||||
|
18
vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go
generated
vendored
18
vendor/github.com/aws/aws-sdk-go/private/protocol/rest/build.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
||||
"encoding/base64"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"net/http"
|
||||
"net/url"
|
||||
"path"
|
||||
@ -20,6 +21,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
floatNaN = "NaN"
|
||||
floatInf = "Infinity"
|
||||
floatNegInf = "-Infinity"
|
||||
)
|
||||
|
||||
// Whether the byte value can be sent without escaping in AWS URLs
|
||||
var noEscape [256]bool
|
||||
|
||||
@ -302,7 +309,16 @@ func convertType(v reflect.Value, tag reflect.StructTag) (str string, err error)
|
||||
case int64:
|
||||
str = strconv.FormatInt(value, 10)
|
||||
case float64:
|
||||
str = strconv.FormatFloat(value, 'f', -1, 64)
|
||||
switch {
|
||||
case math.IsNaN(value):
|
||||
str = floatNaN
|
||||
case math.IsInf(value, 1):
|
||||
str = floatInf
|
||||
case math.IsInf(value, -1):
|
||||
str = floatNegInf
|
||||
default:
|
||||
str = strconv.FormatFloat(value, 'f', -1, 64)
|
||||
}
|
||||
case time.Time:
|
||||
format := tag.Get("timestampFormat")
|
||||
if len(format) == 0 {
|
||||
|
18
vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go
generated
vendored
18
vendor/github.com/aws/aws-sdk-go/private/protocol/rest/unmarshal.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"io/ioutil"
|
||||
"math"
|
||||
"net/http"
|
||||
"reflect"
|
||||
"strconv"
|
||||
@ -231,9 +232,20 @@ func unmarshalHeader(v reflect.Value, header string, tag reflect.StructTag) erro
|
||||
}
|
||||
v.Set(reflect.ValueOf(&i))
|
||||
case *float64:
|
||||
f, err := strconv.ParseFloat(header, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
var f float64
|
||||
switch {
|
||||
case strings.EqualFold(header, floatNaN):
|
||||
f = math.NaN()
|
||||
case strings.EqualFold(header, floatInf):
|
||||
f = math.Inf(1)
|
||||
case strings.EqualFold(header, floatNegInf):
|
||||
f = math.Inf(-1)
|
||||
default:
|
||||
var err error
|
||||
f, err = strconv.ParseFloat(header, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
v.Set(reflect.ValueOf(&f))
|
||||
case *time.Time:
|
||||
|
32
vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
generated
vendored
32
vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/build.go
generated
vendored
@ -5,6 +5,7 @@ import (
|
||||
"encoding/base64"
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"math"
|
||||
"reflect"
|
||||
"sort"
|
||||
"strconv"
|
||||
@ -14,6 +15,12 @@ import (
|
||||
"github.com/aws/aws-sdk-go/private/protocol"
|
||||
)
|
||||
|
||||
const (
|
||||
floatNaN = "NaN"
|
||||
floatInf = "Infinity"
|
||||
floatNegInf = "-Infinity"
|
||||
)
|
||||
|
||||
// BuildXML will serialize params into an xml.Encoder. Error will be returned
|
||||
// if the serialization of any of the params or nested values fails.
|
||||
func BuildXML(params interface{}, e *xml.Encoder) error {
|
||||
@ -275,6 +282,7 @@ func (b *xmlBuilder) buildMap(value reflect.Value, current *XMLNode, tag reflect
|
||||
// Error will be returned if the value type is unsupported.
|
||||
func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag reflect.StructTag) error {
|
||||
var str string
|
||||
|
||||
switch converted := value.Interface().(type) {
|
||||
case string:
|
||||
str = converted
|
||||
@ -289,9 +297,29 @@ func (b *xmlBuilder) buildScalar(value reflect.Value, current *XMLNode, tag refl
|
||||
case int:
|
||||
str = strconv.Itoa(converted)
|
||||
case float64:
|
||||
str = strconv.FormatFloat(converted, 'f', -1, 64)
|
||||
switch {
|
||||
case math.IsNaN(converted):
|
||||
str = floatNaN
|
||||
case math.IsInf(converted, 1):
|
||||
str = floatInf
|
||||
case math.IsInf(converted, -1):
|
||||
str = floatNegInf
|
||||
default:
|
||||
str = strconv.FormatFloat(converted, 'f', -1, 64)
|
||||
}
|
||||
case float32:
|
||||
str = strconv.FormatFloat(float64(converted), 'f', -1, 32)
|
||||
// The SDK doesn't render float32 values in types, only float64. This case would never be hit currently.
|
||||
asFloat64 := float64(converted)
|
||||
switch {
|
||||
case math.IsNaN(asFloat64):
|
||||
str = floatNaN
|
||||
case math.IsInf(asFloat64, 1):
|
||||
str = floatInf
|
||||
case math.IsInf(asFloat64, -1):
|
||||
str = floatNegInf
|
||||
default:
|
||||
str = strconv.FormatFloat(asFloat64, 'f', -1, 32)
|
||||
}
|
||||
case time.Time:
|
||||
format := tag.Get("timestampFormat")
|
||||
if len(format) == 0 {
|
||||
|
18
vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go
generated
vendored
18
vendor/github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil/unmarshal.go
generated
vendored
@ -6,6 +6,7 @@ import (
|
||||
"encoding/xml"
|
||||
"fmt"
|
||||
"io"
|
||||
"math"
|
||||
"reflect"
|
||||
"strconv"
|
||||
"strings"
|
||||
@ -276,9 +277,20 @@ func parseScalar(r reflect.Value, node *XMLNode, tag reflect.StructTag) error {
|
||||
}
|
||||
r.Set(reflect.ValueOf(&v))
|
||||
case *float64:
|
||||
v, err := strconv.ParseFloat(node.Text, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
var v float64
|
||||
switch {
|
||||
case strings.EqualFold(node.Text, floatNaN):
|
||||
v = math.NaN()
|
||||
case strings.EqualFold(node.Text, floatInf):
|
||||
v = math.Inf(1)
|
||||
case strings.EqualFold(node.Text, floatNegInf):
|
||||
v = math.Inf(-1)
|
||||
default:
|
||||
var err error
|
||||
v, err = strconv.ParseFloat(node.Text, 64)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
}
|
||||
r.Set(reflect.ValueOf(&v))
|
||||
case *time.Time:
|
||||
|
384
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
384
vendor/github.com/aws/aws-sdk-go/service/ec2/api.go
generated
vendored
@ -3356,6 +3356,82 @@ func (c *EC2) CancelExportTaskWithContext(ctx aws.Context, input *CancelExportTa
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opCancelImageLaunchPermission = "CancelImageLaunchPermission"
|
||||
|
||||
// CancelImageLaunchPermissionRequest generates a "aws/request.Request" representing the
|
||||
// client's request for the CancelImageLaunchPermission operation. The "output" return
|
||||
// value will be populated with the request's response once the request completes
|
||||
// successfully.
|
||||
//
|
||||
// Use "Send" method on the returned Request to send the API call to the service.
|
||||
// the "output" return value is not valid until after Send returns without error.
|
||||
//
|
||||
// See CancelImageLaunchPermission for more information on using the CancelImageLaunchPermission
|
||||
// API call, and error handling.
|
||||
//
|
||||
// This method is useful when you want to inject custom logic or configuration
|
||||
// into the SDK's request lifecycle. Such as custom headers, or retry logic.
|
||||
//
|
||||
// // Example sending a request using the CancelImageLaunchPermissionRequest method.
|
||||
// req, resp := client.CancelImageLaunchPermissionRequest(params)
|
||||
//
|
||||
// err := req.Send()
|
||||
// if err == nil { // resp is now filled
|
||||
// fmt.Println(resp)
|
||||
// }
|
||||
//
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImageLaunchPermission
|
||||
func (c *EC2) CancelImageLaunchPermissionRequest(input *CancelImageLaunchPermissionInput) (req *request.Request, output *CancelImageLaunchPermissionOutput) {
|
||||
op := &request.Operation{
|
||||
Name: opCancelImageLaunchPermission,
|
||||
HTTPMethod: "POST",
|
||||
HTTPPath: "/",
|
||||
}
|
||||
|
||||
if input == nil {
|
||||
input = &CancelImageLaunchPermissionInput{}
|
||||
}
|
||||
|
||||
output = &CancelImageLaunchPermissionOutput{}
|
||||
req = c.newRequest(op, input, output)
|
||||
return
|
||||
}
|
||||
|
||||
// CancelImageLaunchPermission API operation for Amazon Elastic Compute Cloud.
|
||||
//
|
||||
// Removes your Amazon Web Services account from the launch permissions for
|
||||
// the specified AMI. For more information, see Cancel sharing an AMI with your
|
||||
// Amazon Web Services account (https://docs.aws.amazon.com/) in the Amazon
|
||||
// Elastic Compute Cloud User Guide.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
// the error.
|
||||
//
|
||||
// See the AWS API reference guide for Amazon Elastic Compute Cloud's
|
||||
// API operation CancelImageLaunchPermission for usage and error information.
|
||||
// See also, https://docs.aws.amazon.com/goto/WebAPI/ec2-2016-11-15/CancelImageLaunchPermission
|
||||
func (c *EC2) CancelImageLaunchPermission(input *CancelImageLaunchPermissionInput) (*CancelImageLaunchPermissionOutput, error) {
|
||||
req, out := c.CancelImageLaunchPermissionRequest(input)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
// CancelImageLaunchPermissionWithContext is the same as CancelImageLaunchPermission with the addition of
|
||||
// the ability to pass a context and additional request options.
|
||||
//
|
||||
// See CancelImageLaunchPermission for details on how to use this API operation.
|
||||
//
|
||||
// The context must be non-nil and will be used for request cancellation. If
|
||||
// the context is nil a panic will occur. In the future the SDK may create
|
||||
// sub-contexts for http.Requests. See https://golang.org/pkg/context/
|
||||
// for more information on using Contexts.
|
||||
func (c *EC2) CancelImageLaunchPermissionWithContext(ctx aws.Context, input *CancelImageLaunchPermissionInput, opts ...request.Option) (*CancelImageLaunchPermissionOutput, error) {
|
||||
req, out := c.CancelImageLaunchPermissionRequest(input)
|
||||
req.SetContext(ctx)
|
||||
req.ApplyOptions(opts...)
|
||||
return out, req.Send()
|
||||
}
|
||||
|
||||
const opCancelImportTask = "CancelImportTask"
|
||||
|
||||
// CancelImportTaskRequest generates a "aws/request.Request" representing the
|
||||
@ -27432,7 +27508,7 @@ func (c *EC2) DescribeSpotFleetRequestHistoryRequest(input *DescribeSpotFleetReq
|
||||
// recorded event. Spot Fleet events are available for 48 hours.
|
||||
//
|
||||
// For more information, see Monitor fleet events using Amazon EventBridge (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/fleet-monitor.html)
|
||||
// in the Amazon EC2 User Guide for Linux Instances.
|
||||
// in the Amazon EC2 User Guide.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
@ -47157,12 +47233,12 @@ func (c *EC2) RequestSpotFleetRequest(input *RequestSpotFleetInput) (req *reques
|
||||
// only the spot-fleet-request and instance resource types are supported.
|
||||
//
|
||||
// For more information, see Spot Fleet requests (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html)
|
||||
// in the Amazon EC2 User Guide for Linux Instances.
|
||||
// in the Amazon EC2 User Guide.
|
||||
//
|
||||
// We strongly discourage using the RequestSpotFleet API because it is a legacy
|
||||
// API with no planned investment. For options for requesting Spot Instances,
|
||||
// see Which is the best Spot request method to use? (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-best-practices.html#which-spot-request-method-to-use)
|
||||
// in the Amazon EC2 User Guide for Linux Instances.
|
||||
// in the Amazon EC2 User Guide.
|
||||
//
|
||||
// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
|
||||
// with awserr.Error's Code and Message methods to get detailed information about
|
||||
@ -57662,6 +57738,95 @@ func (s CancelExportTaskOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
type CancelImageLaunchPermissionInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Checks whether you have the required permissions for the action, without
|
||||
// actually making the request, and provides an error response. If you have
|
||||
// the required permissions, the error response is DryRunOperation. Otherwise,
|
||||
// it is UnauthorizedOperation.
|
||||
DryRun *bool `type:"boolean"`
|
||||
|
||||
// The ID of the AMI that was shared with your Amazon Web Services account.
|
||||
//
|
||||
// ImageId is a required field
|
||||
ImageId *string `type:"string" required:"true"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s CancelImageLaunchPermissionInput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s CancelImageLaunchPermissionInput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// Validate inspects the fields of the type to determine if they are valid.
|
||||
func (s *CancelImageLaunchPermissionInput) Validate() error {
|
||||
invalidParams := request.ErrInvalidParams{Context: "CancelImageLaunchPermissionInput"}
|
||||
if s.ImageId == nil {
|
||||
invalidParams.Add(request.NewErrParamRequired("ImageId"))
|
||||
}
|
||||
|
||||
if invalidParams.Len() > 0 {
|
||||
return invalidParams
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// SetDryRun sets the DryRun field's value.
|
||||
func (s *CancelImageLaunchPermissionInput) SetDryRun(v bool) *CancelImageLaunchPermissionInput {
|
||||
s.DryRun = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetImageId sets the ImageId field's value.
|
||||
func (s *CancelImageLaunchPermissionInput) SetImageId(v string) *CancelImageLaunchPermissionInput {
|
||||
s.ImageId = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type CancelImageLaunchPermissionOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Returns true if the request succeeds; otherwise, it returns an error.
|
||||
Return *bool `locationName:"return" type:"boolean"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s CancelImageLaunchPermissionOutput) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s CancelImageLaunchPermissionOutput) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetReturn sets the Return field's value.
|
||||
func (s *CancelImageLaunchPermissionOutput) SetReturn(v bool) *CancelImageLaunchPermissionOutput {
|
||||
s.Return = &v
|
||||
return s
|
||||
}
|
||||
|
||||
type CancelImportTaskInput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@ -67938,7 +68103,7 @@ func (s *CreatePlacementGroupInput) SetTagSpecifications(v []*TagSpecification)
|
||||
type CreatePlacementGroupOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Describes a placement group.
|
||||
// Information about the placement group.
|
||||
PlacementGroup *PlacementGroup `locationName:"placementGroup" type:"structure"`
|
||||
}
|
||||
|
||||
@ -105507,7 +105672,8 @@ type EnableImageDeprecationInput struct {
|
||||
// the seconds to the nearest minute.
|
||||
//
|
||||
// You can’t specify a date in the past. The upper limit for DeprecateAt is
|
||||
// 10 years from now.
|
||||
// 10 years from now, except for public AMIs, where the upper limit is 2 years
|
||||
// from the creation date.
|
||||
//
|
||||
// DeprecateAt is a required field
|
||||
DeprecateAt *time.Time `type:"timestamp" required:"true"`
|
||||
@ -109037,7 +109203,7 @@ func (s *FleetLaunchTemplateOverridesRequest) SetWeightedCapacity(v float64) *Fl
|
||||
//
|
||||
// For information about launch templates, see Launch an instance from a launch
|
||||
// template (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-launch-templates.html)
|
||||
// in the Amazon EC2 User Guide for Linux Instances.
|
||||
// in the Amazon EC2 User Guide.
|
||||
type FleetLaunchTemplateSpecification struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
@ -120611,6 +120777,16 @@ func (s *InstancePrivateIpAddress) SetPrivateIpAddress(v string) *InstancePrivat
|
||||
// all of the specified attributes. If you specify multiple values for an attribute,
|
||||
// you get instance types that satisfy any of the specified values.
|
||||
//
|
||||
// To limit the list of instance types from which Amazon EC2 can identify matching
|
||||
// instance types, you can use one of the following parameters, but not both
|
||||
// in the same request:
|
||||
//
|
||||
// - AllowedInstanceTypes - The instance types to include in the list. All
|
||||
// other instance types are ignored, even if they match your specified attributes.
|
||||
//
|
||||
// - ExcludedInstanceTypes - The instance types to exclude from the list,
|
||||
// even if they match your specified attributes.
|
||||
//
|
||||
// You must specify VCpuCount and MemoryMiB. All other attributes are optional.
|
||||
// Any unspecified optional attribute is set to its default.
|
||||
//
|
||||
@ -120683,6 +120859,23 @@ type InstanceRequirements struct {
|
||||
// Default: Any accelerator type
|
||||
AcceleratorTypes []*string `locationName:"acceleratorTypeSet" locationNameList:"item" type:"list" enum:"AcceleratorType"`
|
||||
|
||||
// The instance types to apply your specified attributes against. All other
|
||||
// instance types are ignored, even if they match your specified attributes.
|
||||
//
|
||||
// You can use strings with one or more wild cards, represented by an asterisk
|
||||
// (*), to allow an instance type, size, or generation. The following are examples:
|
||||
// m5.8xlarge, c5*.*, m5a.*, r*, *3*.
|
||||
//
|
||||
// For example, if you specify c5*,Amazon EC2 will allow the entire C5 instance
|
||||
// family, which includes all C5a and C5n instance types. If you specify m5a.*,
|
||||
// Amazon EC2 will allow all the M5a instance types, but not the M5n instance
|
||||
// types.
|
||||
//
|
||||
// If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.
|
||||
//
|
||||
// Default: All instance types
|
||||
AllowedInstanceTypes []*string `locationName:"allowedInstanceTypeSet" locationNameList:"item" type:"list"`
|
||||
|
||||
// Indicates whether bare metal instance types must be included, excluded, or
|
||||
// required.
|
||||
//
|
||||
@ -120740,6 +120933,8 @@ type InstanceRequirements struct {
|
||||
// Amazon EC2 will exclude all the M5a instance types, but not the M5n instance
|
||||
// types.
|
||||
//
|
||||
// If you specify ExcludedInstanceTypes, you can't specify AllowedInstanceTypes.
|
||||
//
|
||||
// Default: No excluded instance types
|
||||
ExcludedInstanceTypes []*string `locationName:"excludedInstanceTypeSet" locationNameList:"item" type:"list"`
|
||||
|
||||
@ -120787,6 +120982,12 @@ type InstanceRequirements struct {
|
||||
// The minimum and maximum amount of memory, in MiB.
|
||||
MemoryMiB *MemoryMiB `locationName:"memoryMiB" type:"structure"`
|
||||
|
||||
// The minimum and maximum amount of network bandwidth, in gigabits per second
|
||||
// (Gbps).
|
||||
//
|
||||
// Default: No minimum or maximum limits
|
||||
NetworkBandwidthGbps *NetworkBandwidthGbps `locationName:"networkBandwidthGbps" type:"structure"`
|
||||
|
||||
// The minimum and maximum number of network interfaces.
|
||||
//
|
||||
// Default: No minimum or maximum limits
|
||||
@ -120896,6 +121097,12 @@ func (s *InstanceRequirements) SetAcceleratorTypes(v []*string) *InstanceRequire
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAllowedInstanceTypes sets the AllowedInstanceTypes field's value.
|
||||
func (s *InstanceRequirements) SetAllowedInstanceTypes(v []*string) *InstanceRequirements {
|
||||
s.AllowedInstanceTypes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetBareMetal sets the BareMetal field's value.
|
||||
func (s *InstanceRequirements) SetBareMetal(v string) *InstanceRequirements {
|
||||
s.BareMetal = &v
|
||||
@ -120956,6 +121163,12 @@ func (s *InstanceRequirements) SetMemoryMiB(v *MemoryMiB) *InstanceRequirements
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNetworkBandwidthGbps sets the NetworkBandwidthGbps field's value.
|
||||
func (s *InstanceRequirements) SetNetworkBandwidthGbps(v *NetworkBandwidthGbps) *InstanceRequirements {
|
||||
s.NetworkBandwidthGbps = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNetworkInterfaceCount sets the NetworkInterfaceCount field's value.
|
||||
func (s *InstanceRequirements) SetNetworkInterfaceCount(v *NetworkInterfaceCount) *InstanceRequirements {
|
||||
s.NetworkInterfaceCount = v
|
||||
@ -120999,6 +121212,16 @@ func (s *InstanceRequirements) SetVCpuCount(v *VCpuCountRange) *InstanceRequirem
|
||||
// all of the specified attributes. If you specify multiple values for an attribute,
|
||||
// you get instance types that satisfy any of the specified values.
|
||||
//
|
||||
// To limit the list of instance types from which Amazon EC2 can identify matching
|
||||
// instance types, you can use one of the following parameters, but not both
|
||||
// in the same request:
|
||||
//
|
||||
// - AllowedInstanceTypes - The instance types to include in the list. All
|
||||
// other instance types are ignored, even if they match your specified attributes.
|
||||
//
|
||||
// - ExcludedInstanceTypes - The instance types to exclude from the list,
|
||||
// even if they match your specified attributes.
|
||||
//
|
||||
// You must specify VCpuCount and MemoryMiB. All other attributes are optional.
|
||||
// Any unspecified optional attribute is set to its default.
|
||||
//
|
||||
@ -121071,6 +121294,23 @@ type InstanceRequirementsRequest struct {
|
||||
// Default: Any accelerator type
|
||||
AcceleratorTypes []*string `locationName:"AcceleratorType" locationNameList:"item" type:"list" enum:"AcceleratorType"`
|
||||
|
||||
// The instance types to apply your specified attributes against. All other
|
||||
// instance types are ignored, even if they match your specified attributes.
|
||||
//
|
||||
// You can use strings with one or more wild cards, represented by an asterisk
|
||||
// (*), to allow an instance type, size, or generation. The following are examples:
|
||||
// m5.8xlarge, c5*.*, m5a.*, r*, *3*.
|
||||
//
|
||||
// For example, if you specify c5*,Amazon EC2 will allow the entire C5 instance
|
||||
// family, which includes all C5a and C5n instance types. If you specify m5a.*,
|
||||
// Amazon EC2 will allow all the M5a instance types, but not the M5n instance
|
||||
// types.
|
||||
//
|
||||
// If you specify AllowedInstanceTypes, you can't specify ExcludedInstanceTypes.
|
||||
//
|
||||
// Default: All instance types
|
||||
AllowedInstanceTypes []*string `locationName:"AllowedInstanceType" locationNameList:"item" type:"list"`
|
||||
|
||||
// Indicates whether bare metal instance types must be included, excluded, or
|
||||
// required.
|
||||
//
|
||||
@ -121128,6 +121368,8 @@ type InstanceRequirementsRequest struct {
|
||||
// Amazon EC2 will exclude all the M5a instance types, but not the M5n instance
|
||||
// types.
|
||||
//
|
||||
// If you specify ExcludedInstanceTypes, you can't specify AllowedInstanceTypes.
|
||||
//
|
||||
// Default: No excluded instance types
|
||||
ExcludedInstanceTypes []*string `locationName:"ExcludedInstanceType" locationNameList:"item" type:"list"`
|
||||
|
||||
@ -121177,6 +121419,12 @@ type InstanceRequirementsRequest struct {
|
||||
// MemoryMiB is a required field
|
||||
MemoryMiB *MemoryMiBRequest `type:"structure" required:"true"`
|
||||
|
||||
// The minimum and maximum amount of network bandwidth, in gigabits per second
|
||||
// (Gbps).
|
||||
//
|
||||
// Default: No minimum or maximum limits
|
||||
NetworkBandwidthGbps *NetworkBandwidthGbpsRequest `type:"structure"`
|
||||
|
||||
// The minimum and maximum number of network interfaces.
|
||||
//
|
||||
// Default: No minimum or maximum limits
|
||||
@ -121314,6 +121562,12 @@ func (s *InstanceRequirementsRequest) SetAcceleratorTypes(v []*string) *Instance
|
||||
return s
|
||||
}
|
||||
|
||||
// SetAllowedInstanceTypes sets the AllowedInstanceTypes field's value.
|
||||
func (s *InstanceRequirementsRequest) SetAllowedInstanceTypes(v []*string) *InstanceRequirementsRequest {
|
||||
s.AllowedInstanceTypes = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetBareMetal sets the BareMetal field's value.
|
||||
func (s *InstanceRequirementsRequest) SetBareMetal(v string) *InstanceRequirementsRequest {
|
||||
s.BareMetal = &v
|
||||
@ -121374,6 +121628,12 @@ func (s *InstanceRequirementsRequest) SetMemoryMiB(v *MemoryMiBRequest) *Instanc
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNetworkBandwidthGbps sets the NetworkBandwidthGbps field's value.
|
||||
func (s *InstanceRequirementsRequest) SetNetworkBandwidthGbps(v *NetworkBandwidthGbpsRequest) *InstanceRequirementsRequest {
|
||||
s.NetworkBandwidthGbps = v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetNetworkInterfaceCount sets the NetworkInterfaceCount field's value.
|
||||
func (s *InstanceRequirementsRequest) SetNetworkInterfaceCount(v *NetworkInterfaceCountRequest) *InstanceRequirementsRequest {
|
||||
s.NetworkInterfaceCount = v
|
||||
@ -131199,7 +131459,7 @@ func (s *ModifyInstanceEventStartTimeInput) SetNotBefore(v time.Time) *ModifyIns
|
||||
type ModifyInstanceEventStartTimeOutput struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// Describes a scheduled event for an instance.
|
||||
// Information about the event.
|
||||
Event *InstanceStatusEvent `locationName:"event" type:"structure"`
|
||||
}
|
||||
|
||||
@ -137603,6 +137863,108 @@ func (s *NetworkAclEntry) SetRuleNumber(v int64) *NetworkAclEntry {
|
||||
return s
|
||||
}
|
||||
|
||||
// The minimum and maximum amount of network bandwidth, in gigabits per second
|
||||
// (Gbps).
|
||||
//
|
||||
// Setting the minimum bandwidth does not guarantee that your instance will
|
||||
// achieve the minimum bandwidth. Amazon EC2 will identify instance types that
|
||||
// support the specified minimum bandwidth, but the actual bandwidth of your
|
||||
// instance might go below the specified minimum at times. For more information,
|
||||
// see Available instance bandwidth (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html#available-instance-bandwidth)
|
||||
// in the Amazon EC2 User Guide.
|
||||
type NetworkBandwidthGbps struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The maximum amount of network bandwidth, in Gbps. If this parameter is not
|
||||
// specified, there is no maximum limit.
|
||||
Max *float64 `locationName:"max" type:"double"`
|
||||
|
||||
// The minimum amount of network bandwidth, in Gbps. If this parameter is not
|
||||
// specified, there is no minimum limit.
|
||||
Min *float64 `locationName:"min" type:"double"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s NetworkBandwidthGbps) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s NetworkBandwidthGbps) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMax sets the Max field's value.
|
||||
func (s *NetworkBandwidthGbps) SetMax(v float64) *NetworkBandwidthGbps {
|
||||
s.Max = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetMin sets the Min field's value.
|
||||
func (s *NetworkBandwidthGbps) SetMin(v float64) *NetworkBandwidthGbps {
|
||||
s.Min = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// The minimum and maximum amount of network bandwidth, in gigabits per second
|
||||
// (Gbps).
|
||||
//
|
||||
// Setting the minimum bandwidth does not guarantee that your instance will
|
||||
// achieve the minimum bandwidth. Amazon EC2 will identify instance types that
|
||||
// support the specified minimum bandwidth, but the actual bandwidth of your
|
||||
// instance might go below the specified minimum at times. For more information,
|
||||
// see Available instance bandwidth (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-network-bandwidth.html#available-instance-bandwidth)
|
||||
// in the Amazon EC2 User Guide.
|
||||
type NetworkBandwidthGbpsRequest struct {
|
||||
_ struct{} `type:"structure"`
|
||||
|
||||
// The maximum amount of network bandwidth, in Gbps. To specify no maximum limit,
|
||||
// omit this parameter.
|
||||
Max *float64 `type:"double"`
|
||||
|
||||
// The minimum amount of network bandwidth, in Gbps. To specify no minimum limit,
|
||||
// omit this parameter.
|
||||
Min *float64 `type:"double"`
|
||||
}
|
||||
|
||||
// String returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s NetworkBandwidthGbpsRequest) String() string {
|
||||
return awsutil.Prettify(s)
|
||||
}
|
||||
|
||||
// GoString returns the string representation.
|
||||
//
|
||||
// API parameter values that are decorated as "sensitive" in the API will not
|
||||
// be included in the string output. The member name will be present, but the
|
||||
// value will be replaced with "sensitive".
|
||||
func (s NetworkBandwidthGbpsRequest) GoString() string {
|
||||
return s.String()
|
||||
}
|
||||
|
||||
// SetMax sets the Max field's value.
|
||||
func (s *NetworkBandwidthGbpsRequest) SetMax(v float64) *NetworkBandwidthGbpsRequest {
|
||||
s.Max = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// SetMin sets the Min field's value.
|
||||
func (s *NetworkBandwidthGbpsRequest) SetMin(v float64) *NetworkBandwidthGbpsRequest {
|
||||
s.Min = &v
|
||||
return s
|
||||
}
|
||||
|
||||
// Describes the network card support of the instance type.
|
||||
type NetworkCardInfo struct {
|
||||
_ struct{} `type:"structure"`
|
||||
@ -155008,7 +155370,7 @@ type SpotFleetRequestConfigData struct {
|
||||
// The strategy that determines how to allocate the target Spot Instance capacity
|
||||
// across the Spot Instance pools specified by the Spot Fleet launch configuration.
|
||||
// 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 for Linux Instances.
|
||||
// in the Amazon EC2 User Guide.
|
||||
//
|
||||
// lowestPrice - Spot Fleet launches instances from the lowest-price Spot Instance
|
||||
// pool that has available capacity. If the cheapest pool doesn't have available
|
||||
@ -155056,9 +155418,9 @@ type SpotFleetRequestConfigData struct {
|
||||
// role that grants the Spot Fleet the permission to request, launch, terminate,
|
||||
// and tag instances on your behalf. For more information, see Spot Fleet prerequisites
|
||||
// (https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/spot-fleet-requests.html#spot-fleet-prerequisites)
|
||||
// in the Amazon EC2 User Guide for Linux Instances. Spot Fleet can terminate
|
||||
// Spot Instances on your behalf when you cancel its Spot Fleet request using
|
||||
// CancelSpotFleetRequests (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CancelSpotFleetRequests)
|
||||
// in the Amazon EC2 User Guide. Spot Fleet can terminate Spot Instances on
|
||||
// your behalf when you cancel its Spot Fleet request using CancelSpotFleetRequests
|
||||
// (https://docs.aws.amazon.com/AWSEC2/latest/APIReference/API_CancelSpotFleetRequests)
|
||||
// or when the Spot Fleet request expires, if you set TerminateInstancesWithExpiration.
|
||||
//
|
||||
// IamFleetRole is a required field
|
||||
|
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
@ -20,7 +20,7 @@ github.com/armon/go-metrics
|
||||
# github.com/armon/go-radix v1.0.0
|
||||
## explicit
|
||||
github.com/armon/go-radix
|
||||
# github.com/aws/aws-sdk-go v1.44.127
|
||||
# github.com/aws/aws-sdk-go v1.44.132
|
||||
## explicit; go 1.11
|
||||
github.com/aws/aws-sdk-go/aws
|
||||
github.com/aws/aws-sdk-go/aws/awserr
|
||||
|
Loading…
Reference in New Issue
Block a user