diff --git a/go.mod b/go.mod index ee4004f80..958da91ac 100644 --- a/go.mod +++ b/go.mod @@ -3,11 +3,11 @@ module github.com/NVIDIA/holodeck go 1.26.0 require ( - github.com/aws/aws-sdk-go-v2 v1.47.7 + github.com/aws/aws-sdk-go-v2 v1.48.1 github.com/aws/aws-sdk-go-v2/config v1.33.13 github.com/aws/aws-sdk-go-v2/service/ec2 v1.343.0 github.com/aws/aws-sdk-go-v2/service/elasticloadbalancingv2 v1.63.8 - github.com/aws/aws-sdk-go-v2/service/ssm v1.81.2 + github.com/aws/aws-sdk-go-v2/service/ssm v1.84.1 github.com/mattn/go-isatty v0.0.24 github.com/onsi/ginkgo/v2 v2.34.0 github.com/onsi/gomega v1.44.0 @@ -25,8 +25,8 @@ require ( github.com/Masterminds/semver/v3 v3.4.0 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.20.13 // indirect github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.5 // indirect - github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10 // indirect - github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10 // indirect + github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 // indirect + github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 // indirect github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8 // indirect github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding v1.13.23 // indirect github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.8 // indirect @@ -34,7 +34,7 @@ require ( github.com/aws/aws-sdk-go-v2/service/sso v1.39.1 // indirect github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.1 // indirect github.com/aws/aws-sdk-go-v2/service/sts v1.51.6 // indirect - github.com/aws/smithy-go v1.28.8 // indirect + github.com/aws/smithy-go v1.28.10 // indirect github.com/fxamacker/cbor/v2 v2.9.1 // indirect github.com/go-logr/logr v1.4.3 // indirect github.com/go-task/slim-sprig/v3 v3.0.0 // indirect diff --git a/go.sum b/go.sum index 524e5c5d5..831e57931 100644 --- a/go.sum +++ b/go.sum @@ -1,17 +1,17 @@ github.com/Masterminds/semver/v3 v3.4.0 h1:Zog+i5UMtVoCU8oKka5P7i9q9HgrJeGzI9SA1Xbatp0= github.com/Masterminds/semver/v3 v3.4.0/go.mod h1:4V+yj/TJE1HU9XfppCwVMZq3I84lprf4nC11bSS5beM= -github.com/aws/aws-sdk-go-v2 v1.47.7 h1:jBmtzRtGWVAzbfc4RBWo1dTte0ZZH8p9U42YJIw2+Bw= -github.com/aws/aws-sdk-go-v2 v1.47.7/go.mod h1:I8lFSH4MGrZiw2m7miCrRYHsgpC1+HW8uiVGOiPYPcw= +github.com/aws/aws-sdk-go-v2 v1.48.1 h1:j6ro6IvbxUe8BCulc/6uWMrhmx6+i5HNIc1GZEJRT9k= +github.com/aws/aws-sdk-go-v2 v1.48.1/go.mod h1:HP8Jzg1FDurJomtx40YM0eiLoJrwjjZ9X+4BNpy4OXc= github.com/aws/aws-sdk-go-v2/config v1.33.13 h1:u52x6ISQOx172tpwM0VRxhJzEsTJYpMcEYUGM2A1wrw= github.com/aws/aws-sdk-go-v2/config v1.33.13/go.mod h1:/ixtz6XPHb42zekjQ0LqD9XjTpTysNWhIGwufY1OzI4= github.com/aws/aws-sdk-go-v2/credentials v1.20.13 h1:j4z41OtspmQ3ftQycaDunJ26b69a9SHfaSVUPqgRv8k= github.com/aws/aws-sdk-go-v2/credentials v1.20.13/go.mod h1:SgPA1oS3b+dlMxZb618jDmGNscpXSCaxz15igS52OlE= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.5 h1:iXjy2SFhGYNB1jWZBhQqq8HbhsbPF23w+/zbMvPXsTg= github.com/aws/aws-sdk-go-v2/feature/ec2/imds v1.20.5/go.mod h1:k0RUiBnyXU0AXRJ9tJmY2jQke6XUIX2PNVnWtvgaPtc= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10 h1:DKtPO+uoekvZX1tIFGVlWypYGSYkHPb7rliUI1wZtEw= -github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10/go.mod h1:uAi0RDdZZz8IRpXERptWALeCgQG9Ye/HiMLxkxlt8IU= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10 h1:r8p95YELmfmuV9VvAaFcLesVBZduCCCccxpzQKkNThw= -github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10/go.mod h1:W3M52Mqai5TjgzyL/dEG+UwE+Xz9PykyjXelvbAzWIA= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 h1:ZFqKPVQYSIYOXVoG/YRGXYNPqcGslzu/N2J3kev/Djc= +github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13/go.mod h1:3guCF5FBy7MYWRVt7+gdRxPPTSIBQnImwEVW5BdnOCE= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 h1:0pHWAgLjLZWSc9GtdpMVFT7bvpUcm9xZYcaJ9bmyLGo= +github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13/go.mod h1:yVcS5ysT0fDsQKA6mqaI5QU1p9q5bj7NyM4bu91yNmU= github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8 h1:WOp5De9iWdEHDPh2Kb0tBP3vGBm/dVAuRGh4a4tqduo= github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8/go.mod h1:z8W8YgfhbWl62XqcTtK+CxPrE+iHGRVUOtrrbIOp7ZY= github.com/aws/aws-sdk-go-v2/service/ec2 v1.343.0 h1:pOxNUJbUOy779gx205gEpySpT5fu3B0ifPD8jBxujZI= @@ -24,16 +24,16 @@ github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.8 h1:+PMpWlJYO github.com/aws/aws-sdk-go-v2/service/internal/presigned-url v1.14.8/go.mod h1:cnG3xZLGQL4c/bt8pjdzlFtZsW7epBBuNS04a5xMjdo= github.com/aws/aws-sdk-go-v2/service/signin v1.12.1 h1:WZLC+k/CZx11kZGQDqu9mpA8yhiXGX2I//jhuJE1FDo= github.com/aws/aws-sdk-go-v2/service/signin v1.12.1/go.mod h1:wxAk0D2oVBSjuXEIzvcKxTZfM90zticdAbh/VD42L0Y= -github.com/aws/aws-sdk-go-v2/service/ssm v1.81.2 h1:GnK/9Xino71FUigioVvDxwa7dhXSsonIsugTSCinZD0= -github.com/aws/aws-sdk-go-v2/service/ssm v1.81.2/go.mod h1:z5Gm1inYUfvFTAz82OARi7T4iROwp0VzWpYh9a7P5+s= +github.com/aws/aws-sdk-go-v2/service/ssm v1.84.1 h1:dVEWQQ6Yju23P5lu6R1kAUO0B0A8VVU8JOcgHR6SGy8= +github.com/aws/aws-sdk-go-v2/service/ssm v1.84.1/go.mod h1:FioQwsYCjkOtp/0W6eFAM1BuAJxcI5W/pDCmdqq68WI= github.com/aws/aws-sdk-go-v2/service/sso v1.39.1 h1:4VB/dnDo7pmXSLQMszSoBzWndENuc7mzwTpD6lQn77A= github.com/aws/aws-sdk-go-v2/service/sso v1.39.1/go.mod h1:UGsEYgWz4Gi+46vDQ5zkFLqUgJziyOE2SXjZjgmfmHc= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.1 h1:w8yui2ZqdHmGwVBDGvazoIvKw/DnLENBLkYnN8q8iqo= github.com/aws/aws-sdk-go-v2/service/ssooidc v1.44.1/go.mod h1:gJSdIY6YUzDvqQLcMtPVZgBRHrFwzHryvpE8Igzbxps= github.com/aws/aws-sdk-go-v2/service/sts v1.51.6 h1:BVjKrtRUtSYKztBCCfE1oAB+d3ViKcW2cKZfserOqMQ= github.com/aws/aws-sdk-go-v2/service/sts v1.51.6/go.mod h1:eSukFLeLkPMm+1OxDR+F0joauZdyBkF47Ow7MqjZiJw= -github.com/aws/smithy-go v1.28.8 h1:aEmdAq7gVCoGCnvf1NnELlu3I6D/nhqrC321FyFiQkQ= -github.com/aws/smithy-go v1.28.8/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= +github.com/aws/smithy-go v1.28.10 h1:SfPnj8fGCVAI/P5YC4/1JjuMsucbPp2dROnSTYNo2PE= +github.com/aws/smithy-go v1.28.10/go.mod h1:YE2RhdIuDbA5E5bTdciG9KrW3+TiEONeUWCqxX9i1Fc= github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/davecgh/go-spew v1.1.2-0.20180830191138-d8f796af33cc h1:U9qPSI2PIWSS1VwoXQT9A3Wy9MM3WgvqSxFWenqJduM= diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go index d55b099a7..890a31a7c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/go_module_metadata.go @@ -3,4 +3,4 @@ package aws // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.47.7" +const goModuleVersion = "1.48.1" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go index 4dfde8573..006501bfb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/adaptive.go @@ -21,6 +21,7 @@ var DefaultThrottles = []IsErrorThrottle{ ThrottleErrorCode{ Codes: DefaultThrottleErrorCodes, }, + throttleUnmodeledTooManyRequests{}, } // AdaptiveModeOptions provides the functional options for configuring the @@ -145,7 +146,15 @@ func (a *AdaptiveMode) GetAttemptToken(ctx context.Context) (func(error) error, } } - return a.handleResponse, nil + stdRelease, err := a.retryer.GetAttemptToken(ctx) + if err != nil { + return nil, err + } + + return func(opErr error) error { + a.handleResponse(opErr) + return stdRelease(opErr) + }, nil } func (a *AdaptiveMode) handleResponse(opErr error) error { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go index 3a08ebe0a..e0089c895 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/doc.go @@ -20,7 +20,7 @@ // - Errors that implement a ConnectionError, Temporary, or Timeout method that return true. // - Connection Reset Errors. // - net.OpErr types that are dialing errors or are temporary. -// - HTTP Status Codes: 500, 502, 503, and 504. +// - HTTP Status Codes: 429 (unless the error is a modeled error type), 500, 502, 503, and 504. // - API Error Codes // - RequestTimeout, RequestTimeoutException // - Throttling, ThrottlingException, ThrottledException, RequestThrottledException, TooManyRequestsException, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go index 14225a53a..40b83911a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/jitter_backoff.go @@ -23,8 +23,8 @@ type ExponentialJitterBackoff struct { // delay is 1s regardless of the configured baseDelay. throttle IsErrorThrottle - // When true, applies MAX_BACKOFF before jitter and uses throttle-aware - // base delay. + // When true, uses the Retry Behavior 2.1 formula: applies MAX_BACKOFF + // before jitter and uses throttle-aware base delay. retries2026 bool randFloat64 func() (float64, error) @@ -101,8 +101,15 @@ func (j *ExponentialJitterBackoff) backoffDelayLegacy(attempt int, err error) (t } // backoffDelay2026 uses throttle-aware base delay and applies MAX_BACKOFF -// before jitter: t_i = b * min(x * 2^i, MAX_BACKOFF). +// before jitter: t_i = b * min(x * 2^i, MAX_BACKOFF), where i is the 0-based +// retry index. The attempt passed in is the 1-based number of the attempt that +// failed, so the first retry uses i = 0. func (j *ExponentialJitterBackoff) backoffDelay2026(attempt int, err error) (time.Duration, error) { + i := attempt - 1 + if i < 0 { + i = 0 + } + x := j.baseDelay if j.throttle != nil && j.throttle.IsErrorThrottle(err) == aws.TrueTernary { x = time.Second @@ -113,7 +120,7 @@ func (j *ExponentialJitterBackoff) backoffDelay2026(attempt int, err error) (tim return 0, randErr } - ri := math.Pow(2, float64(attempt)) + ri := math.Pow(2, float64(i)) delaySeconds := float64(x) / float64(time.Second) * ri maxBackoffSeconds := float64(j.maxBackoff) / float64(time.Second) if delaySeconds > maxBackoffSeconds { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go index 3b7e08b91..8a2f38a82 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/middleware.go @@ -247,11 +247,9 @@ func (r *Attempt) handleAttempt( "failed to release retry token after request error, %w", err) } // Release the attempt token based on the state of the attempt's error (if any). - if !newRetries2026() || attemptNum == 1 { - if releaseError := releaseAttemptToken(err); releaseError != nil && err != nil { - return out, attemptResult, nopRelease, fmt.Errorf( - "failed to release initial token after request error, %w", err) - } + if releaseError := releaseAttemptToken(err); releaseError != nil && err != nil { + return out, attemptResult, nopRelease, fmt.Errorf( + "failed to release initial token after request error, %w", err) } // If there was no error making the attempt, nothing further to do. There // will be nothing to retry. @@ -296,8 +294,8 @@ func (r *Attempt) handleAttempt( releaseRetryToken, retryTokenErr := r.retryer.GetRetryToken(ctx, err) if retryTokenErr != nil { // Long-polling operations must still back off when quota is exceeded. - if newRetries2026() && internalcontext.GetIsLongPolling(ctx) { - if retryDelay, delayErr := r.retryer.RetryDelay(attemptNum-1, err); delayErr == nil { + if internalcontext.GetIsLongPolling(ctx) { + if retryDelay, delayErr := r.retryer.RetryDelay(attemptNum, err); delayErr == nil { retryDelay = adjustForRetryAfterHeader(retryDelay, err, logger, r.LogAttempts) _ = sdk.SleepWithContext(ctx, retryDelay) } @@ -311,17 +309,11 @@ func (r *Attempt) handleAttempt( // Get the retry delay before another attempt can be made, and sleep for // that time. Potentially early exist if the sleep is canceled via the // context. - attempt := attemptNum - if newRetries2026() { - attempt = attemptNum - 1 - } - retryDelay, reqErr := r.retryer.RetryDelay(attempt, err) + retryDelay, reqErr := r.retryer.RetryDelay(attemptNum, err) if reqErr != nil { return out, attemptResult, releaseRetryToken, reqErr } - if newRetries2026() { - retryDelay = adjustForRetryAfterHeader(retryDelay, err, logger, r.LogAttempts) - } + retryDelay = adjustForRetryAfterHeader(retryDelay, err, logger, r.LogAttempts) if reqErr = sdk.SleepWithContext(ctx, retryDelay); reqErr != nil { err = &aws.RequestCanceledError{Err: reqErr} return out, attemptResult, releaseRetryToken, err diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go index 1b485f998..f9ec49d60 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/retryable_error.go @@ -4,10 +4,12 @@ import ( "errors" "fmt" "net" + "net/http" "net/url" "strings" "github.com/aws/aws-sdk-go-v2/aws" + "github.com/aws/smithy-go" ) // IsErrorRetryable provides the interface of an implementation to determine if @@ -184,6 +186,28 @@ func (r RetryableHTTPStatusCode) IsErrorRetryable(err error) aws.Ternary { return aws.TrueTernary } +// retryableUnmodeledTooManyRequests retries an HTTP 429 response whose error +// did not deserialize to a modeled error type. A modeled error's own retry +// rules decide whether it is retried. +type retryableUnmodeledTooManyRequests struct{} + +func (retryableUnmodeledTooManyRequests) IsErrorRetryable(err error) aws.Ternary { + if isUnmodeledTooManyRequests(err) { + return aws.TrueTernary + } + return aws.UnknownTernary +} + +// isUnmodeledTooManyRequests returns true if the error is for an HTTP 429 +// response and did not deserialize to a modeled error type. +func isUnmodeledTooManyRequests(err error) bool { + var v interface{ HTTPStatusCode() int } + if !errors.As(err, &v) || v.HTTPStatusCode() != http.StatusTooManyRequests { + return false + } + return !isModeledAPIError(err) +} + // RetryableErrorCode determines if an attempt should be retried based on the // API error code. type RetryableErrorCode struct { @@ -226,3 +250,15 @@ func (e *retryableClockSkewError) Unwrap() error { func (e *retryableClockSkewError) RetryableError() bool { return true } + +// isModeledAPIError returns true if the error wraps an API error that was +// deserialized to a modeled error type. An error that deserialized to +// *smithy.GenericAPIError, or that has no API error, is not modeled. +func isModeledAPIError(err error) bool { + var apiErr smithy.APIError + if !errors.As(err, &apiErr) { + return false + } + _, generic := apiErr.(*smithy.GenericAPIError) + return !generic +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go index f2f9660da..12c00b2b0 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/standard.go @@ -3,7 +3,6 @@ package retry import ( "context" "fmt" - "os" "time" "github.com/aws/aws-sdk-go-v2/aws/ratelimit" @@ -34,20 +33,32 @@ const ( // Default retry token quota values. const ( - DefaultRetryRateTokens uint = 500 + DefaultRetryRateTokens uint = 500 + + // DefaultRetryCost is the legacy cost to deduct from the RateLimiter's + // token bucket per retry. + // + // Deprecated: The SDK no longer uses this value by default. A retry now + // costs 14 tokens, and a retry caused by a throttling error costs + // DefaultThrottlingRetryCost. DefaultRetryCost uint = 5 DefaultNoRetryIncrement uint = 1 - // DefaultRetryTimeoutCost is the cost to deduct from the RateLimiter's - // token bucket per retry caused by timeout error. + // DefaultRetryTimeoutCost is the legacy cost to deduct from the + // RateLimiter's token bucket per retry caused by timeout error. // - // When AWS_NEW_RETRIES_2026 is set to "true", timeouts are no longer - // treated differently than other transient errors. The discounted cost - // is instead applied to throttling errors via DefaultThrottlingRetryCost. + // Deprecated: The SDK no longer uses this value by default. Timeouts are + // no longer treated differently than other transient errors. The + // discounted cost is instead applied to throttling errors via + // DefaultThrottlingRetryCost. DefaultRetryTimeoutCost uint = 10 DefaultThrottlingRetryCost uint = 5 ) +// defaultRetryCost is the cost to deduct from the RateLimiter's token bucket +// per retry not caused by a throttling error. +const defaultRetryCost uint = 14 + // DefaultRetryableHTTPStatusCodes is the default set of HTTP status codes the SDK // should consider as retryable errors. var DefaultRetryableHTTPStatusCodes = map[int]struct{}{ @@ -92,6 +103,7 @@ var DefaultRetryables = []IsErrorRetryable{ RetryableHTTPStatusCode{ Codes: DefaultRetryableHTTPStatusCodes, }, + retryableUnmodeledTooManyRequests{}, RetryableErrorCode{ Codes: DefaultRetryableErrorCodes, }, @@ -127,7 +139,8 @@ type StandardOptions struct { // Set of strategies to determine if the attempt failed due to a timeout // error. // - // It is safe to append to this list in NewStandard's functional options. + // Deprecated: The standard retryer no longer uses this field. A retry + // caused by a timeout costs RetryCost, the same as other transient errors. Timeouts []IsErrorTimeout // Set of strategies to determine if the attempt failed due to a throttle @@ -144,13 +157,10 @@ type StandardOptions struct { // consume more tokens than what's available results in operation failure. // The default implementation is parameterized as follows: // - a capacity of 500 (DefaultRetryRateTokens) - // - a retry caused by a timeout costs 10 tokens (DefaultRetryTimeoutCost) - // - a retry caused by other errors costs 5 tokens (DefaultRetryCost) - // - an operation that succeeds on the 1st attempt adds 1 token (DefaultNoRetryIncrement) - // - // When AWS_NEW_RETRIES_2026 is set to "true", the costs change: - // - a retry costs 14 tokens + // - a retry costs 14 tokens, timeouts included // - a retry caused by a throttling error costs 5 tokens (DefaultThrottlingRetryCost) + // - a successful retry refunds the tokens its retry cost + // - an operation that succeeds on the 1st attempt adds 1 token (DefaultNoRetryIncrement) // // You can disable rate limiting by setting this field to ratelimit.None. RateLimiter RateLimiter @@ -161,12 +171,13 @@ type StandardOptions struct { // The cost to deduct from the RateLimiter's token bucket per retry caused // by timeout error. // - // When AWS_NEW_RETRIES_2026 is set to "true", this field is unused. - // Throttling errors use ThrottlingRetryCost instead. + // Deprecated: The standard retryer no longer uses this field. A retry + // caused by a timeout costs RetryCost, and a retry caused by a throttling + // error costs ThrottlingRetryCost. RetryTimeoutCost uint // The cost to deduct from the RateLimiter's token bucket per retry caused - // by a throttling error. Only used when AWS_NEW_RETRIES_2026 is "true". + // by a throttling error. ThrottlingRetryCost uint // The cost to payback to the RateLimiter's token bucket for successful @@ -174,8 +185,8 @@ type StandardOptions struct { NoRetryIncrement uint // BaseDelay is the base backoff delay for non-throttle retryable errors. - // Throttling errors always use 1s. Defaults to 50ms if zero. - // Only used when AWS_NEW_RETRIES_2026 is "true"; ignored in legacy mode. + // Throttling errors always use 1s. Defaults to 50ms if zero. Ignored when + // Backoff is set. BaseDelay time.Duration } @@ -193,7 +204,6 @@ type Standard struct { options StandardOptions throttle IsErrorThrottle - timeout IsErrorTimeout retryable IsErrorRetryable backoff BackoffDelayer } @@ -211,18 +221,14 @@ func NewStandard(fnOpts ...func(*StandardOptions)) *Standard { backoff := o.Backoff if backoff == nil { - if newRetries2026() { - baseDelay := o.BaseDelay - if baseDelay == 0 { - baseDelay = 50 * time.Millisecond - } - backoff = newExponentialJitterBackoffWithOptions(o.MaxBackoff, - withBaseDelay(baseDelay), - withThrottleCheck(IsErrorThrottles(o.Throttles)), - ) - } else { - backoff = NewExponentialJitterBackoff(o.MaxBackoff) + baseDelay := o.BaseDelay + if baseDelay == 0 { + baseDelay = 50 * time.Millisecond } + backoff = newExponentialJitterBackoffWithOptions(o.MaxBackoff, + withBaseDelay(baseDelay), + withThrottleCheck(IsErrorThrottles(o.Throttles)), + ) } return &Standard{ @@ -230,7 +236,6 @@ func NewStandard(fnOpts ...func(*StandardOptions)) *Standard { backoff: backoff, retryable: IsErrorRetryables(o.Retryables), throttle: IsErrorThrottles(o.Throttles), - timeout: IsErrorTimeouts(o.Timeouts), } } @@ -252,9 +257,15 @@ func (s *Standard) RetryDelay(attempt int, err error) (time.Duration, error) { } // GetAttemptToken returns the token to be released after then attempt completes. -// The release token will add NoRetryIncrement to the RateLimiter token pool if -// the attempt was successful. If the attempt failed, nothing will be done. -func (s *Standard) GetAttemptToken(context.Context) (func(error) error, error) { +// For the first attempt of an operation, the release token will add +// NoRetryIncrement to the RateLimiter token pool if the attempt was +// successful. A successful retry refunds the cost of its retry token instead, +// so the release token of later attempts does nothing. If the attempt failed, +// nothing will be done. +func (s *Standard) GetAttemptToken(ctx context.Context) (func(error) error, error) { + if md, ok := getRetryMetadata(ctx); ok && md.AttemptNum > 1 { + return nopRelease, nil + } return s.GetInitialToken(), nil } @@ -277,15 +288,8 @@ func (s *Standard) noRetryIncrement() error { // Returning the token release function, or error. func (s *Standard) GetRetryToken(ctx context.Context, opErr error) (func(error) error, error) { cost := s.options.RetryCost - - if newRetries2026() { - if s.throttle.IsErrorThrottle(opErr).Bool() { - cost = s.options.ThrottlingRetryCost - } - } else { - if s.timeout.IsErrorTimeout(opErr).Bool() { - cost = s.options.RetryTimeoutCost - } + if s.throttle.IsErrorThrottle(opErr).Bool() { + cost = s.options.ThrottlingRetryCost } fn, err := s.options.RateLimiter.GetToken(ctx, cost) @@ -308,26 +312,7 @@ func (f releaseToken) release(err error) error { return f() } -func newRetries2026() bool { - return os.Getenv("AWS_NEW_RETRIES_2026") == "true" -} - func standardDefaults() StandardOptions { - if newRetries2026() { - return StandardOptions{ - MaxAttempts: DefaultMaxAttempts, - MaxBackoff: DefaultMaxBackoff, - Retryables: append([]IsErrorRetryable{}, DefaultRetryables...), - Timeouts: append([]IsErrorTimeout{}, DefaultTimeouts...), - Throttles: append([]IsErrorThrottle{}, DefaultThrottles...), - - RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens), - RetryCost: 14, - RetryTimeoutCost: DefaultRetryTimeoutCost, - ThrottlingRetryCost: DefaultThrottlingRetryCost, - NoRetryIncrement: DefaultNoRetryIncrement, - } - } return StandardOptions{ MaxAttempts: DefaultMaxAttempts, MaxBackoff: DefaultMaxBackoff, @@ -335,9 +320,10 @@ func standardDefaults() StandardOptions { Timeouts: append([]IsErrorTimeout{}, DefaultTimeouts...), Throttles: append([]IsErrorThrottle{}, DefaultThrottles...), - RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens), - RetryCost: DefaultRetryCost, - RetryTimeoutCost: DefaultRetryTimeoutCost, - NoRetryIncrement: DefaultNoRetryIncrement, + RateLimiter: ratelimit.NewTokenRateLimit(DefaultRetryRateTokens), + RetryCost: defaultRetryCost, + RetryTimeoutCost: DefaultRetryTimeoutCost, + ThrottlingRetryCost: DefaultThrottlingRetryCost, + NoRetryIncrement: DefaultNoRetryIncrement, } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go index c4b844d15..717387c93 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/aws/retry/throttle_error.go @@ -58,3 +58,15 @@ func (r ThrottleErrorCode) IsErrorThrottle(err error) aws.Ternary { return aws.TrueTernary } + +// throttleUnmodeledTooManyRequests treats an HTTP 429 response whose error did +// not deserialize to a modeled error type as a throttle error. A modeled error +// is a throttle error only if its error code is a throttle error code. +type throttleUnmodeledTooManyRequests struct{} + +func (throttleUnmodeledTooManyRequests) IsErrorThrottle(err error) aws.Ternary { + if isUnmodeledTooManyRequests(err) { + return aws.TrueTernary + } + return aws.UnknownTernary +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md index 47a63aab6..23410e8e5 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/CHANGELOG.md @@ -1,3 +1,17 @@ +# v1.5.13 (2026-11-25) + +* **Dependency Update**: Update to smithy-go v1.28.10. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.12 (2026-11-10) + +* **Dependency Update**: Update to smithy-go v1.28.9. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.5.11 (2026-11-06) + +* **Dependency Update**: Updated to the latest SDK module versions + # v1.5.10 (2026-11-05) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go index d6752c81a..ddabaadf7 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/configsources/go_module_metadata.go @@ -3,4 +3,4 @@ package configsources // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.5.10" +const goModuleVersion = "1.5.13" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go index 6ab4d9669..dec36421d 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.go @@ -225,6 +225,13 @@ var partitions = []Partition{ SupportsFIPS: nil, SupportsDualStack: nil, }, + "me-west-1": { + Name: nil, + DnsSuffix: nil, + DualStackDnsSuffix: nil, + SupportsFIPS: nil, + SupportsDualStack: nil, + }, "mx-central-1": { Name: nil, DnsSuffix: nil, @@ -239,6 +246,13 @@ var partitions = []Partition{ SupportsFIPS: nil, SupportsDualStack: nil, }, + "sa-west-1": { + Name: nil, + DnsSuffix: nil, + DualStackDnsSuffix: nil, + SupportsFIPS: nil, + SupportsDualStack: nil, + }, "us-east-1": { Name: nil, DnsSuffix: nil, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json index fb9ebb1fa..6f8a91ad6 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/awsrulesfn/partitions.json @@ -98,12 +98,18 @@ "me-south-1" : { "description" : "Middle East (Bahrain)" }, + "me-west-1" : { + "description" : "Middle East (Saudi Arabia)" + }, "mx-central-1" : { "description" : "Mexico (Central)" }, "sa-east-1" : { "description" : "South America (Sao Paulo)" }, + "sa-west-1" : { + "description" : "South America (Chile)" + }, "us-east-1" : { "description" : "US East (N. Virginia)" }, diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md index 52122a306..977f22d32 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/CHANGELOG.md @@ -1,3 +1,17 @@ +# v2.8.13 (2026-11-25) + +* **Dependency Update**: Update to smithy-go v1.28.10. +* **Dependency Update**: Updated to the latest SDK module versions + +# v2.8.12 (2026-11-10) + +* **Dependency Update**: Update to smithy-go v1.28.9. +* **Dependency Update**: Updated to the latest SDK module versions + +# v2.8.11 (2026-11-06) + +* **Dependency Update**: Updated to the latest SDK module versions + # v2.8.10 (2026-11-05) * **Dependency Update**: Updated to the latest SDK module versions diff --git a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go index ac564b2de..40ad48120 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/internal/endpoints/v2/go_module_metadata.go @@ -3,4 +3,4 @@ package endpoints // goModuleVersion is the tagged release for this module -const goModuleVersion = "2.8.10" +const goModuleVersion = "2.8.13" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/CHANGELOG.md b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/CHANGELOG.md index 8a196eec9..edd7915f4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/CHANGELOG.md +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/CHANGELOG.md @@ -1,3 +1,35 @@ +# v1.84.1 (2026-11-25) + +* **Dependency Update**: Update to smithy-go v1.28.10. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.84.0 (2026-11-20) + +* **Feature**: This release adds a CloudProviders field to SSM documents. Specify the cloud providers (AWS, Azure, GCP) a document can run on in CreateDocument and UpdateDocument, view it in DescribeDocument, ListDocuments and ListDocumentVersions, and filter ListDocuments by cloud provider. + +# v1.83.0 (2026-11-13) + +* **Feature**: Adding Google Cloud Platform (GCP) support to SSM Cloud Connector to enable onboarding of GCP Compute Engine instances to AWS Systems Manager. Customers can now optionally create an SSM Cloud Connector without an AWS Config connector. + +# v1.82.1 (2026-11-10) + +* **Dependency Update**: Update to smithy-go v1.28.9. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.82.0 (2026-11-06) + +* **Feature**: AWS Systems Manager now provides two new APIs - RegisterDefaultHostManagementConfiguration and DeregisterDefaultHostManagementConfiguration - along with a new DefaultHostManagementConfiguration CloudFormation resource type. +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.81.4 (2026-11-05) + +* **Dependency Update**: Updated to the latest SDK module versions + +# v1.81.3 (2026-11-04) + +* **Dependency Update**: Update to smithy-go v1.28.8. +* **Dependency Update**: Updated to the latest SDK module versions + # v1.81.2 (2026-10-30) * **Bug Fix**: Fix malformed JSON when serializing nil lists or maps in union members, map values, and list elements. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateCloudConnector.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateCloudConnector.go index 3e7484983..e9d3d997a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateCloudConnector.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateCloudConnector.go @@ -29,12 +29,6 @@ func (c *Client) CreateCloudConnector(ctx context.Context, params *CreateCloudCo type CreateCloudConnectorInput struct { - // The ARN of the Amazon Web Services Config connector associated with this cloud - // connector. - // - // This member is required. - ConfigConnectorArn *string - // The configuration details for connecting to the third-party cloud environment. // // This member is required. @@ -51,6 +45,11 @@ type CreateCloudConnectorInput struct { // This member is required. RoleArn *string + // The ARN of the Amazon Web Services Config connector to associate with this + // cloud connector. If you omit it, the cloud connector is created without Amazon + // Web Services Config integration. + ConfigConnectorArn *string + // A description for the cloud connector. Description *string diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateDocument.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateDocument.go index 595f838a6..65729d621 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateDocument.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_CreateDocument.go @@ -78,6 +78,18 @@ type CreateDocumentInput struct { // A list of key-value pairs that describe attachments to a version of a document. Attachments []types.AttachmentsSource + // The cloud providers that the document can run against. Valid values include the + // following: + // + // - AWS - The document runs against Amazon Web Services resources. + // + // - Azure - The document runs against Microsoft Azure resources. + // + // - GCP - The document runs against Google Cloud resources. + // + // If you don't specify a value, the default is AWS . + CloudProviders []types.CloudProvider + // An optional field where you can specify a friendly name for the SSM document. // This value can differ for each version of the document. You can update this // value at a later time using the UpdateDocumentoperation. @@ -144,6 +156,9 @@ func (v *CreateDocumentInput) SerializeMembers(s smithy.ShapeSerializer) { if v.Attachments != nil { serializeAttachmentsSourceList(s, schemas.CreateDocumentRequest_Attachments, v.Attachments) } + if v.CloudProviders != nil { + serializeCloudProviderList(s, schemas.CreateDocumentRequest_CloudProviders, v.CloudProviders) + } if v.Content != nil { s.WriteString(schemas.CreateDocumentRequest_Content, *v.Content) } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameter.go index 035d46a12..ced60935f 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameter.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameter.go @@ -11,6 +11,13 @@ import ( // Delete a parameter from the system. After deleting a parameter, wait for at // least 30 seconds to create a parameter with the same name. +// +// This operation is authorized against the ssm:DeleteParameter action. Denying +// that action alone doesn't restrict DeleteParameters, which is authorized against its own +// action. For more information, see [Restricting access to specific parameters and paths]in the Amazon Web Services Systems Manager +// User Guide. +// +// [Restricting access to specific parameters and paths]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-restrict-parameter-access.html func (c *Client) DeleteParameter(ctx context.Context, params *DeleteParameterInput, optFns ...func(*Options)) (*DeleteParameterOutput, error) { if params == nil { params = &DeleteParameterInput{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameters.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameters.go index c0e01cd59..6e8c8fbe9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameters.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeleteParameters.go @@ -11,6 +11,13 @@ import ( // Delete a list of parameters. After deleting a parameter, wait for at least 30 // seconds to create a parameter with the same name. +// +// This operation is authorized against the ssm:DeleteParameters action, not +// against ssm:DeleteParameter . Denying ssm:DeleteParameter for a parameter +// doesn't prevent a principal from deleting that parameter with this operation. +// For more information, see [Restricting access to specific parameters and paths]in the Amazon Web Services Systems Manager User Guide. +// +// [Restricting access to specific parameters and paths]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-restrict-parameter-access.html func (c *Client) DeleteParameters(ctx context.Context, params *DeleteParametersInput, optFns ...func(*Options)) (*DeleteParametersOutput, error) { if params == nil { params = &DeleteParametersInput{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeregisterDefaultHostManagementConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeregisterDefaultHostManagementConfiguration.go new file mode 100644 index 000000000..f9295c492 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_DeregisterDefaultHostManagementConfiguration.go @@ -0,0 +1,112 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ssm + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/service/ssm/schemas" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +// Removes the Default Host Management Configuration (DHMC) for an Amazon Web +// Services account and Amazon Web Services Region. After you deregister DHMC, +// Amazon EC2 instances are no longer automatically managed as managed nodes by +// Amazon Web Services Systems Manager. +// +// To use this operation, you must have the following permissions: +// +// - You need the ssm:GetServiceSetting and ssm:ResetServiceSetting permissions +// for the /ssm/managed-instance/default-ec2-instance-management-role service +// setting. +// +// If the registered role is service-managed, you also need the iam:DeleteRole +// permission so that Amazon Web Services Systems Manager can remove the role it +// created. +func (c *Client) DeregisterDefaultHostManagementConfiguration(ctx context.Context, params *DeregisterDefaultHostManagementConfigurationInput, optFns ...func(*Options)) (*DeregisterDefaultHostManagementConfigurationOutput, error) { + if params == nil { + params = &DeregisterDefaultHostManagementConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "DeregisterDefaultHostManagementConfiguration", params, optFns, c.addOperationDeregisterDefaultHostManagementConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*DeregisterDefaultHostManagementConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type DeregisterDefaultHostManagementConfigurationInput struct { + noSmithyDocumentSerde +} + +func (v *DeregisterDefaultHostManagementConfigurationInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeregisterDefaultHostManagementConfigurationRequest) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeregisterDefaultHostManagementConfigurationInput) SerializeMembers(s smithy.ShapeSerializer) { +} + +type DeregisterDefaultHostManagementConfigurationOutput struct { + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (v *DeregisterDefaultHostManagementConfigurationOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.DeregisterDefaultHostManagementConfigurationResult) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *DeregisterDefaultHostManagementConfigurationOutput) SerializeMembers(s smithy.ShapeSerializer) { +} +func (v *DeregisterDefaultHostManagementConfigurationOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.DeregisterDefaultHostManagementConfigurationResult, func(s *smithy.Schema) error { + switch s { + } + return nil + }) +} +func (c *Client) addOperationDeregisterDefaultHostManagementConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeregisterDefaultHostManagementConfiguration, schemas.DeregisterDefaultHostManagementConfigurationRequest, schemas.DeregisterDefaultHostManagementConfigurationResult)}, middleware.After); err != nil { + return err + } + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.DeregisterDefaultHostManagementConfiguration, schemas.DeregisterDefaultHostManagementConfigurationRequest, schemas.DeregisterDefaultHostManagementConfigurationResult), output: &DeregisterDefaultHostManagementConfigurationOutput{}}, middleware.After); err != nil { + return err + } + + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack, options); err != nil { + return err + } + if err = addCredentialSource(stack, options); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addInterceptors(stack, options); err != nil { + return err + } + return nil +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetCloudConnector.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetCloudConnector.go index 72603a7b6..0b308817c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetCloudConnector.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetCloudConnector.go @@ -55,7 +55,8 @@ type GetCloudConnectorOutput struct { CloudConnectorArn *string // The ARN of the Amazon Web Services Config connector associated with this cloud - // connector. + // connector. This value is returned only if the cloud connector was created with + // an Amazon Web Services Config connector. ConfigConnectorArn *string // The configuration details for the third-party cloud environment connection. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameter.go index 14bef6af6..a98a2062b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameter.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameter.go @@ -19,6 +19,11 @@ import ( // // To get information about more than one parameter at a time, use the GetParameters operation. // +// This operation is authorized against the ssm:GetParameter action. Denying that +// action alone doesn't restrict GetParameters, GetParameterHistory, or GetParametersByPath, each of which is authorized against its +// own action. For more information, see [How Parameter Store authorizes parameter retrieval]in the Amazon Web Services Systems +// Manager User Guide. +// // Parameter Store throughput defines the number of API transactions per second // (TPS) that Systems Manager can process. This applies to GetParameter , // GetParameters , and PutParameter API calls for your Amazon Web Services account @@ -34,6 +39,7 @@ import ( // ThrottlingException: Rate exceeded errors, enable higher throughput. For more // information, see [Changing Parameter Store throughput]. // +// [How Parameter Store authorizes parameter retrieval]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-retrieval-authorization.html // [Changing Parameter Store throughput]: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-throughput.html func (c *Client) GetParameter(ctx context.Context, params *GetParameterInput, optFns ...func(*Options)) (*GetParameterOutput, error) { if params == nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameterHistory.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameterHistory.go index b1f7dab0b..068e287bd 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameterHistory.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameterHistory.go @@ -22,6 +22,16 @@ import ( // then you must also update the key alias the parameter uses to reference KMS. // Otherwise, GetParameterHistory retrieves whatever the original key alias was // referencing. +// +// This operation is authorized against the ssm:GetParameterHistory action, not +// against ssm:GetParameter . Because parameter history includes every version of a +// parameter, including the current one, a principal who is denied ssm:GetParameter +// , ssm:GetParameters , and ssm:GetParametersByPath but allowed +// ssm:GetParameterHistory can still read the current value. To restrict access to +// a parameter value, deny every action that can return it. For more information, +// see [How Parameter Store authorizes parameter retrieval]in the Amazon Web Services Systems Manager User Guide. +// +// [How Parameter Store authorizes parameter retrieval]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-retrieval-authorization.html func (c *Client) GetParameterHistory(ctx context.Context, params *GetParameterHistoryInput, optFns ...func(*Options)) (*GetParameterHistoryOutput, error) { if params == nil { params = &GetParameterHistoryInput{} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameters.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameters.go index 2e7e283ee..4a83a8e87 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameters.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParameters.go @@ -15,6 +15,12 @@ import ( // // To get information about a single parameter, you can use the GetParameter operation instead. // +// This operation is authorized against the ssm:GetParameters action, not against +// ssm:GetParameter . Denying ssm:GetParameter for a parameter doesn't prevent a +// principal from retrieving that parameter with this operation. To restrict access +// to a parameter value, deny every action that can return it. For more +// information, see [How Parameter Store authorizes parameter retrieval]in the Amazon Web Services Systems Manager User Guide. +// // Parameter names can't contain spaces. The service removes any spaces specified // for the beginning or end of a parameter name. If the specified name for a // parameter contains spaces between characters, the request fails with a @@ -35,6 +41,7 @@ import ( // ThrottlingException: Rate exceeded errors, enable higher throughput. For more // information, see [Changing Parameter Store throughput]. // +// [How Parameter Store authorizes parameter retrieval]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-retrieval-authorization.html // [Changing Parameter Store throughput]: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-throughput.html func (c *Client) GetParameters(ctx context.Context, params *GetParametersInput, optFns ...func(*Options)) (*GetParametersOutput, error) { if params == nil { diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParametersByPath.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParametersByPath.go index c24627b7f..ef16074cf 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParametersByPath.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_GetParametersByPath.go @@ -14,6 +14,18 @@ import ( // Retrieve information about one or more parameters under a specified level in a // hierarchy. // +// This operation is authorized against the ssm:GetParametersByPath action for the +// path that you specify in the request. It isn't authorized against the individual +// parameters that it returns, and it isn't authorized against ssm:GetParameter . A +// principal who is allowed to call this operation for the path /a with Recursive +// set to true receives every parameter under that path, including /a/b , even if a +// policy explicitly denies access to /a/b . +// +// To prevent a parameter from being returned by this operation, deny the +// ssm:GetParametersByPath action on every ancestor path that could include the +// parameter in its results. For more information, see [Restricting access to specific parameters and paths]in the Amazon Web Services +// Systems Manager User Guide. +// // Request results are returned on a best-effort basis. If you specify MaxResults // in the request, the response includes information up to the limit specified. The // number of items returned, however, can be between zero and the value of @@ -26,6 +38,8 @@ import ( // for the beginning or end of a parameter name. If the specified name for a // parameter contains spaces between characters, the request fails with a // ValidationException error. +// +// [Restricting access to specific parameters and paths]: https://docs.aws.amazon.com/systems-manager/latest/userguide/ps-restrict-parameter-access.html func (c *Client) GetParametersByPath(ctx context.Context, params *GetParametersByPathInput, optFns ...func(*Options)) (*GetParametersByPathOutput, error) { if params == nil { params = &GetParametersByPathInput{} @@ -69,12 +83,6 @@ type GetParametersByPathInput struct { ParameterFilters []types.ParameterStringFilter // Retrieve all parameters within a hierarchy. - // - // If a user has access to a path, then the user can access all levels of that - // path. For example, if a user has permission to access path /a , then the user - // can also access /a/b . Even if a user has explicitly been denied access in IAM - // for parameter /a/b , they can still call the GetParametersByPath API operation - // recursively for /a and view /a/b . Recursive *bool // Retrieve all parameters in a hierarchy with their value decrypted. diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_ListDocuments.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_ListDocuments.go index bef8f0709..9b6afc0cb 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_ListDocuments.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_ListDocuments.go @@ -37,9 +37,9 @@ type ListDocumentsInput struct { // One or more DocumentKeyValuesFilter objects. Use a filter to return a more // specific list of results. For keys, you can specify one or more key-value pair // tags that have been applied to a document. Other valid keys include Owner , Name - // , PlatformTypes , DocumentType , and TargetType . For example, to return - // documents you own use Key=Owner,Values=Self . To specify a custom key-value - // pair, use the format Key=tag:tagName,Values=valueName . + // , PlatformTypes , DocumentType , TargetType , and CloudProviders . For example, + // to return documents you own use Key=Owner,Values=Self . To specify a custom + // key-value pair, use the format Key=tag:tagName,Values=valueName . // // This API operation only supports filtering documents by using a single tag key // and one or more tag values. For example: diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_PutParameter.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_PutParameter.go index 89f8ae8d0..a5b316f18 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_PutParameter.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_PutParameter.go @@ -110,8 +110,9 @@ type PutParameterInput struct { // AllowedPattern=^\d+$ AllowedPattern *string - // The data type for a String parameter. Supported data types include plain text - // and Amazon Machine Image (AMI) IDs. + // The data type of the parameter value. Parameter Store validates the value + // against the data type when you create or update the parameter. The default is + // text , which performs no validation. // // The following data type values are supported. // @@ -121,6 +122,41 @@ type PutParameterInput struct { // // - aws:ssm:integration // + // - aws:region + // + // - aws:account:id + // + // - boolean + // + // - integer + // + // - float + // + // - binary + // + // - hostname + // + // - email + // + // - ipv4-address + // + // - ipv6-address + // + // - url + // + // - json + // + // - jsonc + // + // For more information about the supported data types, see [Working with parameter data types in Parameter Store]. + // + // Regardless of a parameter's data type, the Parameter Store API operations that + // retrieve parameters, such as GetParameter , GetParameters , and + // GetParametersByPath , return the parameter value as a string. For example, if a + // parameter has the data type integer and the value 443 , GetParameter returns + // the value as the string "443" . Convert the value to the type your application + // needs after you retrieve it. + // // When you create a String parameter and specify aws:ec2:image , Amazon Web // Services Systems Manager validates the parameter value is in the required // format, such as ami-12345abcdeEXAMPLE , and that the specified AMI is available @@ -138,6 +174,7 @@ type PutParameterInput struct { // created successfully, see [Setting up notifications or trigger actions based on Parameter Store events]. For more information about AMI format validation , // see [Native parameter support for Amazon Machine Image IDs]. // + // [Working with parameter data types in Parameter Store]: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-data-types.html // [Setting up notifications or trigger actions based on Parameter Store events]: https://docs.aws.amazon.com/systems-manager/latest/userguide/sysman-paramstore-cwe.html // [Native parameter support for Amazon Machine Image IDs]: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-ec2-aliases.html DataType *string @@ -261,6 +298,8 @@ type PutParameterInput struct { // // - The parameter uses a parameter policy. // + // - The parameter uses the url , json , or jsonc data type. + // // - More than 10,000 parameters already exist in your Amazon Web Services // account in the current Amazon Web Services Region. // diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_RegisterDefaultHostManagementConfiguration.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_RegisterDefaultHostManagementConfiguration.go new file mode 100644 index 000000000..9b5bd8d51 --- /dev/null +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_RegisterDefaultHostManagementConfiguration.go @@ -0,0 +1,173 @@ +// Code generated by smithy-go-codegen DO NOT EDIT. + +package ssm + +import ( + "context" + "github.com/aws/aws-sdk-go-v2/service/ssm/schemas" + "github.com/aws/aws-sdk-go-v2/service/ssm/types" + smithy "github.com/aws/smithy-go" + "github.com/aws/smithy-go/middleware" +) + +// Enables Default Host Management Configuration (DHMC) for the current Amazon Web +// Services account and Amazon Web Services Region. With DHMC enabled, you don't +// need to configure additional resources, such as an instance profile, to use your +// Amazon EC2 instances as managed nodes in Amazon Web Services Systems Manager. +// +// To use this operation, you must have the following permissions: +// +// - You need the ssm:GetServiceSetting and ssm:UpdateServiceSetting permissions +// for the /ssm/managed-instance/default-ec2-instance-management-role service +// setting. +// +// - You need the iam:GetRole and iam:PassRole permissions for the role used for +// Default Host Management Configuration. +// +// If PermissionModel is SERVICE_MANAGED , you also need the iam:CreateRole and +// iam:AttachRolePolicy permissions so that Amazon Web Services Systems Manager can +// create and configure the role on your behalf. +func (c *Client) RegisterDefaultHostManagementConfiguration(ctx context.Context, params *RegisterDefaultHostManagementConfigurationInput, optFns ...func(*Options)) (*RegisterDefaultHostManagementConfigurationOutput, error) { + if params == nil { + params = &RegisterDefaultHostManagementConfigurationInput{} + } + + result, metadata, err := c.invokeOperation(ctx, "RegisterDefaultHostManagementConfiguration", params, optFns, c.addOperationRegisterDefaultHostManagementConfigurationMiddlewares) + if err != nil { + return nil, err + } + + out := result.(*RegisterDefaultHostManagementConfigurationOutput) + out.ResultMetadata = metadata + return out, nil +} + +type RegisterDefaultHostManagementConfigurationInput struct { + + // The permission model that determines how the IAM role for Default Host + // Management Configuration is provided. + // + // The permission model can be one of the following values: + // + // SERVICE_MANAGED Amazon Web Services Systems Manager creates and manages the + // role on your behalf. + // + // SELF_MANAGED You provide the role to register in RoleArn . + // + // This member is required. + PermissionModel types.DHMCPermissionModel + + // Specifies whether to override the role that is currently registered for Default + // Host Management Configuration. The default is false , which acts as a guardrail + // against accidentally replacing an existing configuration. Set this to true to + // replace the currently registered role. + Overwrite bool + + // The Amazon Resource Name (ARN) of the self-managed IAM role that you register + // for Default Host Management Configuration. The requirement for this value + // depends on the permission model: + // + // - If PermissionModel is SELF_MANAGED , this value is required. + // + // - If PermissionModel is SERVICE_MANAGED , this value must not be set. + RoleArn *string + + noSmithyDocumentSerde +} + +func (v *RegisterDefaultHostManagementConfigurationInput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RegisterDefaultHostManagementConfigurationRequest) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RegisterDefaultHostManagementConfigurationInput) SerializeMembers(s smithy.ShapeSerializer) { + if v.Overwrite != false { + s.WriteBool(schemas.RegisterDefaultHostManagementConfigurationRequest_Overwrite, v.Overwrite) + } + if v.PermissionModel != "" { + s.WriteString(schemas.RegisterDefaultHostManagementConfigurationRequest_PermissionModel, string(v.PermissionModel)) + } + if v.RoleArn != nil { + s.WriteString(schemas.RegisterDefaultHostManagementConfigurationRequest_RoleArn, *v.RoleArn) + } +} + +type RegisterDefaultHostManagementConfigurationOutput struct { + + // The Amazon Resource Name (ARN) of the IAM role registered for Default Host + // Management Configuration. The value depends on the permission model: + // + // SERVICE_MANAGED The ARN of the role that Amazon Web Services Systems Manager + // created in the IAM reserved path. + // + // SELF_MANAGED The RoleArn that you provided. + RoleArn *string + + // Metadata pertaining to the operation's result. + ResultMetadata middleware.Metadata + + noSmithyDocumentSerde +} + +func (v *RegisterDefaultHostManagementConfigurationOutput) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.RegisterDefaultHostManagementConfigurationResult) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *RegisterDefaultHostManagementConfigurationOutput) SerializeMembers(s smithy.ShapeSerializer) { + if v.RoleArn != nil { + s.WriteString(schemas.RegisterDefaultHostManagementConfigurationResult_RoleArn, *v.RoleArn) + } +} +func (v *RegisterDefaultHostManagementConfigurationOutput) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.RegisterDefaultHostManagementConfigurationResult, func(s *smithy.Schema) error { + switch s { + case schemas.RegisterDefaultHostManagementConfigurationResult_RoleArn: + v.RoleArn = new(string) + return d.ReadString(schemas.RegisterDefaultHostManagementConfigurationResult_RoleArn, v.RoleArn) + } + return nil + }) +} +func (c *Client) addOperationRegisterDefaultHostManagementConfigurationMiddlewares(stack *middleware.Stack, options Options) (err error) { + if err := stack.Serialize.Add(&serializeRequestMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RegisterDefaultHostManagementConfiguration, schemas.RegisterDefaultHostManagementConfigurationRequest, schemas.RegisterDefaultHostManagementConfigurationResult)}, middleware.After); err != nil { + return err + } + if err := stack.Deserialize.Add(&deserializeResponseMiddleware{options: &options, operationSchema: smithy.NewOperationSchema(schemas.RegisterDefaultHostManagementConfiguration, schemas.RegisterDefaultHostManagementConfigurationRequest, schemas.RegisterDefaultHostManagementConfigurationResult), output: &RegisterDefaultHostManagementConfigurationOutput{}}, middleware.After); err != nil { + return err + } + + if err = addResolveEndpointMiddleware(stack, options); err != nil { + return err + } + if err = addComputePayloadSHA256(stack); err != nil { + return err + } + if err = addRecordResponseTiming(stack, options); err != nil { + return err + } + if err = addCredentialSource(stack, options); err != nil { + return err + } + if err = addOpRegisterDefaultHostManagementConfigurationValidationMiddleware(stack); err != nil { + return err + } + if err = addRequestIDRetrieverMiddleware(stack); err != nil { + return err + } + if err = addResponseErrorMiddleware(stack); err != nil { + return err + } + if err = addRequestResponseLogging(stack, options); err != nil { + return err + } + if err = addDisableHTTPSMiddleware(stack, options); err != nil { + return err + } + if err = addInterceptors(stack, options); err != nil { + return err + } + return nil +} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_UpdateDocument.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_UpdateDocument.go index 286ca36c2..fabe1d97b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_UpdateDocument.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/api_op_UpdateDocument.go @@ -41,6 +41,19 @@ type UpdateDocumentInput struct { // A list of key-value pairs that describe attachments to a version of a document. Attachments []types.AttachmentsSource + // The cloud providers that the new document version can run against. Valid values + // include the following: + // + // - AWS - The document runs against Amazon Web Services resources. + // + // - Azure - The document runs against Microsoft Azure resources. + // + // - GCP - The document runs against Google Cloud resources. + // + // If you don't specify a value, the new version uses the cloud providers of the + // latest version. + CloudProviders []types.CloudProvider + // The friendly name of the SSM document that you want to update. This value can // differ for each version of the document. If you don't specify a value for this // parameter in your request, the existing value is applied to the new document @@ -81,6 +94,9 @@ func (v *UpdateDocumentInput) SerializeMembers(s smithy.ShapeSerializer) { if v.Attachments != nil { serializeAttachmentsSourceList(s, schemas.UpdateDocumentRequest_Attachments, v.Attachments) } + if v.CloudProviders != nil { + serializeCloudProviderList(s, schemas.UpdateDocumentRequest_CloudProviders, v.CloudProviders) + } if v.Content != nil { s.WriteString(schemas.UpdateDocumentRequest_Content, *v.Content) } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/common_serde.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/common_serde.go index 8249bce79..75eb20995 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/common_serde.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/common_serde.go @@ -16,6 +16,12 @@ func serializeCloudConnectorConfiguration(s smithy.ShapeSerializer, schema *smit vv.Value.SerializeMembers(s) s.CloseStruct() s.CloseUnion() + case *types.CloudConnectorConfigurationMemberGcpConfiguration: + s.WriteUnion(schema, schemas.CloudConnectorConfiguration_GcpConfiguration) + s.WriteStruct(schemas.CloudConnectorConfiguration_GcpConfiguration) + vv.Value.SerializeMembers(s) + s.CloseStruct() + s.CloseUnion() } } @@ -50,6 +56,15 @@ func serializeExecutionPreview(s smithy.ShapeSerializer, schema *smithy.Schema, } } +func serializeGcpConfigurationTargets(s smithy.ShapeSerializer, schema *smithy.Schema, v types.GcpConfigurationTargets) { + switch vv := v.(type) { + case *types.GcpConfigurationTargetsMemberProjects: + s.WriteUnion(schema, schemas.GcpConfigurationTargets_Projects) + serializeGcpProjectList(s, schemas.GcpConfigurationTargets_Projects, vv.Value) + s.CloseUnion() + } +} + func serializeNodeType(s smithy.ShapeSerializer, schema *smithy.Schema, v types.NodeType) { switch vv := v.(type) { case *types.NodeTypeMemberInstance: @@ -68,6 +83,10 @@ func deserializeCloudConnectorConfiguration(d smithy.ShapeDeserializer, s *smith vv := &types.CloudConnectorConfigurationMemberAzureConfiguration{} *v = vv return vv.Deserialize(d) + case schemas.CloudConnectorConfiguration_GcpConfiguration: + vv := &types.CloudConnectorConfigurationMemberGcpConfiguration{} + *v = vv + return vv.Deserialize(d) } return nil }) @@ -109,6 +128,18 @@ func deserializeExecutionPreview(d smithy.ShapeDeserializer, s *smithy.Schema, v }) } +func deserializeGcpConfigurationTargets(d smithy.ShapeDeserializer, s *smithy.Schema, v *types.GcpConfigurationTargets) error { + return smithy.ReadUnion(d, s, func(ms *smithy.Schema) error { + switch ms { + case schemas.GcpConfigurationTargets_Projects: + vv := &types.GcpConfigurationTargetsMemberProjects{} + *v = vv + return vv.Deserialize(d) + } + return nil + }) +} + func deserializeNodeType(d smithy.ShapeDeserializer, s *smithy.Schema, v *types.NodeType) error { return smithy.ReadUnion(d, s, func(ms *smithy.Schema) error { switch ms { @@ -411,6 +442,14 @@ func serializeCloudConnectorSummaryList(s smithy.ShapeSerializer, schema *smithy s.CloseList() } +func serializeCloudProviderList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.CloudProvider) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + func serializeCommandFilterList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.CommandFilter) { s.WriteList(schema) for _, vv := range v { @@ -651,6 +690,16 @@ func serializeFailedCreateAssociationList(s smithy.ShapeSerializer, schema *smit s.CloseList() } +func serializeGcpProjectList(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.GcpProject) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + func serializeGetResourcePoliciesResponseEntries(s smithy.ShapeSerializer, schema *smithy.Schema, v []types.GetResourcePoliciesResponseEntry) { s.WriteList(schema) for _, vv := range v { @@ -2493,6 +2542,27 @@ func deserializeCloudConnectorSummaryList(d smithy.ShapeDeserializer, s *smithy. }) } +func deserializeCloudProviderList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.CloudProvider) error { + *v = make([]types.CloudProvider, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.CloudProvider + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, types.CloudProvider(vv)) + return nil + }) +} + func deserializeCommandFilterList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.CommandFilter) error { *v = make([]types.CommandFilter, 0) var vv types.CommandFilter @@ -3038,6 +3108,28 @@ func deserializeFailedCreateAssociationList(d smithy.ShapeDeserializer, s *smith }) } +func deserializeGcpProjectList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.GcpProject) error { + *v = make([]types.GcpProject, 0) + var vv types.GcpProject + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero types.GcpProject + *v = append(*v, zero) + return nil + } + + vv = types.GcpProject{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + func deserializeGetResourcePoliciesResponseEntries(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]types.GetResourcePoliciesResponseEntry) error { *v = make([]types.GetResourcePoliciesResponseEntry, 0) var vv types.GetResourcePoliciesResponseEntry diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/generated.json b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/generated.json index 8fa8e9a0f..15c31f8d4 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/generated.json +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/generated.json @@ -35,6 +35,7 @@ "api_op_DeletePatchBaseline.go", "api_op_DeleteResourceDataSync.go", "api_op_DeleteResourcePolicy.go", + "api_op_DeregisterDefaultHostManagementConfiguration.go", "api_op_DeregisterManagedInstance.go", "api_op_DeregisterPatchBaselineForPatchGroup.go", "api_op_DeregisterTargetFromMaintenanceWindow.go", @@ -126,6 +127,7 @@ "api_op_PutInventory.go", "api_op_PutParameter.go", "api_op_PutResourcePolicy.go", + "api_op_RegisterDefaultHostManagementConfiguration.go", "api_op_RegisterDefaultPatchBaseline.go", "api_op_RegisterPatchBaselineForPatchGroup.go", "api_op_RegisterTargetWithMaintenanceWindow.go", diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/go_module_metadata.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/go_module_metadata.go index 924dc0d20..a0997b09a 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/go_module_metadata.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/go_module_metadata.go @@ -3,4 +3,4 @@ package ssm // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.81.2" +const goModuleVersion = "1.84.1" diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/schemas/schemas.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/schemas/schemas.go index 09afde525..11b5d430b 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/schemas/schemas.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/schemas/schemas.go @@ -143,6 +143,11 @@ var DeleteResourcePolicy = smithy.NewSchema(smithy.ShapeID{ Name: "DeleteResourcePolicy", }, smithy.ShapeTypeOperation, 0) +var DeregisterDefaultHostManagementConfiguration = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "DeregisterDefaultHostManagementConfiguration", +}, smithy.ShapeTypeOperation, 0) + var DeregisterManagedInstance = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DeregisterManagedInstance", @@ -598,6 +603,11 @@ var PutResourcePolicy = smithy.NewSchema(smithy.ShapeID{ Name: "PutResourcePolicy", }, smithy.ShapeTypeOperation, 0) +var RegisterDefaultHostManagementConfiguration = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "RegisterDefaultHostManagementConfiguration", +}, smithy.ShapeTypeOperation, 0) + var RegisterDefaultPatchBaseline = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "RegisterDefaultPatchBaseline", @@ -1598,7 +1608,7 @@ var AutomationDefinitionVersionNotFoundException_Message *smithy.Schema var AutomationExecution = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "AutomationExecution", -}, smithy.ShapeTypeStructure, 36) +}, smithy.ShapeTypeStructure, 37) var AutomationExecution_AutomationExecutionId *smithy.Schema var AutomationExecution_DocumentName *smithy.Schema @@ -1671,6 +1681,8 @@ var AutomationExecution_ChangeRequestName *smithy.Schema var AutomationExecution_Variables *smithy.Schema +var AutomationExecution_TargetsSummary *smithy.Schema + var AutomationExecutionFilter = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "AutomationExecutionFilter", @@ -2124,9 +2136,11 @@ var _CloudConnectorArn = smithy.NewSchema(smithy.ShapeID{ var CloudConnectorConfiguration = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudConnectorConfiguration", -}, smithy.ShapeTypeUnion, 1) +}, smithy.ShapeTypeUnion, 2) var CloudConnectorConfiguration_AzureConfiguration *smithy.Schema +var CloudConnectorConfiguration_GcpConfiguration *smithy.Schema + var _CloudConnectorDescription = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudConnectorDescription", @@ -2143,11 +2157,15 @@ var CloudConnectorFilter_FilterValues *smithy.Schema var CloudConnectorFilterKey = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudConnectorFilterKey", -}, smithy.ShapeTypeEnum, 2) +}, smithy.ShapeTypeEnum, 4) var CloudConnectorFilterKey_SubscriptionId *smithy.Schema var CloudConnectorFilterKey_TenantId *smithy.Schema +var CloudConnectorFilterKey_ProjectId *smithy.Schema + +var CloudConnectorFilterKey_OrganizationId *smithy.Schema + var _CloudConnectorFilterList = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudConnectorFilterList", @@ -2183,7 +2201,7 @@ var _CloudConnectorMaxResults = smithy.NewSchema(smithy.ShapeID{ var CloudConnectorSummary = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudConnectorSummary", -}, smithy.ShapeTypeStructure, 6) +}, smithy.ShapeTypeStructure, 8) var CloudConnectorSummary_CloudConnectorId *smithy.Schema var CloudConnectorSummary_DisplayName *smithy.Schema @@ -2196,12 +2214,32 @@ var CloudConnectorSummary_CreatedAt *smithy.Schema var CloudConnectorSummary_UpdatedAt *smithy.Schema +var CloudConnectorSummary_Provider *smithy.Schema + +var CloudConnectorSummary_ConfigConnectorArn *smithy.Schema + var _CloudConnectorSummaryList = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudConnectorSummaryList", }, smithy.ShapeTypeList, 1) var _CloudConnectorSummaryList_member *smithy.Schema +var CloudProvider = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "CloudProvider", +}, smithy.ShapeTypeEnum, 3) +var CloudProvider_AWS *smithy.Schema + +var CloudProvider_AZURE *smithy.Schema + +var CloudProvider_GCP *smithy.Schema + +var _CloudProviderList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "CloudProviderList", +}, smithy.ShapeTypeList, 1) +var _CloudProviderList_member *smithy.Schema + var _CloudWatchLogGroupName = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CloudWatchLogGroupName", @@ -2882,6 +2920,19 @@ var _DescriptionInDocument = smithy.NewSchema(smithy.ShapeID{ Name: "DescriptionInDocument", }, smithy.ShapeTypeString, 0) +var DHMCPermissionModel = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "DHMCPermissionModel", +}, smithy.ShapeTypeEnum, 2) +var DHMCPermissionModel_SERVICE_MANAGED *smithy.Schema + +var DHMCPermissionModel_SELF_MANAGED *smithy.Schema + +var _DHMCRoleArn = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "DHMCRoleArn", +}, smithy.ShapeTypeString, 0) + var _DisplayName = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DisplayName", @@ -2923,7 +2974,7 @@ var DocumentDefaultVersionDescription_DefaultVersionName *smithy.Schema var DocumentDescription = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DocumentDescription", -}, smithy.ShapeTypeStructure, 30) +}, smithy.ShapeTypeStructure, 31) var DocumentDescription_Sha1 *smithy.Schema var DocumentDescription_Hash *smithy.Schema @@ -2984,6 +3035,8 @@ var DocumentDescription_Category *smithy.Schema var DocumentDescription_CategoryEnum *smithy.Schema +var DocumentDescription_CloudProviders *smithy.Schema + var _DocumentDisplayName = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DocumentDisplayName", @@ -3046,7 +3099,7 @@ var DocumentHashType_SHA1 *smithy.Schema var DocumentIdentifier = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DocumentIdentifier", -}, smithy.ShapeTypeStructure, 15) +}, smithy.ShapeTypeStructure, 16) var DocumentIdentifier_Name *smithy.Schema var DocumentIdentifier_CreatedDate *smithy.Schema @@ -3077,6 +3130,8 @@ var DocumentIdentifier_ReviewStatus *smithy.Schema var DocumentIdentifier_Author *smithy.Schema +var DocumentIdentifier_CloudProviders *smithy.Schema + var _DocumentIdentifierList = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DocumentIdentifierList", @@ -3361,7 +3416,7 @@ var _DocumentVersion = smithy.NewSchema(smithy.ShapeID{ var DocumentVersionInfo = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DocumentVersionInfo", -}, smithy.ShapeTypeStructure, 10) +}, smithy.ShapeTypeStructure, 11) var DocumentVersionInfo_Name *smithy.Schema var DocumentVersionInfo_DisplayName *smithy.Schema @@ -3382,6 +3437,8 @@ var DocumentVersionInfo_StatusInformation *smithy.Schema var DocumentVersionInfo_ReviewStatus *smithy.Schema +var DocumentVersionInfo_CloudProviders *smithy.Schema + var DocumentVersionLimitExceeded = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DocumentVersionLimitExceeded", @@ -3581,6 +3638,63 @@ var FeatureNotAvailableException = smithy.NewSchema(smithy.ShapeID{ StatusCode: 400}) var FeatureNotAvailableException_Message *smithy.Schema +var GcpConfiguration = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpConfiguration", +}, smithy.ShapeTypeStructure, 4) +var GcpConfiguration_OrganizationId *smithy.Schema + +var GcpConfiguration_WorkloadIdentityPoolProvider *smithy.Schema + +var GcpConfiguration_ServiceAccountEmail *smithy.Schema + +var GcpConfiguration_Targets *smithy.Schema + +var GcpConfigurationTargets = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpConfigurationTargets", +}, smithy.ShapeTypeUnion, 1) +var GcpConfigurationTargets_Projects *smithy.Schema + +var _GcpOrganizationId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpOrganizationId", +}, smithy.ShapeTypeString, 0) + +var GcpProject = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpProject", +}, smithy.ShapeTypeStructure, 2) +var GcpProject_ProjectId *smithy.Schema + +var GcpProject_ProjectDisplayName *smithy.Schema + +var _GcpProjectDisplayName = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpProjectDisplayName", +}, smithy.ShapeTypeString, 0) + +var _GcpProjectId = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpProjectId", +}, smithy.ShapeTypeString, 0) + +var _GcpProjectList = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpProjectList", +}, smithy.ShapeTypeList, 1) +var _GcpProjectList_member *smithy.Schema + +var _GcpServiceAccountEmail = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpServiceAccountEmail", +}, smithy.ShapeTypeString, 0) + +var _GcpWorkloadIdentityPoolProvider = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "GcpWorkloadIdentityPoolProvider", +}, smithy.ShapeTypeString, 0) + var _GetInventorySchemaMaxResults = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "GetInventorySchemaMaxResults", @@ -7954,6 +8068,14 @@ var ProgressCounters_CancelledSteps *smithy.Schema var ProgressCounters_TimedOutSteps *smithy.Schema +var Provider = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "Provider", +}, smithy.ShapeTypeEnum, 2) +var Provider_AZURE *smithy.Schema + +var Provider_GCP *smithy.Schema + var _PSParameterName = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "PSParameterName", @@ -8877,7 +8999,7 @@ var _SourceLocation = smithy.NewSchema(smithy.ShapeID{ var SourceType = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "SourceType", -}, smithy.ShapeTypeEnum, 4) +}, smithy.ShapeTypeEnum, 5) var SourceType_AWS_EC2_INSTANCE *smithy.Schema var SourceType_AWS_IOT_THING *smithy.Schema @@ -8886,6 +9008,8 @@ var SourceType_AWS_SSM_MANAGEDINSTANCE *smithy.Schema var SourceType_AZURE_INSTANCE *smithy.Schema +var SourceType_GCP_INSTANCE *smithy.Schema + var _StandardErrorContent = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "StandardErrorContent", @@ -9231,6 +9355,20 @@ var _Targets = smithy.NewSchema(smithy.ShapeID{ }, smithy.ShapeTypeList, 1) var _Targets_member *smithy.Schema +var TargetsSummary = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "TargetsSummary", +}, smithy.ShapeTypeStructure, 5) +var TargetsSummary_TotalCount *smithy.Schema + +var TargetsSummary_StartedCount *smithy.Schema + +var TargetsSummary_CompletedCount *smithy.Schema + +var TargetsSummary_SuccessfulCount *smithy.Schema + +var TargetsSummary_FailedCount *smithy.Schema + var _TargetType = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "TargetType", @@ -9403,11 +9541,15 @@ var ValidationFinding_Scope *smithy.Schema var ValidationFindingCode = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "ValidationFindingCode", -}, smithy.ShapeTypeEnum, 9) +}, smithy.ShapeTypeEnum, 11) var ValidationFindingCode_TARGET_INACCESSIBLE *smithy.Schema var ValidationFindingCode_TARGET_UNUSABLE *smithy.Schema +var ValidationFindingCode_TARGET_MISSING_PERMISSIONS *smithy.Schema + +var ValidationFindingCode_TARGET_API_DISABLED *smithy.Schema + var ValidationFindingCode_TARGET_STATE_WARNING *smithy.Schema var ValidationFindingCode_AWS_ROLE_ASSUMPTION_FAILED *smithy.Schema @@ -9439,11 +9581,15 @@ var ValidationFindingScope_Id *smithy.Schema var ValidationFindingScopeType = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "ValidationFindingScopeType", -}, smithy.ShapeTypeEnum, 2) +}, smithy.ShapeTypeEnum, 4) var ValidationFindingScopeType_AZURE_TENANT *smithy.Schema var ValidationFindingScopeType_AZURE_SUBSCRIPTION *smithy.Schema +var ValidationFindingScopeType_GCP_ORGANIZATION *smithy.Schema + +var ValidationFindingScopeType_GCP_PROJECT *smithy.Schema + var ValidationFindingType = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "ValidationFindingType", @@ -9649,7 +9795,7 @@ var CreateCloudConnectorResult_CloudConnectorId *smithy.Schema var CreateDocumentRequest = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CreateDocumentRequest", -}, smithy.ShapeTypeStructure, 10) +}, smithy.ShapeTypeStructure, 11) var CreateDocumentRequest_Content *smithy.Schema var CreateDocumentRequest_Requires *smithy.Schema @@ -9670,6 +9816,8 @@ var CreateDocumentRequest_TargetType *smithy.Schema var CreateDocumentRequest_Tags *smithy.Schema +var CreateDocumentRequest_CloudProviders *smithy.Schema + var CreateDocumentResult = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "CreateDocumentResult", @@ -10003,6 +10151,16 @@ var DeleteResourcePolicyResponse = smithy.NewSchema(smithy.ShapeID{ Name: "DeleteResourcePolicyResponse", }, smithy.ShapeTypeStructure, 0) +var DeregisterDefaultHostManagementConfigurationRequest = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "DeregisterDefaultHostManagementConfigurationRequest", +}, smithy.ShapeTypeStructure, 0) + +var DeregisterDefaultHostManagementConfigurationResult = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "DeregisterDefaultHostManagementConfigurationResult", +}, smithy.ShapeTypeStructure, 0) + var DeregisterManagedInstanceRequest = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "DeregisterManagedInstanceRequest", @@ -11935,6 +12093,22 @@ var PutResourcePolicyResponse_PolicyId *smithy.Schema var PutResourcePolicyResponse_PolicyHash *smithy.Schema +var RegisterDefaultHostManagementConfigurationRequest = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "RegisterDefaultHostManagementConfigurationRequest", +}, smithy.ShapeTypeStructure, 3) +var RegisterDefaultHostManagementConfigurationRequest_PermissionModel *smithy.Schema + +var RegisterDefaultHostManagementConfigurationRequest_RoleArn *smithy.Schema + +var RegisterDefaultHostManagementConfigurationRequest_Overwrite *smithy.Schema + +var RegisterDefaultHostManagementConfigurationResult = smithy.NewSchema(smithy.ShapeID{ + Namespace: "com.amazonaws.ssm", + Name: "RegisterDefaultHostManagementConfigurationResult", +}, smithy.ShapeTypeStructure, 1) +var RegisterDefaultHostManagementConfigurationResult_RoleArn *smithy.Schema + var RegisterDefaultPatchBaselineRequest = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "RegisterDefaultPatchBaselineRequest", @@ -12416,7 +12590,7 @@ var UpdateDocumentDefaultVersionResult_Description *smithy.Schema var UpdateDocumentRequest = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "UpdateDocumentRequest", -}, smithy.ShapeTypeStructure, 8) +}, smithy.ShapeTypeStructure, 9) var UpdateDocumentRequest_Content *smithy.Schema var UpdateDocumentRequest_Attachments *smithy.Schema @@ -12433,6 +12607,8 @@ var UpdateDocumentRequest_DocumentFormat *smithy.Schema var UpdateDocumentRequest_TargetType *smithy.Schema +var UpdateDocumentRequest_CloudProviders *smithy.Schema + var UpdateDocumentMetadataRequest = smithy.NewSchema(smithy.ShapeID{ Namespace: "com.amazonaws.ssm", Name: "UpdateDocumentMetadataRequest", @@ -13419,6 +13595,16 @@ func init() { _Runbooks_member = _Runbooks.AddMember("member", Runbook) + TargetsSummary_TotalCount = TargetsSummary.AddMember("TotalCount", _Integer) + + TargetsSummary_StartedCount = TargetsSummary.AddMember("StartedCount", _Integer) + + TargetsSummary_CompletedCount = TargetsSummary.AddMember("CompletedCount", _Integer) + + TargetsSummary_SuccessfulCount = TargetsSummary.AddMember("SuccessfulCount", _Integer) + + TargetsSummary_FailedCount = TargetsSummary.AddMember("FailedCount", _Integer) + AutomationExecution_AutomationExecutionId = AutomationExecution.AddMember("AutomationExecutionId", _AutomationExecutionId) AutomationExecution_DocumentName = AutomationExecution.AddMember("DocumentName", _DocumentName) @@ -13491,6 +13677,8 @@ func init() { AutomationExecution_Variables = AutomationExecution.AddMember("Variables", _AutomationParameterMap) + AutomationExecution_TargetsSummary = AutomationExecution.AddMember("TargetsSummary", TargetsSummary) + AutomationExecutionFilterKey_DOCUMENT_NAME_PREFIX = AutomationExecutionFilterKey.AddMember("DOCUMENT_NAME_PREFIX", smithyprelude.Unit) AutomationExecutionFilterKey_EXECUTION_STATUS = AutomationExecutionFilterKey.AddMember("EXECUTION_STATUS", smithyprelude.Unit) @@ -13807,12 +13995,34 @@ func init() { _CategoryList_member = _CategoryList.AddMember("member", _Category) + GcpProject_ProjectId = GcpProject.AddMember("ProjectId", _GcpProjectId) + + GcpProject_ProjectDisplayName = GcpProject.AddMember("ProjectDisplayName", _GcpProjectDisplayName) + + _GcpProjectList_member = _GcpProjectList.AddMember("member", GcpProject) + + GcpConfigurationTargets_Projects = GcpConfigurationTargets.AddMember("Projects", _GcpProjectList) + + GcpConfiguration_OrganizationId = GcpConfiguration.AddMember("OrganizationId", _GcpOrganizationId) + + GcpConfiguration_WorkloadIdentityPoolProvider = GcpConfiguration.AddMember("WorkloadIdentityPoolProvider", _GcpWorkloadIdentityPoolProvider) + + GcpConfiguration_ServiceAccountEmail = GcpConfiguration.AddMember("ServiceAccountEmail", _GcpServiceAccountEmail) + + GcpConfiguration_Targets = GcpConfiguration.AddMember("Targets", GcpConfigurationTargets) + CloudConnectorConfiguration_AzureConfiguration = CloudConnectorConfiguration.AddMember("AzureConfiguration", AzureConfiguration) + CloudConnectorConfiguration_GcpConfiguration = CloudConnectorConfiguration.AddMember("GcpConfiguration", GcpConfiguration) + CloudConnectorFilterKey_SubscriptionId = CloudConnectorFilterKey.AddMember("SubscriptionId", smithyprelude.Unit) CloudConnectorFilterKey_TenantId = CloudConnectorFilterKey.AddMember("TenantId", smithyprelude.Unit) + CloudConnectorFilterKey_ProjectId = CloudConnectorFilterKey.AddMember("ProjectId", smithyprelude.Unit) + + CloudConnectorFilterKey_OrganizationId = CloudConnectorFilterKey.AddMember("OrganizationId", smithyprelude.Unit) + _CloudConnectorFilterValues_member = _CloudConnectorFilterValues.AddMember("member", _CloudConnectorFilterValue) CloudConnectorFilter_FilterKey = CloudConnectorFilter.AddMember("FilterKey", CloudConnectorFilterKey) @@ -13821,6 +14031,10 @@ func init() { _CloudConnectorFilterList_member = _CloudConnectorFilterList.AddMember("member", CloudConnectorFilter) + Provider_AZURE = Provider.AddMember("AZURE", smithyprelude.Unit) + + Provider_GCP = Provider.AddMember("GCP", smithyprelude.Unit) + CloudConnectorSummary_CloudConnectorId = CloudConnectorSummary.AddMember("CloudConnectorId", _CloudConnectorId) CloudConnectorSummary_DisplayName = CloudConnectorSummary.AddMember("DisplayName", _DisplayName) @@ -13833,8 +14047,20 @@ func init() { CloudConnectorSummary_UpdatedAt = CloudConnectorSummary.AddMember("UpdatedAt", _DateTime) + CloudConnectorSummary_Provider = CloudConnectorSummary.AddMember("Provider", Provider) + + CloudConnectorSummary_ConfigConnectorArn = CloudConnectorSummary.AddMember("ConfigConnectorArn", _ConfigConnectorArn) + _CloudConnectorSummaryList_member = _CloudConnectorSummaryList.AddMember("member", CloudConnectorSummary) + CloudProvider_AWS = CloudProvider.AddMember("AWS", smithyprelude.Unit) + + CloudProvider_AZURE = CloudProvider.AddMember("AZURE", smithyprelude.Unit) + + CloudProvider_GCP = CloudProvider.AddMember("GCP", smithyprelude.Unit) + + _CloudProviderList_member = _CloudProviderList.AddMember("member", CloudProvider, &smithytraits.XMLName{Name: "CloudProvider"}) + CloudWatchOutputConfig_CloudWatchLogGroupName = CloudWatchOutputConfig.AddMember("CloudWatchLogGroupName", _CloudWatchLogGroupName) CloudWatchOutputConfig_CloudWatchOutputEnabled = CloudWatchOutputConfig.AddMember("CloudWatchOutputEnabled", _CloudWatchOutputEnabled) @@ -14229,6 +14455,10 @@ func init() { _DescribeActivationsFilterList_member = _DescribeActivationsFilterList.AddMember("member", DescribeActivationsFilter) + DHMCPermissionModel_SERVICE_MANAGED = DHMCPermissionModel.AddMember("SERVICE_MANAGED", smithyprelude.Unit) + + DHMCPermissionModel_SELF_MANAGED = DHMCPermissionModel.AddMember("SELF_MANAGED", smithyprelude.Unit) + DocumentAlreadyExists_Message = DocumentAlreadyExists.AddMember("Message", _String) DocumentDefaultVersionDescription_Name = DocumentDefaultVersionDescription.AddMember("Name", _DocumentName) @@ -14399,6 +14629,8 @@ func init() { DocumentDescription_CategoryEnum = DocumentDescription.AddMember("CategoryEnum", _CategoryEnumList) + DocumentDescription_CloudProviders = DocumentDescription.AddMember("CloudProviders", _CloudProviderList) + DocumentFilterKey_Name = DocumentFilterKey.AddMember("Name", smithyprelude.Unit) DocumentFilterKey_Owner = DocumentFilterKey.AddMember("Owner", smithyprelude.Unit) @@ -14443,6 +14675,8 @@ func init() { DocumentIdentifier_Author = DocumentIdentifier.AddMember("Author", _DocumentAuthor) + DocumentIdentifier_CloudProviders = DocumentIdentifier.AddMember("CloudProviders", _CloudProviderList) + _DocumentIdentifierList_member = _DocumentIdentifierList.AddMember("member", DocumentIdentifier, &smithytraits.XMLName{Name: "DocumentIdentifier"}) _DocumentKeyValuesFilterValues_member = _DocumentKeyValuesFilterValues.AddMember("member", _DocumentKeyValuesFilterValue) @@ -14515,6 +14749,8 @@ func init() { DocumentVersionInfo_ReviewStatus = DocumentVersionInfo.AddMember("ReviewStatus", ReviewStatus) + DocumentVersionInfo_CloudProviders = DocumentVersionInfo.AddMember("CloudProviders", _CloudProviderList) + DocumentVersionLimitExceeded_Message = DocumentVersionLimitExceeded.AddMember("Message", _String) _DocumentVersionList_member = _DocumentVersionList.AddMember("member", DocumentVersionInfo) @@ -14707,6 +14943,8 @@ func init() { SourceType_AZURE_INSTANCE = SourceType.AddMember("AZURE_INSTANCE", smithyprelude.Unit) + SourceType_GCP_INSTANCE = SourceType.AddMember("GCP_INSTANCE", smithyprelude.Unit) + InstanceInfo_AgentType = InstanceInfo.AddMember("AgentType", _AgentType) InstanceInfo_AgentVersion = InstanceInfo.AddMember("AgentVersion", _AgentVersion) @@ -16615,6 +16853,10 @@ func init() { ValidationFindingCode_TARGET_UNUSABLE = ValidationFindingCode.AddMember("TARGET_UNUSABLE", smithyprelude.Unit) + ValidationFindingCode_TARGET_MISSING_PERMISSIONS = ValidationFindingCode.AddMember("TARGET_MISSING_PERMISSIONS", smithyprelude.Unit) + + ValidationFindingCode_TARGET_API_DISABLED = ValidationFindingCode.AddMember("TARGET_API_DISABLED", smithyprelude.Unit) + ValidationFindingCode_TARGET_STATE_WARNING = ValidationFindingCode.AddMember("TARGET_STATE_WARNING", smithyprelude.Unit) ValidationFindingCode_AWS_ROLE_ASSUMPTION_FAILED = ValidationFindingCode.AddMember("AWS_ROLE_ASSUMPTION_FAILED", smithyprelude.Unit) @@ -16633,6 +16875,10 @@ func init() { ValidationFindingScopeType_AZURE_SUBSCRIPTION = ValidationFindingScopeType.AddMember("AZURE_SUBSCRIPTION", smithyprelude.Unit) + ValidationFindingScopeType_GCP_ORGANIZATION = ValidationFindingScopeType.AddMember("GCP_ORGANIZATION", smithyprelude.Unit) + + ValidationFindingScopeType_GCP_PROJECT = ValidationFindingScopeType.AddMember("GCP_PROJECT", smithyprelude.Unit) + ValidationFindingScope_Type = ValidationFindingScope.AddMember("Type", ValidationFindingScopeType) ValidationFindingScope_Id = ValidationFindingScope.AddMember("Id", _String) @@ -16779,6 +17025,8 @@ func init() { CreateDocumentRequest_Tags = CreateDocumentRequest.AddMember("Tags", _TagList) + CreateDocumentRequest_CloudProviders = CreateDocumentRequest.AddMember("CloudProviders", _CloudProviderList) + CreateDocumentResult_DocumentDescription = CreateDocumentResult.AddMember("DocumentDescription", DocumentDescription) CreateMaintenanceWindowRequest_Name = CreateMaintenanceWindowRequest.AddMember("Name", _MaintenanceWindowName) @@ -18155,6 +18403,14 @@ func init() { PutResourcePolicyResponse_PolicyHash = PutResourcePolicyResponse.AddMember("PolicyHash", _PolicyHash) + RegisterDefaultHostManagementConfigurationRequest_PermissionModel = RegisterDefaultHostManagementConfigurationRequest.AddMember("PermissionModel", DHMCPermissionModel) + + RegisterDefaultHostManagementConfigurationRequest_RoleArn = RegisterDefaultHostManagementConfigurationRequest.AddMember("RoleArn", _DHMCRoleArn) + + RegisterDefaultHostManagementConfigurationRequest_Overwrite = RegisterDefaultHostManagementConfigurationRequest.AddMember("Overwrite", _Boolean) + + RegisterDefaultHostManagementConfigurationResult_RoleArn = RegisterDefaultHostManagementConfigurationResult.AddMember("RoleArn", _DHMCRoleArn) + RegisterDefaultPatchBaselineRequest_BaselineId = RegisterDefaultPatchBaselineRequest.AddMember("BaselineId", _BaselineId) RegisterDefaultPatchBaselineResult_BaselineId = RegisterDefaultPatchBaselineResult.AddMember("BaselineId", _BaselineId) @@ -18469,6 +18725,8 @@ func init() { UpdateDocumentRequest_TargetType = UpdateDocumentRequest.AddMember("TargetType", _TargetType) + UpdateDocumentRequest_CloudProviders = UpdateDocumentRequest.AddMember("CloudProviders", _CloudProviderList) + UpdateDocumentMetadataRequest_Name = UpdateDocumentMetadataRequest.AddMember("Name", _DocumentName) UpdateDocumentMetadataRequest_DocumentVersion = UpdateDocumentMetadataRequest.AddMember("DocumentVersion", _DocumentVersion) diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/common_serde.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/common_serde.go index a8fd00171..051da0ef9 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/common_serde.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/common_serde.go @@ -15,6 +15,12 @@ func serializeCloudConnectorConfiguration(s smithy.ShapeSerializer, schema *smit vv.Value.SerializeMembers(s) s.CloseStruct() s.CloseUnion() + case *CloudConnectorConfigurationMemberGcpConfiguration: + s.WriteUnion(schema, schemas.CloudConnectorConfiguration_GcpConfiguration) + s.WriteStruct(schemas.CloudConnectorConfiguration_GcpConfiguration) + vv.Value.SerializeMembers(s) + s.CloseStruct() + s.CloseUnion() } } @@ -49,6 +55,15 @@ func serializeExecutionPreview(s smithy.ShapeSerializer, schema *smithy.Schema, } } +func serializeGcpConfigurationTargets(s smithy.ShapeSerializer, schema *smithy.Schema, v GcpConfigurationTargets) { + switch vv := v.(type) { + case *GcpConfigurationTargetsMemberProjects: + s.WriteUnion(schema, schemas.GcpConfigurationTargets_Projects) + serializeGcpProjectList(s, schemas.GcpConfigurationTargets_Projects, vv.Value) + s.CloseUnion() + } +} + func serializeNodeType(s smithy.ShapeSerializer, schema *smithy.Schema, v NodeType) { switch vv := v.(type) { case *NodeTypeMemberInstance: @@ -67,6 +82,10 @@ func deserializeCloudConnectorConfiguration(d smithy.ShapeDeserializer, s *smith vv := &CloudConnectorConfigurationMemberAzureConfiguration{} *v = vv return vv.Deserialize(d) + case schemas.CloudConnectorConfiguration_GcpConfiguration: + vv := &CloudConnectorConfigurationMemberGcpConfiguration{} + *v = vv + return vv.Deserialize(d) } return nil }) @@ -108,6 +127,18 @@ func deserializeExecutionPreview(d smithy.ShapeDeserializer, s *smithy.Schema, v }) } +func deserializeGcpConfigurationTargets(d smithy.ShapeDeserializer, s *smithy.Schema, v *GcpConfigurationTargets) error { + return smithy.ReadUnion(d, s, func(ms *smithy.Schema) error { + switch ms { + case schemas.GcpConfigurationTargets_Projects: + vv := &GcpConfigurationTargetsMemberProjects{} + *v = vv + return vv.Deserialize(d) + } + return nil + }) +} + func deserializeNodeType(d smithy.ShapeDeserializer, s *smithy.Schema, v *NodeType) error { return smithy.ReadUnion(d, s, func(ms *smithy.Schema) error { switch ms { @@ -410,6 +441,14 @@ func serializeCloudConnectorSummaryList(s smithy.ShapeSerializer, schema *smithy s.CloseList() } +func serializeCloudProviderList(s smithy.ShapeSerializer, schema *smithy.Schema, v []CloudProvider) { + s.WriteList(schema) + for _, vv := range v { + s.WriteString(schema.ListMember(), string(vv)) + } + s.CloseList() +} + func serializeCommandFilterList(s smithy.ShapeSerializer, schema *smithy.Schema, v []CommandFilter) { s.WriteList(schema) for _, vv := range v { @@ -650,6 +689,16 @@ func serializeFailedCreateAssociationList(s smithy.ShapeSerializer, schema *smit s.CloseList() } +func serializeGcpProjectList(s smithy.ShapeSerializer, schema *smithy.Schema, v []GcpProject) { + s.WriteList(schema) + for _, vv := range v { + s.WriteStruct(schema.ListMember()) + vv.SerializeMembers(s) + s.CloseStruct() + } + s.CloseList() +} + func serializeGetResourcePoliciesResponseEntries(s smithy.ShapeSerializer, schema *smithy.Schema, v []GetResourcePoliciesResponseEntry) { s.WriteList(schema) for _, vv := range v { @@ -2492,6 +2541,27 @@ func deserializeCloudConnectorSummaryList(d smithy.ShapeDeserializer, s *smithy. }) } +func deserializeCloudProviderList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]CloudProvider) error { + *v = make([]CloudProvider, 0) + var vv string + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero CloudProvider + *v = append(*v, zero) + return nil + } + + if err := d.ReadString(s.ListMember(), &vv); err != nil { + return err + } + + *v = append(*v, CloudProvider(vv)) + return nil + }) +} + func deserializeCommandFilterList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]CommandFilter) error { *v = make([]CommandFilter, 0) var vv CommandFilter @@ -3037,6 +3107,28 @@ func deserializeFailedCreateAssociationList(d smithy.ShapeDeserializer, s *smith }) } +func deserializeGcpProjectList(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]GcpProject) error { + *v = make([]GcpProject, 0) + var vv GcpProject + return smithy.ReadList(d, s, func() error { + if isNil, err := d.ReadNil(s.ListMember()); err != nil { + return err + } else if isNil { + var zero GcpProject + *v = append(*v, zero) + return nil + } + + vv = GcpProject{} + if err := vv.Deserialize(d); err != nil { + return err + } + + *v = append(*v, vv) + return nil + }) +} + func deserializeGetResourcePoliciesResponseEntries(d smithy.ShapeDeserializer, s *smithy.Schema, v *[]GetResourcePoliciesResponseEntry) error { *v = make([]GetResourcePoliciesResponseEntry, 0) var vv GetResourcePoliciesResponseEntry diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/enums.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/enums.go index e40261911..78379134c 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/enums.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/enums.go @@ -405,6 +405,8 @@ type CloudConnectorFilterKey string const ( CloudConnectorFilterKeySubscriptionId CloudConnectorFilterKey = "SubscriptionId" CloudConnectorFilterKeyTenantId CloudConnectorFilterKey = "TenantId" + CloudConnectorFilterKeyProjectId CloudConnectorFilterKey = "ProjectId" + CloudConnectorFilterKeyOrganizationId CloudConnectorFilterKey = "OrganizationId" ) // Values returns all known values for CloudConnectorFilterKey. Note that this can @@ -415,6 +417,29 @@ func (CloudConnectorFilterKey) Values() []CloudConnectorFilterKey { return []CloudConnectorFilterKey{ "SubscriptionId", "TenantId", + "ProjectId", + "OrganizationId", + } +} + +type CloudProvider string + +// Enum values for CloudProvider +const ( + CloudProviderAws CloudProvider = "AWS" + CloudProviderAzure CloudProvider = "Azure" + CloudProviderGcp CloudProvider = "GCP" +) + +// Values returns all known values for CloudProvider. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (CloudProvider) Values() []CloudProvider { + return []CloudProvider{ + "AWS", + "Azure", + "GCP", } } @@ -680,6 +705,25 @@ func (DescribeActivationsFilterKeys) Values() []DescribeActivationsFilterKeys { } } +type DHMCPermissionModel string + +// Enum values for DHMCPermissionModel +const ( + DHMCPermissionModelServiceManaged DHMCPermissionModel = "SERVICE_MANAGED" + DHMCPermissionModelSelfManaged DHMCPermissionModel = "SELF_MANAGED" +) + +// Values returns all known values for DHMCPermissionModel. Note that this can be +// expanded in the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (DHMCPermissionModel) Values() []DHMCPermissionModel { + return []DHMCPermissionModel{ + "SERVICE_MANAGED", + "SELF_MANAGED", + } +} + type DocumentFilterKey string // Enum values for DocumentFilterKey @@ -2210,6 +2254,25 @@ func (PlatformType) Values() []PlatformType { } } +type Provider string + +// Enum values for Provider +const ( + ProviderAzure Provider = "Azure" + ProviderGcp Provider = "GCP" +) + +// Values returns all known values for Provider. Note that this can be expanded in +// the future, and so it is only as up to date as the client. +// +// The ordering of this slice is not guaranteed to be stable across updates. +func (Provider) Values() []Provider { + return []Provider{ + "Azure", + "GCP", + } +} + type RebootOption string // Enum values for RebootOption @@ -2433,6 +2496,7 @@ const ( SourceTypeAwsIotThing SourceType = "AWS::IoT::Thing" SourceTypeAwsSsmManagedinstance SourceType = "AWS::SSM::ManagedInstance" SourceTypeAzureInstance SourceType = "Microsoft.Compute/virtualMachines" + SourceTypeGcpInstance SourceType = "compute.googleapis.com/Instance" ) // Values returns all known values for SourceType. Note that this can be expanded @@ -2445,6 +2509,7 @@ func (SourceType) Values() []SourceType { "AWS::IoT::Thing", "AWS::SSM::ManagedInstance", "Microsoft.Compute/virtualMachines", + "compute.googleapis.com/Instance", } } @@ -2506,6 +2571,8 @@ type ValidationFindingCode string const ( ValidationFindingCodeTargetInaccessible ValidationFindingCode = "TargetInaccessible" ValidationFindingCodeTargetUnusable ValidationFindingCode = "TargetUnusable" + ValidationFindingCodeTargetMissingPermissions ValidationFindingCode = "TargetMissingPermissions" + ValidationFindingCodeTargetApiDisabled ValidationFindingCode = "TargetApiDisabled" ValidationFindingCodeTargetStateWarning ValidationFindingCode = "TargetStateWarning" ValidationFindingCodeAwsRoleAssumptionFailed ValidationFindingCode = "AwsRoleAssumptionFailed" ValidationFindingCodeWebIdentityTokenFailed ValidationFindingCode = "WebIdentityTokenFailed" @@ -2523,6 +2590,8 @@ func (ValidationFindingCode) Values() []ValidationFindingCode { return []ValidationFindingCode{ "TargetInaccessible", "TargetUnusable", + "TargetMissingPermissions", + "TargetApiDisabled", "TargetStateWarning", "AwsRoleAssumptionFailed", "WebIdentityTokenFailed", @@ -2539,6 +2608,8 @@ type ValidationFindingScopeType string const ( ValidationFindingScopeTypeAzureTenant ValidationFindingScopeType = "azure:tenant" ValidationFindingScopeTypeAzureSubscription ValidationFindingScopeType = "azure:subscription" + ValidationFindingScopeTypeGcpOrganization ValidationFindingScopeType = "gcp:organization" + ValidationFindingScopeTypeGcpProject ValidationFindingScopeType = "gcp:project" ) // Values returns all known values for ValidationFindingScopeType. Note that this @@ -2549,6 +2620,8 @@ func (ValidationFindingScopeType) Values() []ValidationFindingScopeType { return []ValidationFindingScopeType{ "azure:tenant", "azure:subscription", + "gcp:organization", + "gcp:project", } } diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/types.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/types.go index 9747180fa..5acc72ef1 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/types.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/types/types.go @@ -1861,6 +1861,10 @@ type AutomationExecution struct { // The specified targets. Targets []Target + // A summary of the child executions that a rate control execution started for its + // targets. This field is returned only for rate control executions. + TargetsSummary *TargetsSummary + // The CloudWatch alarm that was invoked by the automation. TriggeredAlarms []AlarmStateInformation @@ -1986,6 +1990,11 @@ func (v *AutomationExecution) SerializeMembers(s smithy.ShapeSerializer) { if v.Targets != nil { serializeTargets(s, schemas.AutomationExecution_Targets, v.Targets) } + if v.TargetsSummary != nil { + s.WriteStruct(schemas.AutomationExecution_TargetsSummary) + v.TargetsSummary.SerializeMembers(s) + s.CloseStruct() + } if v.TriggeredAlarms != nil { serializeAlarmStateInformationList(s, schemas.AutomationExecution_TriggeredAlarms, v.TriggeredAlarms) } @@ -2102,6 +2111,9 @@ func (v *AutomationExecution) Deserialize(d smithy.ShapeDeserializer) error { return d.ReadString(schemas.AutomationExecution_TargetParameterName, v.TargetParameterName) case schemas.AutomationExecution_Targets: return deserializeTargets(d, schemas.AutomationExecution_Targets, &v.Targets) + case schemas.AutomationExecution_TargetsSummary: + v.TargetsSummary = &TargetsSummary{} + return v.TargetsSummary.Deserialize(d) case schemas.AutomationExecution_TriggeredAlarms: return deserializeAlarmStateInformationList(d, schemas.AutomationExecution_TriggeredAlarms, &v.TriggeredAlarms) case schemas.AutomationExecution_Variables: @@ -2924,6 +2936,7 @@ func (v *BaselineOverride) Deserialize(d smithy.ShapeDeserializer) error { // The following types satisfy this interface: // // CloudConnectorConfigurationMemberAzureConfiguration +// CloudConnectorConfigurationMemberGcpConfiguration type CloudConnectorConfiguration interface { isCloudConnectorConfiguration() } @@ -2945,6 +2958,24 @@ func (v *CloudConnectorConfigurationMemberAzureConfiguration) Deserialize(d smit return v.Value.Deserialize(d) } +// The access details and targets for connecting to a Google Cloud Platform (GCP) +// environment. +type CloudConnectorConfigurationMemberGcpConfiguration struct { + Value GcpConfiguration + + noSmithyDocumentSerde +} + +func (*CloudConnectorConfigurationMemberGcpConfiguration) isCloudConnectorConfiguration() {} +func (v *CloudConnectorConfigurationMemberGcpConfiguration) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.CloudConnectorConfiguration_GcpConfiguration) + v.Value.SerializeMembers(s) + s.CloseStruct() +} +func (v *CloudConnectorConfigurationMemberGcpConfiguration) Deserialize(d smithy.ShapeDeserializer) error { + return v.Value.Deserialize(d) +} + // A filter for listing cloud connectors. type CloudConnectorFilter struct { @@ -2958,6 +2989,15 @@ type CloudConnectorFilter struct { // // TenantId The Azure tenant ID to filter by. Filters the results to connectors // that target the specified tenant. + // + // ProjectId The Google Cloud Platform (GCP) project ID to filter by. Filters the + // results to connectors that target the specified project. + // + // OrganizationId The GCP organization ID to filter by. Filters the results to + // connectors that target the entire specified organization. + // + // You can't combine Azure filter keys ( SubscriptionId and TenantId ) with GCP + // filter keys ( ProjectId and OrganizationId ) in the same request. FilterValues []string noSmithyDocumentSerde @@ -3000,6 +3040,11 @@ type CloudConnectorSummary struct { // The ID of the cloud connector. CloudConnectorId *string + // The ARN of the Amazon Web Services Config connector associated with this cloud + // connector. This value is returned only if the cloud connector was created with + // an Amazon Web Services Config connector. + ConfigConnectorArn *string + // The date and time the cloud connector was created. CreatedAt *time.Time @@ -3009,6 +3054,10 @@ type CloudConnectorSummary struct { // The friendly name of the cloud connector. DisplayName *string + // The third-party cloud provider that the cloud connector connects to. Valid + // values: Azure | GCP . + Provider Provider + // The ARN of the IAM role used by the cloud connector. RoleArn *string @@ -3028,6 +3077,9 @@ func (v *CloudConnectorSummary) SerializeMembers(s smithy.ShapeSerializer) { if v.CloudConnectorId != nil { s.WriteString(schemas.CloudConnectorSummary_CloudConnectorId, *v.CloudConnectorId) } + if v.ConfigConnectorArn != nil { + s.WriteString(schemas.CloudConnectorSummary_ConfigConnectorArn, *v.ConfigConnectorArn) + } if v.CreatedAt != nil { s.WriteTime(schemas.CloudConnectorSummary_CreatedAt, *v.CreatedAt) } @@ -3037,6 +3089,9 @@ func (v *CloudConnectorSummary) SerializeMembers(s smithy.ShapeSerializer) { if v.DisplayName != nil { s.WriteString(schemas.CloudConnectorSummary_DisplayName, *v.DisplayName) } + if v.Provider != "" { + s.WriteString(schemas.CloudConnectorSummary_Provider, string(v.Provider)) + } if v.RoleArn != nil { s.WriteString(schemas.CloudConnectorSummary_RoleArn, *v.RoleArn) } @@ -3050,6 +3105,9 @@ func (v *CloudConnectorSummary) Deserialize(d smithy.ShapeDeserializer) error { case schemas.CloudConnectorSummary_CloudConnectorId: v.CloudConnectorId = new(string) return d.ReadString(schemas.CloudConnectorSummary_CloudConnectorId, v.CloudConnectorId) + case schemas.CloudConnectorSummary_ConfigConnectorArn: + v.ConfigConnectorArn = new(string) + return d.ReadString(schemas.CloudConnectorSummary_ConfigConnectorArn, v.ConfigConnectorArn) case schemas.CloudConnectorSummary_CreatedAt: v.CreatedAt = new(time.Time) return d.ReadTime(schemas.CloudConnectorSummary_CreatedAt, v.CreatedAt) @@ -3059,6 +3117,13 @@ func (v *CloudConnectorSummary) Deserialize(d smithy.ShapeDeserializer) error { case schemas.CloudConnectorSummary_DisplayName: v.DisplayName = new(string) return d.ReadString(schemas.CloudConnectorSummary_DisplayName, v.DisplayName) + case schemas.CloudConnectorSummary_Provider: + var ev string + if err := d.ReadString(schemas.CloudConnectorSummary_Provider, &ev); err != nil { + return err + } + v.Provider = Provider(ev) + return nil case schemas.CloudConnectorSummary_RoleArn: v.RoleArn = new(string) return d.ReadString(schemas.CloudConnectorSummary_RoleArn, v.RoleArn) @@ -4941,6 +5006,10 @@ type DocumentDescription struct { // The value that identifies a document's category. CategoryEnum []string + // This field specifies the cloud providers that the returned version of the + // document can run against. + CloudProviders []CloudProvider + // The date when the document was created. CreatedDate *time.Time @@ -5055,6 +5124,9 @@ func (v *DocumentDescription) SerializeMembers(s smithy.ShapeSerializer) { if v.CategoryEnum != nil { serializeCategoryEnumList(s, schemas.DocumentDescription_CategoryEnum, v.CategoryEnum) } + if v.CloudProviders != nil { + serializeCloudProviderList(s, schemas.DocumentDescription_CloudProviders, v.CloudProviders) + } if v.CreatedDate != nil { s.WriteTime(schemas.DocumentDescription_CreatedDate, *v.CreatedDate) } @@ -5146,6 +5218,8 @@ func (v *DocumentDescription) Deserialize(d smithy.ShapeDeserializer) error { return deserializeCategoryList(d, schemas.DocumentDescription_Category, &v.Category) case schemas.DocumentDescription_CategoryEnum: return deserializeCategoryEnumList(d, schemas.DocumentDescription_CategoryEnum, &v.CategoryEnum) + case schemas.DocumentDescription_CloudProviders: + return deserializeCloudProviderList(d, schemas.DocumentDescription_CloudProviders, &v.CloudProviders) case schemas.DocumentDescription_CreatedDate: v.CreatedDate = new(time.Time) return d.ReadTime(schemas.DocumentDescription_CreatedDate, v.CreatedDate) @@ -5295,6 +5369,10 @@ type DocumentIdentifier struct { // The user in your organization who created the document. Author *string + // This field specifies the cloud providers that the default version of the + // document can run against. + CloudProviders []CloudProvider + // The date the SSM document was created. CreatedDate *time.Time @@ -5360,6 +5438,9 @@ func (v *DocumentIdentifier) SerializeMembers(s smithy.ShapeSerializer) { if v.Author != nil { s.WriteString(schemas.DocumentIdentifier_Author, *v.Author) } + if v.CloudProviders != nil { + serializeCloudProviderList(s, schemas.DocumentIdentifier_CloudProviders, v.CloudProviders) + } if v.CreatedDate != nil { s.WriteTime(schemas.DocumentIdentifier_CreatedDate, *v.CreatedDate) } @@ -5409,6 +5490,8 @@ func (v *DocumentIdentifier) Deserialize(d smithy.ShapeDeserializer) error { case schemas.DocumentIdentifier_Author: v.Author = new(string) return d.ReadString(schemas.DocumentIdentifier_Author, v.Author) + case schemas.DocumentIdentifier_CloudProviders: + return deserializeCloudProviderList(d, schemas.DocumentIdentifier_CloudProviders, &v.CloudProviders) case schemas.DocumentIdentifier_CreatedDate: v.CreatedDate = new(time.Time) return d.ReadTime(schemas.DocumentIdentifier_CreatedDate, v.CreatedDate) @@ -5473,6 +5556,19 @@ func (v *DocumentIdentifier) Deserialize(d smithy.ShapeDeserializer) error { // You can also use Amazon Web Services-provided keys, some of which have specific // allowed values. These keys and their associated values are as follows: // +// CloudProviders Returns documents whose default version can run against any of +// the specified cloud providers. The CloudProviders key supports the following +// values: +// +// - AWS - Documents that run against Amazon Web Services resources. +// +// - Azure - Documents that run against Microsoft Azure resources. +// +// - GCP - Documents that run against Google Cloud resources. +// +// If you created a document before Systems Manager supported cloud providers, the +// document runs against AWS . +// // DocumentType // // - ApplicationConfiguration @@ -5905,6 +6001,10 @@ func (v *DocumentReviews) Deserialize(d smithy.ShapeDeserializer) error { // Version information about the document. type DocumentVersionInfo struct { + // This field specifies the cloud providers that this version of the document can + // run against. + CloudProviders []CloudProvider + // The date the document was created. CreatedDate *time.Time @@ -5952,6 +6052,9 @@ func (v *DocumentVersionInfo) Serialize(s smithy.ShapeSerializer) { } func (v *DocumentVersionInfo) SerializeMembers(s smithy.ShapeSerializer) { + if v.CloudProviders != nil { + serializeCloudProviderList(s, schemas.DocumentVersionInfo_CloudProviders, v.CloudProviders) + } if v.CreatedDate != nil { s.WriteTime(schemas.DocumentVersionInfo_CreatedDate, *v.CreatedDate) } @@ -5986,6 +6089,8 @@ func (v *DocumentVersionInfo) SerializeMembers(s smithy.ShapeSerializer) { func (v *DocumentVersionInfo) Deserialize(d smithy.ShapeDeserializer) error { return smithy.ReadStruct(d, schemas.DocumentVersionInfo, func(s *smithy.Schema) error { switch s { + case schemas.DocumentVersionInfo_CloudProviders: + return deserializeCloudProviderList(d, schemas.DocumentVersionInfo_CloudProviders, &v.CloudProviders) case schemas.DocumentVersionInfo_CreatedDate: v.CreatedDate = new(time.Time) return d.ReadTime(schemas.DocumentVersionInfo_CreatedDate, v.CreatedDate) @@ -6245,6 +6350,136 @@ func (v *FailureDetails) Deserialize(d smithy.ShapeDeserializer) error { }) } +// The access details and targets for connecting to a Google Cloud Platform (GCP) +// environment, including the workload identity pool provider and service account +// used for authentication and the projects to target. +type GcpConfiguration struct { + + // The email address of the GCP service account used for authentication. + // + // This member is required. + ServiceAccountEmail *string + + // The full resource name of the GCP workload identity pool provider used for + // authentication. + // + // This member is required. + WorkloadIdentityPoolProvider *string + + // The ID of the GCP organization. + OrganizationId *string + + // The target GCP projects for the cloud connector. + Targets GcpConfigurationTargets + + noSmithyDocumentSerde +} + +func (v *GcpConfiguration) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GcpConfiguration) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GcpConfiguration) SerializeMembers(s smithy.ShapeSerializer) { + if v.OrganizationId != nil { + s.WriteString(schemas.GcpConfiguration_OrganizationId, *v.OrganizationId) + } + if v.ServiceAccountEmail != nil { + s.WriteString(schemas.GcpConfiguration_ServiceAccountEmail, *v.ServiceAccountEmail) + } + if v.Targets != nil { + serializeGcpConfigurationTargets(s, schemas.GcpConfiguration_Targets, v.Targets) + } + if v.WorkloadIdentityPoolProvider != nil { + s.WriteString(schemas.GcpConfiguration_WorkloadIdentityPoolProvider, *v.WorkloadIdentityPoolProvider) + } +} +func (v *GcpConfiguration) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.GcpConfiguration, func(s *smithy.Schema) error { + switch s { + case schemas.GcpConfiguration_OrganizationId: + v.OrganizationId = new(string) + return d.ReadString(schemas.GcpConfiguration_OrganizationId, v.OrganizationId) + case schemas.GcpConfiguration_ServiceAccountEmail: + v.ServiceAccountEmail = new(string) + return d.ReadString(schemas.GcpConfiguration_ServiceAccountEmail, v.ServiceAccountEmail) + case schemas.GcpConfiguration_Targets: + return deserializeGcpConfigurationTargets(d, schemas.GcpConfiguration_Targets, &v.Targets) + case schemas.GcpConfiguration_WorkloadIdentityPoolProvider: + v.WorkloadIdentityPoolProvider = new(string) + return d.ReadString(schemas.GcpConfiguration_WorkloadIdentityPoolProvider, v.WorkloadIdentityPoolProvider) + } + return nil + }) +} + +// The target resources in the GCP environment. +// +// The following types satisfy this interface: +// +// GcpConfigurationTargetsMemberProjects +type GcpConfigurationTargets interface { + isGcpConfigurationTargets() +} + +// A list of GCP projects to target. +type GcpConfigurationTargetsMemberProjects struct { + Value []GcpProject + + noSmithyDocumentSerde +} + +func (*GcpConfigurationTargetsMemberProjects) isGcpConfigurationTargets() {} +func (v *GcpConfigurationTargetsMemberProjects) Serialize(s smithy.ShapeSerializer) { + serializeGcpProjectList(s, schemas.GcpConfigurationTargets_Projects, v.Value) +} +func (v *GcpConfigurationTargetsMemberProjects) Deserialize(d smithy.ShapeDeserializer) error { + return deserializeGcpProjectList(d, schemas.GcpConfigurationTargets_Projects, &v.Value) +} + +// Information about a GCP project targeted by the cloud connector. +type GcpProject struct { + + // The ID of the GCP project. + // + // This member is required. + ProjectId *string + + // The display name of the GCP project. + ProjectDisplayName *string + + noSmithyDocumentSerde +} + +func (v *GcpProject) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.GcpProject) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *GcpProject) SerializeMembers(s smithy.ShapeSerializer) { + if v.ProjectDisplayName != nil { + s.WriteString(schemas.GcpProject_ProjectDisplayName, *v.ProjectDisplayName) + } + if v.ProjectId != nil { + s.WriteString(schemas.GcpProject_ProjectId, *v.ProjectId) + } +} +func (v *GcpProject) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.GcpProject, func(s *smithy.Schema) error { + switch s { + case schemas.GcpProject_ProjectDisplayName: + v.ProjectDisplayName = new(string) + return d.ReadString(schemas.GcpProject_ProjectDisplayName, v.ProjectDisplayName) + case schemas.GcpProject_ProjectId: + v.ProjectId = new(string) + return d.ReadString(schemas.GcpProject_ProjectId, v.ProjectId) + } + return nil + }) +} + // A resource policy helps you to define the IAM entity (for example, an Amazon // Web Services account) that can manage your Systems Manager resources. Currently, // OpsItemGroup is the only resource that supports Systems Manager resource @@ -6655,7 +6890,9 @@ type InstanceInfo struct { SourceLocation *string // The type of the source resource. For IoT Greengrass devices, SourceType is - // AWS::IoT::Thing . + // AWS::IoT::Thing . For Azure Virtual Machines, SourceType is + // Microsoft.Compute/virtualMachines . For Google Cloud Platform (GCP) Compute + // Engine Virtual Machines, SourceType is compute.googleapis.com/Instance . SourceType SourceType noSmithyDocumentSerde @@ -6888,7 +7125,8 @@ type InstanceInformation struct { // The type of the source resource. For IoT Greengrass devices, SourceType is // AWS::IoT::Thing . For Azure Virtual Machines, SourceType is - // Microsoft.Compute/virtualMachines . + // Microsoft.Compute/virtualMachines . For Google Cloud Platform (GCP) Compute + // Engine Virtual Machines, SourceType is compute.googleapis.com/Instance . SourceType SourceType noSmithyDocumentSerde @@ -7131,6 +7369,7 @@ type InstanceInformationStringFilter struct { // // - Valid values for the SourceType filter key: AWS::EC2::Instance | // AWS::SSM::ManagedInstance | AWS::IoT::Thing | Microsoft.Compute/virtualMachines + // | compute.googleapis.com/Instance // // - Valid tag examples: Key=tag-key,Values=Purpose | Key=tag:Purpose,Values=Test // . @@ -7653,7 +7892,8 @@ type InstanceProperty struct { SourceLocation *string // The type of the source resource. Valid values: AWS::EC2::Instance | - // AWS::SSM::ManagedInstance | AWS::IoT::Thing | Microsoft.Compute/virtualMachines . + // AWS::SSM::ManagedInstance | AWS::IoT::Thing | Microsoft.Compute/virtualMachines + // | compute.googleapis.com/Instance . SourceType SourceType noSmithyDocumentSerde @@ -11852,8 +12092,9 @@ type Parameter struct { // The Amazon Resource Name (ARN) of the parameter. ARN *string - // The data type of the parameter, such as text or aws:ec2:image . The default is - // text . + // The data type of the parameter, such as text , aws:ec2:image , or json . The + // default is text . For the list of data types, see the DataType parameter of + // PutParameter . DataType *string // Date the parameter was last changed or updated and the parameter version was @@ -11975,8 +12216,9 @@ type ParameterHistory struct { // a-zA-Z0-9_.- AllowedPattern *string - // The data type of the parameter, such as text or aws:ec2:image . The default is - // text . + // The data type of the parameter, such as text , aws:ec2:image , or json . The + // default is text . For the list of data types, see the DataType parameter of + // PutParameter . DataType *string // Information about the parameter. @@ -12186,8 +12428,9 @@ type ParameterMetadata struct { // a-zA-Z0-9_.- AllowedPattern *string - // The data type of the parameter, such as text or aws:ec2:image . The default is - // text . + // The data type of the parameter, such as text , aws:ec2:image , or json . The + // default is text . For the list of data types, see the DataType parameter of + // PutParameter . DataType *string // Description of the parameter actions. @@ -15391,6 +15634,35 @@ func (v *Tag) Deserialize(d smithy.ShapeDeserializer) error { // // - Key=InstanceIds,Values=* // +// - Automation only, to target Microsoft Azure or Google Cloud Platform (GCP) +// resources: +// +// - Key=CloudConnector,Values=cloud-connector-id +// +// - +// Key=CloudConnector,Values={"CloudConnectorId":"cloud-connector-id","SsmManagedNodeFilter":"MANAGED","CloudProviderRegions":["eastus"]} +// +// Instead of CloudConnector , you can use AzureCloudConnector or GcpCloudConnector +// +// for a cloud connector to that provider. You must specify exactly one value. A +// cloud connector ID alone targets every running virtual machine (VM) in the cloud +// connector's scope. In the JSON value, CloudConnectorId is required, and the +// following optional keys narrow that scope: +// +// - For both providers: SsmManagedNodeFilter , which filters VMs by whether they +// are Systems Manager managed nodes. +// +// - For Microsoft Azure: CloudProviderRegions , AzureSubscriptions , +// AzureResourceGroups , AzureTag , AzureVmPowerStates , and AzureResourceType . +// +// - For GCP: Zones , GcpProjects , IncludesLabels , ExcludesLabels , +// GcpInstanceStates , OsPolicyComplianceFilter , OsPolicyOrchestratorName , +// OsPolicyOrchestratorId , and GcpAssetType . +// +// For descriptions, valid values, and defaults of these keys, see [Cloud Connector target reference]in the Amazon +// +// Web Services Systems Manager User Guide. +// // For Run Command and Maintenance Windows: // // - Key=InstanceIds,Values=instance-id-1,instance-id-2,instance-id-3 @@ -15414,12 +15686,25 @@ func (v *Tag) Deserialize(d smithy.ShapeDeserializer) error { // // - Key=InstanceIds,Values=* // +// - For associations that run an Automation runbook, to target Microsoft Azure +// or Google Cloud Platform (GCP) resources: +// +// - Key=CloudConnector,Values=cloud-connector-id +// +// - +// Key=CloudConnector,Values={"CloudConnectorId":"cloud-connector-id","SsmManagedNodeFilter":"UNMANAGED"} +// +// Supported JSON keys: CloudConnectorId (required), SsmManagedNodeFilter , and +// +// CloudProviderRegions . +// // For more information about how to send commands that target managed nodes using // Key,Value parameters, see [Targeting multiple managed nodes] in the Amazon Web Services Systems Manager User // Guide. // // [Targeting multiple managed nodes]: https://docs.aws.amazon.com/systems-manager/latest/userguide/send-commands-multiple.html#send-commands-targeting // [Registering maintenance window tasks without targets]: https://docs.aws.amazon.com/systems-manager/latest/userguide/maintenance-windows-targetless-tasks.html +// [Cloud Connector target reference]: https://docs.aws.amazon.com/systems-manager/latest/userguide/automation-cloud-connector-target.html type Target struct { // User-defined criteria for sending commands that target managed nodes that meet @@ -15640,6 +15925,69 @@ func (v *TargetPreview) Deserialize(d smithy.ShapeDeserializer) error { }) } +// The number of targets in a rate control execution, and the status of the child +// executions that it started for those targets. +type TargetsSummary struct { + + // The number of child executions that finished, whether they succeeded or failed. + CompletedCount int32 + + // The number of child executions that failed, timed out, or were canceled. + FailedCount int32 + + // The number of child executions that started. + StartedCount int32 + + // The number of child executions that succeeded. + SuccessfulCount int32 + + // The total number of targets in the rate control execution. + TotalCount int32 + + noSmithyDocumentSerde +} + +func (v *TargetsSummary) Serialize(s smithy.ShapeSerializer) { + s.WriteStruct(schemas.TargetsSummary) + v.SerializeMembers(s) + s.CloseStruct() +} + +func (v *TargetsSummary) SerializeMembers(s smithy.ShapeSerializer) { + if v.CompletedCount != 0 { + s.WriteInt32(schemas.TargetsSummary_CompletedCount, v.CompletedCount) + } + if v.FailedCount != 0 { + s.WriteInt32(schemas.TargetsSummary_FailedCount, v.FailedCount) + } + if v.StartedCount != 0 { + s.WriteInt32(schemas.TargetsSummary_StartedCount, v.StartedCount) + } + if v.SuccessfulCount != 0 { + s.WriteInt32(schemas.TargetsSummary_SuccessfulCount, v.SuccessfulCount) + } + if v.TotalCount != 0 { + s.WriteInt32(schemas.TargetsSummary_TotalCount, v.TotalCount) + } +} +func (v *TargetsSummary) Deserialize(d smithy.ShapeDeserializer) error { + return smithy.ReadStruct(d, schemas.TargetsSummary, func(s *smithy.Schema) error { + switch s { + case schemas.TargetsSummary_CompletedCount: + return d.ReadInt32(schemas.TargetsSummary_CompletedCount, &v.CompletedCount) + case schemas.TargetsSummary_FailedCount: + return d.ReadInt32(schemas.TargetsSummary_FailedCount, &v.FailedCount) + case schemas.TargetsSummary_StartedCount: + return d.ReadInt32(schemas.TargetsSummary_StartedCount, &v.StartedCount) + case schemas.TargetsSummary_SuccessfulCount: + return d.ReadInt32(schemas.TargetsSummary_SuccessfulCount, &v.SuccessfulCount) + case schemas.TargetsSummary_TotalCount: + return d.ReadInt32(schemas.TargetsSummary_TotalCount, &v.TotalCount) + } + return nil + }) +} + // A validation finding from a cloud connector validation check. type ValidationFinding struct { @@ -15776,4 +16124,5 @@ func (*UnknownUnionMember) isCloudConnectorConfiguration() {} func (*UnknownUnionMember) isConfigurationTargets() {} func (*UnknownUnionMember) isExecutionInputs() {} func (*UnknownUnionMember) isExecutionPreview() {} +func (*UnknownUnionMember) isGcpConfigurationTargets() {} func (*UnknownUnionMember) isNodeType() {} diff --git a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/validators.go b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/validators.go index e60cdef7c..9ea54ff84 100644 --- a/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/validators.go +++ b/vendor/github.com/aws/aws-sdk-go-v2/service/ssm/validators.go @@ -2050,6 +2050,26 @@ func (m *validateOpPutResourcePolicy) HandleInitialize(ctx context.Context, in m return next.HandleInitialize(ctx, in) } +type validateOpRegisterDefaultHostManagementConfiguration struct { +} + +func (*validateOpRegisterDefaultHostManagementConfiguration) ID() string { + return "OperationInputValidation" +} + +func (m *validateOpRegisterDefaultHostManagementConfiguration) HandleInitialize(ctx context.Context, in middleware.InitializeInput, next middleware.InitializeHandler) ( + out middleware.InitializeOutput, metadata middleware.Metadata, err error, +) { + input, ok := in.Parameters.(*RegisterDefaultHostManagementConfigurationInput) + if !ok { + return out, metadata, fmt.Errorf("unknown input parameters type %T", in.Parameters) + } + if err := validateOpRegisterDefaultHostManagementConfigurationInput(input); err != nil { + return out, metadata, err + } + return next.HandleInitialize(ctx, in) +} + type validateOpRegisterDefaultPatchBaseline struct { } @@ -3138,6 +3158,10 @@ func addOpPutResourcePolicyValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpPutResourcePolicy{}, middleware.After) } +func addOpRegisterDefaultHostManagementConfigurationValidationMiddleware(stack *middleware.Stack) error { + return stack.Initialize.Add(&validateOpRegisterDefaultHostManagementConfiguration{}, middleware.After) +} + func addOpRegisterDefaultPatchBaselineValidationMiddleware(stack *middleware.Stack) error { return stack.Initialize.Add(&validateOpRegisterDefaultPatchBaseline{}, middleware.After) } @@ -3599,6 +3623,11 @@ func validateCloudConnectorConfiguration(v types.CloudConnectorConfiguration) er invalidParams.AddNested("[AzureConfiguration]", err.(smithy.InvalidParamsError)) } + case *types.CloudConnectorConfigurationMemberGcpConfiguration: + if err := validateGcpConfiguration(&uv.Value); err != nil { + invalidParams.AddNested("[GcpConfiguration]", err.(smithy.InvalidParamsError)) + } + } if invalidParams.Len() > 0 { return invalidParams @@ -3854,6 +3883,80 @@ func validateExecutionInputs(v types.ExecutionInputs) error { } } +func validateGcpConfiguration(v *types.GcpConfiguration) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GcpConfiguration"} + if v.WorkloadIdentityPoolProvider == nil { + invalidParams.Add(smithy.NewErrParamRequired("WorkloadIdentityPoolProvider")) + } + if v.ServiceAccountEmail == nil { + invalidParams.Add(smithy.NewErrParamRequired("ServiceAccountEmail")) + } + if v.Targets != nil { + if err := validateGcpConfigurationTargets(v.Targets); err != nil { + invalidParams.AddNested("Targets", err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGcpConfigurationTargets(v types.GcpConfigurationTargets) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GcpConfigurationTargets"} + switch uv := v.(type) { + case *types.GcpConfigurationTargetsMemberProjects: + if err := validateGcpProjectList(uv.Value); err != nil { + invalidParams.AddNested("[Projects]", err.(smithy.InvalidParamsError)) + } + + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGcpProject(v *types.GcpProject) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GcpProject"} + if v.ProjectId == nil { + invalidParams.Add(smithy.NewErrParamRequired("ProjectId")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + +func validateGcpProjectList(v []types.GcpProject) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "GcpProjectList"} + for i := range v { + if err := validateGcpProject(&v[i]); err != nil { + invalidParams.AddNested(fmt.Sprintf("[%d]", i), err.(smithy.InvalidParamsError)) + } + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateInstanceInformationFilter(v *types.InstanceInformationFilter) error { if v == nil { return nil @@ -5253,9 +5356,6 @@ func validateOpCreateCloudConnectorInput(v *CreateCloudConnectorInput) error { invalidParams.AddNested("Configuration", err.(smithy.InvalidParamsError)) } } - if v.ConfigConnectorArn == nil { - invalidParams.Add(smithy.NewErrParamRequired("ConfigConnectorArn")) - } if v.Tags != nil { if err := validateTagList(v.Tags); err != nil { invalidParams.AddNested("Tags", err.(smithy.InvalidParamsError)) @@ -6971,6 +7071,21 @@ func validateOpPutResourcePolicyInput(v *PutResourcePolicyInput) error { } } +func validateOpRegisterDefaultHostManagementConfigurationInput(v *RegisterDefaultHostManagementConfigurationInput) error { + if v == nil { + return nil + } + invalidParams := smithy.InvalidParamsError{Context: "RegisterDefaultHostManagementConfigurationInput"} + if len(v.PermissionModel) == 0 { + invalidParams.Add(smithy.NewErrParamRequired("PermissionModel")) + } + if invalidParams.Len() > 0 { + return invalidParams + } else { + return nil + } +} + func validateOpRegisterDefaultPatchBaselineInput(v *RegisterDefaultPatchBaselineInput) error { if v == nil { return nil diff --git a/vendor/github.com/aws/smithy-go/CHANGELOG.md b/vendor/github.com/aws/smithy-go/CHANGELOG.md index 648e978e9..eb2c66315 100644 --- a/vendor/github.com/aws/smithy-go/CHANGELOG.md +++ b/vendor/github.com/aws/smithy-go/CHANGELOG.md @@ -1,3 +1,26 @@ +# Release (2026-11-24) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/smithy-go`: v1.28.10 + * **Bug Fix**: Reduce JSON blob deserialization CPU time and allocations by decoding unescaped base64 directly from the input. + * **Bug Fix**: Return an error when encoding an event stream message too long for its 32-bit length field instead of writing a truncated length. + * **Bug Fix**: Validate event stream message prelude lengths when decoding. + +# Release (2026-11-09) + +## General Highlights +* **Dependency Update**: Updated to the latest SDK module versions + +## Module Highlights +* `github.com/aws/smithy-go`: v1.28.9 + * **Bug Fix**: Fix schema serde serializing struct members marked with the SDK-internal NoSerialize trait. + * **Bug Fix**: Fix unions inside lists and maps being serialized with the wrong element names or keys under schema serde for awsQuery and XML protocols. +* `github.com/aws/smithy-go/aws-http-auth`: [v1.2.2](aws-http-auth/CHANGELOG.md#v122-2026-11-09) + * **Bug Fix**: Sort canonical query parameters after URI-encoding them, as required by SigV4. + # Release (2026-11-03) ## General Highlights diff --git a/vendor/github.com/aws/smithy-go/eventstream/encode.go b/vendor/github.com/aws/smithy-go/eventstream/encode.go index f2e37c8b3..269464257 100644 --- a/vendor/github.com/aws/smithy-go/eventstream/encode.go +++ b/vendor/github.com/aws/smithy-go/eventstream/encode.go @@ -61,6 +61,10 @@ func (e *Encoder) Encode(w io.Writer, msg Message) (err error) { return err } + if err = validateMessageLen(uint64(e.headersBuf.Len()), uint64(len(msg.Payload))); err != nil { + return err + } + crc := crc32.New(crc32IEEETable) hashWriter := io.MultiWriter(writer, crc) @@ -111,6 +115,23 @@ func logMessageEncode(logger logging.Logger, msgBuf *bytes.Buffer, msg Message, fmt.Fprintf(w, "Raw message:\n%s\n", hex.Dump(msgBuf.Bytes())) } +// validateMessageLen returns an error if a message with the given headers and +// payload lengths would be longer than maxMsgLen. The sum is computed in 64 +// bits so it cannot wrap the way the prelude's 32-bit length field would. +func validateMessageLen(headersLen, payloadLen uint64) error { + if total := minMsgLen + headersLen + payloadLen; total > maxMsgLen { + // Convert through a variable: int(maxMsgLen) would fail to compile on + // 32-bit systems, where the constant overflows int. + maxLen := uint64(maxMsgLen) + return LengthError{ + Part: "message", + Want: int(maxLen), + Have: int(total), + } + } + return nil +} + func encodePrelude(w io.Writer, crc hash.Hash32, headersLen, payloadLen uint32) error { p := messagePrelude{ Length: minMsgLen + headersLen + payloadLen, diff --git a/vendor/github.com/aws/smithy-go/eventstream/message.go b/vendor/github.com/aws/smithy-go/eventstream/message.go index 1a77654f7..e381d9166 100644 --- a/vendor/github.com/aws/smithy-go/eventstream/message.go +++ b/vendor/github.com/aws/smithy-go/eventstream/message.go @@ -4,6 +4,7 @@ import ( "bytes" "encoding/binary" "hash/crc32" + "math" ) const preludeLen = 8 @@ -11,6 +12,11 @@ const preludeCRCLen = 4 const msgCRCLen = 4 const minMsgLen = preludeLen + preludeCRCLen + msgCRCLen +// maxMsgLen is the largest total message length that the prelude's 32-bit +// length field can hold. It is a limit of the wire format, not a size policy; +// headers and payload together can be at most maxMsgLen-minMsgLen bytes. +const maxMsgLen = math.MaxUint32 + var crc32IEEETable = crc32.MakeTable(crc32.IEEE) // A Message provides the eventstream message representation. @@ -78,14 +84,25 @@ func (p messagePrelude) PayloadLen() uint32 { return p.Length - p.HeadersLen - minMsgLen } +// ValidateLens checks that the prelude's total and headers lengths are +// consistent before they are used to read the rest of the message. Without +// these checks PayloadLen would underflow for a total length below +// HeadersLen+minMsgLen. func (p messagePrelude) ValidateLens() error { - if p.Length == 0 { + if p.Length < minMsgLen { return LengthError{ Part: "message prelude", Want: minMsgLen, Have: int(p.Length), } } + if p.HeadersLen > p.Length-minMsgLen { + return LengthError{ + Part: "message headers", + Want: int(p.Length - minMsgLen), + Have: int(p.HeadersLen), + } + } return nil } diff --git a/vendor/github.com/aws/smithy-go/go_module_metadata.go b/vendor/github.com/aws/smithy-go/go_module_metadata.go index f3cfc2703..5ccdf5bb7 100644 --- a/vendor/github.com/aws/smithy-go/go_module_metadata.go +++ b/vendor/github.com/aws/smithy-go/go_module_metadata.go @@ -3,4 +3,4 @@ package smithy // goModuleVersion is the tagged release for this module -const goModuleVersion = "1.28.8" +const goModuleVersion = "1.28.10" diff --git a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go index 47e9561b3..98ca74a7c 100644 --- a/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go +++ b/vendor/github.com/aws/smithy-go/transport/http/protocol/internal/json/shape_deserializer.go @@ -355,12 +355,18 @@ func (d *ShapeDeserializer) ReadBlob(s *smithy.Schema, v *[]byte) error { return fmt.Errorf("expected string, got %s", tok) } - sv, err := unquote(tok) - if err != nil { - return err + encoded := tok[1 : len(tok)-1] + // The parser already checked for escapes. Unescaped base64 can be + // decoded without another scan or a temporary string copy. + if d.p.escaped { + var ok bool + encoded, ok = stdlib.UnquoteBytes(tok) + if !ok { + return fmt.Errorf("cannot unquote %s", tok) + } } - b, err := base64.StdEncoding.DecodeString(sv) + b, err := base64.StdEncoding.AppendDecode([]byte{}, encoded) if err != nil { return fmt.Errorf("decode base64 blob: %w", err) } diff --git a/vendor/modules.txt b/vendor/modules.txt index 21008deb2..ec6d53e27 100644 --- a/vendor/modules.txt +++ b/vendor/modules.txt @@ -1,7 +1,7 @@ # github.com/Masterminds/semver/v3 v3.4.0 ## explicit; go 1.21 github.com/Masterminds/semver/v3 -# github.com/aws/aws-sdk-go-v2 v1.47.7 +# github.com/aws/aws-sdk-go-v2 v1.48.1 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/aws github.com/aws/aws-sdk-go-v2/aws/defaults @@ -45,10 +45,10 @@ github.com/aws/aws-sdk-go-v2/credentials/stscreds ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/feature/ec2/imds github.com/aws/aws-sdk-go-v2/feature/ec2/imds/internal/config -# github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.10 +# github.com/aws/aws-sdk-go-v2/internal/configsources v1.5.13 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/internal/configsources -# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.10 +# github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 v2.8.13 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/internal/endpoints/v2 # github.com/aws/aws-sdk-go-v2/internal/v4a v1.5.8 @@ -78,7 +78,7 @@ github.com/aws/aws-sdk-go-v2/service/signin github.com/aws/aws-sdk-go-v2/service/signin/internal/endpoints github.com/aws/aws-sdk-go-v2/service/signin/schemas github.com/aws/aws-sdk-go-v2/service/signin/types -# github.com/aws/aws-sdk-go-v2/service/ssm v1.81.2 +# github.com/aws/aws-sdk-go-v2/service/ssm v1.84.1 ## explicit; go 1.24 github.com/aws/aws-sdk-go-v2/service/ssm github.com/aws/aws-sdk-go-v2/service/ssm/internal/endpoints @@ -101,7 +101,7 @@ github.com/aws/aws-sdk-go-v2/service/ssooidc/types github.com/aws/aws-sdk-go-v2/service/sts github.com/aws/aws-sdk-go-v2/service/sts/internal/endpoints github.com/aws/aws-sdk-go-v2/service/sts/types -# github.com/aws/smithy-go v1.28.8 +# github.com/aws/smithy-go v1.28.10 ## explicit; go 1.24 github.com/aws/smithy-go github.com/aws/smithy-go/auth