-
Notifications
You must be signed in to change notification settings - Fork 713
Open
Labels
bugThis issue is a bug.This issue is a bug.service-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.workaround-available
Description
Acknowledgements
- I have searched (https://github.com/aws/aws-sdk/issues?q=is%3Aissue) for past instances of this issue
- I have verified all of my SDK modules are up-to-date (you can perform a bulk update with
go get -u github.com/aws/aws-sdk-go-v2/...
)
Describe the bug
The DMS type EncryptionModeValue has values which are lowercase (and use -
) and this appears to invalid when creating an endpoint using S3Settings.EncryptionMode.
Resulting error message
operation error Database Migration Service: CreateEndpoint, https response error StatusCode: 400, RequestID: <id>, api error InvalidParameterCombinationException: Only SSE_S3 or SSE_KMS encryption mode supported. 'sse-s3' is not supported"
Regression Issue
- Select this option if this issue appears to be a regression.
Expected Behavior
The enums for EncryptionModeValue
should be accepted when being used for CreateEndpointInput.S3Settings.EncryptionMode
.
Current Behavior
Using the given type results in the following error
operation error Database Migration Service: CreateEndpoint, https response error StatusCode: 400, RequestID: <id>, api error InvalidParameterCombinationException: Only SSE_S3 or SSE_KMS encryption mode supported. 'sse-s3' is not supported"
Reproduction Steps
Example code
import (
"context"
"fmt"
awsconfig "github.com/aws/aws-sdk-go-v2/config"
dms "github.com/aws/aws-sdk-go-v2/service/databasemigrationservice"
dmsTypes "github.com/aws/aws-sdk-go-v2/service/databasemigrationservice/types"
)
func main() {
ctx := context.Background()
awscfg, _ := awsconfig.LoadDefaultConfig(ctx)
dmsClient := dms.NewFromConfig(ctx)
_, err := dmsClient.CreateEndpoint(ctx, &dms.CreateEndpointInput{
// other fields ...
S3Settings: &dmsTypes.S3Settings{
// other fields ...
EncryptionMode: dmsTypes.EncryptionModeValueSseS3,
},
})
if err != nil {
fmt.Println(err)
}
}
Possible Solution
No response
Additional Information/Context
No response
AWS Go SDK V2 Module Versions Used
github.com/aws/aws-sdk-go-v2/service/[email protected] github.com/aws/[email protected]
github.com/aws/aws-sdk-go-v2/service/[email protected] github.com/aws/aws-sdk-go-v2/internal/[email protected]
github.com/aws/aws-sdk-go-v2/service/[email protected] github.com/aws/aws-sdk-go-v2/internal/endpoints/[email protected]
github.com/aws/aws-sdk-go-v2/service/[email protected] github.com/aws/[email protected]
github.com/aws/aws-sdk-go-v2/service/[email protected] [email protected]
Compiler and Version used
go version go1.24.4 darwin/arm64
Operating System and version
macOS Sonorma 14.5
Metadata
Metadata
Assignees
Labels
bugThis issue is a bug.This issue is a bug.service-apiThis issue is due to a problem in a service API, not the SDK implementation.This issue is due to a problem in a service API, not the SDK implementation.workaround-available