-
Notifications
You must be signed in to change notification settings - Fork 9.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #21174 from dsarrio/main
Update aws_dms_endpoint ressource to support new engines
- Loading branch information
Showing
3 changed files
with
166 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
```release-note:enhancement | ||
resource/aws_dms_endpoint: Added missing `engine_name` values for sources and/or targets | ||
``` | ||
|
||
```release-note:enhancement | ||
resource/aws_dms_endpoint: Add plan time validation for `mongodb_settings.auth_type`, `mongodb_settings.auth_mechanism`, `mongodb_settings.nesting_level` and `s3_settings.compression_type` arguments | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
package dms | ||
|
||
const ( | ||
EngineNameAurora = "aurora" | ||
EngineNameAuroraPostgresql = "aurora-postgresql" | ||
EngineNameAuroraPostgresqlServerless = "aurora-postgresql-serverless" | ||
EngineNameAuroraServerless = "aurora-serverless" | ||
EngineNameAzuredb = "azuredb" | ||
EngineNameDb2 = "db2" | ||
EngineNameDmsTransfer = "dms-transfer" | ||
EngineNameDocdb = "docdb" | ||
EngineNameDynamodb = "dynamodb" | ||
EngineNameElasticsearch = "elasticsearch" | ||
EngineNameKafka = "kafka" | ||
EngineNameKinesis = "kinesis" | ||
EngineNameMariadb = "mariadb" | ||
EngineNameMongodb = "mongodb" | ||
EngineNameMysql = "mysql" | ||
EngineNameNeptune = "neptune" | ||
EngineNameOpensearch = "opensearch" | ||
EngineNameOracle = "oracle" | ||
EngineNamePostgres = "postgres" | ||
EngineNameRedis = "redis" | ||
EngineNameRedshift = "redshift" | ||
EngineNameS3 = "s3" | ||
EngineNameSqlServer = "sqlserver" | ||
EngineNameSybase = "sybase" | ||
) | ||
|
||
func EngineName_Values() []string { | ||
return []string{ | ||
EngineNameAurora, | ||
EngineNameAuroraPostgresql, | ||
EngineNameAuroraPostgresqlServerless, | ||
EngineNameAuroraServerless, | ||
EngineNameAzuredb, | ||
EngineNameDb2, | ||
EngineNameDmsTransfer, | ||
EngineNameDocdb, | ||
EngineNameDynamodb, | ||
EngineNameElasticsearch, | ||
EngineNameKafka, | ||
EngineNameKinesis, | ||
EngineNameMariadb, | ||
EngineNameMongodb, | ||
EngineNameMysql, | ||
EngineNameNeptune, | ||
EngineNameOpensearch, | ||
EngineNameOracle, | ||
EngineNamePostgres, | ||
EngineNameRedis, | ||
EngineNameRedshift, | ||
EngineNameS3, | ||
EngineNameSqlServer, | ||
EngineNameSybase, | ||
} | ||
} | ||
|
||
const ( | ||
KafkaDefaultTopic = "kafka-default-topic" | ||
) | ||
|
||
// https://github.com/aws/aws-sdk-go/issues/2522. | ||
const ( | ||
MongoDbAuthMechanismValueDefault = "default" | ||
MongoDbAuthMechanismValueMongodbCr = "mongodb-cr" | ||
MongoDbAuthMechanismValueScramSha1 = "scram-sha-1" | ||
) | ||
|
||
func MongoDbAuthMechanismValue_Values() []string { | ||
return []string{ | ||
MongoDbAuthMechanismValueDefault, | ||
MongoDbAuthMechanismValueMongodbCr, | ||
MongoDbAuthMechanismValueScramSha1, | ||
} | ||
} | ||
|
||
const ( | ||
MongoDbAuthSourceAdmin = "admin" | ||
) | ||
|
||
const ( | ||
S3SettingsCompressionTypeGzip = "GZIP" | ||
S3SettingsCompressionTypeNone = "NONE" | ||
) | ||
|
||
func S3SettingsCompressionType_Values() []string { | ||
return []string{ | ||
S3SettingsCompressionTypeGzip, | ||
S3SettingsCompressionTypeNone, | ||
} | ||
} | ||
|
||
const ( | ||
S3SettingsEncryptionModeSseKms = "SSE_KMS" | ||
S3SettingsEncryptionModeSseS3 = "SSE_S3" | ||
) | ||
|
||
func S3SettingsEncryptionMode_Values() []string { | ||
return []string{ | ||
S3SettingsEncryptionModeSseKms, | ||
S3SettingsEncryptionModeSseS3, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters