Bump github.com/aws/aws-sdk-go-v2/service/dynamodb from 1.32.8 to 1.34.1
Bumps [github.com/aws/aws-sdk-go-v2/service/dynamodb](https://github.com/aws/aws-sdk-go-v2) from 1.32.8 to 1.34.1. - [Release notes](https://github.com/aws/aws-sdk-go-v2/releases) - [Changelog](https://github.com/aws/aws-sdk-go-v2/blob/service/s3/v1.34.1/CHANGELOG.md) - [Commits](https://github.com/aws/aws-sdk-go-v2/compare/service/dynamodb/v1.32.8...service/s3/v1.34.1) --- updated-dependencies: - dependency-name: github.com/aws/aws-sdk-go-v2/service/dynamodb dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
This commit is contained in:
parent
061285078c
commit
d4c2493caf
68 changed files with 640 additions and 290 deletions
4
go.mod
4
go.mod
|
|
@ -10,7 +10,7 @@ require (
|
|||
github.com/aws/aws-sdk-go-v2/config v1.27.24
|
||||
github.com/aws/aws-sdk-go-v2/credentials v1.17.24
|
||||
github.com/aws/aws-sdk-go-v2/feature/dynamodb/attributevalue v1.14.1
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.32.8
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.1
|
||||
github.com/aws/aws-sdk-go-v2/service/kinesis v1.29.1
|
||||
github.com/awslabs/kinesis-aggregation/go/v2 v2.0.0-20230808105340-e631fe742486
|
||||
github.com/go-sql-driver/mysql v1.8.1
|
||||
|
|
@ -30,7 +30,7 @@ require (
|
|||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.20.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.10 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.14 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.15 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/sso v1.22.1 // indirect
|
||||
github.com/aws/aws-sdk-go-v2/service/ssooidc v1.26.2 // indirect
|
||||
|
|
|
|||
8
go.sum
8
go.sum
|
|
@ -31,14 +31,14 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.13 h1:WIijqeaAO7TYFLbhsZ
|
|||
github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.6.13/go.mod h1:i+kbfa76PQbWw/ULoWnp51EYVWH4ENln76fLQE3lXT8=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0 h1:hT8rVHwugYE2lEfdFE0QWVo81lF7jMrYJVDWI+f+VxU=
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0/go.mod h1:8tu/lYfQfFe6IGnaOdrpVgEL2IrrDOf6/m9RQum4NkY=
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.32.8 h1:yOosUCdI/P+gfBd8uXk6lvZmrp7z2Xs8s1caIDP33lo=
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.32.8/go.mod h1:4sYs0Krug9vn4cfDly4ExdbXJRqqZZBVDJNtBHGxCpQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.1 h1:Szwz1vpZkvfhFMJ0X5uUECgHeUmPAxk1UGqAVs/pARw=
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.1/go.mod h1:b4wouGyJlzkr2HAvPrDGgYNp1EtmlXOkzhEOvl0c0FQ=
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.20.10 h1:aK9uyT3Ua6UOmTMBYEM3sJHlnSO994eNZGagFlfLiOs=
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodbstreams v1.20.10/go.mod h1:S541uoWn3nWvo28EE8DnMbqZ5sZRAipVUPuL11V08Xw=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3 h1:dT3MqvGhSoaIhRseqw2I0yH81l7wiR2vjs57O51EAm8=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3/go.mod h1:GlAeCkHwugxdHaueRr4nhPuY+WW+gR8UjlcqzPr1SPI=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.10 h1:+ijk29Q2FlKCinEzG6GE3IcOyBsmPNUmFq/L82pSyhI=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.10/go.mod h1:D9WZXFWtJD76gmV2ZciWcY8BJBFdCblqdfF9OmkrwVU=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.14 h1:X1J0Kd17n1PeXeoArNXlvnKewCyMvhVQh7iNMy6oi3s=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.14/go.mod h1:VYMN7l7dxp6xtQRjqIau6d7QAbmPG+yJ75GtCy70f18=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.15 h1:I9zMeF107l0rJrpnHpjEiiTSCKYAIw8mALiXcPsGBiA=
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.15/go.mod h1:9xWJ3Q/S6Ojusz1UIkfycgD1mGirJfLLKqq3LPT7WN8=
|
||||
github.com/aws/aws-sdk-go-v2/service/kinesis v1.6.0/go.mod h1:9O7UG2pELnP0hq35+Gd7XDjOLBkg7tmgRQ0y14ZjoJI=
|
||||
|
|
|
|||
25
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/CHANGELOG.md
generated
vendored
25
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,28 @@
|
|||
# v1.34.1 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.34.0 (2024-06-26)
|
||||
|
||||
* **Feature**: Support list-of-string endpoint parameter.
|
||||
|
||||
# v1.33.2 (2024-06-20)
|
||||
|
||||
* **Documentation**: Doc-only update for DynamoDB. Fixed Important note in 6 Global table APIs - CreateGlobalTable, DescribeGlobalTable, DescribeGlobalTableSettings, ListGlobalTables, UpdateGlobalTable, and UpdateGlobalTableSettings.
|
||||
|
||||
# v1.33.1 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.33.0 (2024-06-18)
|
||||
|
||||
* **Feature**: Track usage of various AWS SDK features in user-agent string.
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.32.9 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.32.8 (2024-06-07)
|
||||
|
||||
* **Bug Fix**: Add clock skew correction on all service clients
|
||||
|
|
|
|||
90
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_client.go
generated
vendored
90
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_client.go
generated
vendored
|
|
@ -20,6 +20,7 @@ import (
|
|||
acceptencodingcust "github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding"
|
||||
internalEndpointDiscovery "github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery"
|
||||
smithy "github.com/aws/smithy-go"
|
||||
smithyauth "github.com/aws/smithy-go/auth"
|
||||
smithydocument "github.com/aws/smithy-go/document"
|
||||
"github.com/aws/smithy-go/logging"
|
||||
"github.com/aws/smithy-go/middleware"
|
||||
|
|
@ -252,15 +253,16 @@ func setResolvedDefaultsMode(o *Options) {
|
|||
// NewFromConfig returns a new client from the provided config.
|
||||
func NewFromConfig(cfg aws.Config, optFns ...func(*Options)) *Client {
|
||||
opts := Options{
|
||||
Region: cfg.Region,
|
||||
DefaultsMode: cfg.DefaultsMode,
|
||||
RuntimeEnvironment: cfg.RuntimeEnvironment,
|
||||
HTTPClient: cfg.HTTPClient,
|
||||
Credentials: cfg.Credentials,
|
||||
APIOptions: cfg.APIOptions,
|
||||
Logger: cfg.Logger,
|
||||
ClientLogMode: cfg.ClientLogMode,
|
||||
AppID: cfg.AppID,
|
||||
Region: cfg.Region,
|
||||
DefaultsMode: cfg.DefaultsMode,
|
||||
RuntimeEnvironment: cfg.RuntimeEnvironment,
|
||||
HTTPClient: cfg.HTTPClient,
|
||||
Credentials: cfg.Credentials,
|
||||
APIOptions: cfg.APIOptions,
|
||||
Logger: cfg.Logger,
|
||||
ClientLogMode: cfg.ClientLogMode,
|
||||
AppID: cfg.AppID,
|
||||
AccountIDEndpointMode: cfg.AccountIDEndpointMode,
|
||||
}
|
||||
resolveAWSRetryerProvider(cfg, &opts)
|
||||
resolveAWSRetryMaxAttempts(cfg, &opts)
|
||||
|
|
@ -465,6 +467,30 @@ func addContentSHA256Header(stack *middleware.Stack) error {
|
|||
return stack.Finalize.Insert(&v4.ContentSHA256Header{}, (*v4.ComputePayloadSHA256)(nil).ID(), middleware.After)
|
||||
}
|
||||
|
||||
func addIsWaiterUserAgent(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureWaiter)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func addIsPaginatorUserAgent(o *Options) {
|
||||
o.APIOptions = append(o.APIOptions, func(stack *middleware.Stack) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeaturePaginator)
|
||||
return nil
|
||||
})
|
||||
}
|
||||
|
||||
func resolveIdempotencyTokenProvider(o *Options) {
|
||||
if o.IdempotencyTokenProvider != nil {
|
||||
return
|
||||
|
|
@ -597,6 +623,18 @@ func (c *Client) handleEndpointDiscoveryFromService(ctx context.Context, input *
|
|||
return endpoint, nil
|
||||
}
|
||||
|
||||
func resolveAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) *string {
|
||||
if mode == aws.AccountIDEndpointModeDisabled {
|
||||
return nil
|
||||
}
|
||||
|
||||
if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); ok && ca.Credentials.AccountID != "" {
|
||||
return aws.String(ca.Credentials.AccountID)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func addTimeOffsetBuild(stack *middleware.Stack, c *Client) error {
|
||||
mw := internalmiddleware.AddTimeOffsetMiddleware{Offset: c.timeOffset}
|
||||
if err := stack.Build.Add(&mw, middleware.After); err != nil {
|
||||
|
|
@ -608,6 +646,40 @@ func initializeTimeOffsetResolver(c *Client) {
|
|||
c.timeOffset = new(atomic.Int64)
|
||||
}
|
||||
|
||||
func checkAccountID(identity smithyauth.Identity, mode aws.AccountIDEndpointMode) error {
|
||||
switch mode {
|
||||
case aws.AccountIDEndpointModeUnset:
|
||||
case aws.AccountIDEndpointModePreferred:
|
||||
case aws.AccountIDEndpointModeDisabled:
|
||||
case aws.AccountIDEndpointModeRequired:
|
||||
if ca, ok := identity.(*internalauthsmithy.CredentialsAdapter); !ok {
|
||||
return fmt.Errorf("accountID is required but not set")
|
||||
} else if ca.Credentials.AccountID == "" {
|
||||
return fmt.Errorf("accountID is required but not set")
|
||||
}
|
||||
// default check in case invalid mode is configured through request config
|
||||
default:
|
||||
return fmt.Errorf("invalid accountID endpoint mode %s, must be preferred/required/disabled", mode)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
func addUserAgentRetryMode(stack *middleware.Stack, options Options) error {
|
||||
ua, err := getOrAddRequestUserAgent(stack)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
switch options.Retryer.(type) {
|
||||
case *retry.Standard:
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeStandard)
|
||||
case *retry.AdaptiveMode:
|
||||
ua.AddUserAgentFeature(awsmiddleware.UserAgentFeatureRetryModeAdaptive)
|
||||
}
|
||||
return nil
|
||||
}
|
||||
|
||||
// IdempotencyTokenProvider interface for providing idempotency token
|
||||
type IdempotencyTokenProvider interface {
|
||||
GetIdempotencyToken() (string, error)
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_BatchExecuteStatement.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_BatchExecuteStatement.go
generated
vendored
|
|
@ -140,6 +140,9 @@ func (c *Client) addOperationBatchExecuteStatementMiddlewares(stack *middleware.
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpBatchExecuteStatementValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_BatchGetItem.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_BatchGetItem.go
generated
vendored
|
|
@ -277,6 +277,9 @@ func (c *Client) addOperationBatchGetItemMiddlewares(stack *middleware.Stack, op
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpBatchGetItemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_BatchWriteItem.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_BatchWriteItem.go
generated
vendored
|
|
@ -297,6 +297,9 @@ func (c *Client) addOperationBatchWriteItemMiddlewares(stack *middleware.Stack,
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpBatchWriteItemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateBackup.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateBackup.go
generated
vendored
|
|
@ -145,6 +145,9 @@ func (c *Client) addOperationCreateBackupMiddlewares(stack *middleware.Stack, op
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateBackupValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateGlobalTable.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateGlobalTable.go
generated
vendored
|
|
@ -16,11 +16,13 @@ import (
|
|||
// replication relationship between two or more DynamoDB tables with the same table
|
||||
// name in the provided Regions.
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version), as it provides greater flexibility, higher
|
||||
// efficiency and consumes less write capacity than 2017.11.29 (Legacy). To
|
||||
// determine which version you are using, see [Determining the version]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Updating global tables].
|
||||
// This documentation is for version 2017.11.29 (Legacy) of global tables, which
|
||||
// should be avoided for new global tables. Customers should use [Global Tables version 2019.11.21 (Current)]when possible,
|
||||
// because it provides greater flexibility, higher efficiency, and consumes less
|
||||
// write capacity than 2017.11.29 (Legacy).
|
||||
//
|
||||
// To determine which version you're using, see [Determining the global table version you are using]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Upgrading global tables].
|
||||
//
|
||||
// If you want to add a new replica table to a global table, each of the following
|
||||
// conditions must be true:
|
||||
|
|
@ -60,8 +62,9 @@ import (
|
|||
// provision equal replicated write capacity units to matching secondary indexes
|
||||
// across your global table.
|
||||
//
|
||||
// [Updating global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the version]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
// [Global Tables version 2019.11.21 (Current)]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Upgrading global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the global table version you are using]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
func (c *Client) CreateGlobalTable(ctx context.Context, params *CreateGlobalTableInput, optFns ...func(*Options)) (*CreateGlobalTableOutput, error) {
|
||||
if params == nil {
|
||||
params = &CreateGlobalTableInput{}
|
||||
|
|
@ -164,6 +167,9 @@ func (c *Client) addOperationCreateGlobalTableMiddlewares(stack *middleware.Stac
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateGlobalTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateTable.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_CreateTable.go
generated
vendored
|
|
@ -322,6 +322,9 @@ func (c *Client) addOperationCreateTableMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpCreateTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteBackup.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteBackup.go
generated
vendored
|
|
@ -112,6 +112,9 @@ func (c *Client) addOperationDeleteBackupMiddlewares(stack *middleware.Stack, op
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteBackupValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteItem.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteItem.go
generated
vendored
|
|
@ -308,6 +308,9 @@ func (c *Client) addOperationDeleteItemMiddlewares(stack *middleware.Stack, opti
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteItemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteResourcePolicy.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteResourcePolicy.go
generated
vendored
|
|
@ -139,6 +139,9 @@ func (c *Client) addOperationDeleteResourcePolicyMiddlewares(stack *middleware.S
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteResourcePolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteTable.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DeleteTable.go
generated
vendored
|
|
@ -134,6 +134,9 @@ func (c *Client) addOperationDeleteTableMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDeleteTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeBackup.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeBackup.go
generated
vendored
|
|
@ -112,6 +112,9 @@ func (c *Client) addOperationDescribeBackupMiddlewares(stack *middleware.Stack,
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeBackupValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,6 +127,9 @@ func (c *Client) addOperationDescribeContinuousBackupsMiddlewares(stack *middlew
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeContinuousBackupsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -142,6 +142,9 @@ func (c *Client) addOperationDescribeContributorInsightsMiddlewares(stack *middl
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeContributorInsightsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeEndpoints.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeEndpoints.go
generated
vendored
|
|
@ -105,6 +105,9 @@ func (c *Client) addOperationDescribeEndpointsMiddlewares(stack *middleware.Stac
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeEndpoints(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeExport.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeExport.go
generated
vendored
|
|
@ -106,6 +106,9 @@ func (c *Client) addOperationDescribeExportMiddlewares(stack *middleware.Stack,
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeExportValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeGlobalTable.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeGlobalTable.go
generated
vendored
|
|
@ -14,14 +14,17 @@ import (
|
|||
|
||||
// Returns information about the specified global table.
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version), as it provides greater flexibility, higher
|
||||
// efficiency and consumes less write capacity than 2017.11.29 (Legacy). To
|
||||
// determine which version you are using, see [Determining the version]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Updating global tables].
|
||||
// This documentation is for version 2017.11.29 (Legacy) of global tables, which
|
||||
// should be avoided for new global tables. Customers should use [Global Tables version 2019.11.21 (Current)]when possible,
|
||||
// because it provides greater flexibility, higher efficiency, and consumes less
|
||||
// write capacity than 2017.11.29 (Legacy).
|
||||
//
|
||||
// [Updating global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the version]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
// To determine which version you're using, see [Determining the global table version you are using]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Upgrading global tables].
|
||||
//
|
||||
// [Global Tables version 2019.11.21 (Current)]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Upgrading global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the global table version you are using]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
func (c *Client) DescribeGlobalTable(ctx context.Context, params *DescribeGlobalTableInput, optFns ...func(*Options)) (*DescribeGlobalTableOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeGlobalTableInput{}
|
||||
|
|
@ -119,6 +122,9 @@ func (c *Client) addOperationDescribeGlobalTableMiddlewares(stack *middleware.St
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeGlobalTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,14 +14,17 @@ import (
|
|||
|
||||
// Describes Region-specific settings for a global table.
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version), as it provides greater flexibility, higher
|
||||
// efficiency and consumes less write capacity than 2017.11.29 (Legacy). To
|
||||
// determine which version you are using, see [Determining the version]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Updating global tables].
|
||||
// This documentation is for version 2017.11.29 (Legacy) of global tables, which
|
||||
// should be avoided for new global tables. Customers should use [Global Tables version 2019.11.21 (Current)]when possible,
|
||||
// because it provides greater flexibility, higher efficiency, and consumes less
|
||||
// write capacity than 2017.11.29 (Legacy).
|
||||
//
|
||||
// [Updating global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the version]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
// To determine which version you're using, see [Determining the global table version you are using]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Upgrading global tables].
|
||||
//
|
||||
// [Global Tables version 2019.11.21 (Current)]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Upgrading global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the global table version you are using]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
func (c *Client) DescribeGlobalTableSettings(ctx context.Context, params *DescribeGlobalTableSettingsInput, optFns ...func(*Options)) (*DescribeGlobalTableSettingsOutput, error) {
|
||||
if params == nil {
|
||||
params = &DescribeGlobalTableSettingsInput{}
|
||||
|
|
@ -122,6 +125,9 @@ func (c *Client) addOperationDescribeGlobalTableSettingsMiddlewares(stack *middl
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeGlobalTableSettingsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeImport.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeImport.go
generated
vendored
|
|
@ -110,6 +110,9 @@ func (c *Client) addOperationDescribeImportMiddlewares(stack *middleware.Stack,
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeImportValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -114,6 +114,9 @@ func (c *Client) addOperationDescribeKinesisStreamingDestinationMiddlewares(stac
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeKinesisStreamingDestinationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeLimits.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeLimits.go
generated
vendored
|
|
@ -179,6 +179,9 @@ func (c *Client) addOperationDescribeLimitsMiddlewares(stack *middleware.Stack,
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opDescribeLimits(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
117
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeTable.go
generated
vendored
117
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeTable.go
generated
vendored
|
|
@ -13,7 +13,7 @@ import (
|
|||
smithytime "github.com/aws/smithy-go/time"
|
||||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
smithywaiter "github.com/aws/smithy-go/waiter"
|
||||
"github.com/jmespath/go-jmespath"
|
||||
jmespath "github.com/jmespath/go-jmespath"
|
||||
"time"
|
||||
)
|
||||
|
||||
|
|
@ -128,6 +128,9 @@ func (c *Client) addOperationDescribeTableMiddlewares(stack *middleware.Stack, o
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -158,56 +161,6 @@ func (c *Client) addOperationDescribeTableMiddlewares(stack *middleware.Stack, o
|
|||
return nil
|
||||
}
|
||||
|
||||
func addOpDescribeTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpDescribeTableDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*DescribeTableInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// DescribeTableAPIClient is a client that implements the DescribeTable operation.
|
||||
type DescribeTableAPIClient interface {
|
||||
DescribeTable(context.Context, *DescribeTableInput, ...func(*Options)) (*DescribeTableOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeTableAPIClient = (*Client)(nil)
|
||||
|
||||
// TableExistsWaiterOptions are waiter options for TableExistsWaiter
|
||||
type TableExistsWaiterOptions struct {
|
||||
|
||||
|
|
@ -322,7 +275,13 @@ func (w *TableExistsWaiter) WaitForOutput(ctx context.Context, params *DescribeT
|
|||
}
|
||||
|
||||
out, err := w.client.DescribeTable(ctx, params, func(o *Options) {
|
||||
baseOpts := []func(*Options){
|
||||
addIsWaiterUserAgent,
|
||||
}
|
||||
o.APIOptions = append(o.APIOptions, apiOptions...)
|
||||
for _, opt := range baseOpts {
|
||||
opt(o)
|
||||
}
|
||||
for _, opt := range options.ClientOptions {
|
||||
opt(o)
|
||||
}
|
||||
|
|
@ -502,7 +461,13 @@ func (w *TableNotExistsWaiter) WaitForOutput(ctx context.Context, params *Descri
|
|||
}
|
||||
|
||||
out, err := w.client.DescribeTable(ctx, params, func(o *Options) {
|
||||
baseOpts := []func(*Options){
|
||||
addIsWaiterUserAgent,
|
||||
}
|
||||
o.APIOptions = append(o.APIOptions, apiOptions...)
|
||||
for _, opt := range baseOpts {
|
||||
opt(o)
|
||||
}
|
||||
for _, opt := range options.ClientOptions {
|
||||
opt(o)
|
||||
}
|
||||
|
|
@ -550,6 +515,56 @@ func tableNotExistsStateRetryable(ctx context.Context, input *DescribeTableInput
|
|||
return true, nil
|
||||
}
|
||||
|
||||
func addOpDescribeTableDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpDescribeTableDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpDescribeTableDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*DescribeTableInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// DescribeTableAPIClient is a client that implements the DescribeTable operation.
|
||||
type DescribeTableAPIClient interface {
|
||||
DescribeTable(context.Context, *DescribeTableInput, ...func(*Options)) (*DescribeTableOutput, error)
|
||||
}
|
||||
|
||||
var _ DescribeTableAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opDescribeTable(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
|
|
@ -110,6 +110,9 @@ func (c *Client) addOperationDescribeTableReplicaAutoScalingMiddlewares(stack *m
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeTableReplicaAutoScalingValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeTimeToLive.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_DescribeTimeToLive.go
generated
vendored
|
|
@ -111,6 +111,9 @@ func (c *Client) addOperationDescribeTimeToLiveMiddlewares(stack *middleware.Sta
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDescribeTimeToLiveValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -129,6 +129,9 @@ func (c *Client) addOperationDisableKinesisStreamingDestinationMiddlewares(stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpDisableKinesisStreamingDestinationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -131,6 +131,9 @@ func (c *Client) addOperationEnableKinesisStreamingDestinationMiddlewares(stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpEnableKinesisStreamingDestinationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ExecuteStatement.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ExecuteStatement.go
generated
vendored
|
|
@ -190,6 +190,9 @@ func (c *Client) addOperationExecuteStatementMiddlewares(stack *middleware.Stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpExecuteStatementValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ExecuteTransaction.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ExecuteTransaction.go
generated
vendored
|
|
@ -129,6 +129,9 @@ func (c *Client) addOperationExecuteTransactionMiddlewares(stack *middleware.Sta
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addIdempotencyToken_opExecuteTransactionMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -169,6 +169,9 @@ func (c *Client) addOperationExportTableToPointInTimeMiddlewares(stack *middlewa
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addIdempotencyToken_opExportTableToPointInTimeMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_GetItem.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_GetItem.go
generated
vendored
|
|
@ -218,6 +218,9 @@ func (c *Client) addOperationGetItemMiddlewares(stack *middleware.Stack, options
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpGetItemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_GetResourcePolicy.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_GetResourcePolicy.go
generated
vendored
|
|
@ -144,6 +144,9 @@ func (c *Client) addOperationGetResourcePolicyMiddlewares(stack *middleware.Stac
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpGetResourcePolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ImportTable.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ImportTable.go
generated
vendored
|
|
@ -140,6 +140,9 @@ func (c *Client) addOperationImportTableMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addIdempotencyToken_opImportTableMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListBackups.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListBackups.go
generated
vendored
|
|
@ -167,6 +167,9 @@ func (c *Client) addOperationListBackupsMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListBackups(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
22
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListContributorInsights.go
generated
vendored
22
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListContributorInsights.go
generated
vendored
|
|
@ -115,6 +115,9 @@ func (c *Client) addOperationListContributorInsightsMiddlewares(stack *middlewar
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListContributorInsights(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -142,14 +145,6 @@ func (c *Client) addOperationListContributorInsightsMiddlewares(stack *middlewar
|
|||
return nil
|
||||
}
|
||||
|
||||
// ListContributorInsightsAPIClient is a client that implements the
|
||||
// ListContributorInsights operation.
|
||||
type ListContributorInsightsAPIClient interface {
|
||||
ListContributorInsights(context.Context, *ListContributorInsightsInput, ...func(*Options)) (*ListContributorInsightsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListContributorInsightsAPIClient = (*Client)(nil)
|
||||
|
||||
// ListContributorInsightsPaginatorOptions is the paginator options for
|
||||
// ListContributorInsights
|
||||
type ListContributorInsightsPaginatorOptions struct {
|
||||
|
|
@ -211,6 +206,9 @@ func (p *ListContributorInsightsPaginator) NextPage(ctx context.Context, optFns
|
|||
|
||||
params.MaxResults = p.options.Limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.ListContributorInsights(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -230,6 +228,14 @@ func (p *ListContributorInsightsPaginator) NextPage(ctx context.Context, optFns
|
|||
return result, nil
|
||||
}
|
||||
|
||||
// ListContributorInsightsAPIClient is a client that implements the
|
||||
// ListContributorInsights operation.
|
||||
type ListContributorInsightsAPIClient interface {
|
||||
ListContributorInsights(context.Context, *ListContributorInsightsInput, ...func(*Options)) (*ListContributorInsightsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListContributorInsightsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opListContributorInsights(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListExports.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListExports.go
generated
vendored
|
|
@ -116,6 +116,9 @@ func (c *Client) addOperationListExportsMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListExports(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -143,13 +146,6 @@ func (c *Client) addOperationListExportsMiddlewares(stack *middleware.Stack, opt
|
|||
return nil
|
||||
}
|
||||
|
||||
// ListExportsAPIClient is a client that implements the ListExports operation.
|
||||
type ListExportsAPIClient interface {
|
||||
ListExports(context.Context, *ListExportsInput, ...func(*Options)) (*ListExportsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListExportsAPIClient = (*Client)(nil)
|
||||
|
||||
// ListExportsPaginatorOptions is the paginator options for ListExports
|
||||
type ListExportsPaginatorOptions struct {
|
||||
// Maximum number of results to return per page.
|
||||
|
|
@ -213,6 +209,9 @@ func (p *ListExportsPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
|||
}
|
||||
params.MaxResults = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.ListExports(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -232,6 +231,13 @@ func (p *ListExportsPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
|||
return result, nil
|
||||
}
|
||||
|
||||
// ListExportsAPIClient is a client that implements the ListExports operation.
|
||||
type ListExportsAPIClient interface {
|
||||
ListExports(context.Context, *ListExportsInput, ...func(*Options)) (*ListExportsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListExportsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opListExports(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListGlobalTables.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListGlobalTables.go
generated
vendored
|
|
@ -14,14 +14,17 @@ import (
|
|||
|
||||
// Lists all global tables that have a replica in the specified Region.
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version), as it provides greater flexibility, higher
|
||||
// efficiency and consumes less write capacity than 2017.11.29 (Legacy). To
|
||||
// determine which version you are using, see [Determining the version]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Updating global tables].
|
||||
// This documentation is for version 2017.11.29 (Legacy) of global tables, which
|
||||
// should be avoided for new global tables. Customers should use [Global Tables version 2019.11.21 (Current)]when possible,
|
||||
// because it provides greater flexibility, higher efficiency, and consumes less
|
||||
// write capacity than 2017.11.29 (Legacy).
|
||||
//
|
||||
// [Updating global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the version]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
// To determine which version you're using, see [Determining the global table version you are using]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Upgrading global tables].
|
||||
//
|
||||
// [Global Tables version 2019.11.21 (Current)]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Upgrading global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the global table version you are using]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
func (c *Client) ListGlobalTables(ctx context.Context, params *ListGlobalTablesInput, optFns ...func(*Options)) (*ListGlobalTablesOutput, error) {
|
||||
if params == nil {
|
||||
params = &ListGlobalTablesInput{}
|
||||
|
|
@ -132,6 +135,9 @@ func (c *Client) addOperationListGlobalTablesMiddlewares(stack *middleware.Stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListGlobalTables(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListImports.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListImports.go
generated
vendored
|
|
@ -116,6 +116,9 @@ func (c *Client) addOperationListImportsMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListImports(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -143,13 +146,6 @@ func (c *Client) addOperationListImportsMiddlewares(stack *middleware.Stack, opt
|
|||
return nil
|
||||
}
|
||||
|
||||
// ListImportsAPIClient is a client that implements the ListImports operation.
|
||||
type ListImportsAPIClient interface {
|
||||
ListImports(context.Context, *ListImportsInput, ...func(*Options)) (*ListImportsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListImportsAPIClient = (*Client)(nil)
|
||||
|
||||
// ListImportsPaginatorOptions is the paginator options for ListImports
|
||||
type ListImportsPaginatorOptions struct {
|
||||
// The number of ImportSummary objects returned in a single page.
|
||||
|
|
@ -213,6 +209,9 @@ func (p *ListImportsPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
|||
}
|
||||
params.PageSize = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.ListImports(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -232,6 +231,13 @@ func (p *ListImportsPaginator) NextPage(ctx context.Context, optFns ...func(*Opt
|
|||
return result, nil
|
||||
}
|
||||
|
||||
// ListImportsAPIClient is a client that implements the ListImports operation.
|
||||
type ListImportsAPIClient interface {
|
||||
ListImports(context.Context, *ListImportsInput, ...func(*Options)) (*ListImportsOutput, error)
|
||||
}
|
||||
|
||||
var _ ListImportsAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opListImports(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
106
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListTables.go
generated
vendored
106
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListTables.go
generated
vendored
|
|
@ -130,6 +130,9 @@ func (c *Client) addOperationListTablesMiddlewares(stack *middleware.Stack, opti
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = stack.Initialize.Add(newServiceMetadataMiddleware_opListTables(options.Region), middleware.Before); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -157,56 +160,6 @@ func (c *Client) addOperationListTablesMiddlewares(stack *middleware.Stack, opti
|
|||
return nil
|
||||
}
|
||||
|
||||
func addOpListTablesDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpListTablesDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*ListTablesInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// ListTablesAPIClient is a client that implements the ListTables operation.
|
||||
type ListTablesAPIClient interface {
|
||||
ListTables(context.Context, *ListTablesInput, ...func(*Options)) (*ListTablesOutput, error)
|
||||
}
|
||||
|
||||
var _ ListTablesAPIClient = (*Client)(nil)
|
||||
|
||||
// ListTablesPaginatorOptions is the paginator options for ListTables
|
||||
type ListTablesPaginatorOptions struct {
|
||||
// A maximum number of table names to return. If this parameter is not specified,
|
||||
|
|
@ -271,6 +224,9 @@ func (p *ListTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Opti
|
|||
}
|
||||
params.Limit = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.ListTables(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -290,6 +246,56 @@ func (p *ListTablesPaginator) NextPage(ctx context.Context, optFns ...func(*Opti
|
|||
return result, nil
|
||||
}
|
||||
|
||||
func addOpListTablesDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpListTablesDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpListTablesDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*ListTablesInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// ListTablesAPIClient is a client that implements the ListTables operation.
|
||||
type ListTablesAPIClient interface {
|
||||
ListTables(context.Context, *ListTablesInput, ...func(*Options)) (*ListTablesOutput, error)
|
||||
}
|
||||
|
||||
var _ ListTablesAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opListTables(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListTagsOfResource.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_ListTagsOfResource.go
generated
vendored
|
|
@ -126,6 +126,9 @@ func (c *Client) addOperationListTagsOfResourceMiddlewares(stack *middleware.Sta
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpListTagsOfResourceValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_PutItem.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_PutItem.go
generated
vendored
|
|
@ -341,6 +341,9 @@ func (c *Client) addOperationPutItemMiddlewares(stack *middleware.Stack, options
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpPutItemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_PutResourcePolicy.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_PutResourcePolicy.go
generated
vendored
|
|
@ -168,6 +168,9 @@ func (c *Client) addOperationPutResourcePolicyMiddlewares(stack *middleware.Stac
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpPutResourcePolicyValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
106
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_Query.go
generated
vendored
106
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_Query.go
generated
vendored
|
|
@ -510,6 +510,9 @@ func (c *Client) addOperationQueryMiddlewares(stack *middleware.Stack, options O
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpQueryValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -540,56 +543,6 @@ func (c *Client) addOperationQueryMiddlewares(stack *middleware.Stack, options O
|
|||
return nil
|
||||
}
|
||||
|
||||
func addOpQueryDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpQueryDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*QueryInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// QueryAPIClient is a client that implements the Query operation.
|
||||
type QueryAPIClient interface {
|
||||
Query(context.Context, *QueryInput, ...func(*Options)) (*QueryOutput, error)
|
||||
}
|
||||
|
||||
var _ QueryAPIClient = (*Client)(nil)
|
||||
|
||||
// QueryPaginatorOptions is the paginator options for Query
|
||||
type QueryPaginatorOptions struct {
|
||||
// The maximum number of items to evaluate (not necessarily the number of matching
|
||||
|
|
@ -659,6 +612,9 @@ func (p *QueryPaginator) NextPage(ctx context.Context, optFns ...func(*Options))
|
|||
}
|
||||
params.Limit = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.Query(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -673,6 +629,56 @@ func (p *QueryPaginator) NextPage(ctx context.Context, optFns ...func(*Options))
|
|||
return result, nil
|
||||
}
|
||||
|
||||
func addOpQueryDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpQueryDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpQueryDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*QueryInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// QueryAPIClient is a client that implements the Query operation.
|
||||
type QueryAPIClient interface {
|
||||
Query(context.Context, *QueryInput, ...func(*Options)) (*QueryOutput, error)
|
||||
}
|
||||
|
||||
var _ QueryAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opQuery(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
|
|
@ -156,6 +156,9 @@ func (c *Client) addOperationRestoreTableFromBackupMiddlewares(stack *middleware
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpRestoreTableFromBackupValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -187,6 +187,9 @@ func (c *Client) addOperationRestoreTableToPointInTimeMiddlewares(stack *middlew
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpRestoreTableToPointInTimeValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
106
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_Scan.go
generated
vendored
106
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_Scan.go
generated
vendored
|
|
@ -441,6 +441,9 @@ func (c *Client) addOperationScanMiddlewares(stack *middleware.Stack, options Op
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpScanValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
@ -471,56 +474,6 @@ func (c *Client) addOperationScanMiddlewares(stack *middleware.Stack, options Op
|
|||
return nil
|
||||
}
|
||||
|
||||
func addOpScanDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpScanDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpScanDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*ScanInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// ScanAPIClient is a client that implements the Scan operation.
|
||||
type ScanAPIClient interface {
|
||||
Scan(context.Context, *ScanInput, ...func(*Options)) (*ScanOutput, error)
|
||||
}
|
||||
|
||||
var _ ScanAPIClient = (*Client)(nil)
|
||||
|
||||
// ScanPaginatorOptions is the paginator options for Scan
|
||||
type ScanPaginatorOptions struct {
|
||||
// The maximum number of items to evaluate (not necessarily the number of matching
|
||||
|
|
@ -590,6 +543,9 @@ func (p *ScanPaginator) NextPage(ctx context.Context, optFns ...func(*Options))
|
|||
}
|
||||
params.Limit = limit
|
||||
|
||||
optFns = append([]func(*Options){
|
||||
addIsPaginatorUserAgent,
|
||||
}, optFns...)
|
||||
result, err := p.client.Scan(ctx, ¶ms, optFns...)
|
||||
if err != nil {
|
||||
return nil, err
|
||||
|
|
@ -604,6 +560,56 @@ func (p *ScanPaginator) NextPage(ctx context.Context, optFns ...func(*Options))
|
|||
return result, nil
|
||||
}
|
||||
|
||||
func addOpScanDiscoverEndpointMiddleware(stack *middleware.Stack, o Options, c *Client) error {
|
||||
return stack.Finalize.Insert(&internalEndpointDiscovery.DiscoverEndpoint{
|
||||
Options: []func(*internalEndpointDiscovery.DiscoverEndpointOptions){
|
||||
func(opt *internalEndpointDiscovery.DiscoverEndpointOptions) {
|
||||
opt.DisableHTTPS = o.EndpointOptions.DisableHTTPS
|
||||
opt.Logger = o.Logger
|
||||
},
|
||||
},
|
||||
DiscoverOperation: c.fetchOpScanDiscoverEndpoint,
|
||||
EndpointDiscoveryEnableState: o.EndpointDiscovery.EnableEndpointDiscovery,
|
||||
EndpointDiscoveryRequired: false,
|
||||
Region: o.Region,
|
||||
}, "ResolveEndpointV2", middleware.After)
|
||||
}
|
||||
|
||||
func (c *Client) fetchOpScanDiscoverEndpoint(ctx context.Context, region string, optFns ...func(*internalEndpointDiscovery.DiscoverEndpointOptions)) (internalEndpointDiscovery.WeightedAddress, error) {
|
||||
input := getOperationInput(ctx)
|
||||
in, ok := input.(*ScanInput)
|
||||
if !ok {
|
||||
return internalEndpointDiscovery.WeightedAddress{}, fmt.Errorf("unknown input type %T", input)
|
||||
}
|
||||
_ = in
|
||||
|
||||
identifierMap := make(map[string]string, 0)
|
||||
identifierMap["sdk#Region"] = region
|
||||
|
||||
key := fmt.Sprintf("DynamoDB.%v", identifierMap)
|
||||
|
||||
if v, ok := c.endpointCache.Get(key); ok {
|
||||
return v, nil
|
||||
}
|
||||
|
||||
discoveryOperationInput := &DescribeEndpointsInput{}
|
||||
|
||||
opt := internalEndpointDiscovery.DiscoverEndpointOptions{}
|
||||
for _, fn := range optFns {
|
||||
fn(&opt)
|
||||
}
|
||||
|
||||
go c.handleEndpointDiscoveryFromService(ctx, discoveryOperationInput, region, key, opt)
|
||||
return internalEndpointDiscovery.WeightedAddress{}, nil
|
||||
}
|
||||
|
||||
// ScanAPIClient is a client that implements the Scan operation.
|
||||
type ScanAPIClient interface {
|
||||
Scan(context.Context, *ScanInput, ...func(*Options)) (*ScanOutput, error)
|
||||
}
|
||||
|
||||
var _ ScanAPIClient = (*Client)(nil)
|
||||
|
||||
func newServiceMetadataMiddleware_opScan(region string) *awsmiddleware.RegisterServiceMetadata {
|
||||
return &awsmiddleware.RegisterServiceMetadata{
|
||||
Region: region,
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_TagResource.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_TagResource.go
generated
vendored
|
|
@ -120,6 +120,9 @@ func (c *Client) addOperationTagResourceMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpTagResourceValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_TransactGetItems.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_TransactGetItems.go
generated
vendored
|
|
@ -147,6 +147,9 @@ func (c *Client) addOperationTransactGetItemsMiddlewares(stack *middleware.Stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpTransactGetItemsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_TransactWriteItems.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_TransactWriteItems.go
generated
vendored
|
|
@ -214,6 +214,9 @@ func (c *Client) addOperationTransactWriteItemsMiddlewares(stack *middleware.Sta
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addIdempotencyToken_opTransactWriteItemsMiddleware(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UntagResource.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UntagResource.go
generated
vendored
|
|
@ -118,6 +118,9 @@ func (c *Client) addOperationUntagResourceMiddlewares(stack *middleware.Stack, o
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUntagResourceValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@ func (c *Client) addOperationUpdateContinuousBackupsMiddlewares(stack *middlewar
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateContinuousBackupsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -127,6 +127,9 @@ func (c *Client) addOperationUpdateContributorInsightsMiddlewares(stack *middlew
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateContributorInsightsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateGlobalTable.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateGlobalTable.go
generated
vendored
|
|
@ -18,11 +18,13 @@ import (
|
|||
// DynamoDB Streams enabled, and have the same provisioned and maximum write
|
||||
// capacity units.
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version), as it provides greater flexibility, higher
|
||||
// efficiency and consumes less write capacity than 2017.11.29 (Legacy). To
|
||||
// determine which version you are using, see [Determining the version]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Updating global tables].
|
||||
// This documentation is for version 2017.11.29 (Legacy) of global tables, which
|
||||
// should be avoided for new global tables. Customers should use [Global Tables version 2019.11.21 (Current)]when possible,
|
||||
// because it provides greater flexibility, higher efficiency, and consumes less
|
||||
// write capacity than 2017.11.29 (Legacy).
|
||||
//
|
||||
// To determine which version you're using, see [Determining the global table version you are using]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Upgrading global tables].
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version). If you are using global tables [Version 2019.11.21]you can use [UpdateTable]
|
||||
|
|
@ -43,10 +45,11 @@ import (
|
|||
// - The global secondary indexes must have the same provisioned and maximum
|
||||
// write capacity units.
|
||||
//
|
||||
// [Updating global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [UpdateTable]: https://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_UpdateTable.html
|
||||
// [Global Tables version 2019.11.21 (Current)]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Upgrading global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Version 2019.11.21]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Determining the version]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
// [Determining the global table version you are using]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
func (c *Client) UpdateGlobalTable(ctx context.Context, params *UpdateGlobalTableInput, optFns ...func(*Options)) (*UpdateGlobalTableOutput, error) {
|
||||
if params == nil {
|
||||
params = &UpdateGlobalTableInput{}
|
||||
|
|
@ -149,6 +152,9 @@ func (c *Client) addOperationUpdateGlobalTableMiddlewares(stack *middleware.Stac
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateGlobalTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateGlobalTableSettings.go
generated
vendored
20
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateGlobalTableSettings.go
generated
vendored
|
|
@ -14,14 +14,17 @@ import (
|
|||
|
||||
// Updates settings for a global table.
|
||||
//
|
||||
// For global tables, this operation only applies to global tables using Version
|
||||
// 2019.11.21 (Current version), as it provides greater flexibility, higher
|
||||
// efficiency and consumes less write capacity than 2017.11.29 (Legacy). To
|
||||
// determine which version you are using, see [Determining the version]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Updating global tables].
|
||||
// This documentation is for version 2017.11.29 (Legacy) of global tables, which
|
||||
// should be avoided for new global tables. Customers should use [Global Tables version 2019.11.21 (Current)]when possible,
|
||||
// because it provides greater flexibility, higher efficiency, and consumes less
|
||||
// write capacity than 2017.11.29 (Legacy).
|
||||
//
|
||||
// [Updating global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the version]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
// To determine which version you're using, see [Determining the global table version you are using]. To update existing global tables
|
||||
// from version 2017.11.29 (Legacy) to version 2019.11.21 (Current), see [Upgrading global tables].
|
||||
//
|
||||
// [Global Tables version 2019.11.21 (Current)]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/GlobalTables.html
|
||||
// [Upgrading global tables]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/V2globaltables_upgrade.html
|
||||
// [Determining the global table version you are using]: https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/globaltables.DetermineVersion.html
|
||||
func (c *Client) UpdateGlobalTableSettings(ctx context.Context, params *UpdateGlobalTableSettingsInput, optFns ...func(*Options)) (*UpdateGlobalTableSettingsOutput, error) {
|
||||
if params == nil {
|
||||
params = &UpdateGlobalTableSettingsInput{}
|
||||
|
|
@ -150,6 +153,9 @@ func (c *Client) addOperationUpdateGlobalTableSettingsMiddlewares(stack *middlew
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateGlobalTableSettingsValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateItem.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateItem.go
generated
vendored
|
|
@ -394,6 +394,9 @@ func (c *Client) addOperationUpdateItemMiddlewares(stack *middleware.Stack, opti
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateItemValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -128,6 +128,9 @@ func (c *Client) addOperationUpdateKinesisStreamingDestinationMiddlewares(stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateKinesisStreamingDestinationValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTable.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTable.go
generated
vendored
|
|
@ -202,6 +202,9 @@ func (c *Client) addOperationUpdateTableMiddlewares(stack *middleware.Stack, opt
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateTableValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
|
|
@ -122,6 +122,9 @@ func (c *Client) addOperationUpdateTableReplicaAutoScalingMiddlewares(stack *mid
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateTableReplicaAutoScalingValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTimeToLive.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/api_op_UpdateTimeToLive.go
generated
vendored
|
|
@ -146,6 +146,9 @@ func (c *Client) addOperationUpdateTimeToLiveMiddlewares(stack *middleware.Stack
|
|||
if err = addTimeOffsetBuild(stack, c); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addUserAgentRetryMode(stack, options); err != nil {
|
||||
return err
|
||||
}
|
||||
if err = addOpUpdateTimeToLiveValidationMiddleware(stack); err != nil {
|
||||
return err
|
||||
}
|
||||
|
|
|
|||
8
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/auth.go
generated
vendored
8
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/auth.go
generated
vendored
|
|
@ -12,7 +12,7 @@ import (
|
|||
smithyhttp "github.com/aws/smithy-go/transport/http"
|
||||
)
|
||||
|
||||
func bindAuthParamsRegion(params *AuthResolverParameters, _ interface{}, options Options) {
|
||||
func bindAuthParamsRegion(_ interface{}, params *AuthResolverParameters, _ interface{}, options Options) {
|
||||
params.Region = options.Region
|
||||
}
|
||||
|
||||
|
|
@ -90,12 +90,12 @@ type AuthResolverParameters struct {
|
|||
Region string
|
||||
}
|
||||
|
||||
func bindAuthResolverParams(operation string, input interface{}, options Options) *AuthResolverParameters {
|
||||
func bindAuthResolverParams(ctx context.Context, operation string, input interface{}, options Options) *AuthResolverParameters {
|
||||
params := &AuthResolverParameters{
|
||||
Operation: operation,
|
||||
}
|
||||
|
||||
bindAuthParamsRegion(params, input, options)
|
||||
bindAuthParamsRegion(ctx, params, input, options)
|
||||
|
||||
return params
|
||||
}
|
||||
|
|
@ -145,7 +145,7 @@ func (*resolveAuthSchemeMiddleware) ID() string {
|
|||
func (m *resolveAuthSchemeMiddleware) HandleFinalize(ctx context.Context, in middleware.FinalizeInput, next middleware.FinalizeHandler) (
|
||||
out middleware.FinalizeOutput, metadata middleware.Metadata, err error,
|
||||
) {
|
||||
params := bindAuthResolverParams(m.operation, getOperationInput(ctx), m.options)
|
||||
params := bindAuthResolverParams(ctx, m.operation, getOperationInput(ctx), m.options)
|
||||
options, err := m.options.AuthSchemeResolver.ResolveAuthSchemes(ctx, params)
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("resolve auth scheme: %w", err)
|
||||
|
|
|
|||
19
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/endpoints.go
generated
vendored
19
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/endpoints.go
generated
vendored
|
|
@ -289,6 +289,17 @@ func (p EndpointParameters) WithDefaults() EndpointParameters {
|
|||
return p
|
||||
}
|
||||
|
||||
type stringSlice []string
|
||||
|
||||
func (s stringSlice) Get(i int) *string {
|
||||
if i < 0 || i >= len(s) {
|
||||
return nil
|
||||
}
|
||||
|
||||
v := s[i]
|
||||
return &v
|
||||
}
|
||||
|
||||
// EndpointResolverV2 provides the interface for resolving service endpoints.
|
||||
type EndpointResolverV2 interface {
|
||||
// ResolveEndpoint attempts to resolve the endpoint with the provided options,
|
||||
|
|
@ -496,7 +507,7 @@ type endpointParamsBinder interface {
|
|||
bindEndpointParams(*EndpointParameters)
|
||||
}
|
||||
|
||||
func bindEndpointParams(input interface{}, options Options) *EndpointParameters {
|
||||
func bindEndpointParams(ctx context.Context, input interface{}, options Options) *EndpointParameters {
|
||||
params := &EndpointParameters{}
|
||||
|
||||
params.Region = bindRegion(options.Region)
|
||||
|
|
@ -526,6 +537,10 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid
|
|||
return next.HandleFinalize(ctx, in)
|
||||
}
|
||||
|
||||
if err := checkAccountID(getIdentity(ctx), m.options.AccountIDEndpointMode); err != nil {
|
||||
return out, metadata, fmt.Errorf("invalid accountID set: %w", err)
|
||||
}
|
||||
|
||||
req, ok := in.Request.(*smithyhttp.Request)
|
||||
if !ok {
|
||||
return out, metadata, fmt.Errorf("unknown transport type %T", in.Request)
|
||||
|
|
@ -535,7 +550,7 @@ func (m *resolveEndpointV2Middleware) HandleFinalize(ctx context.Context, in mid
|
|||
return out, metadata, fmt.Errorf("expected endpoint resolver to not be nil")
|
||||
}
|
||||
|
||||
params := bindEndpointParams(getOperationInput(ctx), m.options)
|
||||
params := bindEndpointParams(ctx, getOperationInput(ctx), m.options)
|
||||
endpt, err := m.options.EndpointResolverV2.ResolveEndpoint(ctx, *params)
|
||||
if err != nil {
|
||||
return out, metadata, fmt.Errorf("failed to resolve service endpoint, %w", err)
|
||||
|
|
|
|||
2
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/go_module_metadata.go
generated
vendored
2
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/go_module_metadata.go
generated
vendored
|
|
@ -3,4 +3,4 @@
|
|||
package dynamodb
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.32.8"
|
||||
const goModuleVersion = "1.34.1"
|
||||
|
|
|
|||
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/options.go
generated
vendored
3
vendor/github.com/aws/aws-sdk-go-v2/service/dynamodb/options.go
generated
vendored
|
|
@ -24,6 +24,9 @@ type Options struct {
|
|||
// modify this list for per operation behavior.
|
||||
APIOptions []func(*middleware.Stack) error
|
||||
|
||||
// Indicates how aws account ID is applied in endpoint2.0 routing
|
||||
AccountIDEndpointMode aws.AccountIDEndpointMode
|
||||
|
||||
// The optional application specific identifier appended to the User-Agent header.
|
||||
AppID string
|
||||
|
||||
|
|
|
|||
16
vendor/github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery/CHANGELOG.md
generated
vendored
16
vendor/github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery/CHANGELOG.md
generated
vendored
|
|
@ -1,3 +1,19 @@
|
|||
# v1.9.14 (2024-06-28)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.9.13 (2024-06-19)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.9.12 (2024-06-18)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.9.11 (2024-06-17)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
||||
# v1.9.10 (2024-06-07)
|
||||
|
||||
* **Dependency Update**: Updated to the latest SDK module versions
|
||||
|
|
|
|||
|
|
@ -3,4 +3,4 @@
|
|||
package endpointdiscovery
|
||||
|
||||
// goModuleVersion is the tagged release for this module
|
||||
const goModuleVersion = "1.9.10"
|
||||
const goModuleVersion = "1.9.14"
|
||||
|
|
|
|||
4
vendor/modules.txt
vendored
4
vendor/modules.txt
vendored
|
|
@ -76,7 +76,7 @@ github.com/aws/aws-sdk-go-v2/internal/endpoints/v2
|
|||
# github.com/aws/aws-sdk-go-v2/internal/ini v1.8.0
|
||||
## explicit; go 1.20
|
||||
github.com/aws/aws-sdk-go-v2/internal/ini
|
||||
# github.com/aws/aws-sdk-go-v2/service/dynamodb v1.32.8
|
||||
# github.com/aws/aws-sdk-go-v2/service/dynamodb v1.34.1
|
||||
## explicit; go 1.20
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb
|
||||
github.com/aws/aws-sdk-go-v2/service/dynamodb/internal/customizations
|
||||
|
|
@ -88,7 +88,7 @@ github.com/aws/aws-sdk-go-v2/service/dynamodbstreams/types
|
|||
# github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.11.3
|
||||
## explicit; go 1.20
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.10
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery v1.9.14
|
||||
## explicit; go 1.20
|
||||
github.com/aws/aws-sdk-go-v2/service/internal/endpoint-discovery
|
||||
# github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.11.15
|
||||
|
|
|
|||
Loading…
Reference in a new issue