chore(aws): upgrade aws dependencies
This commit is contained in:
44
vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
generated
vendored
44
vendor/github.com/aws/aws-sdk-go-v2/config/load_options.go
generated
vendored
@@ -137,6 +137,14 @@ type LoadOptions struct {
|
||||
|
||||
// Specifies the EC2 Instance Metadata Service endpoint to use. If specified it overrides EC2IMDSEndpointMode.
|
||||
EC2IMDSEndpoint string
|
||||
|
||||
// Specifies that SDK clients must resolve a dual-stack endpoint for
|
||||
// services.
|
||||
UseDualStackEndpoint aws.DualStackEndpointState
|
||||
|
||||
// Specifies that SDK clients must resolve a FIPS endpoint for
|
||||
// services.
|
||||
UseFIPSEndpoint aws.FIPSEndpointState
|
||||
}
|
||||
|
||||
// getRegion returns Region from config's LoadOptions
|
||||
@@ -704,3 +712,39 @@ func WithEC2IMDSEndpoint(v string) LoadOptionsFunc {
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// WithUseDualStackEndpoint is a helper function to construct
|
||||
// functional options that can be used to set UseDualStackEndpoint on LoadOptions.
|
||||
func WithUseDualStackEndpoint(v aws.DualStackEndpointState) LoadOptionsFunc {
|
||||
return func(o *LoadOptions) error {
|
||||
o.UseDualStackEndpoint = v
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// GetUseDualStackEndpoint returns whether the service's dual-stack endpoint should be
|
||||
// used for requests.
|
||||
func (o LoadOptions) GetUseDualStackEndpoint(ctx context.Context) (value aws.DualStackEndpointState, found bool, err error) {
|
||||
if o.UseDualStackEndpoint == aws.DualStackEndpointStateUnset {
|
||||
return aws.DualStackEndpointStateUnset, false, nil
|
||||
}
|
||||
return o.UseDualStackEndpoint, true, nil
|
||||
}
|
||||
|
||||
// WithUseFIPSEndpoint is a helper function to construct
|
||||
// functional options that can be used to set UseFIPSEndpoint on LoadOptions.
|
||||
func WithUseFIPSEndpoint(v aws.FIPSEndpointState) LoadOptionsFunc {
|
||||
return func(o *LoadOptions) error {
|
||||
o.UseFIPSEndpoint = v
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
// GetUseFIPSEndpoint returns whether the service's FIPS endpoint should be
|
||||
// used for requests.
|
||||
func (o LoadOptions) GetUseFIPSEndpoint(ctx context.Context) (value aws.FIPSEndpointState, found bool, err error) {
|
||||
if o.UseFIPSEndpoint == aws.FIPSEndpointStateUnset {
|
||||
return aws.FIPSEndpointStateUnset, false, nil
|
||||
}
|
||||
return o.UseFIPSEndpoint, true, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user