Skip to content

DMS type mismatch between SDK and API results in error #3140

@comptonad

Description

@comptonad

Acknowledgements

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

No one assigned

    Labels

    bugThis issue is a bug.service-apiThis issue is due to a problem in a service API, not the SDK implementation.workaround-available

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions