Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/backup-compliance-policy/cmd/resource"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

func TestPolicyItemConversions(t *testing.T) {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/database-user/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/logger"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

var CreateRequiredFields = []string{constants.DatabaseName, constants.ProjectID, constants.Roles, constants.Username}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/aws"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/federated-settings-identity-provider/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/flex-cluster/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

const callBackSeconds = 10
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/flex-cluster/cmd/resource/share.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

var callbackContext = map[string]any{"callbackFlex": true}
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ require (
github.com/tidwall/pretty v1.2.1
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0
go.mongodb.org/atlas-sdk/v20231115014 v20231115014.0.0
go.mongodb.org/atlas-sdk/v20250312012 v20250312012.1.0
go.mongodb.org/atlas-sdk/v20250312013 v20250312013.1.0
)

require (
Expand Down
4 changes: 2 additions & 2 deletions cfn-resources/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ go.mongodb.org/atlas v0.37.0 h1:zQnO1o5+bVP9IotpAYpres4UjMD2F4nwNEFTZhNL4ck=
go.mongodb.org/atlas v0.37.0/go.mod h1:DJYtM+vsEpPEMSkQzJnFHrT0sP7ev6cseZc/GGjJYG8=
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0 h1:x6nnq2pUIP9mN4WLD4/EseBzV88OmSgexxYchPilgno=
go.mongodb.org/atlas-sdk/v20231115002 v20231115002.1.0/go.mod h1:el7cm23kEiiw72HAYimhNweKqp/ubHsNJk+Mk30yJhM=
go.mongodb.org/atlas-sdk/v20250312012 v20250312012.1.0 h1:JVibEdYbstK6t3E66WyQ+ph7V+e3/wmu1Ow7W3QsuNw=
go.mongodb.org/atlas-sdk/v20250312012 v20250312012.1.0/go.mod h1:c54UdbjLIV5YekABa3zRmcFyZB63Ox24BuksU8IHIuw=
go.mongodb.org/atlas-sdk/v20250312013 v20250312013.1.0 h1:PLlmXHXUw1Cu9KerLbUYWdFM6boxcL/f8T7UxCM0Phk=
go.mongodb.org/atlas-sdk/v20250312013 v20250312013.1.0/go.mod h1:dua7g/y3zGGBgnvMdXV2BjUVkRI4kJfGnYXMlje0Edc=
golang.org/x/oauth2 v0.34.0 h1:hqK/t4AKgbqWkdkcAeI8XLmbK+4m4G5YeQRrmiotGlw=
golang.org/x/oauth2 v0.34.0/go.mod h1:lzm5WQJQwKZ3nwavOZ3IS5Aulzxi68dUSgRHujetwEA=
golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/logger"
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

var RequiredFields = []string{constants.ProjectID}
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/organization/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"
"time"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
"net/http"
"strings"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/aws"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/resource-policy/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package resource_test
import (
"testing"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws/smithy-go/ptr"
"github.com/mongodb/mongodbatlas-cloudformation-resources/resource-policy/cmd/resource"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/resource-policy/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/search-deployment/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package resource

import "go.mongodb.org/atlas-sdk/v20250312012/admin"
import "go.mongodb.org/atlas-sdk/v20250312013/admin"

func NewCFNSearchDeployment(prevModel *Model, apiResp *admin.ApiSearchDeploymentResponse) Model {
respSpecs := apiResp.GetSpecs()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/search-deployment/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

type sdkToCFNModelTestCase struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/search-deployment/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"
"strings"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

func HandleStateTransition(connV2 admin.APIClient, currentModel *Model, targetState string) handler.ProgressEvent {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/mock"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312012/mockadmin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
"go.mongodb.org/atlas-sdk/v20250312013/mockadmin"
)

type stateTransitionTestCase struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/service-account/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package resource
import (
"sort"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"testing"
"time"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws/smithy-go/ptr"
"github.com/mongodb/mongodbatlas-cloudformation-resources/service-account/cmd/resource"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-connection/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
package resource

import (
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ package resource_test
import (
"testing"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws/smithy-go/ptr"
"github.com/mongodb/mongodbatlas-cloudformation-resources/stream-connection/cmd/resource"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-connection/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"net/http"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws/aws-sdk-go-v2/service/cloudformation/types"
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-processor/cmd/resource/callbacks.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"maps"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"

Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-processor/cmd/resource/handlers.go
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (
"fmt"
"time"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"

Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-processor/cmd/resource/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import (
"net/http"
"time"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"

Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-processor/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import (
"encoding/json"
"fmt"

"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

func assertJSONEqual(t *testing.T, expected, actual string) {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-workspace/cmd/resource/mappings.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

package resource

import "go.mongodb.org/atlas-sdk/v20250312012/admin"
import "go.mongodb.org/atlas-sdk/v20250312013/admin"

func NewStreamWorkspaceCreateReq(model *Model) *admin.StreamsTenant {
if model == nil {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import (

"github.com/mongodb/mongodbatlas-cloudformation-resources/stream-workspace/cmd/resource"
"github.com/stretchr/testify/assert"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

var (
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/stream-workspace/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/constants"
progress_events "github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

var CreateRequiredFields = []string{"WorkspaceName", constants.ProjectID, constants.DataProcessRegion}
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/test/e2e/cluster/cluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
"github.com/stretchr/testify/assert"
admin20231115014 "go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

type localTestContext struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/test/e2e/flex-cluster/flexcluster_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import (
"github.com/mongodb/mongodbatlas-cloudformation-resources/test/e2e/utility"
"github.com/stretchr/testify/assert"
admin20231115014 "go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

type localTestContext struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/test/e2e/utility/atlas_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import (
"github.com/mongodb-forks/digest"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util"
admin20231115014 "go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

type AtlasEnvOptions struct {
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/test/e2e/utility/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import (
"testing"

admin20231115014 "go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

cfn "github.com/aws/aws-sdk-go-v2/service/cloudformation"
)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ import (
log "github.com/mongodb/mongodbatlas-cloudformation-resources/util/logger"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/progressevent"
"github.com/mongodb/mongodbatlas-cloudformation-resources/util/validator"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"
)

var RequiredFields = []string{constants.IntegrationType, constants.ProjectID}
Expand Down
2 changes: 1 addition & 1 deletion cfn-resources/util/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import (

admin20231115002 "go.mongodb.org/atlas-sdk/v20231115002/admin"
admin20231115014 "go.mongodb.org/atlas-sdk/v20231115014/admin"
"go.mongodb.org/atlas-sdk/v20250312012/admin"
"go.mongodb.org/atlas-sdk/v20250312013/admin"

"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/handler"
"github.com/aws-cloudformation/cloudformation-cli-go-plugin/cfn/logging"
Expand Down
Loading