diff --git a/.pulumi-java-gen.version b/.pulumi-java-gen.version index 142464bf..d33c3a21 100644 --- a/.pulumi-java-gen.version +++ b/.pulumi-java-gen.version @@ -1 +1 @@ -0.11.0 \ No newline at end of file +0.12.0 \ No newline at end of file diff --git a/provider/cmd/pulumi-resource-mongodbatlas/schema.json b/provider/cmd/pulumi-resource-mongodbatlas/schema.json index b37cf189..a29902a0 100644 --- a/provider/cmd/pulumi-resource-mongodbatlas/schema.json +++ b/provider/cmd/pulumi-resource-mongodbatlas/schema.json @@ -2359,8 +2359,7 @@ "description": "Amazon Resource Name (ARN) of the user that the Federated Database Instance assumes when accessing S3 Bucket data stores.\n" }, "roleId": { - "type": "string", - "description": "Unique identifier of the role that the data lake can use to access the data stores.\n" + "type": "string" }, "testS3Bucket": { "type": "string" @@ -2961,7 +2960,8 @@ }, "serviceAttachmentName": { "type": "string", - "description": "Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint.\n" + "description": "Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint.\n", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0." }, "status": { "type": "string", @@ -6125,7 +6125,8 @@ }, "createdAt": { "type": "string", - "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n" + "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0." }, "deliveryType": { "type": "string", @@ -14266,7 +14267,8 @@ }, "createdAt": { "type": "string", - "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n" + "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0." }, "deliveryTypeConfig": { "$ref": "#/types/mongodbatlas:index/CloudBackupSnapshotRestoreJobDeliveryTypeConfig:CloudBackupSnapshotRestoreJobDeliveryTypeConfig", @@ -14360,7 +14362,8 @@ }, "createdAt": { "type": "string", - "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n" + "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0." }, "deliveryTypeConfig": { "$ref": "#/types/mongodbatlas:index/CloudBackupSnapshotRestoreJobDeliveryTypeConfig:CloudBackupSnapshotRestoreJobDeliveryTypeConfig", @@ -16079,7 +16082,7 @@ } }, "mongodbatlas:index/federatedDatabaseInstance:FederatedDatabaseInstance": { - "description": "`mongodbatlas.FederatedDatabaseInstance` provides a Federated Database Instance resource.\n\n\u003e **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation.\n\n## Example Usage\n\n### S With MongoDB Atlas Cluster As Storage Database\n\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.FederatedDatabaseInstance(\"test\", {\n projectId: \"PROJECT ID\",\n name: \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n storageDatabases: [{\n name: \"VirtualDatabase0\",\n collections: [{\n name: \"NAME OF THE COLLECTION\",\n dataSources: [{\n collection: \"COLLECTION IN THE CLUSTER\",\n database: \"DB IN THE CLUSTER\",\n storeName: \"CLUSTER NAME\",\n }],\n }],\n }],\n storageStores: [{\n name: \"STORE 1 NAME\",\n clusterName: \"CLUSTER NAME\",\n projectId: \"PROJECT ID\",\n provider: \"atlas\",\n readPreference: {\n mode: \"secondary\",\n },\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.FederatedDatabaseInstance(\"test\",\n project_id=\"PROJECT ID\",\n name=\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n storage_databases=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs(\n name=\"VirtualDatabase0\",\n collections=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs(\n name=\"NAME OF THE COLLECTION\",\n data_sources=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs(\n collection=\"COLLECTION IN THE CLUSTER\",\n database=\"DB IN THE CLUSTER\",\n store_name=\"CLUSTER NAME\",\n )],\n )],\n )],\n storage_stores=[mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs(\n name=\"STORE 1 NAME\",\n cluster_name=\"CLUSTER NAME\",\n project_id=\"PROJECT ID\",\n provider=\"atlas\",\n read_preference=mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs(\n mode=\"secondary\",\n ),\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.FederatedDatabaseInstance(\"test\", new()\n {\n ProjectId = \"PROJECT ID\",\n Name = \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n StorageDatabases = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseArgs\n {\n Name = \"VirtualDatabase0\",\n Collections = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionArgs\n {\n Name = \"NAME OF THE COLLECTION\",\n DataSources = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs\n {\n Collection = \"COLLECTION IN THE CLUSTER\",\n Database = \"DB IN THE CLUSTER\",\n StoreName = \"CLUSTER NAME\",\n },\n },\n },\n },\n },\n },\n StorageStores = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreArgs\n {\n Name = \"STORE 1 NAME\",\n ClusterName = \"CLUSTER NAME\",\n ProjectId = \"PROJECT ID\",\n Provider = \"atlas\",\n ReadPreference = new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs\n {\n Mode = \"secondary\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewFederatedDatabaseInstance(ctx, \"test\", \u0026mongodbatlas.FederatedDatabaseInstanceArgs{\n\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\tName: pulumi.String(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\"),\n\t\t\tStorageDatabases: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs{\n\t\t\t\t\tName: pulumi.String(\"VirtualDatabase0\"),\n\t\t\t\t\tCollections: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArray{\n\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"NAME OF THE COLLECTION\"),\n\t\t\t\t\t\t\tDataSources: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArray{\n\t\t\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs{\n\t\t\t\t\t\t\t\t\tCollection: pulumi.String(\"COLLECTION IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tDatabase: pulumi.String(\"DB IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tStoreName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageStores: mongodbatlas.FederatedDatabaseInstanceStorageStoreArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs{\n\t\t\t\t\tName: pulumi.String(\"STORE 1 NAME\"),\n\t\t\t\t\tClusterName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\t\t\tProvider: pulumi.String(\"atlas\"),\n\t\t\t\t\tReadPreference: \u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs{\n\t\t\t\t\t\tMode: pulumi.String(\"secondary\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstance;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstanceArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageDatabaseArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new FederatedDatabaseInstance(\"test\", FederatedDatabaseInstanceArgs.builder()\n .projectId(\"PROJECT ID\")\n .name(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\")\n .storageDatabases(FederatedDatabaseInstanceStorageDatabaseArgs.builder()\n .name(\"VirtualDatabase0\")\n .collections(FederatedDatabaseInstanceStorageDatabaseCollectionArgs.builder()\n .name(\"NAME OF THE COLLECTION\")\n .dataSources(FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs.builder()\n .collection(\"COLLECTION IN THE CLUSTER\")\n .database(\"DB IN THE CLUSTER\")\n .storeName(\"CLUSTER NAME\")\n .build())\n .build())\n .build())\n .storageStores(FederatedDatabaseInstanceStorageStoreArgs.builder()\n .name(\"STORE 1 NAME\")\n .clusterName(\"CLUSTER NAME\")\n .projectId(\"PROJECT ID\")\n .provider(\"atlas\")\n .readPreference(FederatedDatabaseInstanceStorageStoreReadPreferenceArgs.builder()\n .mode(\"secondary\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:FederatedDatabaseInstance\n properties:\n projectId: PROJECT ID\n name: TENANT NAME OF THE FEDERATED DATABASE INSTANCE\n storageDatabases:\n - name: VirtualDatabase0\n collections:\n - name: NAME OF THE COLLECTION\n dataSources:\n - collection: COLLECTION IN THE CLUSTER\n database: DB IN THE CLUSTER\n storeName: CLUSTER NAME\n storageStores:\n - name: STORE 1 NAME\n clusterName: CLUSTER NAME\n projectId: PROJECT ID\n provider: atlas\n readPreference:\n mode: secondary\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### S With Amazon S3 Bucket As Storage Database\n\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.FederatedDatabaseInstance(\"test\", {\n projectId: \"PROJECT ID\",\n name: \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n cloudProviderConfig: {\n aws: {\n roleId: \"AWS ROLE ID\",\n testS3Bucket: \"S3 BUCKET NAME\",\n },\n },\n storageDatabases: [{\n name: \"VirtualDatabase0\",\n collections: [{\n name: \"NAME OF THE COLLECTION\",\n dataSources: [\n {\n collection: \"COLLECTION IN THE CLUSTER\",\n database: \"DB IN THE CLUSTER\",\n storeName: \"CLUSTER NAME\",\n },\n {\n storeName: \"S3 BUCKET NAME\",\n path: \"S3 BUCKET PATH\",\n },\n ],\n }],\n }],\n storageStores: [\n {\n name: \"STORE 1 NAME\",\n clusterName: \"CLUSTER NAME\",\n projectId: \"PROJECT ID\",\n provider: \"atlas\",\n readPreference: {\n mode: \"secondary\",\n },\n },\n {\n bucket: \"STORE 2 NAME\",\n delimiter: \"/\",\n name: \"S3 BUCKET NAME\",\n prefix: \"S3 BUCKET PREFIX\",\n provider: \"s3\",\n region: \"AWS REGION\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.FederatedDatabaseInstance(\"test\",\n project_id=\"PROJECT ID\",\n name=\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n cloud_provider_config=mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigArgs(\n aws=mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigAwsArgs(\n role_id=\"AWS ROLE ID\",\n test_s3_bucket=\"S3 BUCKET NAME\",\n ),\n ),\n storage_databases=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs(\n name=\"VirtualDatabase0\",\n collections=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs(\n name=\"NAME OF THE COLLECTION\",\n data_sources=[\n mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs(\n collection=\"COLLECTION IN THE CLUSTER\",\n database=\"DB IN THE CLUSTER\",\n store_name=\"CLUSTER NAME\",\n ),\n mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs(\n store_name=\"S3 BUCKET NAME\",\n path=\"S3 BUCKET PATH\",\n ),\n ],\n )],\n )],\n storage_stores=[\n mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs(\n name=\"STORE 1 NAME\",\n cluster_name=\"CLUSTER NAME\",\n project_id=\"PROJECT ID\",\n provider=\"atlas\",\n read_preference=mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs(\n mode=\"secondary\",\n ),\n ),\n mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs(\n bucket=\"STORE 2 NAME\",\n delimiter=\"/\",\n name=\"S3 BUCKET NAME\",\n prefix=\"S3 BUCKET PREFIX\",\n provider=\"s3\",\n region=\"AWS REGION\",\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.FederatedDatabaseInstance(\"test\", new()\n {\n ProjectId = \"PROJECT ID\",\n Name = \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n CloudProviderConfig = new Mongodbatlas.Inputs.FederatedDatabaseInstanceCloudProviderConfigArgs\n {\n Aws = new Mongodbatlas.Inputs.FederatedDatabaseInstanceCloudProviderConfigAwsArgs\n {\n RoleId = \"AWS ROLE ID\",\n TestS3Bucket = \"S3 BUCKET NAME\",\n },\n },\n StorageDatabases = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseArgs\n {\n Name = \"VirtualDatabase0\",\n Collections = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionArgs\n {\n Name = \"NAME OF THE COLLECTION\",\n DataSources = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs\n {\n Collection = \"COLLECTION IN THE CLUSTER\",\n Database = \"DB IN THE CLUSTER\",\n StoreName = \"CLUSTER NAME\",\n },\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs\n {\n StoreName = \"S3 BUCKET NAME\",\n Path = \"S3 BUCKET PATH\",\n },\n },\n },\n },\n },\n },\n StorageStores = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreArgs\n {\n Name = \"STORE 1 NAME\",\n ClusterName = \"CLUSTER NAME\",\n ProjectId = \"PROJECT ID\",\n Provider = \"atlas\",\n ReadPreference = new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs\n {\n Mode = \"secondary\",\n },\n },\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreArgs\n {\n Bucket = \"STORE 2 NAME\",\n Delimiter = \"/\",\n Name = \"S3 BUCKET NAME\",\n Prefix = \"S3 BUCKET PREFIX\",\n Provider = \"s3\",\n Region = \"AWS REGION\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewFederatedDatabaseInstance(ctx, \"test\", \u0026mongodbatlas.FederatedDatabaseInstanceArgs{\n\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\tName: pulumi.String(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\"),\n\t\t\tCloudProviderConfig: \u0026mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigArgs{\n\t\t\t\tAws: \u0026mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigAwsArgs{\n\t\t\t\t\tRoleId: pulumi.String(\"AWS ROLE ID\"),\n\t\t\t\t\tTestS3Bucket: pulumi.String(\"S3 BUCKET NAME\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageDatabases: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs{\n\t\t\t\t\tName: pulumi.String(\"VirtualDatabase0\"),\n\t\t\t\t\tCollections: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArray{\n\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"NAME OF THE COLLECTION\"),\n\t\t\t\t\t\t\tDataSources: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArray{\n\t\t\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs{\n\t\t\t\t\t\t\t\t\tCollection: pulumi.String(\"COLLECTION IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tDatabase: pulumi.String(\"DB IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tStoreName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs{\n\t\t\t\t\t\t\t\t\tStoreName: pulumi.String(\"S3 BUCKET NAME\"),\n\t\t\t\t\t\t\t\t\tPath: pulumi.String(\"S3 BUCKET PATH\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageStores: mongodbatlas.FederatedDatabaseInstanceStorageStoreArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs{\n\t\t\t\t\tName: pulumi.String(\"STORE 1 NAME\"),\n\t\t\t\t\tClusterName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\t\t\tProvider: pulumi.String(\"atlas\"),\n\t\t\t\t\tReadPreference: \u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs{\n\t\t\t\t\t\tMode: pulumi.String(\"secondary\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs{\n\t\t\t\t\tBucket: pulumi.String(\"STORE 2 NAME\"),\n\t\t\t\t\tDelimiter: pulumi.String(\"/\"),\n\t\t\t\t\tName: pulumi.String(\"S3 BUCKET NAME\"),\n\t\t\t\t\tPrefix: pulumi.String(\"S3 BUCKET PREFIX\"),\n\t\t\t\t\tProvider: pulumi.String(\"s3\"),\n\t\t\t\t\tRegion: pulumi.String(\"AWS REGION\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstance;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstanceArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceCloudProviderConfigArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceCloudProviderConfigAwsArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageDatabaseArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new FederatedDatabaseInstance(\"test\", FederatedDatabaseInstanceArgs.builder()\n .projectId(\"PROJECT ID\")\n .name(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\")\n .cloudProviderConfig(FederatedDatabaseInstanceCloudProviderConfigArgs.builder()\n .aws(FederatedDatabaseInstanceCloudProviderConfigAwsArgs.builder()\n .roleId(\"AWS ROLE ID\")\n .testS3Bucket(\"S3 BUCKET NAME\")\n .build())\n .build())\n .storageDatabases(FederatedDatabaseInstanceStorageDatabaseArgs.builder()\n .name(\"VirtualDatabase0\")\n .collections(FederatedDatabaseInstanceStorageDatabaseCollectionArgs.builder()\n .name(\"NAME OF THE COLLECTION\")\n .dataSources( \n FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs.builder()\n .collection(\"COLLECTION IN THE CLUSTER\")\n .database(\"DB IN THE CLUSTER\")\n .storeName(\"CLUSTER NAME\")\n .build(),\n FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs.builder()\n .storeName(\"S3 BUCKET NAME\")\n .path(\"S3 BUCKET PATH\")\n .build())\n .build())\n .build())\n .storageStores( \n FederatedDatabaseInstanceStorageStoreArgs.builder()\n .name(\"STORE 1 NAME\")\n .clusterName(\"CLUSTER NAME\")\n .projectId(\"PROJECT ID\")\n .provider(\"atlas\")\n .readPreference(FederatedDatabaseInstanceStorageStoreReadPreferenceArgs.builder()\n .mode(\"secondary\")\n .build())\n .build(),\n FederatedDatabaseInstanceStorageStoreArgs.builder()\n .bucket(\"STORE 2 NAME\")\n .delimiter(\"/\")\n .name(\"S3 BUCKET NAME\")\n .prefix(\"S3 BUCKET PREFIX\")\n .provider(\"s3\")\n .region(\"AWS REGION\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:FederatedDatabaseInstance\n properties:\n projectId: PROJECT ID\n name: TENANT NAME OF THE FEDERATED DATABASE INSTANCE\n cloudProviderConfig:\n aws:\n roleId: AWS ROLE ID\n testS3Bucket: S3 BUCKET NAME\n storageDatabases:\n - name: VirtualDatabase0\n collections:\n - name: NAME OF THE COLLECTION\n dataSources:\n - collection: COLLECTION IN THE CLUSTER\n database: DB IN THE CLUSTER\n storeName: CLUSTER NAME\n - storeName: S3 BUCKET NAME\n path: S3 BUCKET PATH\n storageStores:\n - name: STORE 1 NAME\n clusterName: CLUSTER NAME\n projectId: PROJECT ID\n provider: atlas\n readPreference:\n mode: secondary\n - bucket: STORE 2 NAME\n delimiter: /\n name: S3 BUCKET NAME\n prefix: S3 BUCKET PREFIX\n provider: s3\n region: AWS REGION\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n- The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g.\n\n```sh\n$ pulumi import mongodbatlas:index/federatedDatabaseInstance:FederatedDatabaseInstance mongodbatlas_federated_database_instance.example 1112222b3bf99403840e8934--test\n```\n\n- The Federated Database Instance can be imported using project ID, name of the instance and name of the AWS S3 bucket, in the format `project_id`--`name`--`aws_test_s3_bucket`, e.g.\n\n```sh\n$ pulumi import mongodbatlas:index/federatedDatabaseInstance:FederatedDatabaseInstance mongodbatlas_federated_database_instance.example 1112222b3bf99403840e8934--test--s3-test\n```\n\nSee [MongoDB Atlas API](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Data-Federation) Documentation for more information.\n\n", + "description": "`mongodbatlas.FederatedDatabaseInstance` provides a Federated Database Instance resource.\n\n\u003e **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation.\n\n## Example Usage\n\n### S With MongoDB Atlas Cluster As Storage Database\n\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.FederatedDatabaseInstance(\"test\", {\n projectId: \"PROJECT ID\",\n name: \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n storageDatabases: [{\n name: \"VirtualDatabase0\",\n collections: [{\n name: \"NAME OF THE COLLECTION\",\n dataSources: [{\n collection: \"COLLECTION IN THE CLUSTER\",\n database: \"DB IN THE CLUSTER\",\n storeName: \"CLUSTER NAME\",\n }],\n }],\n }],\n storageStores: [{\n name: \"STORE 1 NAME\",\n clusterName: \"CLUSTER NAME\",\n projectId: \"PROJECT ID\",\n provider: \"atlas\",\n readPreference: {\n mode: \"secondary\",\n },\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.FederatedDatabaseInstance(\"test\",\n project_id=\"PROJECT ID\",\n name=\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n storage_databases=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs(\n name=\"VirtualDatabase0\",\n collections=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs(\n name=\"NAME OF THE COLLECTION\",\n data_sources=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs(\n collection=\"COLLECTION IN THE CLUSTER\",\n database=\"DB IN THE CLUSTER\",\n store_name=\"CLUSTER NAME\",\n )],\n )],\n )],\n storage_stores=[mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs(\n name=\"STORE 1 NAME\",\n cluster_name=\"CLUSTER NAME\",\n project_id=\"PROJECT ID\",\n provider=\"atlas\",\n read_preference=mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs(\n mode=\"secondary\",\n ),\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.FederatedDatabaseInstance(\"test\", new()\n {\n ProjectId = \"PROJECT ID\",\n Name = \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n StorageDatabases = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseArgs\n {\n Name = \"VirtualDatabase0\",\n Collections = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionArgs\n {\n Name = \"NAME OF THE COLLECTION\",\n DataSources = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs\n {\n Collection = \"COLLECTION IN THE CLUSTER\",\n Database = \"DB IN THE CLUSTER\",\n StoreName = \"CLUSTER NAME\",\n },\n },\n },\n },\n },\n },\n StorageStores = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreArgs\n {\n Name = \"STORE 1 NAME\",\n ClusterName = \"CLUSTER NAME\",\n ProjectId = \"PROJECT ID\",\n Provider = \"atlas\",\n ReadPreference = new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs\n {\n Mode = \"secondary\",\n },\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewFederatedDatabaseInstance(ctx, \"test\", \u0026mongodbatlas.FederatedDatabaseInstanceArgs{\n\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\tName: pulumi.String(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\"),\n\t\t\tStorageDatabases: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs{\n\t\t\t\t\tName: pulumi.String(\"VirtualDatabase0\"),\n\t\t\t\t\tCollections: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArray{\n\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"NAME OF THE COLLECTION\"),\n\t\t\t\t\t\t\tDataSources: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArray{\n\t\t\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs{\n\t\t\t\t\t\t\t\t\tCollection: pulumi.String(\"COLLECTION IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tDatabase: pulumi.String(\"DB IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tStoreName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageStores: mongodbatlas.FederatedDatabaseInstanceStorageStoreArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs{\n\t\t\t\t\tName: pulumi.String(\"STORE 1 NAME\"),\n\t\t\t\t\tClusterName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\t\t\tProvider: pulumi.String(\"atlas\"),\n\t\t\t\t\tReadPreference: \u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs{\n\t\t\t\t\t\tMode: pulumi.String(\"secondary\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstance;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstanceArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageDatabaseArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new FederatedDatabaseInstance(\"test\", FederatedDatabaseInstanceArgs.builder()\n .projectId(\"PROJECT ID\")\n .name(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\")\n .storageDatabases(FederatedDatabaseInstanceStorageDatabaseArgs.builder()\n .name(\"VirtualDatabase0\")\n .collections(FederatedDatabaseInstanceStorageDatabaseCollectionArgs.builder()\n .name(\"NAME OF THE COLLECTION\")\n .dataSources(FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs.builder()\n .collection(\"COLLECTION IN THE CLUSTER\")\n .database(\"DB IN THE CLUSTER\")\n .storeName(\"CLUSTER NAME\")\n .build())\n .build())\n .build())\n .storageStores(FederatedDatabaseInstanceStorageStoreArgs.builder()\n .name(\"STORE 1 NAME\")\n .clusterName(\"CLUSTER NAME\")\n .projectId(\"PROJECT ID\")\n .provider(\"atlas\")\n .readPreference(FederatedDatabaseInstanceStorageStoreReadPreferenceArgs.builder()\n .mode(\"secondary\")\n .build())\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:FederatedDatabaseInstance\n properties:\n projectId: PROJECT ID\n name: TENANT NAME OF THE FEDERATED DATABASE INSTANCE\n storageDatabases:\n - name: VirtualDatabase0\n collections:\n - name: NAME OF THE COLLECTION\n dataSources:\n - collection: COLLECTION IN THE CLUSTER\n database: DB IN THE CLUSTER\n storeName: CLUSTER NAME\n storageStores:\n - name: STORE 1 NAME\n clusterName: CLUSTER NAME\n projectId: PROJECT ID\n provider: atlas\n readPreference:\n mode: secondary\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n\n### S With Amazon S3 Bucket As Storage Database\n\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.FederatedDatabaseInstance(\"test\", {\n projectId: \"PROJECT ID\",\n name: \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n cloudProviderConfig: {\n aws: {\n roleId: \"AWS ROLE ID\",\n testS3Bucket: \"S3 BUCKET NAME\",\n },\n },\n storageDatabases: [{\n name: \"VirtualDatabase0\",\n collections: [{\n name: \"NAME OF THE COLLECTION\",\n dataSources: [\n {\n collection: \"COLLECTION IN THE CLUSTER\",\n database: \"DB IN THE CLUSTER\",\n storeName: \"CLUSTER NAME\",\n },\n {\n storeName: \"S3 BUCKET NAME\",\n path: \"S3 BUCKET PATH\",\n },\n ],\n }],\n }],\n storageStores: [\n {\n name: \"STORE 1 NAME\",\n clusterName: \"CLUSTER NAME\",\n projectId: \"PROJECT ID\",\n provider: \"atlas\",\n readPreference: {\n mode: \"secondary\",\n },\n },\n {\n bucket: \"STORE 2 NAME\",\n delimiter: \"/\",\n name: \"S3 BUCKET NAME\",\n prefix: \"S3 BUCKET PREFIX\",\n provider: \"s3\",\n region: \"AWS REGION\",\n },\n ],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.FederatedDatabaseInstance(\"test\",\n project_id=\"PROJECT ID\",\n name=\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n cloud_provider_config=mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigArgs(\n aws=mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigAwsArgs(\n role_id=\"AWS ROLE ID\",\n test_s3_bucket=\"S3 BUCKET NAME\",\n ),\n ),\n storage_databases=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs(\n name=\"VirtualDatabase0\",\n collections=[mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs(\n name=\"NAME OF THE COLLECTION\",\n data_sources=[\n mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs(\n collection=\"COLLECTION IN THE CLUSTER\",\n database=\"DB IN THE CLUSTER\",\n store_name=\"CLUSTER NAME\",\n ),\n mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs(\n store_name=\"S3 BUCKET NAME\",\n path=\"S3 BUCKET PATH\",\n ),\n ],\n )],\n )],\n storage_stores=[\n mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs(\n name=\"STORE 1 NAME\",\n cluster_name=\"CLUSTER NAME\",\n project_id=\"PROJECT ID\",\n provider=\"atlas\",\n read_preference=mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs(\n mode=\"secondary\",\n ),\n ),\n mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs(\n bucket=\"STORE 2 NAME\",\n delimiter=\"/\",\n name=\"S3 BUCKET NAME\",\n prefix=\"S3 BUCKET PREFIX\",\n provider=\"s3\",\n region=\"AWS REGION\",\n ),\n ])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.FederatedDatabaseInstance(\"test\", new()\n {\n ProjectId = \"PROJECT ID\",\n Name = \"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\",\n CloudProviderConfig = new Mongodbatlas.Inputs.FederatedDatabaseInstanceCloudProviderConfigArgs\n {\n Aws = new Mongodbatlas.Inputs.FederatedDatabaseInstanceCloudProviderConfigAwsArgs\n {\n RoleId = \"AWS ROLE ID\",\n TestS3Bucket = \"S3 BUCKET NAME\",\n },\n },\n StorageDatabases = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseArgs\n {\n Name = \"VirtualDatabase0\",\n Collections = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionArgs\n {\n Name = \"NAME OF THE COLLECTION\",\n DataSources = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs\n {\n Collection = \"COLLECTION IN THE CLUSTER\",\n Database = \"DB IN THE CLUSTER\",\n StoreName = \"CLUSTER NAME\",\n },\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs\n {\n StoreName = \"S3 BUCKET NAME\",\n Path = \"S3 BUCKET PATH\",\n },\n },\n },\n },\n },\n },\n StorageStores = new[]\n {\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreArgs\n {\n Name = \"STORE 1 NAME\",\n ClusterName = \"CLUSTER NAME\",\n ProjectId = \"PROJECT ID\",\n Provider = \"atlas\",\n ReadPreference = new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs\n {\n Mode = \"secondary\",\n },\n },\n new Mongodbatlas.Inputs.FederatedDatabaseInstanceStorageStoreArgs\n {\n Bucket = \"STORE 2 NAME\",\n Delimiter = \"/\",\n Name = \"S3 BUCKET NAME\",\n Prefix = \"S3 BUCKET PREFIX\",\n Provider = \"s3\",\n Region = \"AWS REGION\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewFederatedDatabaseInstance(ctx, \"test\", \u0026mongodbatlas.FederatedDatabaseInstanceArgs{\n\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\tName: pulumi.String(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\"),\n\t\t\tCloudProviderConfig: \u0026mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigArgs{\n\t\t\t\tAws: \u0026mongodbatlas.FederatedDatabaseInstanceCloudProviderConfigAwsArgs{\n\t\t\t\t\tRoleId: pulumi.String(\"AWS ROLE ID\"),\n\t\t\t\t\tTestS3Bucket: pulumi.String(\"S3 BUCKET NAME\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageDatabases: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseArgs{\n\t\t\t\t\tName: pulumi.String(\"VirtualDatabase0\"),\n\t\t\t\t\tCollections: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArray{\n\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionArgs{\n\t\t\t\t\t\t\tName: pulumi.String(\"NAME OF THE COLLECTION\"),\n\t\t\t\t\t\t\tDataSources: mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArray{\n\t\t\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs{\n\t\t\t\t\t\t\t\t\tCollection: pulumi.String(\"COLLECTION IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tDatabase: pulumi.String(\"DB IN THE CLUSTER\"),\n\t\t\t\t\t\t\t\t\tStoreName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs{\n\t\t\t\t\t\t\t\t\tStoreName: pulumi.String(\"S3 BUCKET NAME\"),\n\t\t\t\t\t\t\t\t\tPath: pulumi.String(\"S3 BUCKET PATH\"),\n\t\t\t\t\t\t\t\t},\n\t\t\t\t\t\t\t},\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tStorageStores: mongodbatlas.FederatedDatabaseInstanceStorageStoreArray{\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs{\n\t\t\t\t\tName: pulumi.String(\"STORE 1 NAME\"),\n\t\t\t\t\tClusterName: pulumi.String(\"CLUSTER NAME\"),\n\t\t\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\t\t\tProvider: pulumi.String(\"atlas\"),\n\t\t\t\t\tReadPreference: \u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs{\n\t\t\t\t\t\tMode: pulumi.String(\"secondary\"),\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026mongodbatlas.FederatedDatabaseInstanceStorageStoreArgs{\n\t\t\t\t\tBucket: pulumi.String(\"STORE 2 NAME\"),\n\t\t\t\t\tDelimiter: pulumi.String(\"/\"),\n\t\t\t\t\tName: pulumi.String(\"S3 BUCKET NAME\"),\n\t\t\t\t\tPrefix: pulumi.String(\"S3 BUCKET PREFIX\"),\n\t\t\t\t\tProvider: pulumi.String(\"s3\"),\n\t\t\t\t\tRegion: pulumi.String(\"AWS REGION\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstance;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstanceArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceCloudProviderConfigArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceCloudProviderConfigAwsArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageDatabaseArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceStorageStoreReadPreferenceArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new FederatedDatabaseInstance(\"test\", FederatedDatabaseInstanceArgs.builder()\n .projectId(\"PROJECT ID\")\n .name(\"TENANT NAME OF THE FEDERATED DATABASE INSTANCE\")\n .cloudProviderConfig(FederatedDatabaseInstanceCloudProviderConfigArgs.builder()\n .aws(FederatedDatabaseInstanceCloudProviderConfigAwsArgs.builder()\n .roleId(\"AWS ROLE ID\")\n .testS3Bucket(\"S3 BUCKET NAME\")\n .build())\n .build())\n .storageDatabases(FederatedDatabaseInstanceStorageDatabaseArgs.builder()\n .name(\"VirtualDatabase0\")\n .collections(FederatedDatabaseInstanceStorageDatabaseCollectionArgs.builder()\n .name(\"NAME OF THE COLLECTION\")\n .dataSources( \n FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs.builder()\n .collection(\"COLLECTION IN THE CLUSTER\")\n .database(\"DB IN THE CLUSTER\")\n .storeName(\"CLUSTER NAME\")\n .build(),\n FederatedDatabaseInstanceStorageDatabaseCollectionDataSourceArgs.builder()\n .storeName(\"S3 BUCKET NAME\")\n .path(\"S3 BUCKET PATH\")\n .build())\n .build())\n .build())\n .storageStores( \n FederatedDatabaseInstanceStorageStoreArgs.builder()\n .name(\"STORE 1 NAME\")\n .clusterName(\"CLUSTER NAME\")\n .projectId(\"PROJECT ID\")\n .provider(\"atlas\")\n .readPreference(FederatedDatabaseInstanceStorageStoreReadPreferenceArgs.builder()\n .mode(\"secondary\")\n .build())\n .build(),\n FederatedDatabaseInstanceStorageStoreArgs.builder()\n .bucket(\"STORE 2 NAME\")\n .delimiter(\"/\")\n .name(\"S3 BUCKET NAME\")\n .prefix(\"S3 BUCKET PREFIX\")\n .provider(\"s3\")\n .region(\"AWS REGION\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:FederatedDatabaseInstance\n properties:\n projectId: PROJECT ID\n name: TENANT NAME OF THE FEDERATED DATABASE INSTANCE\n cloudProviderConfig:\n aws:\n roleId: AWS ROLE ID\n testS3Bucket: S3 BUCKET NAME\n storageDatabases:\n - name: VirtualDatabase0\n collections:\n - name: NAME OF THE COLLECTION\n dataSources:\n - collection: COLLECTION IN THE CLUSTER\n database: DB IN THE CLUSTER\n storeName: CLUSTER NAME\n - storeName: S3 BUCKET NAME\n path: S3 BUCKET PATH\n storageStores:\n - name: STORE 1 NAME\n clusterName: CLUSTER NAME\n projectId: PROJECT ID\n provider: atlas\n readPreference:\n mode: secondary\n - bucket: STORE 2 NAME\n delimiter: /\n name: S3 BUCKET NAME\n prefix: S3 BUCKET PREFIX\n provider: s3\n region: AWS REGION\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Example specifying data process region and provider\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.FederatedDatabaseInstance(\"test\", {\n projectId: \"PROJECT ID\",\n name: \"NAME OF THE FEDERATED DATABASE INSTANCE\",\n dataProcessRegion: {\n cloudProvider: \"AWS\",\n region: \"OREGON_USA\",\n },\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.FederatedDatabaseInstance(\"test\",\n project_id=\"PROJECT ID\",\n name=\"NAME OF THE FEDERATED DATABASE INSTANCE\",\n data_process_region=mongodbatlas.FederatedDatabaseInstanceDataProcessRegionArgs(\n cloud_provider=\"AWS\",\n region=\"OREGON_USA\",\n ))\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.FederatedDatabaseInstance(\"test\", new()\n {\n ProjectId = \"PROJECT ID\",\n Name = \"NAME OF THE FEDERATED DATABASE INSTANCE\",\n DataProcessRegion = new Mongodbatlas.Inputs.FederatedDatabaseInstanceDataProcessRegionArgs\n {\n CloudProvider = \"AWS\",\n Region = \"OREGON_USA\",\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewFederatedDatabaseInstance(ctx, \"test\", \u0026mongodbatlas.FederatedDatabaseInstanceArgs{\n\t\t\tProjectId: pulumi.String(\"PROJECT ID\"),\n\t\t\tName: pulumi.String(\"NAME OF THE FEDERATED DATABASE INSTANCE\"),\n\t\t\tDataProcessRegion: \u0026mongodbatlas.FederatedDatabaseInstanceDataProcessRegionArgs{\n\t\t\t\tCloudProvider: pulumi.String(\"AWS\"),\n\t\t\t\tRegion: pulumi.String(\"OREGON_USA\"),\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstance;\nimport com.pulumi.mongodbatlas.FederatedDatabaseInstanceArgs;\nimport com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceDataProcessRegionArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new FederatedDatabaseInstance(\"test\", FederatedDatabaseInstanceArgs.builder()\n .projectId(\"PROJECT ID\")\n .name(\"NAME OF THE FEDERATED DATABASE INSTANCE\")\n .dataProcessRegion(FederatedDatabaseInstanceDataProcessRegionArgs.builder()\n .cloudProvider(\"AWS\")\n .region(\"OREGON_USA\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:FederatedDatabaseInstance\n properties:\n projectId: PROJECT ID\n name: NAME OF THE FEDERATED DATABASE INSTANCE\n dataProcessRegion:\n cloudProvider: AWS\n region: OREGON_USA\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\n- The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g.\n\n```sh\n$ pulumi import mongodbatlas:index/federatedDatabaseInstance:FederatedDatabaseInstance mongodbatlas_federated_database_instance.example 1112222b3bf99403840e8934--test\n```\n\n- The Federated Database Instance can be imported using project ID, name of the instance and name of the AWS S3 bucket, in the format `project_id`--`name`--`aws_test_s3_bucket`, e.g.\n\n```sh\n$ pulumi import mongodbatlas:index/federatedDatabaseInstance:FederatedDatabaseInstance mongodbatlas_federated_database_instance.example 1112222b3bf99403840e8934--test--s3-test\n```\n\nSee [MongoDB Atlas API](https://www.mongodb.com/docs/atlas/reference/api-resources-spec/#tag/Data-Federation) Documentation for more information.\n\n", "properties": { "cloudProviderConfig": { "$ref": "#/types/mongodbatlas:index/FederatedDatabaseInstanceCloudProviderConfig:FederatedDatabaseInstanceCloudProviderConfig", @@ -16707,13 +16710,18 @@ "$ref": "#/types/mongodbatlas:index/FederatedSettingsOrgRoleMappingRoleAssignment:FederatedSettingsOrgRoleMappingRoleAssignment" }, "description": "Atlas roles and the unique identifiers of the groups and organizations associated with each role.\n" + }, + "roleMappingId": { + "type": "string", + "description": "Unique 24-hexadecimal digit string that identifies this role mapping.\n" } }, "required": [ "externalGroupName", "federationSettingsId", "orgId", - "roleAssignments" + "roleAssignments", + "roleMappingId" ], "inputProperties": { "externalGroupName": { @@ -16763,13 +16771,17 @@ "$ref": "#/types/mongodbatlas:index/FederatedSettingsOrgRoleMappingRoleAssignment:FederatedSettingsOrgRoleMappingRoleAssignment" }, "description": "Atlas roles and the unique identifiers of the groups and organizations associated with each role.\n" + }, + "roleMappingId": { + "type": "string", + "description": "Unique 24-hexadecimal digit string that identifies this role mapping.\n" } }, "type": "object" } }, "mongodbatlas:index/globalClusterConfig:GlobalClusterConfig": { - "description": "`mongodbatlas.GlobalClusterConfig` provides a Global Cluster Configuration resource.\n\n\n\u003e **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation.\n\n\n## Examples Usage\n\n### Example Global cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.Cluster(\"test\", {\n projectId: \"\u003cYOUR-PROJECT-ID\u003e\",\n name: \"\u003cCLUSTER-NAME\u003e\",\n cloudBackup: true,\n clusterType: \"GEOSHARDED\",\n providerName: \"AWS\",\n providerInstanceSizeName: \"M30\",\n replicationSpecs: [\n {\n zoneName: \"Zone 1\",\n numShards: 1,\n regionsConfigs: [{\n regionName: \"EU_CENTRAL_1\",\n electableNodes: 3,\n priority: 7,\n readOnlyNodes: 0,\n }],\n },\n {\n zoneName: \"Zone 2\",\n numShards: 1,\n regionsConfigs: [{\n regionName: \"US_EAST_2\",\n electableNodes: 3,\n priority: 7,\n readOnlyNodes: 0,\n }],\n },\n ],\n});\nconst config = new mongodbatlas.GlobalClusterConfig(\"config\", {\n projectId: test.projectId,\n clusterName: test.name,\n managedNamespaces: [{\n db: \"mydata\",\n collection: \"publishers\",\n customShardKey: \"city\",\n isCustomShardKeyHashed: false,\n isShardKeyUnique: false,\n }],\n customZoneMappings: [{\n location: \"CA\",\n zone: \"Zone 1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.Cluster(\"test\",\n project_id=\"\u003cYOUR-PROJECT-ID\u003e\",\n name=\"\u003cCLUSTER-NAME\u003e\",\n cloud_backup=True,\n cluster_type=\"GEOSHARDED\",\n provider_name=\"AWS\",\n provider_instance_size_name=\"M30\",\n replication_specs=[\n mongodbatlas.ClusterReplicationSpecArgs(\n zone_name=\"Zone 1\",\n num_shards=1,\n regions_configs=[mongodbatlas.ClusterReplicationSpecRegionsConfigArgs(\n region_name=\"EU_CENTRAL_1\",\n electable_nodes=3,\n priority=7,\n read_only_nodes=0,\n )],\n ),\n mongodbatlas.ClusterReplicationSpecArgs(\n zone_name=\"Zone 2\",\n num_shards=1,\n regions_configs=[mongodbatlas.ClusterReplicationSpecRegionsConfigArgs(\n region_name=\"US_EAST_2\",\n electable_nodes=3,\n priority=7,\n read_only_nodes=0,\n )],\n ),\n ])\nconfig = mongodbatlas.GlobalClusterConfig(\"config\",\n project_id=test.project_id,\n cluster_name=test.name,\n managed_namespaces=[mongodbatlas.GlobalClusterConfigManagedNamespaceArgs(\n db=\"mydata\",\n collection=\"publishers\",\n custom_shard_key=\"city\",\n is_custom_shard_key_hashed=False,\n is_shard_key_unique=False,\n )],\n custom_zone_mappings=[mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs(\n location=\"CA\",\n zone=\"Zone 1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.Cluster(\"test\", new()\n {\n ProjectId = \"\u003cYOUR-PROJECT-ID\u003e\",\n Name = \"\u003cCLUSTER-NAME\u003e\",\n CloudBackup = true,\n ClusterType = \"GEOSHARDED\",\n ProviderName = \"AWS\",\n ProviderInstanceSizeName = \"M30\",\n ReplicationSpecs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecArgs\n {\n ZoneName = \"Zone 1\",\n NumShards = 1,\n RegionsConfigs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecRegionsConfigArgs\n {\n RegionName = \"EU_CENTRAL_1\",\n ElectableNodes = 3,\n Priority = 7,\n ReadOnlyNodes = 0,\n },\n },\n },\n new Mongodbatlas.Inputs.ClusterReplicationSpecArgs\n {\n ZoneName = \"Zone 2\",\n NumShards = 1,\n RegionsConfigs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecRegionsConfigArgs\n {\n RegionName = \"US_EAST_2\",\n ElectableNodes = 3,\n Priority = 7,\n ReadOnlyNodes = 0,\n },\n },\n },\n },\n });\n\n var config = new Mongodbatlas.GlobalClusterConfig(\"config\", new()\n {\n ProjectId = test.ProjectId,\n ClusterName = test.Name,\n ManagedNamespaces = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigManagedNamespaceArgs\n {\n Db = \"mydata\",\n Collection = \"publishers\",\n CustomShardKey = \"city\",\n IsCustomShardKeyHashed = false,\n IsShardKeyUnique = false,\n },\n },\n CustomZoneMappings = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigCustomZoneMappingArgs\n {\n Location = \"CA\",\n Zone = \"Zone 1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := mongodbatlas.NewCluster(ctx, \"test\", \u0026mongodbatlas.ClusterArgs{\n\t\t\tProjectId: pulumi.String(\"\u003cYOUR-PROJECT-ID\u003e\"),\n\t\t\tName: pulumi.String(\"\u003cCLUSTER-NAME\u003e\"),\n\t\t\tCloudBackup: pulumi.Bool(true),\n\t\t\tClusterType: pulumi.String(\"GEOSHARDED\"),\n\t\t\tProviderName: pulumi.String(\"AWS\"),\n\t\t\tProviderInstanceSizeName: pulumi.String(\"M30\"),\n\t\t\tReplicationSpecs: mongodbatlas.ClusterReplicationSpecArray{\n\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecArgs{\n\t\t\t\t\tZoneName: pulumi.String(\"Zone 1\"),\n\t\t\t\t\tNumShards: pulumi.Int(1),\n\t\t\t\t\tRegionsConfigs: mongodbatlas.ClusterReplicationSpecRegionsConfigArray{\n\t\t\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecRegionsConfigArgs{\n\t\t\t\t\t\t\tRegionName: pulumi.String(\"EU_CENTRAL_1\"),\n\t\t\t\t\t\t\tElectableNodes: pulumi.Int(3),\n\t\t\t\t\t\t\tPriority: pulumi.Int(7),\n\t\t\t\t\t\t\tReadOnlyNodes: pulumi.Int(0),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecArgs{\n\t\t\t\t\tZoneName: pulumi.String(\"Zone 2\"),\n\t\t\t\t\tNumShards: pulumi.Int(1),\n\t\t\t\t\tRegionsConfigs: mongodbatlas.ClusterReplicationSpecRegionsConfigArray{\n\t\t\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecRegionsConfigArgs{\n\t\t\t\t\t\t\tRegionName: pulumi.String(\"US_EAST_2\"),\n\t\t\t\t\t\t\tElectableNodes: pulumi.Int(3),\n\t\t\t\t\t\t\tPriority: pulumi.Int(7),\n\t\t\t\t\t\t\tReadOnlyNodes: pulumi.Int(0),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mongodbatlas.NewGlobalClusterConfig(ctx, \"config\", \u0026mongodbatlas.GlobalClusterConfigArgs{\n\t\t\tProjectId: test.ProjectId,\n\t\t\tClusterName: test.Name,\n\t\t\tManagedNamespaces: mongodbatlas.GlobalClusterConfigManagedNamespaceArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigManagedNamespaceArgs{\n\t\t\t\t\tDb: pulumi.String(\"mydata\"),\n\t\t\t\t\tCollection: pulumi.String(\"publishers\"),\n\t\t\t\t\tCustomShardKey: pulumi.String(\"city\"),\n\t\t\t\t\tIsCustomShardKeyHashed: pulumi.Bool(false),\n\t\t\t\t\tIsShardKeyUnique: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tCustomZoneMappings: mongodbatlas.GlobalClusterConfigCustomZoneMappingArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs{\n\t\t\t\t\tLocation: pulumi.String(\"CA\"),\n\t\t\t\t\tZone: pulumi.String(\"Zone 1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.Cluster;\nimport com.pulumi.mongodbatlas.ClusterArgs;\nimport com.pulumi.mongodbatlas.inputs.ClusterReplicationSpecArgs;\nimport com.pulumi.mongodbatlas.GlobalClusterConfig;\nimport com.pulumi.mongodbatlas.GlobalClusterConfigArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigManagedNamespaceArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigCustomZoneMappingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new Cluster(\"test\", ClusterArgs.builder()\n .projectId(\"\u003cYOUR-PROJECT-ID\u003e\")\n .name(\"\u003cCLUSTER-NAME\u003e\")\n .cloudBackup(true)\n .clusterType(\"GEOSHARDED\")\n .providerName(\"AWS\")\n .providerInstanceSizeName(\"M30\")\n .replicationSpecs( \n ClusterReplicationSpecArgs.builder()\n .zoneName(\"Zone 1\")\n .numShards(1)\n .regionsConfigs(ClusterReplicationSpecRegionsConfigArgs.builder()\n .regionName(\"EU_CENTRAL_1\")\n .electableNodes(3)\n .priority(7)\n .readOnlyNodes(0)\n .build())\n .build(),\n ClusterReplicationSpecArgs.builder()\n .zoneName(\"Zone 2\")\n .numShards(1)\n .regionsConfigs(ClusterReplicationSpecRegionsConfigArgs.builder()\n .regionName(\"US_EAST_2\")\n .electableNodes(3)\n .priority(7)\n .readOnlyNodes(0)\n .build())\n .build())\n .build());\n\n var config = new GlobalClusterConfig(\"config\", GlobalClusterConfigArgs.builder()\n .projectId(test.projectId())\n .clusterName(test.name())\n .managedNamespaces(GlobalClusterConfigManagedNamespaceArgs.builder()\n .db(\"mydata\")\n .collection(\"publishers\")\n .customShardKey(\"city\")\n .isCustomShardKeyHashed(false)\n .isShardKeyUnique(false)\n .build())\n .customZoneMappings(GlobalClusterConfigCustomZoneMappingArgs.builder()\n .location(\"CA\")\n .zone(\"Zone 1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:Cluster\n properties:\n projectId: \u003cYOUR-PROJECT-ID\u003e\n name: \u003cCLUSTER-NAME\u003e\n cloudBackup: true\n clusterType: GEOSHARDED\n providerName: AWS\n providerInstanceSizeName: M30\n replicationSpecs:\n - zoneName: Zone 1\n numShards: 1\n regionsConfigs:\n - regionName: EU_CENTRAL_1\n electableNodes: 3\n priority: 7\n readOnlyNodes: 0\n - zoneName: Zone 2\n numShards: 1\n regionsConfigs:\n - regionName: US_EAST_2\n electableNodes: 3\n priority: 7\n readOnlyNodes: 0\n config:\n type: mongodbatlas:GlobalClusterConfig\n properties:\n projectId: ${test.projectId}\n clusterName: ${test.name}\n managedNamespaces:\n - db: mydata\n collection: publishers\n customShardKey: city\n isCustomShardKeyHashed: false\n isShardKeyUnique: false\n customZoneMappings:\n - location: CA\n zone: Zone 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Example Global cluster config\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst cluster_test = new mongodbatlas.Cluster(\"cluster-test\", {\n projectId: \"\u003cYOUR-PROJECT-ID\u003e\",\n name: \"cluster-test\",\n clusterType: \"REPLICASET\",\n replicationSpecs: [{\n numShards: 1,\n regionsConfigs: [{\n regionName: \"US_EAST_1\",\n electableNodes: 3,\n priority: 7,\n readOnlyNodes: 0,\n }],\n }],\n backupEnabled: true,\n autoScalingDiskGbEnabled: true,\n mongoDbMajorVersion: \"7.0\",\n providerName: \"AWS\",\n providerInstanceSizeName: \"M40\",\n});\nconst config = new mongodbatlas.GlobalClusterConfig(\"config\", {\n projectId: test.projectId,\n clusterName: test.name,\n managedNamespaces: [{\n db: \"mydata\",\n collection: \"publishers\",\n customShardKey: \"city\",\n }],\n customZoneMappings: [{\n location: \"CA\",\n zone: \"Zone 1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ncluster_test = mongodbatlas.Cluster(\"cluster-test\",\n project_id=\"\u003cYOUR-PROJECT-ID\u003e\",\n name=\"cluster-test\",\n cluster_type=\"REPLICASET\",\n replication_specs=[mongodbatlas.ClusterReplicationSpecArgs(\n num_shards=1,\n regions_configs=[mongodbatlas.ClusterReplicationSpecRegionsConfigArgs(\n region_name=\"US_EAST_1\",\n electable_nodes=3,\n priority=7,\n read_only_nodes=0,\n )],\n )],\n backup_enabled=True,\n auto_scaling_disk_gb_enabled=True,\n mongo_db_major_version=\"7.0\",\n provider_name=\"AWS\",\n provider_instance_size_name=\"M40\")\nconfig = mongodbatlas.GlobalClusterConfig(\"config\",\n project_id=test[\"projectId\"],\n cluster_name=test[\"name\"],\n managed_namespaces=[mongodbatlas.GlobalClusterConfigManagedNamespaceArgs(\n db=\"mydata\",\n collection=\"publishers\",\n custom_shard_key=\"city\",\n )],\n custom_zone_mappings=[mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs(\n location=\"CA\",\n zone=\"Zone 1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var cluster_test = new Mongodbatlas.Cluster(\"cluster-test\", new()\n {\n ProjectId = \"\u003cYOUR-PROJECT-ID\u003e\",\n Name = \"cluster-test\",\n ClusterType = \"REPLICASET\",\n ReplicationSpecs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecArgs\n {\n NumShards = 1,\n RegionsConfigs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecRegionsConfigArgs\n {\n RegionName = \"US_EAST_1\",\n ElectableNodes = 3,\n Priority = 7,\n ReadOnlyNodes = 0,\n },\n },\n },\n },\n BackupEnabled = true,\n AutoScalingDiskGbEnabled = true,\n MongoDbMajorVersion = \"7.0\",\n ProviderName = \"AWS\",\n ProviderInstanceSizeName = \"M40\",\n });\n\n var config = new Mongodbatlas.GlobalClusterConfig(\"config\", new()\n {\n ProjectId = test.ProjectId,\n ClusterName = test.Name,\n ManagedNamespaces = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigManagedNamespaceArgs\n {\n Db = \"mydata\",\n Collection = \"publishers\",\n CustomShardKey = \"city\",\n },\n },\n CustomZoneMappings = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigCustomZoneMappingArgs\n {\n Location = \"CA\",\n Zone = \"Zone 1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewCluster(ctx, \"cluster-test\", \u0026mongodbatlas.ClusterArgs{\n\t\t\tProjectId: pulumi.String(\"\u003cYOUR-PROJECT-ID\u003e\"),\n\t\t\tName: pulumi.String(\"cluster-test\"),\n\t\t\tClusterType: pulumi.String(\"REPLICASET\"),\n\t\t\tReplicationSpecs: mongodbatlas.ClusterReplicationSpecArray{\n\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecArgs{\n\t\t\t\t\tNumShards: pulumi.Int(1),\n\t\t\t\t\tRegionsConfigs: mongodbatlas.ClusterReplicationSpecRegionsConfigArray{\n\t\t\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecRegionsConfigArgs{\n\t\t\t\t\t\t\tRegionName: pulumi.String(\"US_EAST_1\"),\n\t\t\t\t\t\t\tElectableNodes: pulumi.Int(3),\n\t\t\t\t\t\t\tPriority: pulumi.Int(7),\n\t\t\t\t\t\t\tReadOnlyNodes: pulumi.Int(0),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tBackupEnabled: pulumi.Bool(true),\n\t\t\tAutoScalingDiskGbEnabled: pulumi.Bool(true),\n\t\t\tMongoDbMajorVersion: pulumi.String(\"7.0\"),\n\t\t\tProviderName: pulumi.String(\"AWS\"),\n\t\t\tProviderInstanceSizeName: pulumi.String(\"M40\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mongodbatlas.NewGlobalClusterConfig(ctx, \"config\", \u0026mongodbatlas.GlobalClusterConfigArgs{\n\t\t\tProjectId: pulumi.Any(test.ProjectId),\n\t\t\tClusterName: pulumi.Any(test.Name),\n\t\t\tManagedNamespaces: mongodbatlas.GlobalClusterConfigManagedNamespaceArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigManagedNamespaceArgs{\n\t\t\t\t\tDb: pulumi.String(\"mydata\"),\n\t\t\t\t\tCollection: pulumi.String(\"publishers\"),\n\t\t\t\t\tCustomShardKey: pulumi.String(\"city\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tCustomZoneMappings: mongodbatlas.GlobalClusterConfigCustomZoneMappingArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs{\n\t\t\t\t\tLocation: pulumi.String(\"CA\"),\n\t\t\t\t\tZone: pulumi.String(\"Zone 1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.Cluster;\nimport com.pulumi.mongodbatlas.ClusterArgs;\nimport com.pulumi.mongodbatlas.inputs.ClusterReplicationSpecArgs;\nimport com.pulumi.mongodbatlas.GlobalClusterConfig;\nimport com.pulumi.mongodbatlas.GlobalClusterConfigArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigManagedNamespaceArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigCustomZoneMappingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var cluster_test = new Cluster(\"cluster-test\", ClusterArgs.builder()\n .projectId(\"\u003cYOUR-PROJECT-ID\u003e\")\n .name(\"cluster-test\")\n .clusterType(\"REPLICASET\")\n .replicationSpecs(ClusterReplicationSpecArgs.builder()\n .numShards(1)\n .regionsConfigs(ClusterReplicationSpecRegionsConfigArgs.builder()\n .regionName(\"US_EAST_1\")\n .electableNodes(3)\n .priority(7)\n .readOnlyNodes(0)\n .build())\n .build())\n .backupEnabled(true)\n .autoScalingDiskGbEnabled(true)\n .mongoDbMajorVersion(\"7.0\")\n .providerName(\"AWS\")\n .providerInstanceSizeName(\"M40\")\n .build());\n\n var config = new GlobalClusterConfig(\"config\", GlobalClusterConfigArgs.builder()\n .projectId(test.projectId())\n .clusterName(test.name())\n .managedNamespaces(GlobalClusterConfigManagedNamespaceArgs.builder()\n .db(\"mydata\")\n .collection(\"publishers\")\n .customShardKey(\"city\")\n .build())\n .customZoneMappings(GlobalClusterConfigCustomZoneMappingArgs.builder()\n .location(\"CA\")\n .zone(\"Zone 1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cluster-test:\n type: mongodbatlas:Cluster\n properties:\n projectId: \u003cYOUR-PROJECT-ID\u003e\n name: cluster-test\n clusterType: REPLICASET\n replicationSpecs:\n - numShards: 1\n regionsConfigs:\n - regionName: US_EAST_1\n electableNodes: 3\n priority: 7\n readOnlyNodes: 0\n backupEnabled: true\n autoScalingDiskGbEnabled: true\n mongoDbMajorVersion: '7.0'\n providerName: AWS\n providerInstanceSizeName: M40\n config:\n type: mongodbatlas:GlobalClusterConfig\n properties:\n projectId: ${test.projectId}\n clusterName: ${test.name}\n managedNamespaces:\n - db: mydata\n collection: publishers\n customShardKey: city\n customZoneMappings:\n - location: CA\n zone: Zone 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGlobal Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTER_NAME`, e.g.\n\n```sh\n$ pulumi import mongodbatlas:index/globalClusterConfig:GlobalClusterConfig config 1112222b3bf99403840e8934-Cluster0\n```\nSee detailed information for arguments and attributes: [MongoDB API Global Clusters](https://docs.atlas.mongodb.com/reference/api/global-clusters/)\n\n", + "description": "`mongodbatlas.GlobalClusterConfig` provides a Global Cluster Configuration resource.\n\n\n\u003e **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation.\n\n\u003e **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/)\n\n## Examples Usage\n\n### Example Global cluster\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst test = new mongodbatlas.Cluster(\"test\", {\n projectId: \"\u003cYOUR-PROJECT-ID\u003e\",\n name: \"\u003cCLUSTER-NAME\u003e\",\n cloudBackup: true,\n clusterType: \"GEOSHARDED\",\n providerName: \"AWS\",\n providerInstanceSizeName: \"M30\",\n replicationSpecs: [\n {\n zoneName: \"Zone 1\",\n numShards: 1,\n regionsConfigs: [{\n regionName: \"EU_CENTRAL_1\",\n electableNodes: 3,\n priority: 7,\n readOnlyNodes: 0,\n }],\n },\n {\n zoneName: \"Zone 2\",\n numShards: 1,\n regionsConfigs: [{\n regionName: \"US_EAST_2\",\n electableNodes: 3,\n priority: 7,\n readOnlyNodes: 0,\n }],\n },\n ],\n});\nconst config = new mongodbatlas.GlobalClusterConfig(\"config\", {\n projectId: test.projectId,\n clusterName: test.name,\n managedNamespaces: [{\n db: \"mydata\",\n collection: \"publishers\",\n customShardKey: \"city\",\n isCustomShardKeyHashed: false,\n isShardKeyUnique: false,\n }],\n customZoneMappings: [{\n location: \"CA\",\n zone: \"Zone 1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ntest = mongodbatlas.Cluster(\"test\",\n project_id=\"\u003cYOUR-PROJECT-ID\u003e\",\n name=\"\u003cCLUSTER-NAME\u003e\",\n cloud_backup=True,\n cluster_type=\"GEOSHARDED\",\n provider_name=\"AWS\",\n provider_instance_size_name=\"M30\",\n replication_specs=[\n mongodbatlas.ClusterReplicationSpecArgs(\n zone_name=\"Zone 1\",\n num_shards=1,\n regions_configs=[mongodbatlas.ClusterReplicationSpecRegionsConfigArgs(\n region_name=\"EU_CENTRAL_1\",\n electable_nodes=3,\n priority=7,\n read_only_nodes=0,\n )],\n ),\n mongodbatlas.ClusterReplicationSpecArgs(\n zone_name=\"Zone 2\",\n num_shards=1,\n regions_configs=[mongodbatlas.ClusterReplicationSpecRegionsConfigArgs(\n region_name=\"US_EAST_2\",\n electable_nodes=3,\n priority=7,\n read_only_nodes=0,\n )],\n ),\n ])\nconfig = mongodbatlas.GlobalClusterConfig(\"config\",\n project_id=test.project_id,\n cluster_name=test.name,\n managed_namespaces=[mongodbatlas.GlobalClusterConfigManagedNamespaceArgs(\n db=\"mydata\",\n collection=\"publishers\",\n custom_shard_key=\"city\",\n is_custom_shard_key_hashed=False,\n is_shard_key_unique=False,\n )],\n custom_zone_mappings=[mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs(\n location=\"CA\",\n zone=\"Zone 1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var test = new Mongodbatlas.Cluster(\"test\", new()\n {\n ProjectId = \"\u003cYOUR-PROJECT-ID\u003e\",\n Name = \"\u003cCLUSTER-NAME\u003e\",\n CloudBackup = true,\n ClusterType = \"GEOSHARDED\",\n ProviderName = \"AWS\",\n ProviderInstanceSizeName = \"M30\",\n ReplicationSpecs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecArgs\n {\n ZoneName = \"Zone 1\",\n NumShards = 1,\n RegionsConfigs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecRegionsConfigArgs\n {\n RegionName = \"EU_CENTRAL_1\",\n ElectableNodes = 3,\n Priority = 7,\n ReadOnlyNodes = 0,\n },\n },\n },\n new Mongodbatlas.Inputs.ClusterReplicationSpecArgs\n {\n ZoneName = \"Zone 2\",\n NumShards = 1,\n RegionsConfigs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecRegionsConfigArgs\n {\n RegionName = \"US_EAST_2\",\n ElectableNodes = 3,\n Priority = 7,\n ReadOnlyNodes = 0,\n },\n },\n },\n },\n });\n\n var config = new Mongodbatlas.GlobalClusterConfig(\"config\", new()\n {\n ProjectId = test.ProjectId,\n ClusterName = test.Name,\n ManagedNamespaces = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigManagedNamespaceArgs\n {\n Db = \"mydata\",\n Collection = \"publishers\",\n CustomShardKey = \"city\",\n IsCustomShardKeyHashed = false,\n IsShardKeyUnique = false,\n },\n },\n CustomZoneMappings = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigCustomZoneMappingArgs\n {\n Location = \"CA\",\n Zone = \"Zone 1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\ttest, err := mongodbatlas.NewCluster(ctx, \"test\", \u0026mongodbatlas.ClusterArgs{\n\t\t\tProjectId: pulumi.String(\"\u003cYOUR-PROJECT-ID\u003e\"),\n\t\t\tName: pulumi.String(\"\u003cCLUSTER-NAME\u003e\"),\n\t\t\tCloudBackup: pulumi.Bool(true),\n\t\t\tClusterType: pulumi.String(\"GEOSHARDED\"),\n\t\t\tProviderName: pulumi.String(\"AWS\"),\n\t\t\tProviderInstanceSizeName: pulumi.String(\"M30\"),\n\t\t\tReplicationSpecs: mongodbatlas.ClusterReplicationSpecArray{\n\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecArgs{\n\t\t\t\t\tZoneName: pulumi.String(\"Zone 1\"),\n\t\t\t\t\tNumShards: pulumi.Int(1),\n\t\t\t\t\tRegionsConfigs: mongodbatlas.ClusterReplicationSpecRegionsConfigArray{\n\t\t\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecRegionsConfigArgs{\n\t\t\t\t\t\t\tRegionName: pulumi.String(\"EU_CENTRAL_1\"),\n\t\t\t\t\t\t\tElectableNodes: pulumi.Int(3),\n\t\t\t\t\t\t\tPriority: pulumi.Int(7),\n\t\t\t\t\t\t\tReadOnlyNodes: pulumi.Int(0),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecArgs{\n\t\t\t\t\tZoneName: pulumi.String(\"Zone 2\"),\n\t\t\t\t\tNumShards: pulumi.Int(1),\n\t\t\t\t\tRegionsConfigs: mongodbatlas.ClusterReplicationSpecRegionsConfigArray{\n\t\t\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecRegionsConfigArgs{\n\t\t\t\t\t\t\tRegionName: pulumi.String(\"US_EAST_2\"),\n\t\t\t\t\t\t\tElectableNodes: pulumi.Int(3),\n\t\t\t\t\t\t\tPriority: pulumi.Int(7),\n\t\t\t\t\t\t\tReadOnlyNodes: pulumi.Int(0),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mongodbatlas.NewGlobalClusterConfig(ctx, \"config\", \u0026mongodbatlas.GlobalClusterConfigArgs{\n\t\t\tProjectId: test.ProjectId,\n\t\t\tClusterName: test.Name,\n\t\t\tManagedNamespaces: mongodbatlas.GlobalClusterConfigManagedNamespaceArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigManagedNamespaceArgs{\n\t\t\t\t\tDb: pulumi.String(\"mydata\"),\n\t\t\t\t\tCollection: pulumi.String(\"publishers\"),\n\t\t\t\t\tCustomShardKey: pulumi.String(\"city\"),\n\t\t\t\t\tIsCustomShardKeyHashed: pulumi.Bool(false),\n\t\t\t\t\tIsShardKeyUnique: pulumi.Bool(false),\n\t\t\t\t},\n\t\t\t},\n\t\t\tCustomZoneMappings: mongodbatlas.GlobalClusterConfigCustomZoneMappingArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs{\n\t\t\t\t\tLocation: pulumi.String(\"CA\"),\n\t\t\t\t\tZone: pulumi.String(\"Zone 1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.Cluster;\nimport com.pulumi.mongodbatlas.ClusterArgs;\nimport com.pulumi.mongodbatlas.inputs.ClusterReplicationSpecArgs;\nimport com.pulumi.mongodbatlas.GlobalClusterConfig;\nimport com.pulumi.mongodbatlas.GlobalClusterConfigArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigManagedNamespaceArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigCustomZoneMappingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var test = new Cluster(\"test\", ClusterArgs.builder()\n .projectId(\"\u003cYOUR-PROJECT-ID\u003e\")\n .name(\"\u003cCLUSTER-NAME\u003e\")\n .cloudBackup(true)\n .clusterType(\"GEOSHARDED\")\n .providerName(\"AWS\")\n .providerInstanceSizeName(\"M30\")\n .replicationSpecs( \n ClusterReplicationSpecArgs.builder()\n .zoneName(\"Zone 1\")\n .numShards(1)\n .regionsConfigs(ClusterReplicationSpecRegionsConfigArgs.builder()\n .regionName(\"EU_CENTRAL_1\")\n .electableNodes(3)\n .priority(7)\n .readOnlyNodes(0)\n .build())\n .build(),\n ClusterReplicationSpecArgs.builder()\n .zoneName(\"Zone 2\")\n .numShards(1)\n .regionsConfigs(ClusterReplicationSpecRegionsConfigArgs.builder()\n .regionName(\"US_EAST_2\")\n .electableNodes(3)\n .priority(7)\n .readOnlyNodes(0)\n .build())\n .build())\n .build());\n\n var config = new GlobalClusterConfig(\"config\", GlobalClusterConfigArgs.builder()\n .projectId(test.projectId())\n .clusterName(test.name())\n .managedNamespaces(GlobalClusterConfigManagedNamespaceArgs.builder()\n .db(\"mydata\")\n .collection(\"publishers\")\n .customShardKey(\"city\")\n .isCustomShardKeyHashed(false)\n .isShardKeyUnique(false)\n .build())\n .customZoneMappings(GlobalClusterConfigCustomZoneMappingArgs.builder()\n .location(\"CA\")\n .zone(\"Zone 1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n test:\n type: mongodbatlas:Cluster\n properties:\n projectId: \u003cYOUR-PROJECT-ID\u003e\n name: \u003cCLUSTER-NAME\u003e\n cloudBackup: true\n clusterType: GEOSHARDED\n providerName: AWS\n providerInstanceSizeName: M30\n replicationSpecs:\n - zoneName: Zone 1\n numShards: 1\n regionsConfigs:\n - regionName: EU_CENTRAL_1\n electableNodes: 3\n priority: 7\n readOnlyNodes: 0\n - zoneName: Zone 2\n numShards: 1\n regionsConfigs:\n - regionName: US_EAST_2\n electableNodes: 3\n priority: 7\n readOnlyNodes: 0\n config:\n type: mongodbatlas:GlobalClusterConfig\n properties:\n projectId: ${test.projectId}\n clusterName: ${test.name}\n managedNamespaces:\n - db: mydata\n collection: publishers\n customShardKey: city\n isCustomShardKeyHashed: false\n isShardKeyUnique: false\n customZoneMappings:\n - location: CA\n zone: Zone 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n### Example Global cluster config\n\n\u003c!--Start PulumiCodeChooser --\u003e\n```typescript\nimport * as pulumi from \"@pulumi/pulumi\";\nimport * as mongodbatlas from \"@pulumi/mongodbatlas\";\n\nconst cluster_test = new mongodbatlas.Cluster(\"cluster-test\", {\n projectId: \"\u003cYOUR-PROJECT-ID\u003e\",\n name: \"cluster-test\",\n clusterType: \"REPLICASET\",\n replicationSpecs: [{\n numShards: 1,\n regionsConfigs: [{\n regionName: \"US_EAST_1\",\n electableNodes: 3,\n priority: 7,\n readOnlyNodes: 0,\n }],\n }],\n backupEnabled: true,\n autoScalingDiskGbEnabled: true,\n mongoDbMajorVersion: \"7.0\",\n providerName: \"AWS\",\n providerInstanceSizeName: \"M40\",\n});\nconst config = new mongodbatlas.GlobalClusterConfig(\"config\", {\n projectId: test.projectId,\n clusterName: test.name,\n managedNamespaces: [{\n db: \"mydata\",\n collection: \"publishers\",\n customShardKey: \"city\",\n }],\n customZoneMappings: [{\n location: \"CA\",\n zone: \"Zone 1\",\n }],\n});\n```\n```python\nimport pulumi\nimport pulumi_mongodbatlas as mongodbatlas\n\ncluster_test = mongodbatlas.Cluster(\"cluster-test\",\n project_id=\"\u003cYOUR-PROJECT-ID\u003e\",\n name=\"cluster-test\",\n cluster_type=\"REPLICASET\",\n replication_specs=[mongodbatlas.ClusterReplicationSpecArgs(\n num_shards=1,\n regions_configs=[mongodbatlas.ClusterReplicationSpecRegionsConfigArgs(\n region_name=\"US_EAST_1\",\n electable_nodes=3,\n priority=7,\n read_only_nodes=0,\n )],\n )],\n backup_enabled=True,\n auto_scaling_disk_gb_enabled=True,\n mongo_db_major_version=\"7.0\",\n provider_name=\"AWS\",\n provider_instance_size_name=\"M40\")\nconfig = mongodbatlas.GlobalClusterConfig(\"config\",\n project_id=test[\"projectId\"],\n cluster_name=test[\"name\"],\n managed_namespaces=[mongodbatlas.GlobalClusterConfigManagedNamespaceArgs(\n db=\"mydata\",\n collection=\"publishers\",\n custom_shard_key=\"city\",\n )],\n custom_zone_mappings=[mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs(\n location=\"CA\",\n zone=\"Zone 1\",\n )])\n```\n```csharp\nusing System.Collections.Generic;\nusing System.Linq;\nusing Pulumi;\nusing Mongodbatlas = Pulumi.Mongodbatlas;\n\nreturn await Deployment.RunAsync(() =\u003e \n{\n var cluster_test = new Mongodbatlas.Cluster(\"cluster-test\", new()\n {\n ProjectId = \"\u003cYOUR-PROJECT-ID\u003e\",\n Name = \"cluster-test\",\n ClusterType = \"REPLICASET\",\n ReplicationSpecs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecArgs\n {\n NumShards = 1,\n RegionsConfigs = new[]\n {\n new Mongodbatlas.Inputs.ClusterReplicationSpecRegionsConfigArgs\n {\n RegionName = \"US_EAST_1\",\n ElectableNodes = 3,\n Priority = 7,\n ReadOnlyNodes = 0,\n },\n },\n },\n },\n BackupEnabled = true,\n AutoScalingDiskGbEnabled = true,\n MongoDbMajorVersion = \"7.0\",\n ProviderName = \"AWS\",\n ProviderInstanceSizeName = \"M40\",\n });\n\n var config = new Mongodbatlas.GlobalClusterConfig(\"config\", new()\n {\n ProjectId = test.ProjectId,\n ClusterName = test.Name,\n ManagedNamespaces = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigManagedNamespaceArgs\n {\n Db = \"mydata\",\n Collection = \"publishers\",\n CustomShardKey = \"city\",\n },\n },\n CustomZoneMappings = new[]\n {\n new Mongodbatlas.Inputs.GlobalClusterConfigCustomZoneMappingArgs\n {\n Location = \"CA\",\n Zone = \"Zone 1\",\n },\n },\n });\n\n});\n```\n```go\npackage main\n\nimport (\n\t\"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas\"\n\t\"github.com/pulumi/pulumi/sdk/v3/go/pulumi\"\n)\n\nfunc main() {\n\tpulumi.Run(func(ctx *pulumi.Context) error {\n\t\t_, err := mongodbatlas.NewCluster(ctx, \"cluster-test\", \u0026mongodbatlas.ClusterArgs{\n\t\t\tProjectId: pulumi.String(\"\u003cYOUR-PROJECT-ID\u003e\"),\n\t\t\tName: pulumi.String(\"cluster-test\"),\n\t\t\tClusterType: pulumi.String(\"REPLICASET\"),\n\t\t\tReplicationSpecs: mongodbatlas.ClusterReplicationSpecArray{\n\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecArgs{\n\t\t\t\t\tNumShards: pulumi.Int(1),\n\t\t\t\t\tRegionsConfigs: mongodbatlas.ClusterReplicationSpecRegionsConfigArray{\n\t\t\t\t\t\t\u0026mongodbatlas.ClusterReplicationSpecRegionsConfigArgs{\n\t\t\t\t\t\t\tRegionName: pulumi.String(\"US_EAST_1\"),\n\t\t\t\t\t\t\tElectableNodes: pulumi.Int(3),\n\t\t\t\t\t\t\tPriority: pulumi.Int(7),\n\t\t\t\t\t\t\tReadOnlyNodes: pulumi.Int(0),\n\t\t\t\t\t\t},\n\t\t\t\t\t},\n\t\t\t\t},\n\t\t\t},\n\t\t\tBackupEnabled: pulumi.Bool(true),\n\t\t\tAutoScalingDiskGbEnabled: pulumi.Bool(true),\n\t\t\tMongoDbMajorVersion: pulumi.String(\"7.0\"),\n\t\t\tProviderName: pulumi.String(\"AWS\"),\n\t\t\tProviderInstanceSizeName: pulumi.String(\"M40\"),\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\t_, err = mongodbatlas.NewGlobalClusterConfig(ctx, \"config\", \u0026mongodbatlas.GlobalClusterConfigArgs{\n\t\t\tProjectId: pulumi.Any(test.ProjectId),\n\t\t\tClusterName: pulumi.Any(test.Name),\n\t\t\tManagedNamespaces: mongodbatlas.GlobalClusterConfigManagedNamespaceArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigManagedNamespaceArgs{\n\t\t\t\t\tDb: pulumi.String(\"mydata\"),\n\t\t\t\t\tCollection: pulumi.String(\"publishers\"),\n\t\t\t\t\tCustomShardKey: pulumi.String(\"city\"),\n\t\t\t\t},\n\t\t\t},\n\t\t\tCustomZoneMappings: mongodbatlas.GlobalClusterConfigCustomZoneMappingArray{\n\t\t\t\t\u0026mongodbatlas.GlobalClusterConfigCustomZoneMappingArgs{\n\t\t\t\t\tLocation: pulumi.String(\"CA\"),\n\t\t\t\t\tZone: pulumi.String(\"Zone 1\"),\n\t\t\t\t},\n\t\t\t},\n\t\t})\n\t\tif err != nil {\n\t\t\treturn err\n\t\t}\n\t\treturn nil\n\t})\n}\n```\n```java\npackage generated_program;\n\nimport com.pulumi.Context;\nimport com.pulumi.Pulumi;\nimport com.pulumi.core.Output;\nimport com.pulumi.mongodbatlas.Cluster;\nimport com.pulumi.mongodbatlas.ClusterArgs;\nimport com.pulumi.mongodbatlas.inputs.ClusterReplicationSpecArgs;\nimport com.pulumi.mongodbatlas.GlobalClusterConfig;\nimport com.pulumi.mongodbatlas.GlobalClusterConfigArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigManagedNamespaceArgs;\nimport com.pulumi.mongodbatlas.inputs.GlobalClusterConfigCustomZoneMappingArgs;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Map;\nimport java.io.File;\nimport java.nio.file.Files;\nimport java.nio.file.Paths;\n\npublic class App {\n public static void main(String[] args) {\n Pulumi.run(App::stack);\n }\n\n public static void stack(Context ctx) {\n var cluster_test = new Cluster(\"cluster-test\", ClusterArgs.builder()\n .projectId(\"\u003cYOUR-PROJECT-ID\u003e\")\n .name(\"cluster-test\")\n .clusterType(\"REPLICASET\")\n .replicationSpecs(ClusterReplicationSpecArgs.builder()\n .numShards(1)\n .regionsConfigs(ClusterReplicationSpecRegionsConfigArgs.builder()\n .regionName(\"US_EAST_1\")\n .electableNodes(3)\n .priority(7)\n .readOnlyNodes(0)\n .build())\n .build())\n .backupEnabled(true)\n .autoScalingDiskGbEnabled(true)\n .mongoDbMajorVersion(\"7.0\")\n .providerName(\"AWS\")\n .providerInstanceSizeName(\"M40\")\n .build());\n\n var config = new GlobalClusterConfig(\"config\", GlobalClusterConfigArgs.builder()\n .projectId(test.projectId())\n .clusterName(test.name())\n .managedNamespaces(GlobalClusterConfigManagedNamespaceArgs.builder()\n .db(\"mydata\")\n .collection(\"publishers\")\n .customShardKey(\"city\")\n .build())\n .customZoneMappings(GlobalClusterConfigCustomZoneMappingArgs.builder()\n .location(\"CA\")\n .zone(\"Zone 1\")\n .build())\n .build());\n\n }\n}\n```\n```yaml\nresources:\n cluster-test:\n type: mongodbatlas:Cluster\n properties:\n projectId: \u003cYOUR-PROJECT-ID\u003e\n name: cluster-test\n clusterType: REPLICASET\n replicationSpecs:\n - numShards: 1\n regionsConfigs:\n - regionName: US_EAST_1\n electableNodes: 3\n priority: 7\n readOnlyNodes: 0\n backupEnabled: true\n autoScalingDiskGbEnabled: true\n mongoDbMajorVersion: '7.0'\n providerName: AWS\n providerInstanceSizeName: M40\n config:\n type: mongodbatlas:GlobalClusterConfig\n properties:\n projectId: ${test.projectId}\n clusterName: ${test.name}\n managedNamespaces:\n - db: mydata\n collection: publishers\n customShardKey: city\n customZoneMappings:\n - location: CA\n zone: Zone 1\n```\n\u003c!--End PulumiCodeChooser --\u003e\n\n## Import\n\nGlobal Clusters can be imported using project ID and cluster name, in the format `PROJECTID-CLUSTER_NAME`, e.g.\n\n```sh\n$ pulumi import mongodbatlas:index/globalClusterConfig:GlobalClusterConfig config 1112222b3bf99403840e8934-Cluster0\n```\nSee detailed information for arguments and attributes: [MongoDB API Global Clusters](https://docs.atlas.mongodb.com/reference/api/global-clusters/)\n\n", "properties": { "clusterName": { "type": "string", @@ -17644,11 +17656,13 @@ }, "azureDirectoryId": { "type": "string", - "description": "Unique identifier for an Azure AD directory.\n" + "description": "Unique identifier for an Azure AD directory.\n", + "willReplaceOnChanges": true }, "azureSubscriptionId": { "type": "string", - "description": "Unique identifier of the Azure subscription in which the VNet resides.\n" + "description": "Unique identifier of the Azure subscription in which the VNet resides.\n", + "willReplaceOnChanges": true }, "containerId": { "type": "string", @@ -17674,7 +17688,8 @@ }, "resourceGroupName": { "type": "string", - "description": "Name of your Azure resource group.\n" + "description": "Name of your Azure resource group.\n", + "willReplaceOnChanges": true }, "routeTableCidrBlock": { "type": "string", @@ -17682,7 +17697,8 @@ }, "vnetName": { "type": "string", - "description": "Name of your Azure VNet.\n" + "description": "Name of your Azure VNet.\n", + "willReplaceOnChanges": true }, "vpcId": { "type": "string", @@ -17722,11 +17738,13 @@ }, "azureDirectoryId": { "type": "string", - "description": "Unique identifier for an Azure AD directory.\n" + "description": "Unique identifier for an Azure AD directory.\n", + "willReplaceOnChanges": true }, "azureSubscriptionId": { "type": "string", - "description": "Unique identifier of the Azure subscription in which the VNet resides.\n" + "description": "Unique identifier of the Azure subscription in which the VNet resides.\n", + "willReplaceOnChanges": true }, "connectionId": { "type": "string", @@ -17772,7 +17790,8 @@ }, "resourceGroupName": { "type": "string", - "description": "Name of your Azure resource group.\n" + "description": "Name of your Azure resource group.\n", + "willReplaceOnChanges": true }, "routeTableCidrBlock": { "type": "string", @@ -17788,7 +17807,8 @@ }, "vnetName": { "type": "string", - "description": "Name of your Azure VNet.\n" + "description": "Name of your Azure VNet.\n", + "willReplaceOnChanges": true }, "vpcId": { "type": "string", @@ -19180,6 +19200,7 @@ "isSchemaAdvisorEnabled", "name", "orgId", + "regionUsageRestrictions", "withDefaultAlertsSettings" ], "inputProperties": { @@ -22187,7 +22208,8 @@ "description": "Unique identifier of the snapshot export bucket.\n" }, "id": { - "type": "string" + "type": "string", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed." }, "projectId": { "type": "string", @@ -22197,7 +22219,6 @@ "type": "object", "required": [ "exportBucketId", - "id", "projectId" ] }, @@ -22220,6 +22241,7 @@ "type": "string" }, "id": { + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.", "type": "string" }, "projectId": { @@ -22311,7 +22333,8 @@ "description": "Unique identifier of the export job to retrieve.\n" }, "id": { - "type": "string" + "type": "string", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed." }, "projectId": { "type": "string", @@ -22322,7 +22345,6 @@ "required": [ "clusterName", "exportJobId", - "id", "projectId" ] }, @@ -22373,6 +22395,7 @@ "type": "string" }, "id": { + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.", "type": "string" }, "prefix": { @@ -22491,19 +22514,23 @@ }, "jobId": { "type": "string", - "description": "The unique identifier of the restore job to retrieve.\n", + "description": "A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead.\n", + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.", "willReplaceOnChanges": true }, "projectId": { "type": "string", "description": "The unique identifier of the project for the Atlas cluster.\n", "willReplaceOnChanges": true + }, + "snapshotRestoreJobId": { + "type": "string", + "description": "The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later.\n" } }, "type": "object", "required": [ "clusterName", - "jobId", "projectId" ] }, @@ -22518,6 +22545,7 @@ "type": "string" }, "createdAt": { + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0.", "description": "UTC ISO 8601 formatted point in time when Atlas created the restore job.\n", "type": "string" }, @@ -22549,6 +22577,7 @@ "type": "string" }, "jobId": { + "deprecationMessage": "This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.", "type": "string" }, "oplogInc": { @@ -22567,6 +22596,9 @@ "description": "Unique identifier of the source snapshot ID of the restore job.\n", "type": "string" }, + "snapshotRestoreJobId": { + "type": "string" + }, "targetClusterName": { "description": "Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated.\n", "type": "string" @@ -22589,7 +22621,6 @@ "expired", "expiresAt", "finishedAt", - "jobId", "oplogInc", "oplogTs", "pointInTimeUtcSeconds", diff --git a/provider/go.mod b/provider/go.mod index 494154c0..c0c25b5d 100644 --- a/provider/go.mod +++ b/provider/go.mod @@ -37,7 +37,7 @@ require ( github.com/Masterminds/semver/v3 v3.2.0 // indirect github.com/Masterminds/sprig/v3 v3.2.3 // indirect github.com/Microsoft/go-winio v0.6.1 // indirect - github.com/ProtonMail/go-crypto v1.1.0-alpha.0 // indirect + github.com/ProtonMail/go-crypto v1.1.0-alpha.2 // indirect github.com/aead/chacha20 v0.0.0-20180709150244-8b13a72661da // indirect github.com/agext/levenshtein v1.2.3 // indirect github.com/apparentlymart/go-cidr v1.1.0 // indirect @@ -45,7 +45,7 @@ require ( github.com/armon/go-metrics v0.4.0 // indirect github.com/armon/go-radix v1.0.0 // indirect github.com/atotto/clipboard v0.1.4 // indirect - github.com/aws/aws-sdk-go v1.51.27 // indirect + github.com/aws/aws-sdk-go v1.53.7 // indirect github.com/aws/aws-sdk-go-v2 v1.26.1 // indirect github.com/aws/aws-sdk-go-v2/config v1.27.11 // indirect github.com/aws/aws-sdk-go-v2/credentials v1.17.11 // indirect @@ -107,8 +107,8 @@ require ( github.com/hashicorp/errwrap v1.1.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-getter v1.7.1 // indirect - github.com/hashicorp/go-hclog v1.6.2 // indirect + github.com/hashicorp/go-getter v1.7.4 // indirect + github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-immutable-radix v1.3.1 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect @@ -133,7 +133,7 @@ require ( github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect github.com/hashicorp/terraform-plugin-mux v0.16.0 // indirect github.com/hashicorp/terraform-plugin-sdk v1.17.2 // indirect - github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 // indirect + github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect github.com/hashicorp/vault/api v1.8.2 // indirect @@ -166,7 +166,7 @@ require ( github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect github.com/modern-go/reflect2 v1.0.2 // indirect github.com/mongodb-forks/digest v1.1.0 // indirect - github.com/mongodb/terraform-provider-mongodbatlas v1.16.0 // indirect + github.com/mongodb/terraform-provider-mongodbatlas v1.16.1 // indirect github.com/muesli/ansi v0.0.0-20230316100256-276c6243b2f6 // indirect github.com/muesli/cancelreader v0.2.2 // indirect github.com/muesli/reflow v0.3.0 // indirect @@ -224,7 +224,7 @@ require ( github.com/zclconf/go-cty-yaml v1.0.2 // indirect go.mongodb.org/atlas v0.36.0 // indirect go.mongodb.org/atlas-sdk/v20231115008 v20231115008.5.0 // indirect - go.mongodb.org/atlas-sdk/v20231115012 v20231115012.0.0 // indirect + go.mongodb.org/atlas-sdk/v20231115013 v20231115013.1.0 // indirect go.mongodb.org/realm v0.1.0 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.49.0 // indirect @@ -235,15 +235,15 @@ require ( go.uber.org/atomic v1.9.0 // indirect gocloud.dev v0.37.0 // indirect gocloud.dev/secrets/hashivault v0.27.0 // indirect - golang.org/x/crypto v0.22.0 // indirect + golang.org/x/crypto v0.23.0 // indirect golang.org/x/exp v0.0.0-20231110203233-9a3e6036ecaa // indirect - golang.org/x/mod v0.15.0 // indirect + golang.org/x/mod v0.16.0 // indirect golang.org/x/net v0.23.0 // indirect golang.org/x/oauth2 v0.18.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.19.0 // indirect - golang.org/x/term v0.19.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/term v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.17.0 // indirect golang.org/x/xerrors v0.0.0-20231012003039-104605ab7028 // indirect diff --git a/provider/go.sum b/provider/go.sum index 8c91bff2..76d695a6 100644 --- a/provider/go.sum +++ b/provider/go.sum @@ -1279,8 +1279,9 @@ github.com/NYTimes/gziphandler v0.0.0-20170623195520-56545f4a5d46/go.mod h1:3wb0 github.com/NYTimes/gziphandler v1.1.1/go.mod h1:n/CVRwUEOgIxrgPvAQhUUr9oeUtvrhMomdKFjzJNB0c= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= github.com/ProtonMail/go-crypto v0.0.0-20230828082145-3c4c8a2d2371/go.mod h1:EjAoLdwvbIOoOQr3ihjnSoLZRtE8azugULFRteWMNc0= -github.com/ProtonMail/go-crypto v1.1.0-alpha.0 h1:nHGfwXmFvJrSR9xu8qL7BkO4DqTHXE9N5vPhgY2I+j0= github.com/ProtonMail/go-crypto v1.1.0-alpha.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg= +github.com/ProtonMail/go-crypto v1.1.0-alpha.2/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/PuerkitoBio/purell v1.0.0/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/purell v1.1.1/go.mod h1:c11w/QuzBsJSee3cPx9rAFu61PvFxuPbtSwDGJws/X0= github.com/PuerkitoBio/urlesc v0.0.0-20160726150825-5bd2802263f2/go.mod h1:uGdkoq3SwY9Y+13GIhn11/XLaGBb4BfwItxLd5jeuXE= @@ -1364,8 +1365,8 @@ github.com/aws/aws-sdk-go v1.43.31/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4 github.com/aws/aws-sdk-go v1.44.45/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.68/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.51.27 h1:ZprksHovT4rFfNBHB+Bc/0p4PTntAnTlZP39DMA/Qp8= -github.com/aws/aws-sdk-go v1.51.27/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.53.7 h1:ZSsRYHLRxsbO2rJR2oPMz0SUkJLnBkN+1meT95B6Ixs= +github.com/aws/aws-sdk-go v1.53.7/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g= github.com/aws/aws-sdk-go-v2 v1.16.8/go.mod h1:6CpKuLXg2w7If3ABZCl/qZ6rEgwtjZTn4eAf4RcEyuw= github.com/aws/aws-sdk-go-v2 v1.26.1 h1:5554eUqIYVWpU0YmeeYZ0wU64H2VLBs8TlhRB2L+EkA= @@ -2169,8 +2170,8 @@ github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUK github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-getter v1.4.0/go.mod h1:7qxyCd8rBfcShwsvxgIguu4KbS3l8bUCwg2Umn7RjeY= github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI= -github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= -github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= +github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= github.com/hashicorp/go-hclog v0.12.0/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= @@ -2179,8 +2180,8 @@ github.com/hashicorp/go-hclog v0.14.1/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39 github.com/hashicorp/go-hclog v0.16.2/go.mod h1:whpDNt7SSdeAju8AWKIWsul05p54N/39EeqMAyrmvFQ= github.com/hashicorp/go-hclog v1.2.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-hclog v1.5.0/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= -github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= -github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= +github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-immutable-radix v1.0.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.2.0/go.mod h1:0y9vanUI8NX6FsYoO3zeMjhV/C5i9g4Q3DwcSNZ4P60= github.com/hashicorp/go-immutable-radix v1.3.1 h1:DKHmCUm2hRBK510BaiZlwvpD40f8bJFeZnpfm2KLowc= @@ -2239,8 +2240,9 @@ github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ github.com/hashicorp/golang-lru v0.5.4 h1:YDjusn29QI/Das2iO9M0BHnIbxPeyuCHsjMW+lJfyTc= github.com/hashicorp/golang-lru v0.5.4/go.mod h1:iADmTwqILo4mZ8BN3D2Q6+9jd8WM5uGBxy+E8yxSoD4= github.com/hashicorp/hc-install v0.6.2/go.mod h1:2JBpd+NCFKiHiu/yYCGaPyPHhZLxXTpz8oreHa/a3Ps= -github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkmcoxqs= github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= +github.com/hashicorp/hc-install v0.6.4 h1:QLqlM56/+SIIGvGcfFiwMY3z5WGXT066suo/v9Km8e0= +github.com/hashicorp/hc-install v0.6.4/go.mod h1:05LWLy8TD842OtgcfBbOT0WMoInBMUSHjmDx10zuBIA= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= @@ -2265,13 +2267,15 @@ github.com/hashicorp/terraform-config-inspect v0.0.0-20191115094559-17f92b0546e8 github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 h1:Pc5TCv9mbxFN6UVX0LH6CpQrdTM5YjbVI2w15237Pjk= github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A= github.com/hashicorp/terraform-exec v0.13.3/go.mod h1:SSg6lbUsVB3DmFyCPjBPklqf6EYGX0TlQ6QTxOlikDU= -github.com/hashicorp/terraform-exec v0.20.0 h1:DIZnPsqzPGuUnq6cH8jWcPunBfY+C+M8JyYF3vpnuEo= github.com/hashicorp/terraform-exec v0.20.0/go.mod h1:ckKGkJWbsNqFKV1itgMnE0hY9IYf1HoiekpuN0eWoDw= +github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ= +github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= github.com/hashicorp/terraform-json v0.4.0/go.mod h1:eAbqb4w0pSlRmdvl8fOyHAi/+8jnkVYN28gJkSJrLhU= github.com/hashicorp/terraform-json v0.10.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE= github.com/hashicorp/terraform-json v0.19.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= -github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= +github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= +github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= github.com/hashicorp/terraform-plugin-framework v1.8.0 h1:P07qy8RKLcoBkCrY2RHJer5AEvJnDuXomBgou6fD8kI= github.com/hashicorp/terraform-plugin-framework v1.8.0/go.mod h1:/CpTukO88PcL/62noU7cuyaSJ4Rsim+A/pa+3rUVufY= github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 h1:gm5b1kHgFFhaKFhm4h2TgvMUlNzFAtUqlcOWnWPm+9E= @@ -2290,8 +2294,8 @@ github.com/hashicorp/terraform-plugin-sdk v1.17.2 h1:V7DUR3yBWFrVB9z3ddpY7kiYVSs github.com/hashicorp/terraform-plugin-sdk v1.17.2/go.mod h1:wkvldbraEMkz23NxkkAsFS88A1R9eUiooiaUZyS6TLw= github.com/hashicorp/terraform-plugin-test v1.2.0/go.mod h1:QIJHYz8j+xJtdtLrFTlzQVC0ocr3rf/OjIpgZLK56Hs= github.com/hashicorp/terraform-plugin-test/v2 v2.2.1/go.mod h1:eZ9JL3O69Cb71Skn6OhHyj17sLmHRb+H6VrDcJjKrYU= -github.com/hashicorp/terraform-plugin-testing v1.7.0 h1:I6aeCyZ30z4NiI3tzyDoO6fS7YxP5xSL1ceOon3gTe8= -github.com/hashicorp/terraform-plugin-testing v1.7.0/go.mod h1:sbAreCleJNOCz+y5vVHV8EJkIWZKi/t4ndKiUjM9vao= +github.com/hashicorp/terraform-plugin-testing v1.8.0 h1:wdYIgwDk4iO933gC4S8KbKdnMQShu6BXuZQPScmHvpk= +github.com/hashicorp/terraform-plugin-testing v1.8.0/go.mod h1:o2kOgf18ADUaZGhtOl0YCkfIxg01MAiMATT2EtIHlZk= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.0.0-20191011084731-65d371908596/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= @@ -2605,8 +2609,8 @@ github.com/modern-go/reflect2 v1.0.2/go.mod h1:yWuevngMOJpCy52FWWMvUC8ws7m/LJsjY github.com/modocache/gover v0.0.0-20171022184752-b58185e213c5/go.mod h1:caMODM3PzxT8aQXRPkAt8xlV/e7d7w8GM5g0fa5F0D8= github.com/mongodb-forks/digest v1.1.0 h1:7eUdsR1BtqLv0mdNm4OXs6ddWvR4X2/OsLwdKksrOoc= github.com/mongodb-forks/digest v1.1.0/go.mod h1:rb+EX8zotClD5Dj4NdgxnJXG9nwrlx3NWKJ8xttz1Dg= -github.com/mongodb/terraform-provider-mongodbatlas v1.16.0 h1:84ojaOycmf9o9vnu3ieD/OUWNrU/FbWI9YW/8zxv9tE= -github.com/mongodb/terraform-provider-mongodbatlas v1.16.0/go.mod h1:O9XxQrxED5h0hnWlcsPWx6q+0bF/MGbBaVCT03BzS5M= +github.com/mongodb/terraform-provider-mongodbatlas v1.16.1 h1:vNYmRa3yBIKDRwzPNb1wqcbqv2ZH/hvukmOO1WEmohc= +github.com/mongodb/terraform-provider-mongodbatlas v1.16.1/go.mod h1:HkzXK7bGovwy0N0hOzrhL5xCxa27bva092YcnH3OwGA= github.com/montanaflynn/stats v0.0.0-20171201202039-1bf9dbcd8cbe/go.mod h1:wL8QJuTMNUDYhXwkmfOly8iTdp5TEcJFWZD2D7SIkUc= github.com/montanaflynn/stats v0.6.6/go.mod h1:etXPPgVO6n31NxCd9KQUMvCM+ve0ruNzt6R8Bnaayow= github.com/morikuni/aec v1.0.0/go.mod h1:BbKIizmSmc5MMPqRYbxO4ZU0S0+P200+tUnFx7PXmsc= @@ -3129,8 +3133,8 @@ go.mongodb.org/atlas v0.36.0 h1:m05S3AO7zkl+bcG1qaNsEKBnAqnKx2FDwLooHpIG3j4= go.mongodb.org/atlas v0.36.0/go.mod h1:nfPldE9dSama6G2IbIzmEza02Ly7yFZjMMVscaM0uEc= go.mongodb.org/atlas-sdk/v20231115008 v20231115008.5.0 h1:OuV1HfIpZUZa4+BKvtrvDlNqnilkCkdHspuZok6KAbM= go.mongodb.org/atlas-sdk/v20231115008 v20231115008.5.0/go.mod h1:0707RpWIrNFZ6Msy/dwRDCzC5JVDon61JoOqcbfCujg= -go.mongodb.org/atlas-sdk/v20231115012 v20231115012.0.0 h1:W9UBXxf+/honL2H8W0/GizUWa9kJ2Ge0H6gsexPTU6c= -go.mongodb.org/atlas-sdk/v20231115012 v20231115012.0.0/go.mod h1:8Mjf7v7mtjTcwF8NLsKjb1aqFAyf1bmsjzBoykjWdUw= +go.mongodb.org/atlas-sdk/v20231115013 v20231115013.1.0 h1:htLsuzEyZHKEi5gVK6hrLhImsWZkY+GoRxVBxqXroTs= +go.mongodb.org/atlas-sdk/v20231115013 v20231115013.1.0/go.mod h1:G5bDGIfo7lGetZuZqdYJ/ep1xw1LNBZ47j1PUuyvUiA= go.mongodb.org/mongo-driver v1.7.3/go.mod h1:NqaYOwnXWr5Pm7AOpO5QFxKJ503nbMse/R79oO62zWg= go.mongodb.org/mongo-driver v1.7.5/go.mod h1:VXEWRZ6URJIkUq2SCAyapmhH0ZLRBP+FT4xhp5Zvxng= go.mongodb.org/mongo-driver v1.8.3/go.mod h1:0sQWfOeY63QTntERDJJ/0SuKK0T1uVSgKCuAROlKEPY= @@ -3291,8 +3295,8 @@ golang.org/x/crypto v0.16.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq golang.org/x/crypto v0.17.0/go.mod h1:gCAAfMLgwOJRpTjQ2zCCt2OcSfYMTeZVSRtQlPC7Nq4= golang.org/x/crypto v0.18.0/go.mod h1:R0j02AL6hcrfOiy9T4ZYp/rcWeMxM3L6QYxlOuEG1mg= golang.org/x/crypto v0.19.0/go.mod h1:Iy9bg/ha4yyC70EfRS8jz+B6ybOBKMaSxLj6P6oBDfU= -golang.org/x/crypto v0.22.0 h1:g1v0xeRhjcugydODzvb3mEM9SQ0HGp9s/nh3COQ/C30= -golang.org/x/crypto v0.22.0/go.mod h1:vr6Su+7cTlO45qkww3VDJlzDn0ctJvRgYbC2NvXHt+M= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/exp v0.0.0-20180321215751-8460e604b9de/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20180807140117-3d87b88a115f/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= @@ -3358,8 +3362,9 @@ golang.org/x/mod v0.10.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.11.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.12.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= -golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= +golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -3700,8 +3705,8 @@ golang.org/x/sys v0.14.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.15.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.16.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/sys v0.17.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= -golang.org/x/sys v0.19.0 h1:q5f1RH2jigJ1MoAWp2KTp3gm5zAGFUTarQZ5U386+4o= -golang.org/x/sys v0.19.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201117132131-f5c789dd3221/go.mod h1:Nr5EML6q2oocZ2LXRh80K7BxOlk5/8JxuGnuhpl+muw= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210220032956-6a3ed077a48d/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= @@ -3725,8 +3730,8 @@ golang.org/x/term v0.14.0/go.mod h1:TySc+nGkYR6qt8km8wUhuFRTVSMIX3XPR58y2lC8vww= golang.org/x/term v0.15.0/go.mod h1:BDl952bC7+uMoWR75FIrCDx79TPU9oHkTZ9yRbYOrX0= golang.org/x/term v0.16.0/go.mod h1:yn7UURbUtPyrVJPGPq404EukNFxcm/foM+bV/bfcDsY= golang.org/x/term v0.17.0/go.mod h1:lLRBjIVuehSbZlaOtGMbcMncT+aqLLLmKrsjNrUguwk= -golang.org/x/term v0.19.0 h1:+ThwsDv+tYfnJFhF4L8jITxu1tdTWRTZpdsWgEgjL6Q= -golang.org/x/term v0.19.0/go.mod h1:2CuTdWZ7KHSQwUzKva0cbMg6q2DMI3Mmxp+gKJbskEk= +golang.org/x/term v0.20.0 h1:VnkxpohqXaOBYJtBmEppKUG6mXpi+4O6purfc2+sMhw= +golang.org/x/term v0.20.0/go.mod h1:8UkIAJTvZgivsXaD6/pH6U9ecQzZ45awqEOzuCvwpFY= golang.org/x/text v0.0.0-20170915032832-14c0d48ead0c/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= golang.org/x/text v0.3.1-0.20180807135948-17ff2d5776d2/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= @@ -3747,8 +3752,9 @@ golang.org/x/text v0.10.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.11.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.12.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= golang.org/x/text v0.13.0/go.mod h1:TvPlkZtksWOMsz7fbANvkp4WM8x/WCo/om8BMLbz+aE= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20180412165947-fbb02b2291d2/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= diff --git a/provider/shim/go.mod b/provider/shim/go.mod index d9b9af13..6f8925d7 100644 --- a/provider/shim/go.mod +++ b/provider/shim/go.mod @@ -6,8 +6,8 @@ toolchain go1.22.1 require ( github.com/hashicorp/terraform-plugin-framework v1.8.0 - github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 - github.com/mongodb/terraform-provider-mongodbatlas v1.16.0 + github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 + github.com/mongodb/terraform-provider-mongodbatlas v1.16.1 ) require ( @@ -23,7 +23,7 @@ require ( github.com/apparentlymart/go-cidr v1.1.0 // indirect github.com/apparentlymart/go-textseg/v15 v15.0.0 // indirect github.com/armon/go-radix v1.0.0 // indirect - github.com/aws/aws-sdk-go v1.51.27 // indirect + github.com/aws/aws-sdk-go v1.53.7 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/bgentry/speakeasy v0.1.0 // indirect github.com/fatih/color v1.16.0 // indirect @@ -42,8 +42,8 @@ require ( github.com/hashicorp/errwrap v1.0.0 // indirect github.com/hashicorp/go-cleanhttp v0.5.2 // indirect github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 // indirect - github.com/hashicorp/go-getter v1.7.1 // indirect - github.com/hashicorp/go-hclog v1.6.2 // indirect + github.com/hashicorp/go-getter v1.7.4 // indirect + github.com/hashicorp/go-hclog v1.6.3 // indirect github.com/hashicorp/go-multierror v1.1.1 // indirect github.com/hashicorp/go-plugin v1.6.0 // indirect github.com/hashicorp/go-safetemp v1.0.0 // indirect @@ -53,9 +53,9 @@ require ( github.com/hashicorp/logutils v1.0.0 // indirect github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 // indirect github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 // indirect - github.com/hashicorp/terraform-plugin-go v0.22.2 // indirect + github.com/hashicorp/terraform-plugin-go v0.23.0 // indirect github.com/hashicorp/terraform-plugin-log v0.9.0 // indirect - github.com/hashicorp/terraform-plugin-mux v0.15.0 // indirect + github.com/hashicorp/terraform-plugin-mux v0.16.0 // indirect github.com/hashicorp/terraform-plugin-sdk v1.17.2 // indirect github.com/hashicorp/terraform-registry-address v0.2.3 // indirect github.com/hashicorp/terraform-svchost v0.1.1 // indirect @@ -87,7 +87,7 @@ require ( github.com/zclconf/go-cty-yaml v1.0.2 // indirect go.mongodb.org/atlas v0.36.0 // indirect go.mongodb.org/atlas-sdk/v20231115008 v20231115008.5.0 // indirect - go.mongodb.org/atlas-sdk/v20231115012 v20231115012.0.0 // indirect + go.mongodb.org/atlas-sdk/v20231115013 v20231115013.1.0 // indirect go.mongodb.org/realm v0.1.0 // indirect go.opencensus.io v0.24.0 // indirect go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.47.0 // indirect @@ -95,13 +95,13 @@ require ( go.opentelemetry.io/otel v1.22.0 // indirect go.opentelemetry.io/otel/metric v1.22.0 // indirect go.opentelemetry.io/otel/trace v1.22.0 // indirect - golang.org/x/crypto v0.21.0 // indirect - golang.org/x/mod v0.15.0 // indirect + golang.org/x/crypto v0.23.0 // indirect + golang.org/x/mod v0.16.0 // indirect golang.org/x/net v0.23.0 // indirect golang.org/x/oauth2 v0.17.0 // indirect golang.org/x/sync v0.6.0 // indirect - golang.org/x/sys v0.18.0 // indirect - golang.org/x/text v0.14.0 // indirect + golang.org/x/sys v0.20.0 // indirect + golang.org/x/text v0.15.0 // indirect golang.org/x/time v0.5.0 // indirect golang.org/x/tools v0.13.0 // indirect google.golang.org/api v0.162.0 // indirect @@ -110,5 +110,5 @@ require ( google.golang.org/genproto/googleapis/api v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/genproto/googleapis/rpc v0.0.0-20240227224415-6ceb2ff114de // indirect google.golang.org/grpc v1.63.2 // indirect - google.golang.org/protobuf v1.33.0 // indirect + google.golang.org/protobuf v1.34.0 // indirect ) diff --git a/provider/shim/go.sum b/provider/shim/go.sum index 1011a116..7df59674 100644 --- a/provider/shim/go.sum +++ b/provider/shim/go.sum @@ -204,8 +204,8 @@ github.com/Masterminds/sprig/v3 v3.2.3/go.mod h1:rXcFaZ2zZbLRJv/xSysmlgIM1u11eBa github.com/Microsoft/go-winio v0.4.14/go.mod h1:qXqCSQ3Xa7+6tgxaGTIe4Kpcdsi+P8jBhyzoq1bpyYA= github.com/Microsoft/go-winio v0.4.16/go.mod h1:XB6nPKklQyQ7GC9LdcBEcBl8PF76WugXOPRXwdLnMv0= github.com/OneOfOne/xxhash v1.2.2/go.mod h1:HSdplMjZKSmBqAxg5vPj2TmRDmfkzw+cTzAElWljhcU= -github.com/ProtonMail/go-crypto v1.1.0-alpha.0 h1:nHGfwXmFvJrSR9xu8qL7BkO4DqTHXE9N5vPhgY2I+j0= -github.com/ProtonMail/go-crypto v1.1.0-alpha.0/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= +github.com/ProtonMail/go-crypto v1.1.0-alpha.2 h1:bkyFVUP+ROOARdgCiJzNQo2V2kiB97LyUpzH9P6Hrlg= +github.com/ProtonMail/go-crypto v1.1.0-alpha.2/go.mod h1:rA3QumHc/FZ8pAHreoekgiAbzpNsfQAosU5td4SnOrE= github.com/agext/levenshtein v1.2.1/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.2/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7lmo= @@ -232,8 +232,8 @@ github.com/armon/go-socks5 v0.0.0-20160902184237-e75332964ef5/go.mod h1:wHh0iHkY github.com/aws/aws-sdk-go v1.15.78/go.mod h1:E3/ieXAlvM0XWO57iftYVDLLvQ824smPP3ATZkfNZeM= github.com/aws/aws-sdk-go v1.37.0/go.mod h1:hcU610XS61/+aQV88ixoOzUoG7v3b31pl2zKMmprdro= github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX4oIKwKHZo= -github.com/aws/aws-sdk-go v1.51.27 h1:ZprksHovT4rFfNBHB+Bc/0p4PTntAnTlZP39DMA/Qp8= -github.com/aws/aws-sdk-go v1.51.27/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= +github.com/aws/aws-sdk-go v1.53.7 h1:ZSsRYHLRxsbO2rJR2oPMz0SUkJLnBkN+1meT95B6Ixs= +github.com/aws/aws-sdk-go v1.53.7/go.mod h1:LF8svs817+Nz+DmiMQKTO3ubZ/6IaTpq3TjupRn3Eqk= github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d h1:xDfNPAt8lFiC1UJrqV3uuy861HCTo708pDMbjHHdCas= github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d/go.mod h1:6QX/PXZ00z/TKoufEY6K/a0k6AhaJrQKdFe6OfVXsa4= github.com/bgentry/speakeasy v0.1.0 h1:ByYyxL9InA1OWqxJqqp2A5pYHUrCiAL6K3J+LKSsQkY= @@ -424,12 +424,12 @@ github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/S github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320 h1:1/D3zfFHttUKaCaGKZ/dR2roBXv0vKbSCnssIldfQdI= github.com/hashicorp/go-cty v1.4.1-0.20200414143053-d3edf31b6320/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs= github.com/hashicorp/go-getter v1.5.3/go.mod h1:BrrV/1clo8cCYu6mxvboYg+KutTiFnXjMEgDD8+i7ZI= -github.com/hashicorp/go-getter v1.7.1 h1:SWiSWN/42qdpR0MdhaOc/bLR48PLuP1ZQtYLRlM69uY= -github.com/hashicorp/go-getter v1.7.1/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= +github.com/hashicorp/go-getter v1.7.4 h1:3yQjWuxICvSpYwqSayAdKRFcvBl1y/vogCxczWSmix0= +github.com/hashicorp/go-getter v1.7.4/go.mod h1:W7TalhMmbPmsSMdNjD0ZskARur/9GJ17cfHTRtXV744= github.com/hashicorp/go-hclog v0.0.0-20180709165350-ff2cf002a8dd/go.mod h1:9bjs9uLqI8l75knNv3lV1kA55veR+WUPSiKIWcQHudI= github.com/hashicorp/go-hclog v0.9.2/go.mod h1:5CU+agLiy3J7N7QjHK5d05KxGsuXiQLrjA0H7acj2lQ= -github.com/hashicorp/go-hclog v1.6.2 h1:NOtoftovWkDheyUM/8JW3QMiXyxJK3uHRK7wV04nD2I= -github.com/hashicorp/go-hclog v1.6.2/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= +github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k= +github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M= github.com/hashicorp/go-multierror v1.0.0/go.mod h1:dHtQlpGsu+cZNNAkkCN/P3hoUDHhCYQXV3UM06sGGrk= github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo= github.com/hashicorp/go-multierror v1.1.1/go.mod h1:iw975J/qwKPdAO1clOe2L8331t/9/fmwbPZ6JB6eMoM= @@ -449,8 +449,8 @@ github.com/hashicorp/go-version v1.6.0 h1:feTTfFNnjP967rlCxM/I9g701jU+RN74YKx2mO github.com/hashicorp/go-version v1.6.0/go.mod h1:fltr4n8CU8Ke44wwGCBoEymUuxUHl09ZGVZPK5anwXA= github.com/hashicorp/golang-lru v0.5.0/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= github.com/hashicorp/golang-lru v0.5.1/go.mod h1:/m3WP610KZHVQ1SGc6re/UDhFvYD7pJ4Ao+sR/qLZy8= -github.com/hashicorp/hc-install v0.6.3 h1:yE/r1yJvWbtrJ0STwScgEnCanb0U9v7zp0Gbkmcoxqs= -github.com/hashicorp/hc-install v0.6.3/go.mod h1:KamGdbodYzlufbWh4r9NRo8y6GLHWZP2GBtdnms1Ln0= +github.com/hashicorp/hc-install v0.6.4 h1:QLqlM56/+SIIGvGcfFiwMY3z5WGXT066suo/v9Km8e0= +github.com/hashicorp/hc-install v0.6.4/go.mod h1:05LWLy8TD842OtgcfBbOT0WMoInBMUSHjmDx10zuBIA= github.com/hashicorp/hcl v0.0.0-20170504190234-a4b07c25de5f/go.mod h1:oZtUIOe8dh44I2q6ScRibXws4Ajl+d+nod3AaR9vL5w= github.com/hashicorp/hcl v1.0.0 h1:0Anlzjpi4vEasTeNFn2mLJgTSwt0+6sfsiTG8qcWGx4= github.com/hashicorp/hcl v1.0.0/go.mod h1:E5yfLk+7swimpb2L/Alb/PJmXilQ/rhwaUYs4T20WEQ= @@ -463,30 +463,30 @@ github.com/hashicorp/logutils v1.0.0/go.mod h1:QIAnNjmIWmVIIkWDTG1z5v++HQmx9WQRO github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7 h1:Pc5TCv9mbxFN6UVX0LH6CpQrdTM5YjbVI2w15237Pjk= github.com/hashicorp/terraform-config-inspect v0.0.0-20191212124732-c6ae6269b9d7/go.mod h1:p+ivJws3dpqbp1iP84+npOyAmTTOLMgCzrXd3GSdn/A= github.com/hashicorp/terraform-exec v0.13.3/go.mod h1:SSg6lbUsVB3DmFyCPjBPklqf6EYGX0TlQ6QTxOlikDU= -github.com/hashicorp/terraform-exec v0.20.0 h1:DIZnPsqzPGuUnq6cH8jWcPunBfY+C+M8JyYF3vpnuEo= -github.com/hashicorp/terraform-exec v0.20.0/go.mod h1:ckKGkJWbsNqFKV1itgMnE0hY9IYf1HoiekpuN0eWoDw= +github.com/hashicorp/terraform-exec v0.21.0 h1:uNkLAe95ey5Uux6KJdua6+cv8asgILFVWkd/RG0D2XQ= +github.com/hashicorp/terraform-exec v0.21.0/go.mod h1:1PPeMYou+KDUSSeRE9szMZ/oHf4fYUmB923Wzbq1ICg= github.com/hashicorp/terraform-json v0.10.0/go.mod h1:3defM4kkMfttwiE7VakJDwCd4R+umhSQnvJwORXbprE= -github.com/hashicorp/terraform-json v0.21.0 h1:9NQxbLNqPbEMze+S6+YluEdXgJmhQykRyRNd+zTI05U= -github.com/hashicorp/terraform-json v0.21.0/go.mod h1:qdeBs11ovMzo5puhrRibdD6d2Dq6TyE/28JiU4tIQxk= +github.com/hashicorp/terraform-json v0.22.1 h1:xft84GZR0QzjPVWs4lRUwvTcPnegqlyS7orfb5Ltvec= +github.com/hashicorp/terraform-json v0.22.1/go.mod h1:JbWSQCLFSXFFhg42T7l9iJwdGXBYV8fmmD6o/ML4p3A= github.com/hashicorp/terraform-plugin-framework v1.8.0 h1:P07qy8RKLcoBkCrY2RHJer5AEvJnDuXomBgou6fD8kI= github.com/hashicorp/terraform-plugin-framework v1.8.0/go.mod h1:/CpTukO88PcL/62noU7cuyaSJ4Rsim+A/pa+3rUVufY= github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1 h1:gm5b1kHgFFhaKFhm4h2TgvMUlNzFAtUqlcOWnWPm+9E= github.com/hashicorp/terraform-plugin-framework-timeouts v0.4.1/go.mod h1:MsjL1sQ9L7wGwzJ5RjcI6FzEMdyoBnw+XK8ZnOvQOLY= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0 h1:HOjBuMbOEzl7snOdOoUfE2Jgeto6JOjLVQ39Ls2nksc= github.com/hashicorp/terraform-plugin-framework-validators v0.12.0/go.mod h1:jfHGE/gzjxYz6XoUwi/aYiiKrJDeutQNUtGQXkaHklg= -github.com/hashicorp/terraform-plugin-go v0.22.2 h1:5o8uveu6eZUf5J7xGPV0eY0TPXg3qpmwX9sce03Bxnc= -github.com/hashicorp/terraform-plugin-go v0.22.2/go.mod h1:drq8Snexp9HsbFZddvyLHN6LuWHHndSQg+gV+FPkcIM= +github.com/hashicorp/terraform-plugin-go v0.23.0 h1:AALVuU1gD1kPb48aPQUjug9Ir/125t+AAurhqphJ2Co= +github.com/hashicorp/terraform-plugin-go v0.23.0/go.mod h1:1E3Cr9h2vMlahWMbsSEcNrOCxovCZhOOIXjFHbjc/lQ= github.com/hashicorp/terraform-plugin-log v0.9.0 h1:i7hOA+vdAItN1/7UrfBqBwvYPQ9TFvymaRGZED3FCV0= github.com/hashicorp/terraform-plugin-log v0.9.0/go.mod h1:rKL8egZQ/eXSyDqzLUuwUYLVdlYeamldAHSxjUFADow= -github.com/hashicorp/terraform-plugin-mux v0.15.0 h1:+/+lDx0WUsIOpkAmdwBIoFU8UP9o2eZASoOnLsWbKME= -github.com/hashicorp/terraform-plugin-mux v0.15.0/go.mod h1:9ezplb1Dyq394zQ+ldB0nvy/qbNAz3mMoHHseMTMaKo= +github.com/hashicorp/terraform-plugin-mux v0.16.0 h1:RCzXHGDYwUwwqfYYWJKBFaS3fQsWn/ZECEiW7p2023I= +github.com/hashicorp/terraform-plugin-mux v0.16.0/go.mod h1:PF79mAsPc8CpusXPfEVa4X8PtkB+ngWoiUClMrNZlYo= github.com/hashicorp/terraform-plugin-sdk v1.17.2 h1:V7DUR3yBWFrVB9z3ddpY7kiYVSsq4NYR67NiTs93NQo= github.com/hashicorp/terraform-plugin-sdk v1.17.2/go.mod h1:wkvldbraEMkz23NxkkAsFS88A1R9eUiooiaUZyS6TLw= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0 h1:qHprzXy/As0rxedphECBEQAh3R4yp6pKksKHcqZx5G8= -github.com/hashicorp/terraform-plugin-sdk/v2 v2.33.0/go.mod h1:H+8tjs9TjV2w57QFVSMBQacf8k/E1XwLXGCARgViC6A= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0 h1:kJiWGx2kiQVo97Y5IOGR4EMcZ8DtMswHhUuFibsCQQE= +github.com/hashicorp/terraform-plugin-sdk/v2 v2.34.0/go.mod h1:sl/UoabMc37HA6ICVMmGO+/0wofkVIRxf+BMb/dnoIg= github.com/hashicorp/terraform-plugin-test/v2 v2.2.1/go.mod h1:eZ9JL3O69Cb71Skn6OhHyj17sLmHRb+H6VrDcJjKrYU= -github.com/hashicorp/terraform-plugin-testing v1.7.0 h1:I6aeCyZ30z4NiI3tzyDoO6fS7YxP5xSL1ceOon3gTe8= -github.com/hashicorp/terraform-plugin-testing v1.7.0/go.mod h1:sbAreCleJNOCz+y5vVHV8EJkIWZKi/t4ndKiUjM9vao= +github.com/hashicorp/terraform-plugin-testing v1.8.0 h1:wdYIgwDk4iO933gC4S8KbKdnMQShu6BXuZQPScmHvpk= +github.com/hashicorp/terraform-plugin-testing v1.8.0/go.mod h1:o2kOgf18ADUaZGhtOl0YCkfIxg01MAiMATT2EtIHlZk= github.com/hashicorp/terraform-registry-address v0.2.3 h1:2TAiKJ1A3MAkZlH1YI/aTVcLZRu7JseiXNRHbOAyoTI= github.com/hashicorp/terraform-registry-address v0.2.3/go.mod h1:lFHA76T8jfQteVfT7caREqguFrW3c4MFSPhZB7HHgUM= github.com/hashicorp/terraform-svchost v0.0.0-20200729002733-f050f53b9734/go.mod h1:kNDNcF7sN4DocDLBkQYz73HGKwN1ANB1blq4lIYLYvg= @@ -579,8 +579,8 @@ github.com/mitchellh/reflectwalk v1.0.2 h1:G2LzWKi524PWgd3mLHV8Y5k7s6XUvT0Gef6zx github.com/mitchellh/reflectwalk v1.0.2/go.mod h1:mSTlrgnPZtwu0c4WaC2kGObEpuNDbx0jmZXqmk4esnw= github.com/mongodb-forks/digest v1.1.0 h1:7eUdsR1BtqLv0mdNm4OXs6ddWvR4X2/OsLwdKksrOoc= github.com/mongodb-forks/digest v1.1.0/go.mod h1:rb+EX8zotClD5Dj4NdgxnJXG9nwrlx3NWKJ8xttz1Dg= -github.com/mongodb/terraform-provider-mongodbatlas v1.16.0 h1:84ojaOycmf9o9vnu3ieD/OUWNrU/FbWI9YW/8zxv9tE= -github.com/mongodb/terraform-provider-mongodbatlas v1.16.0/go.mod h1:O9XxQrxED5h0hnWlcsPWx6q+0bF/MGbBaVCT03BzS5M= +github.com/mongodb/terraform-provider-mongodbatlas v1.16.1 h1:vNYmRa3yBIKDRwzPNb1wqcbqv2ZH/hvukmOO1WEmohc= +github.com/mongodb/terraform-provider-mongodbatlas v1.16.1/go.mod h1:HkzXK7bGovwy0N0hOzrhL5xCxa27bva092YcnH3OwGA= github.com/niemeyer/pretty v0.0.0-20200227124842-a10e7caefd8e/go.mod h1:zD1mROLANZcx1PVRCS0qkT7pwLkGfwJo4zjcN/Tysno= github.com/oklog/run v1.0.0 h1:Ru7dDtJNOyC66gQ5dQmaCa0qIsAUFY3sFpK1Xk8igrw= github.com/oklog/run v1.0.0/go.mod h1:dlhp/R75TPv97u0XWUtDeV/lRKWPKSdTuV0TZvrmrQA= @@ -669,8 +669,8 @@ go.mongodb.org/atlas v0.36.0 h1:m05S3AO7zkl+bcG1qaNsEKBnAqnKx2FDwLooHpIG3j4= go.mongodb.org/atlas v0.36.0/go.mod h1:nfPldE9dSama6G2IbIzmEza02Ly7yFZjMMVscaM0uEc= go.mongodb.org/atlas-sdk/v20231115008 v20231115008.5.0 h1:OuV1HfIpZUZa4+BKvtrvDlNqnilkCkdHspuZok6KAbM= go.mongodb.org/atlas-sdk/v20231115008 v20231115008.5.0/go.mod h1:0707RpWIrNFZ6Msy/dwRDCzC5JVDon61JoOqcbfCujg= -go.mongodb.org/atlas-sdk/v20231115012 v20231115012.0.0 h1:W9UBXxf+/honL2H8W0/GizUWa9kJ2Ge0H6gsexPTU6c= -go.mongodb.org/atlas-sdk/v20231115012 v20231115012.0.0/go.mod h1:8Mjf7v7mtjTcwF8NLsKjb1aqFAyf1bmsjzBoykjWdUw= +go.mongodb.org/atlas-sdk/v20231115013 v20231115013.1.0 h1:htLsuzEyZHKEi5gVK6hrLhImsWZkY+GoRxVBxqXroTs= +go.mongodb.org/atlas-sdk/v20231115013 v20231115013.1.0/go.mod h1:G5bDGIfo7lGetZuZqdYJ/ep1xw1LNBZ47j1PUuyvUiA= go.mongodb.org/realm v0.1.0 h1:zJiXyLaZrznQ+Pz947ziSrDKUep39DO4SfA0Fzx8M4M= go.mongodb.org/realm v0.1.0/go.mod h1:4Vj6iy+Puo1TDERcoh4XZ+pjtwbOzPpzqy3Cwe8ZmDM= go.opencensus.io v0.21.0/go.mod h1:mSImk1erAIZhrmZN+AvHh14ztQfjbGwt4TtuofqLduU= @@ -709,8 +709,8 @@ golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.0.0-20211108221036-ceb1ce70b4fa/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= golang.org/x/crypto v0.3.0/go.mod h1:hebNnKkNXi2UzZN1eVRvBB7co0a+JxK6XbPiWVs/3J4= -golang.org/x/crypto v0.21.0 h1:X31++rzVUdKhX5sWmSOFZxx8UW/ldWx55cbf08iNAMA= -golang.org/x/crypto v0.21.0/go.mod h1:0BP7YvVV9gBbVKyeTG0Gyn+gZm94bibOW5BjDEYAOMs= +golang.org/x/crypto v0.23.0 h1:dIJU/v2J8Mdglj/8rJ6UUOM3Zc9zLZxVZwwxMooUSAI= +golang.org/x/crypto v0.23.0/go.mod h1:CKFgDieR+mRhux2Lsu27y0fO304Db0wZe70UKqHu0v8= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190510132918-efd6b22b2522/go.mod h1:ZjyILWgesfNpC6sMxTJOJm9Kp84zZh5NQWvqDGG3Qr8= @@ -747,8 +747,8 @@ golang.org/x/mod v0.4.0/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.1/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.4.2/go.mod h1:s0Qsj1ACt9ePp/hMypM3fl4fZqREWJwdYDEqhRiZZUA= golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.15.0 h1:SernR4v+D55NyBH2QiEQrlBAnj1ECL6AGrA5+dPaMY8= -golang.org/x/mod v0.15.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/mod v0.16.0 h1:QX4fJ0Rr5cPQCF7O9lh9Se4pmwfwskqZfq5moyldzic= +golang.org/x/mod v0.16.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= golang.org/x/net v0.0.0-20180530234432-1e491301e022/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180724234803-3673e40ba225/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= golang.org/x/net v0.0.0-20180811021610-c39426892332/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4= @@ -922,8 +922,8 @@ golang.org/x/sys v0.0.0-20220811171246-fbc7d0a398ab/go.mod h1:oPkhp1MJrh7nUepCBc golang.org/x/sys v0.1.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.2.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.18.0 h1:DBdB3niSjOA/O0blCZBqDefyWNYveAYMNF1Wum0DYQ4= -golang.org/x/sys v0.18.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= +golang.org/x/sys v0.20.0 h1:Od9JTbYCk261bKm4M/mw7AklTlFYIa0bIp9BgSm1S8Y= +golang.org/x/sys v0.20.0/go.mod h1:/VUhepiaJMQUp4+oa/7Zr1D23ma6VTLIYjOOTFZPUcA= golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= golang.org/x/term v0.1.0/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= @@ -939,8 +939,8 @@ golang.org/x/text v0.3.6/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= golang.org/x/text v0.3.8/go.mod h1:E6s5w1FMmriuDzIBO73fBruAKo1PCIq6d2Q6DHfQ8WQ= golang.org/x/text v0.4.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.14.0 h1:ScX5w1eTa3QqT8oi6+ziP7dTV1S2+ALU0bI+0zXKWiQ= -golang.org/x/text v0.14.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= +golang.org/x/text v0.15.0 h1:h1V/4gjBv8v9cjcR6+AR5+/cIYK5N/WAgiv4xlsEtAk= +golang.org/x/text v0.15.0/go.mod h1:18ZOQIKpY8NJVqYksKHtTdi31H5itFRjB5/qKTNYzSU= golang.org/x/time v0.0.0-20181108054448-85acf8d2951c/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20190308202827-9d24e82272b4/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= golang.org/x/time v0.0.0-20191024005414-555d28b269f0/go.mod h1:tRJNPiyCQ0inRvYxbN9jk5I+vvW/OXSQhTDSoE431IQ= @@ -1236,8 +1236,8 @@ google.golang.org/protobuf v1.26.0/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQ google.golang.org/protobuf v1.27.1/go.mod h1:9q0QmTI4eRPtz6boOQmLYwt+qCgq0jsYwAQnmE0givc= google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I= -google.golang.org/protobuf v1.33.0 h1:uNO2rsAINq/JlFpSdYEKIZ0uKD/R9cpdv0T+yoGwGmI= -google.golang.org/protobuf v1.33.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= +google.golang.org/protobuf v1.34.0 h1:Qo/qEd2RZPCf2nKuorzksSknv0d3ERwp1vFG38gSmH4= +google.golang.org/protobuf v1.34.0/go.mod h1:c6P6GXX6sHbq/GpV6MGZEdwhWPcYBgnhAHhKbcUYpos= gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= gopkg.in/check.v1 v1.0.0-20190902080502-41f04d3bba15/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= diff --git a/sdk/dotnet/FederatedDatabaseInstance.cs b/sdk/dotnet/FederatedDatabaseInstance.cs index 3e07f2e6..5fbcfbea 100644 --- a/sdk/dotnet/FederatedDatabaseInstance.cs +++ b/sdk/dotnet/FederatedDatabaseInstance.cs @@ -150,6 +150,30 @@ namespace Pulumi.Mongodbatlas /// }); /// ``` /// + /// ## Example specifying data process region and provider + /// + /// ```csharp + /// using System.Collections.Generic; + /// using System.Linq; + /// using Pulumi; + /// using Mongodbatlas = Pulumi.Mongodbatlas; + /// + /// return await Deployment.RunAsync(() => + /// { + /// var test = new Mongodbatlas.FederatedDatabaseInstance("test", new() + /// { + /// ProjectId = "PROJECT ID", + /// Name = "NAME OF THE FEDERATED DATABASE INSTANCE", + /// DataProcessRegion = new Mongodbatlas.Inputs.FederatedDatabaseInstanceDataProcessRegionArgs + /// { + /// CloudProvider = "AWS", + /// Region = "OREGON_USA", + /// }, + /// }); + /// + /// }); + /// ``` + /// /// ## Import /// /// - The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g. diff --git a/sdk/dotnet/FederatedSettingsOrgRoleMapping.cs b/sdk/dotnet/FederatedSettingsOrgRoleMapping.cs index 5f47dd6a..868b831e 100644 --- a/sdk/dotnet/FederatedSettingsOrgRoleMapping.cs +++ b/sdk/dotnet/FederatedSettingsOrgRoleMapping.cs @@ -104,6 +104,12 @@ public partial class FederatedSettingsOrgRoleMapping : global::Pulumi.CustomReso [Output("roleAssignments")] public Output> RoleAssignments { get; private set; } = null!; + /// + /// Unique 24-hexadecimal digit string that identifies this role mapping. + /// + [Output("roleMappingId")] + public Output RoleMappingId { get; private set; } = null!; + /// /// Create a FederatedSettingsOrgRoleMapping resource with the given unique name, arguments, and options. @@ -218,6 +224,12 @@ public InputList Ro set => _roleAssignments = value; } + /// + /// Unique 24-hexadecimal digit string that identifies this role mapping. + /// + [Input("roleMappingId")] + public Input? RoleMappingId { get; set; } + public FederatedSettingsOrgRoleMappingState() { } diff --git a/sdk/dotnet/GetCloudBackupSnapshotExportBucket.cs b/sdk/dotnet/GetCloudBackupSnapshotExportBucket.cs index 3401b857..c841df43 100644 --- a/sdk/dotnet/GetCloudBackupSnapshotExportBucket.cs +++ b/sdk/dotnet/GetCloudBackupSnapshotExportBucket.cs @@ -93,8 +93,8 @@ public sealed class GetCloudBackupSnapshotExportBucketArgs : global::Pulumi.Invo [Input("exportBucketId", required: true)] public string ExportBucketId { get; set; } = null!; - [Input("id", required: true)] - public string Id { get; set; } = null!; + [Input("id")] + public string? Id { get; set; } /// /// The unique identifier of the project for the Atlas cluster. @@ -116,8 +116,8 @@ public sealed class GetCloudBackupSnapshotExportBucketInvokeArgs : global::Pulum [Input("exportBucketId", required: true)] public Input ExportBucketId { get; set; } = null!; - [Input("id", required: true)] - public Input Id { get; set; } = null!; + [Input("id")] + public Input? Id { get; set; } /// /// The unique identifier of the project for the Atlas cluster. diff --git a/sdk/dotnet/GetCloudBackupSnapshotExportJob.cs b/sdk/dotnet/GetCloudBackupSnapshotExportJob.cs index f7246b27..e195cf3a 100644 --- a/sdk/dotnet/GetCloudBackupSnapshotExportJob.cs +++ b/sdk/dotnet/GetCloudBackupSnapshotExportJob.cs @@ -133,8 +133,8 @@ public sealed class GetCloudBackupSnapshotExportJobArgs : global::Pulumi.InvokeA [Input("exportJobId", required: true)] public string ExportJobId { get; set; } = null!; - [Input("id", required: true)] - public string Id { get; set; } = null!; + [Input("id")] + public string? Id { get; set; } /// /// Unique 24-hexadecimal digit string that identifies the project which contains the Atlas cluster whose snapshot you want to retrieve. @@ -162,8 +162,8 @@ public sealed class GetCloudBackupSnapshotExportJobInvokeArgs : global::Pulumi.I [Input("exportJobId", required: true)] public Input ExportJobId { get; set; } = null!; - [Input("id", required: true)] - public Input Id { get; set; } = null!; + [Input("id")] + public Input? Id { get; set; } /// /// Unique 24-hexadecimal digit string that identifies the project which contains the Atlas cluster whose snapshot you want to retrieve. diff --git a/sdk/dotnet/GetCloudBackupSnapshotRestoreJob.cs b/sdk/dotnet/GetCloudBackupSnapshotRestoreJob.cs index 9cbc334e..bc8646c0 100644 --- a/sdk/dotnet/GetCloudBackupSnapshotRestoreJob.cs +++ b/sdk/dotnet/GetCloudBackupSnapshotRestoreJob.cs @@ -38,10 +38,10 @@ public sealed class GetCloudBackupSnapshotRestoreJobArgs : global::Pulumi.Invoke public string ClusterName { get; set; } = null!; /// - /// The unique identifier of the restore job to retrieve. + /// A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. /// - [Input("jobId", required: true)] - public string JobId { get; set; } = null!; + [Input("jobId")] + public string? JobId { get; set; } /// /// The unique identifier of the project for the Atlas cluster. @@ -49,6 +49,12 @@ public sealed class GetCloudBackupSnapshotRestoreJobArgs : global::Pulumi.Invoke [Input("projectId", required: true)] public string ProjectId { get; set; } = null!; + /// + /// The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + /// + [Input("snapshotRestoreJobId")] + public string? SnapshotRestoreJobId { get; set; } + public GetCloudBackupSnapshotRestoreJobArgs() { } @@ -64,10 +70,10 @@ public sealed class GetCloudBackupSnapshotRestoreJobInvokeArgs : global::Pulumi. public Input ClusterName { get; set; } = null!; /// - /// The unique identifier of the restore job to retrieve. + /// A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. /// - [Input("jobId", required: true)] - public Input JobId { get; set; } = null!; + [Input("jobId")] + public Input? JobId { get; set; } /// /// The unique identifier of the project for the Atlas cluster. @@ -75,6 +81,12 @@ public sealed class GetCloudBackupSnapshotRestoreJobInvokeArgs : global::Pulumi. [Input("projectId", required: true)] public Input ProjectId { get; set; } = null!; + /// + /// The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + /// + [Input("snapshotRestoreJobId")] + public Input? SnapshotRestoreJobId { get; set; } + public GetCloudBackupSnapshotRestoreJobInvokeArgs() { } @@ -118,7 +130,7 @@ public sealed class GetCloudBackupSnapshotRestoreJobResult /// The provider-assigned unique ID for this managed resource. /// public readonly string Id; - public readonly string JobId; + public readonly string? JobId; public readonly int OplogInc; public readonly int OplogTs; public readonly int PointInTimeUtcSeconds; @@ -127,6 +139,7 @@ public sealed class GetCloudBackupSnapshotRestoreJobResult /// Unique identifier of the source snapshot ID of the restore job. /// public readonly string SnapshotId; + public readonly string? SnapshotRestoreJobId; /// /// Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated. /// @@ -163,7 +176,7 @@ private GetCloudBackupSnapshotRestoreJobResult( string id, - string jobId, + string? jobId, int oplogInc, @@ -175,6 +188,8 @@ private GetCloudBackupSnapshotRestoreJobResult( string snapshotId, + string? snapshotRestoreJobId, + string targetClusterName, string targetProjectId, @@ -196,6 +211,7 @@ private GetCloudBackupSnapshotRestoreJobResult( PointInTimeUtcSeconds = pointInTimeUtcSeconds; ProjectId = projectId; SnapshotId = snapshotId; + SnapshotRestoreJobId = snapshotRestoreJobId; TargetClusterName = targetClusterName; TargetProjectId = targetProjectId; Timestamp = timestamp; diff --git a/sdk/dotnet/GlobalClusterConfig.cs b/sdk/dotnet/GlobalClusterConfig.cs index ff81579d..c07de09b 100644 --- a/sdk/dotnet/GlobalClusterConfig.cs +++ b/sdk/dotnet/GlobalClusterConfig.cs @@ -14,6 +14,8 @@ namespace Pulumi.Mongodbatlas /// /// > **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation. /// + /// > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/) + /// /// ## Examples Usage /// /// ### Example Global cluster diff --git a/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.cs b/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.cs index 5cb9a0d2..5d9ef24e 100644 --- a/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.cs +++ b/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.cs @@ -33,9 +33,6 @@ public sealed class FederatedDatabaseInstanceCloudProviderConfigAwsArgs : global [Input("iamUserArn")] public Input? IamUserArn { get; set; } - /// - /// Unique identifier of the role that the data lake can use to access the data stores. - /// [Input("roleId", required: true)] public Input RoleId { get; set; } = null!; diff --git a/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsGetArgs.cs b/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsGetArgs.cs index 45da6305..3f3a71f6 100644 --- a/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsGetArgs.cs +++ b/sdk/dotnet/Inputs/FederatedDatabaseInstanceCloudProviderConfigAwsGetArgs.cs @@ -33,9 +33,6 @@ public sealed class FederatedDatabaseInstanceCloudProviderConfigAwsGetArgs : glo [Input("iamUserArn")] public Input? IamUserArn { get; set; } - /// - /// Unique identifier of the role that the data lake can use to access the data stores. - /// [Input("roleId", required: true)] public Input RoleId { get; set; } = null!; diff --git a/sdk/dotnet/Outputs/FederatedDatabaseInstanceCloudProviderConfigAws.cs b/sdk/dotnet/Outputs/FederatedDatabaseInstanceCloudProviderConfigAws.cs index 97be4fac..0a8e237f 100644 --- a/sdk/dotnet/Outputs/FederatedDatabaseInstanceCloudProviderConfigAws.cs +++ b/sdk/dotnet/Outputs/FederatedDatabaseInstanceCloudProviderConfigAws.cs @@ -28,9 +28,6 @@ public sealed class FederatedDatabaseInstanceCloudProviderConfigAws /// Amazon Resource Name (ARN) of the user that the Federated Database Instance assumes when accessing S3 Bucket data stores. /// public readonly string? IamUserArn; - /// - /// Unique identifier of the role that the data lake can use to access the data stores. - /// public readonly string RoleId; public readonly string TestS3Bucket; diff --git a/sdk/dotnet/Project.cs b/sdk/dotnet/Project.cs index a5325486..9dae4234 100644 --- a/sdk/dotnet/Project.cs +++ b/sdk/dotnet/Project.cs @@ -166,7 +166,7 @@ public partial class Project : global::Pulumi.CustomResource /// Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. For more information see [MongoDB Atlas for Government](https://www.mongodb.com/docs/atlas/government/api/#creating-a-project). /// [Output("regionUsageRestrictions")] - public Output RegionUsageRestrictions { get; private set; } = null!; + public Output RegionUsageRestrictions { get; private set; } = null!; /// /// Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. See below. diff --git a/sdk/go/mongodbatlas/cloudBackupSnapshotRestoreJob.go b/sdk/go/mongodbatlas/cloudBackupSnapshotRestoreJob.go index 5c38f137..0ee1d75e 100644 --- a/sdk/go/mongodbatlas/cloudBackupSnapshotRestoreJob.go +++ b/sdk/go/mongodbatlas/cloudBackupSnapshotRestoreJob.go @@ -204,6 +204,8 @@ type CloudBackupSnapshotRestoreJob struct { // The name of the Atlas cluster whose snapshot you want to restore. ClusterName pulumi.StringOutput `pulumi:"clusterName"` // UTC ISO 8601 formatted point in time when Atlas created the restore job. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. CreatedAt pulumi.StringOutput `pulumi:"createdAt"` // Type of restore job to create. Possible configurations are: **download**, **automated**, or **pointInTime** only one must be set it in ``true``. // * `delivery_type_config.automated` - Set to `true` to use the automated configuration. @@ -288,6 +290,8 @@ type cloudBackupSnapshotRestoreJobState struct { // The name of the Atlas cluster whose snapshot you want to restore. ClusterName *string `pulumi:"clusterName"` // UTC ISO 8601 formatted point in time when Atlas created the restore job. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. CreatedAt *string `pulumi:"createdAt"` // Type of restore job to create. Possible configurations are: **download**, **automated**, or **pointInTime** only one must be set it in ``true``. // * `delivery_type_config.automated` - Set to `true` to use the automated configuration. @@ -337,6 +341,8 @@ type CloudBackupSnapshotRestoreJobState struct { // The name of the Atlas cluster whose snapshot you want to restore. ClusterName pulumi.StringPtrInput // UTC ISO 8601 formatted point in time when Atlas created the restore job. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. CreatedAt pulumi.StringPtrInput // Type of restore job to create. Possible configurations are: **download**, **automated**, or **pointInTime** only one must be set it in ``true``. // * `delivery_type_config.automated` - Set to `true` to use the automated configuration. @@ -521,6 +527,8 @@ func (o CloudBackupSnapshotRestoreJobOutput) ClusterName() pulumi.StringOutput { } // UTC ISO 8601 formatted point in time when Atlas created the restore job. +// +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. func (o CloudBackupSnapshotRestoreJobOutput) CreatedAt() pulumi.StringOutput { return o.ApplyT(func(v *CloudBackupSnapshotRestoreJob) pulumi.StringOutput { return v.CreatedAt }).(pulumi.StringOutput) } diff --git a/sdk/go/mongodbatlas/federatedDatabaseInstance.go b/sdk/go/mongodbatlas/federatedDatabaseInstance.go index cdf83c77..089ef287 100644 --- a/sdk/go/mongodbatlas/federatedDatabaseInstance.go +++ b/sdk/go/mongodbatlas/federatedDatabaseInstance.go @@ -146,6 +146,37 @@ import ( // // ``` // +// ## Example specifying data process region and provider +// +// ```go +// package main +// +// import ( +// +// "github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas" +// "github.com/pulumi/pulumi/sdk/v3/go/pulumi" +// +// ) +// +// func main() { +// pulumi.Run(func(ctx *pulumi.Context) error { +// _, err := mongodbatlas.NewFederatedDatabaseInstance(ctx, "test", &mongodbatlas.FederatedDatabaseInstanceArgs{ +// ProjectId: pulumi.String("PROJECT ID"), +// Name: pulumi.String("NAME OF THE FEDERATED DATABASE INSTANCE"), +// DataProcessRegion: &mongodbatlas.FederatedDatabaseInstanceDataProcessRegionArgs{ +// CloudProvider: pulumi.String("AWS"), +// Region: pulumi.String("OREGON_USA"), +// }, +// }) +// if err != nil { +// return err +// } +// return nil +// }) +// } +// +// ``` +// // ## Import // // - The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g. diff --git a/sdk/go/mongodbatlas/federatedSettingsOrgRoleMapping.go b/sdk/go/mongodbatlas/federatedSettingsOrgRoleMapping.go index a4cd013a..f81c02f6 100644 --- a/sdk/go/mongodbatlas/federatedSettingsOrgRoleMapping.go +++ b/sdk/go/mongodbatlas/federatedSettingsOrgRoleMapping.go @@ -90,6 +90,8 @@ type FederatedSettingsOrgRoleMapping struct { OrgId pulumi.StringOutput `pulumi:"orgId"` // Atlas roles and the unique identifiers of the groups and organizations associated with each role. RoleAssignments FederatedSettingsOrgRoleMappingRoleAssignmentArrayOutput `pulumi:"roleAssignments"` + // Unique 24-hexadecimal digit string that identifies this role mapping. + RoleMappingId pulumi.StringOutput `pulumi:"roleMappingId"` } // NewFederatedSettingsOrgRoleMapping registers a new resource with the given unique name, arguments, and options. @@ -142,6 +144,8 @@ type federatedSettingsOrgRoleMappingState struct { OrgId *string `pulumi:"orgId"` // Atlas roles and the unique identifiers of the groups and organizations associated with each role. RoleAssignments []FederatedSettingsOrgRoleMappingRoleAssignment `pulumi:"roleAssignments"` + // Unique 24-hexadecimal digit string that identifies this role mapping. + RoleMappingId *string `pulumi:"roleMappingId"` } type FederatedSettingsOrgRoleMappingState struct { @@ -153,6 +157,8 @@ type FederatedSettingsOrgRoleMappingState struct { OrgId pulumi.StringPtrInput // Atlas roles and the unique identifiers of the groups and organizations associated with each role. RoleAssignments FederatedSettingsOrgRoleMappingRoleAssignmentArrayInput + // Unique 24-hexadecimal digit string that identifies this role mapping. + RoleMappingId pulumi.StringPtrInput } func (FederatedSettingsOrgRoleMappingState) ElementType() reflect.Type { @@ -291,6 +297,11 @@ func (o FederatedSettingsOrgRoleMappingOutput) RoleAssignments() FederatedSettin }).(FederatedSettingsOrgRoleMappingRoleAssignmentArrayOutput) } +// Unique 24-hexadecimal digit string that identifies this role mapping. +func (o FederatedSettingsOrgRoleMappingOutput) RoleMappingId() pulumi.StringOutput { + return o.ApplyT(func(v *FederatedSettingsOrgRoleMapping) pulumi.StringOutput { return v.RoleMappingId }).(pulumi.StringOutput) +} + type FederatedSettingsOrgRoleMappingArrayOutput struct{ *pulumi.OutputState } func (FederatedSettingsOrgRoleMappingArrayOutput) ElementType() reflect.Type { diff --git a/sdk/go/mongodbatlas/getCloudBackupSnapshotExportBucket.go b/sdk/go/mongodbatlas/getCloudBackupSnapshotExportBucket.go index bab2533b..c79dab01 100644 --- a/sdk/go/mongodbatlas/getCloudBackupSnapshotExportBucket.go +++ b/sdk/go/mongodbatlas/getCloudBackupSnapshotExportBucket.go @@ -61,7 +61,8 @@ func LookupCloudBackupSnapshotExportBucket(ctx *pulumi.Context, args *LookupClou type LookupCloudBackupSnapshotExportBucketArgs struct { // Unique identifier of the snapshot export bucket. ExportBucketId string `pulumi:"exportBucketId"` - Id string `pulumi:"id"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + Id *string `pulumi:"id"` // The unique identifier of the project for the Atlas cluster. ProjectId string `pulumi:"projectId"` } @@ -75,6 +76,7 @@ type LookupCloudBackupSnapshotExportBucketResult struct { ExportBucketId string `pulumi:"exportBucketId"` // Unique identifier of the role that Atlas can use to access the bucket. You must also specify the `bucketName`. IamRoleId string `pulumi:"iamRoleId"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. Id string `pulumi:"id"` ProjectId string `pulumi:"projectId"` } @@ -96,7 +98,8 @@ func LookupCloudBackupSnapshotExportBucketOutput(ctx *pulumi.Context, args Looku type LookupCloudBackupSnapshotExportBucketOutputArgs struct { // Unique identifier of the snapshot export bucket. ExportBucketId pulumi.StringInput `pulumi:"exportBucketId"` - Id pulumi.StringInput `pulumi:"id"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + Id pulumi.StringPtrInput `pulumi:"id"` // The unique identifier of the project for the Atlas cluster. ProjectId pulumi.StringInput `pulumi:"projectId"` } @@ -139,6 +142,7 @@ func (o LookupCloudBackupSnapshotExportBucketResultOutput) IamRoleId() pulumi.St return o.ApplyT(func(v LookupCloudBackupSnapshotExportBucketResult) string { return v.IamRoleId }).(pulumi.StringOutput) } +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. func (o LookupCloudBackupSnapshotExportBucketResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupCloudBackupSnapshotExportBucketResult) string { return v.Id }).(pulumi.StringOutput) } diff --git a/sdk/go/mongodbatlas/getCloudBackupSnapshotExportJob.go b/sdk/go/mongodbatlas/getCloudBackupSnapshotExportJob.go index 42d67ddd..b1aa07bd 100644 --- a/sdk/go/mongodbatlas/getCloudBackupSnapshotExportJob.go +++ b/sdk/go/mongodbatlas/getCloudBackupSnapshotExportJob.go @@ -79,7 +79,8 @@ type LookupCloudBackupSnapshotExportJobArgs struct { ClusterName string `pulumi:"clusterName"` // Unique identifier of the export job to retrieve. ExportJobId string `pulumi:"exportJobId"` - Id string `pulumi:"id"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + Id *string `pulumi:"id"` // Unique 24-hexadecimal digit string that identifies the project which contains the Atlas cluster whose snapshot you want to retrieve. ProjectId string `pulumi:"projectId"` } @@ -104,9 +105,10 @@ type LookupCloudBackupSnapshotExportJobResult struct { ExportStatusTotalCollections int `pulumi:"exportStatusTotalCollections"` // Timestamp in ISO 8601 date and time format in UTC when the export job completes. FinishedAt string `pulumi:"finishedAt"` - Id string `pulumi:"id"` - Prefix string `pulumi:"prefix"` - ProjectId string `pulumi:"projectId"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + Id string `pulumi:"id"` + Prefix string `pulumi:"prefix"` + ProjectId string `pulumi:"projectId"` // Unique identifier of the Cloud Backup snapshot to export. SnapshotId string `pulumi:"snapshotId"` // Status of the export job. Value can be one of the following: @@ -136,7 +138,8 @@ type LookupCloudBackupSnapshotExportJobOutputArgs struct { ClusterName pulumi.StringInput `pulumi:"clusterName"` // Unique identifier of the export job to retrieve. ExportJobId pulumi.StringInput `pulumi:"exportJobId"` - Id pulumi.StringInput `pulumi:"id"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + Id pulumi.StringPtrInput `pulumi:"id"` // Unique 24-hexadecimal digit string that identifies the project which contains the Atlas cluster whose snapshot you want to retrieve. ProjectId pulumi.StringInput `pulumi:"projectId"` } @@ -212,6 +215,7 @@ func (o LookupCloudBackupSnapshotExportJobResultOutput) FinishedAt() pulumi.Stri return o.ApplyT(func(v LookupCloudBackupSnapshotExportJobResult) string { return v.FinishedAt }).(pulumi.StringOutput) } +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. func (o LookupCloudBackupSnapshotExportJobResultOutput) Id() pulumi.StringOutput { return o.ApplyT(func(v LookupCloudBackupSnapshotExportJobResult) string { return v.Id }).(pulumi.StringOutput) } diff --git a/sdk/go/mongodbatlas/getCloudBackupSnapshotRestoreJob.go b/sdk/go/mongodbatlas/getCloudBackupSnapshotRestoreJob.go index 60dff8fe..366018ec 100644 --- a/sdk/go/mongodbatlas/getCloudBackupSnapshotRestoreJob.go +++ b/sdk/go/mongodbatlas/getCloudBackupSnapshotRestoreJob.go @@ -28,10 +28,14 @@ func LookupCloudBackupSnapshotRestoreJob(ctx *pulumi.Context, args *LookupCloudB type LookupCloudBackupSnapshotRestoreJobArgs struct { // The name of the Atlas cluster for which you want to retrieve the restore job. ClusterName string `pulumi:"clusterName"` - // The unique identifier of the restore job to retrieve. - JobId string `pulumi:"jobId"` + // A base64-encoded ID of `projectId`, `clusterName`, and `jobId` of this resource. **Note**: This attribute is deprecated, use `snapshotRestoreJobId` instead. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. + JobId *string `pulumi:"jobId"` // The unique identifier of the project for the Atlas cluster. ProjectId string `pulumi:"projectId"` + // The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + SnapshotRestoreJobId *string `pulumi:"snapshotRestoreJobId"` } // A collection of values returned by getCloudBackupSnapshotRestoreJob. @@ -40,6 +44,8 @@ type LookupCloudBackupSnapshotRestoreJobResult struct { Cancelled bool `pulumi:"cancelled"` ClusterName string `pulumi:"clusterName"` // UTC ISO 8601 formatted point in time when Atlas created the restore job. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. CreatedAt string `pulumi:"createdAt"` // Type of restore job to create. Possible values are: automated and download. DeliveryType string `pulumi:"deliveryType"` @@ -52,14 +58,16 @@ type LookupCloudBackupSnapshotRestoreJobResult struct { // UTC ISO 8601 formatted point in time when the restore job completed. FinishedAt string `pulumi:"finishedAt"` // The provider-assigned unique ID for this managed resource. - Id string `pulumi:"id"` - JobId string `pulumi:"jobId"` - OplogInc int `pulumi:"oplogInc"` - OplogTs int `pulumi:"oplogTs"` - PointInTimeUtcSeconds int `pulumi:"pointInTimeUtcSeconds"` - ProjectId string `pulumi:"projectId"` + Id string `pulumi:"id"` + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. + JobId *string `pulumi:"jobId"` + OplogInc int `pulumi:"oplogInc"` + OplogTs int `pulumi:"oplogTs"` + PointInTimeUtcSeconds int `pulumi:"pointInTimeUtcSeconds"` + ProjectId string `pulumi:"projectId"` // Unique identifier of the source snapshot ID of the restore job. - SnapshotId string `pulumi:"snapshotId"` + SnapshotId string `pulumi:"snapshotId"` + SnapshotRestoreJobId *string `pulumi:"snapshotRestoreJobId"` // Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated. TargetClusterName string `pulumi:"targetClusterName"` // Name of the target Atlas project of the restore job. Only visible if deliveryType is automated. @@ -88,10 +96,14 @@ func LookupCloudBackupSnapshotRestoreJobOutput(ctx *pulumi.Context, args LookupC type LookupCloudBackupSnapshotRestoreJobOutputArgs struct { // The name of the Atlas cluster for which you want to retrieve the restore job. ClusterName pulumi.StringInput `pulumi:"clusterName"` - // The unique identifier of the restore job to retrieve. - JobId pulumi.StringInput `pulumi:"jobId"` + // A base64-encoded ID of `projectId`, `clusterName`, and `jobId` of this resource. **Note**: This attribute is deprecated, use `snapshotRestoreJobId` instead. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. + JobId pulumi.StringPtrInput `pulumi:"jobId"` // The unique identifier of the project for the Atlas cluster. ProjectId pulumi.StringInput `pulumi:"projectId"` + // The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + SnapshotRestoreJobId pulumi.StringPtrInput `pulumi:"snapshotRestoreJobId"` } func (LookupCloudBackupSnapshotRestoreJobOutputArgs) ElementType() reflect.Type { @@ -123,6 +135,8 @@ func (o LookupCloudBackupSnapshotRestoreJobResultOutput) ClusterName() pulumi.St } // UTC ISO 8601 formatted point in time when Atlas created the restore job. +// +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. func (o LookupCloudBackupSnapshotRestoreJobResultOutput) CreatedAt() pulumi.StringOutput { return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) string { return v.CreatedAt }).(pulumi.StringOutput) } @@ -157,8 +171,9 @@ func (o LookupCloudBackupSnapshotRestoreJobResultOutput) Id() pulumi.StringOutpu return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) string { return v.Id }).(pulumi.StringOutput) } -func (o LookupCloudBackupSnapshotRestoreJobResultOutput) JobId() pulumi.StringOutput { - return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) string { return v.JobId }).(pulumi.StringOutput) +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. +func (o LookupCloudBackupSnapshotRestoreJobResultOutput) JobId() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) *string { return v.JobId }).(pulumi.StringPtrOutput) } func (o LookupCloudBackupSnapshotRestoreJobResultOutput) OplogInc() pulumi.IntOutput { @@ -182,6 +197,10 @@ func (o LookupCloudBackupSnapshotRestoreJobResultOutput) SnapshotId() pulumi.Str return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) string { return v.SnapshotId }).(pulumi.StringOutput) } +func (o LookupCloudBackupSnapshotRestoreJobResultOutput) SnapshotRestoreJobId() pulumi.StringPtrOutput { + return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) *string { return v.SnapshotRestoreJobId }).(pulumi.StringPtrOutput) +} + // Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated. func (o LookupCloudBackupSnapshotRestoreJobResultOutput) TargetClusterName() pulumi.StringOutput { return o.ApplyT(func(v LookupCloudBackupSnapshotRestoreJobResult) string { return v.TargetClusterName }).(pulumi.StringOutput) diff --git a/sdk/go/mongodbatlas/globalClusterConfig.go b/sdk/go/mongodbatlas/globalClusterConfig.go index 0bf9a8a4..0219eb4d 100644 --- a/sdk/go/mongodbatlas/globalClusterConfig.go +++ b/sdk/go/mongodbatlas/globalClusterConfig.go @@ -16,6 +16,8 @@ import ( // // > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation. // +// > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/) +// // ## Examples Usage // // ### Example Global cluster diff --git a/sdk/go/mongodbatlas/project.go b/sdk/go/mongodbatlas/project.go index 3ef31634..9d647da9 100644 --- a/sdk/go/mongodbatlas/project.go +++ b/sdk/go/mongodbatlas/project.go @@ -116,7 +116,7 @@ type Project struct { // Unique 24-hexadecimal digit string that identifies the Atlas user account to be granted the [Project Owner](https://docs.atlas.mongodb.com/reference/user-roles/#mongodb-authrole-Project-Owner) role on the specified project. If you set this parameter, it overrides the default value of the oldest [Organization Owner](https://docs.atlas.mongodb.com/reference/user-roles/#mongodb-authrole-Organization-Owner). ProjectOwnerId pulumi.StringPtrOutput `pulumi:"projectOwnerId"` // Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. For more information see [MongoDB Atlas for Government](https://www.mongodb.com/docs/atlas/government/api/#creating-a-project). - RegionUsageRestrictions pulumi.StringPtrOutput `pulumi:"regionUsageRestrictions"` + RegionUsageRestrictions pulumi.StringOutput `pulumi:"regionUsageRestrictions"` // Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. See below. Tags pulumi.StringMapOutput `pulumi:"tags"` Teams ProjectTeamArrayOutput `pulumi:"teams"` @@ -441,8 +441,8 @@ func (o ProjectOutput) ProjectOwnerId() pulumi.StringPtrOutput { } // Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. For more information see [MongoDB Atlas for Government](https://www.mongodb.com/docs/atlas/government/api/#creating-a-project). -func (o ProjectOutput) RegionUsageRestrictions() pulumi.StringPtrOutput { - return o.ApplyT(func(v *Project) pulumi.StringPtrOutput { return v.RegionUsageRestrictions }).(pulumi.StringPtrOutput) +func (o ProjectOutput) RegionUsageRestrictions() pulumi.StringOutput { + return o.ApplyT(func(v *Project) pulumi.StringOutput { return v.RegionUsageRestrictions }).(pulumi.StringOutput) } // Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. See below. diff --git a/sdk/go/mongodbatlas/pulumiTypes.go b/sdk/go/mongodbatlas/pulumiTypes.go index 59255da0..273bc0df 100644 --- a/sdk/go/mongodbatlas/pulumiTypes.go +++ b/sdk/go/mongodbatlas/pulumiTypes.go @@ -10997,10 +10997,9 @@ type FederatedDatabaseInstanceCloudProviderConfigAws struct { // * `s3:GetObjectVersion` IamAssumedRoleArn *string `pulumi:"iamAssumedRoleArn"` // Amazon Resource Name (ARN) of the user that the Federated Database Instance assumes when accessing S3 Bucket data stores. - IamUserArn *string `pulumi:"iamUserArn"` - // Unique identifier of the role that the data lake can use to access the data stores. - RoleId string `pulumi:"roleId"` - TestS3Bucket string `pulumi:"testS3Bucket"` + IamUserArn *string `pulumi:"iamUserArn"` + RoleId string `pulumi:"roleId"` + TestS3Bucket string `pulumi:"testS3Bucket"` } // FederatedDatabaseInstanceCloudProviderConfigAwsInput is an input type that accepts FederatedDatabaseInstanceCloudProviderConfigAwsArgs and FederatedDatabaseInstanceCloudProviderConfigAwsOutput values. @@ -11023,10 +11022,9 @@ type FederatedDatabaseInstanceCloudProviderConfigAwsArgs struct { // * `s3:GetObjectVersion` IamAssumedRoleArn pulumi.StringPtrInput `pulumi:"iamAssumedRoleArn"` // Amazon Resource Name (ARN) of the user that the Federated Database Instance assumes when accessing S3 Bucket data stores. - IamUserArn pulumi.StringPtrInput `pulumi:"iamUserArn"` - // Unique identifier of the role that the data lake can use to access the data stores. - RoleId pulumi.StringInput `pulumi:"roleId"` - TestS3Bucket pulumi.StringInput `pulumi:"testS3Bucket"` + IamUserArn pulumi.StringPtrInput `pulumi:"iamUserArn"` + RoleId pulumi.StringInput `pulumi:"roleId"` + TestS3Bucket pulumi.StringInput `pulumi:"testS3Bucket"` } func (FederatedDatabaseInstanceCloudProviderConfigAwsArgs) ElementType() reflect.Type { @@ -11124,7 +11122,6 @@ func (o FederatedDatabaseInstanceCloudProviderConfigAwsOutput) IamUserArn() pulu return o.ApplyT(func(v FederatedDatabaseInstanceCloudProviderConfigAws) *string { return v.IamUserArn }).(pulumi.StringPtrOutput) } -// Unique identifier of the role that the data lake can use to access the data stores. func (o FederatedDatabaseInstanceCloudProviderConfigAwsOutput) RoleId() pulumi.StringOutput { return o.ApplyT(func(v FederatedDatabaseInstanceCloudProviderConfigAws) string { return v.RoleId }).(pulumi.StringOutput) } @@ -11190,7 +11187,6 @@ func (o FederatedDatabaseInstanceCloudProviderConfigAwsPtrOutput) IamUserArn() p }).(pulumi.StringPtrOutput) } -// Unique identifier of the role that the data lake can use to access the data stores. func (o FederatedDatabaseInstanceCloudProviderConfigAwsPtrOutput) RoleId() pulumi.StringPtrOutput { return o.ApplyT(func(v *FederatedDatabaseInstanceCloudProviderConfigAws) *string { if v == nil { @@ -13943,6 +13939,8 @@ type PrivateLinkEndpointServiceEndpoint struct { // Private IP address of the endpoint you created in GCP. IpAddress *string `pulumi:"ipAddress"` // Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. ServiceAttachmentName *string `pulumi:"serviceAttachmentName"` // Status of the endpoint. Atlas returns one of the [values shown above](https://docs.atlas.mongodb.com/reference/api/private-endpoints-endpoint-create-one/#std-label-ref-status-field). Status *string `pulumi:"status"` @@ -13965,6 +13963,8 @@ type PrivateLinkEndpointServiceEndpointArgs struct { // Private IP address of the endpoint you created in GCP. IpAddress pulumi.StringPtrInput `pulumi:"ipAddress"` // Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. ServiceAttachmentName pulumi.StringPtrInput `pulumi:"serviceAttachmentName"` // Status of the endpoint. Atlas returns one of the [values shown above](https://docs.atlas.mongodb.com/reference/api/private-endpoints-endpoint-create-one/#std-label-ref-status-field). Status pulumi.StringPtrInput `pulumi:"status"` @@ -14032,6 +14032,8 @@ func (o PrivateLinkEndpointServiceEndpointOutput) IpAddress() pulumi.StringPtrOu } // Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. +// +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. func (o PrivateLinkEndpointServiceEndpointOutput) ServiceAttachmentName() pulumi.StringPtrOutput { return o.ApplyT(func(v PrivateLinkEndpointServiceEndpoint) *string { return v.ServiceAttachmentName }).(pulumi.StringPtrOutput) } @@ -26873,6 +26875,8 @@ type GetCloudBackupSnapshotRestoreJobsResult struct { // Indicates whether the restore job was canceled. Cancelled bool `pulumi:"cancelled"` // UTC ISO 8601 formatted point in time when Atlas created the restore job. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. CreatedAt string `pulumi:"createdAt"` // Type of restore job to create. Possible values are: automated and download. DeliveryType string `pulumi:"deliveryType"` @@ -26917,6 +26921,8 @@ type GetCloudBackupSnapshotRestoreJobsResultArgs struct { // Indicates whether the restore job was canceled. Cancelled pulumi.BoolInput `pulumi:"cancelled"` // UTC ISO 8601 formatted point in time when Atlas created the restore job. + // + // Deprecated: This parameter is deprecated and will be removed in version 1.18.0. CreatedAt pulumi.StringInput `pulumi:"createdAt"` // Type of restore job to create. Possible values are: automated and download. DeliveryType pulumi.StringInput `pulumi:"deliveryType"` @@ -27003,6 +27009,8 @@ func (o GetCloudBackupSnapshotRestoreJobsResultOutput) Cancelled() pulumi.BoolOu } // UTC ISO 8601 formatted point in time when Atlas created the restore job. +// +// Deprecated: This parameter is deprecated and will be removed in version 1.18.0. func (o GetCloudBackupSnapshotRestoreJobsResultOutput) CreatedAt() pulumi.StringOutput { return o.ApplyT(func(v GetCloudBackupSnapshotRestoreJobsResult) string { return v.CreatedAt }).(pulumi.StringOutput) } diff --git a/sdk/java/build.gradle b/sdk/java/build.gradle index 7330f13a..575f7fae 100644 --- a/sdk/java/build.gradle +++ b/sdk/java/build.gradle @@ -44,7 +44,7 @@ repositories { dependencies { implementation("com.google.code.findbugs:jsr305:3.0.2") implementation("com.google.code.gson:gson:2.8.9") - implementation("com.pulumi:pulumi:0.11.0") + implementation("com.pulumi:pulumi:0.12.0") } task sourcesJar(type: Jar) { diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJob.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJob.java index 60db3bb2..852c630b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJob.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/CloudBackupSnapshotRestoreJob.java @@ -259,7 +259,11 @@ public Output clusterName() { /** * UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ @Export(name="createdAt", refs={String.class}, tree="[0]") private Output createdAt; diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstance.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstance.java index bd499cbc..3c2fb117 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstance.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedDatabaseInstance.java @@ -165,6 +165,47 @@ * * <!--End PulumiCodeChooser --> * + * ## Example specifying data process region and provider + * + * <!--Start PulumiCodeChooser --> + *
+ * {@code
+ * package generated_program;
+ * 
+ * import com.pulumi.Context;
+ * import com.pulumi.Pulumi;
+ * import com.pulumi.core.Output;
+ * import com.pulumi.mongodbatlas.FederatedDatabaseInstance;
+ * import com.pulumi.mongodbatlas.FederatedDatabaseInstanceArgs;
+ * import com.pulumi.mongodbatlas.inputs.FederatedDatabaseInstanceDataProcessRegionArgs;
+ * import java.util.List;
+ * import java.util.ArrayList;
+ * import java.util.Map;
+ * import java.io.File;
+ * import java.nio.file.Files;
+ * import java.nio.file.Paths;
+ * 
+ * public class App {
+ *     public static void main(String[] args) {
+ *         Pulumi.run(App::stack);
+ *     }
+ * 
+ *     public static void stack(Context ctx) {
+ *         var test = new FederatedDatabaseInstance("test", FederatedDatabaseInstanceArgs.builder()
+ *             .projectId("PROJECT ID")
+ *             .name("NAME OF THE FEDERATED DATABASE INSTANCE")
+ *             .dataProcessRegion(FederatedDatabaseInstanceDataProcessRegionArgs.builder()
+ *                 .cloudProvider("AWS")
+ *                 .region("OREGON_USA")
+ *                 .build())
+ *             .build());
+ * 
+ *     }
+ * }
+ * }
+ * 
+ * <!--End PulumiCodeChooser --> + * * ## Import * * - The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g. diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMapping.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMapping.java index 7ce20c26..d764c8bb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMapping.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/FederatedSettingsOrgRoleMapping.java @@ -149,6 +149,20 @@ public Output orgId() { public Output> roleAssignments() { return this.roleAssignments; } + /** + * Unique 24-hexadecimal digit string that identifies this role mapping. + * + */ + @Export(name="roleMappingId", refs={String.class}, tree="[0]") + private Output roleMappingId; + + /** + * @return Unique 24-hexadecimal digit string that identifies this role mapping. + * + */ + public Output roleMappingId() { + return this.roleMappingId; + } /** * diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfig.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfig.java index 05d23bdb..9efcbd78 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfig.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/GlobalClusterConfig.java @@ -24,6 +24,8 @@ * * > **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation. * + * > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/) + * * ## Examples Usage * * ### Example Global cluster diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/Project.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/Project.java index 3254ae61..7a3049bc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/Project.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/Project.java @@ -285,14 +285,14 @@ public Output> projectOwnerId() { * */ @Export(name="regionUsageRestrictions", refs={String.class}, tree="[0]") - private Output regionUsageRestrictions; + private Output regionUsageRestrictions; /** * @return Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. For more information see [MongoDB Atlas for Government](https://www.mongodb.com/docs/atlas/government/api/#creating-a-project). * */ - public Output> regionUsageRestrictions() { - return Codegen.optional(this.regionUsageRestrictions); + public Output regionUsageRestrictions() { + return this.regionUsageRestrictions; } /** * Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. See below. diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotRestoreJobState.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotRestoreJobState.java index 63ac8d54..d11629aa 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotRestoreJobState.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/CloudBackupSnapshotRestoreJobState.java @@ -51,14 +51,22 @@ public Optional> clusterName() { /** * UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ @Import(name="createdAt") private @Nullable Output createdAt; /** * @return UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Optional> createdAt() { return Optional.ofNullable(this.createdAt); } @@ -324,7 +332,11 @@ public Builder clusterName(String clusterName) { * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Builder createdAt(@Nullable Output createdAt) { $.createdAt = createdAt; return this; @@ -335,7 +347,11 @@ public Builder createdAt(@Nullable Output createdAt) { * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Builder createdAt(String createdAt) { return createdAt(Output.of(createdAt)); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java index ab9f3f19..c51e17f4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedDatabaseInstanceCloudProviderConfigAwsArgs.java @@ -67,17 +67,9 @@ public Optional> iamUserArn() { return Optional.ofNullable(this.iamUserArn); } - /** - * Unique identifier of the role that the data lake can use to access the data stores. - * - */ @Import(name="roleId", required=true) private Output roleId; - /** - * @return Unique identifier of the role that the data lake can use to access the data stores. - * - */ public Output roleId() { return this.roleId; } @@ -186,23 +178,11 @@ public Builder iamUserArn(String iamUserArn) { return iamUserArn(Output.of(iamUserArn)); } - /** - * @param roleId Unique identifier of the role that the data lake can use to access the data stores. - * - * @return builder - * - */ public Builder roleId(Output roleId) { $.roleId = roleId; return this; } - /** - * @param roleId Unique identifier of the role that the data lake can use to access the data stores. - * - * @return builder - * - */ public Builder roleId(String roleId) { return roleId(Output.of(roleId)); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedSettingsOrgRoleMappingState.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedSettingsOrgRoleMappingState.java index 3b839cac..de1962a6 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedSettingsOrgRoleMappingState.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/FederatedSettingsOrgRoleMappingState.java @@ -77,6 +77,21 @@ public Optional>> return Optional.ofNullable(this.roleAssignments); } + /** + * Unique 24-hexadecimal digit string that identifies this role mapping. + * + */ + @Import(name="roleMappingId") + private @Nullable Output roleMappingId; + + /** + * @return Unique 24-hexadecimal digit string that identifies this role mapping. + * + */ + public Optional> roleMappingId() { + return Optional.ofNullable(this.roleMappingId); + } + private FederatedSettingsOrgRoleMappingState() {} private FederatedSettingsOrgRoleMappingState(FederatedSettingsOrgRoleMappingState $) { @@ -84,6 +99,7 @@ private FederatedSettingsOrgRoleMappingState(FederatedSettingsOrgRoleMappingStat this.federationSettingsId = $.federationSettingsId; this.orgId = $.orgId; this.roleAssignments = $.roleAssignments; + this.roleMappingId = $.roleMappingId; } public static Builder builder() { @@ -198,6 +214,27 @@ public Builder roleAssignments(FederatedSettingsOrgRoleMappingRoleAssignmentArgs return roleAssignments(List.of(roleAssignments)); } + /** + * @param roleMappingId Unique 24-hexadecimal digit string that identifies this role mapping. + * + * @return builder + * + */ + public Builder roleMappingId(@Nullable Output roleMappingId) { + $.roleMappingId = roleMappingId; + return this; + } + + /** + * @param roleMappingId Unique 24-hexadecimal digit string that identifies this role mapping. + * + * @return builder + * + */ + public Builder roleMappingId(String roleMappingId) { + return roleMappingId(Output.of(roleMappingId)); + } + public FederatedSettingsOrgRoleMappingState build() { return $; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java index 88f19638..ab9aaa86 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketArgs.java @@ -8,6 +8,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetCloudBackupSnapshotExportBucketArgs extends com.pulumi.resources.InvokeArgs { @@ -29,11 +31,23 @@ public Output exportBucketId() { return this.exportBucketId; } - @Import(name="id", required=true) - private Output id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + @Import(name="id") + private @Nullable Output id; - public Output id() { - return this.id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Optional> id() { + return Optional.ofNullable(this.id); } /** @@ -98,11 +112,27 @@ public Builder exportBucketId(String exportBucketId) { return exportBucketId(Output.of(exportBucketId)); } - public Builder id(Output id) { + /** + * @return builder + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Builder id(@Nullable Output id) { $.id = id; return this; } + /** + * @return builder + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ public Builder id(String id) { return id(Output.of(id)); } @@ -132,9 +162,6 @@ public GetCloudBackupSnapshotExportBucketArgs build() { if ($.exportBucketId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketArgs", "exportBucketId"); } - if ($.id == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketArgs", "id"); - } if ($.projectId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketArgs", "projectId"); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java index b8bcd43e..9cc3b4a0 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportBucketPlainArgs.java @@ -7,6 +7,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetCloudBackupSnapshotExportBucketPlainArgs extends com.pulumi.resources.InvokeArgs { @@ -28,11 +30,23 @@ public String exportBucketId() { return this.exportBucketId; } - @Import(name="id", required=true) - private String id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + @Import(name="id") + private @Nullable String id; - public String id() { - return this.id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Optional id() { + return Optional.ofNullable(this.id); } /** @@ -87,7 +101,15 @@ public Builder exportBucketId(String exportBucketId) { return this; } - public Builder id(String id) { + /** + * @return builder + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Builder id(@Nullable String id) { $.id = id; return this; } @@ -107,9 +129,6 @@ public GetCloudBackupSnapshotExportBucketPlainArgs build() { if ($.exportBucketId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketPlainArgs", "exportBucketId"); } - if ($.id == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketPlainArgs", "id"); - } if ($.projectId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportBucketPlainArgs", "projectId"); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java index 6efd4514..432225e1 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobArgs.java @@ -8,6 +8,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetCloudBackupSnapshotExportJobArgs extends com.pulumi.resources.InvokeArgs { @@ -44,11 +46,23 @@ public Output exportJobId() { return this.exportJobId; } - @Import(name="id", required=true) - private Output id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + @Import(name="id") + private @Nullable Output id; - public Output id() { - return this.id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Optional> id() { + return Optional.ofNullable(this.id); } /** @@ -135,11 +149,27 @@ public Builder exportJobId(String exportJobId) { return exportJobId(Output.of(exportJobId)); } - public Builder id(Output id) { + /** + * @return builder + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Builder id(@Nullable Output id) { $.id = id; return this; } + /** + * @return builder + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ public Builder id(String id) { return id(Output.of(id)); } @@ -172,9 +202,6 @@ public GetCloudBackupSnapshotExportJobArgs build() { if ($.exportJobId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "exportJobId"); } - if ($.id == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "id"); - } if ($.projectId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobArgs", "projectId"); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java index d575f59c..b15878cc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotExportJobPlainArgs.java @@ -7,6 +7,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetCloudBackupSnapshotExportJobPlainArgs extends com.pulumi.resources.InvokeArgs { @@ -43,11 +45,23 @@ public String exportJobId() { return this.exportJobId; } - @Import(name="id", required=true) - private String id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + @Import(name="id") + private @Nullable String id; - public String id() { - return this.id; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Optional id() { + return Optional.ofNullable(this.id); } /** @@ -114,7 +128,15 @@ public Builder exportJobId(String exportJobId) { return this; } - public Builder id(String id) { + /** + * @return builder + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ + public Builder id(@Nullable String id) { $.id = id; return this; } @@ -137,9 +159,6 @@ public GetCloudBackupSnapshotExportJobPlainArgs build() { if ($.exportJobId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "exportJobId"); } - if ($.id == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "id"); - } if ($.projectId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotExportJobPlainArgs", "projectId"); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java index 0ea3bf1b..c03a923b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobArgs.java @@ -8,6 +8,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetCloudBackupSnapshotRestoreJobArgs extends com.pulumi.resources.InvokeArgs { @@ -30,18 +32,26 @@ public Output clusterName() { } /** - * The unique identifier of the restore job to retrieve. + * A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. * */ - @Import(name="jobId", required=true) - private Output jobId; + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + @Import(name="jobId") + private @Nullable Output jobId; /** - * @return The unique identifier of the restore job to retrieve. + * @return A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. * */ - public Output jobId() { - return this.jobId; + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + public Optional> jobId() { + return Optional.ofNullable(this.jobId); } /** @@ -59,12 +69,28 @@ public Output projectId() { return this.projectId; } + /** + * The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + */ + @Import(name="snapshotRestoreJobId") + private @Nullable Output snapshotRestoreJobId; + + /** + * @return The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + */ + public Optional> snapshotRestoreJobId() { + return Optional.ofNullable(this.snapshotRestoreJobId); + } + private GetCloudBackupSnapshotRestoreJobArgs() {} private GetCloudBackupSnapshotRestoreJobArgs(GetCloudBackupSnapshotRestoreJobArgs $) { this.clusterName = $.clusterName; this.jobId = $.jobId; this.projectId = $.projectId; + this.snapshotRestoreJobId = $.snapshotRestoreJobId; } public static Builder builder() { @@ -107,22 +133,30 @@ public Builder clusterName(String clusterName) { } /** - * @param jobId The unique identifier of the restore job to retrieve. + * @param jobId A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. + * */ - public Builder jobId(Output jobId) { + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + public Builder jobId(@Nullable Output jobId) { $.jobId = jobId; return this; } /** - * @param jobId The unique identifier of the restore job to retrieve. + * @param jobId A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ public Builder jobId(String jobId) { return jobId(Output.of(jobId)); } @@ -148,13 +182,31 @@ public Builder projectId(String projectId) { return projectId(Output.of(projectId)); } + /** + * @param snapshotRestoreJobId The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + * @return builder + * + */ + public Builder snapshotRestoreJobId(@Nullable Output snapshotRestoreJobId) { + $.snapshotRestoreJobId = snapshotRestoreJobId; + return this; + } + + /** + * @param snapshotRestoreJobId The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + * @return builder + * + */ + public Builder snapshotRestoreJobId(String snapshotRestoreJobId) { + return snapshotRestoreJobId(Output.of(snapshotRestoreJobId)); + } + public GetCloudBackupSnapshotRestoreJobArgs build() { if ($.clusterName == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobArgs", "clusterName"); } - if ($.jobId == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobArgs", "jobId"); - } if ($.projectId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobArgs", "projectId"); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java index c029bf3d..9665b6c5 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/GetCloudBackupSnapshotRestoreJobPlainArgs.java @@ -7,6 +7,8 @@ import com.pulumi.exceptions.MissingRequiredPropertyException; import java.lang.String; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; public final class GetCloudBackupSnapshotRestoreJobPlainArgs extends com.pulumi.resources.InvokeArgs { @@ -29,18 +31,26 @@ public String clusterName() { } /** - * The unique identifier of the restore job to retrieve. + * A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. * */ - @Import(name="jobId", required=true) - private String jobId; + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + @Import(name="jobId") + private @Nullable String jobId; /** - * @return The unique identifier of the restore job to retrieve. + * @return A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. + * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. * */ - public String jobId() { - return this.jobId; + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + public Optional jobId() { + return Optional.ofNullable(this.jobId); } /** @@ -58,12 +68,28 @@ public String projectId() { return this.projectId; } + /** + * The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + */ + @Import(name="snapshotRestoreJobId") + private @Nullable String snapshotRestoreJobId; + + /** + * @return The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + */ + public Optional snapshotRestoreJobId() { + return Optional.ofNullable(this.snapshotRestoreJobId); + } + private GetCloudBackupSnapshotRestoreJobPlainArgs() {} private GetCloudBackupSnapshotRestoreJobPlainArgs(GetCloudBackupSnapshotRestoreJobPlainArgs $) { this.clusterName = $.clusterName; this.jobId = $.jobId; this.projectId = $.projectId; + this.snapshotRestoreJobId = $.snapshotRestoreJobId; } public static Builder builder() { @@ -96,12 +122,16 @@ public Builder clusterName(String clusterName) { } /** - * @param jobId The unique identifier of the restore job to retrieve. + * @param jobId A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. + * */ - public Builder jobId(String jobId) { + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + public Builder jobId(@Nullable String jobId) { $.jobId = jobId; return this; } @@ -117,13 +147,21 @@ public Builder projectId(String projectId) { return this; } + /** + * @param snapshotRestoreJobId The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + * + * @return builder + * + */ + public Builder snapshotRestoreJobId(@Nullable String snapshotRestoreJobId) { + $.snapshotRestoreJobId = snapshotRestoreJobId; + return this; + } + public GetCloudBackupSnapshotRestoreJobPlainArgs build() { if ($.clusterName == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobPlainArgs", "clusterName"); } - if ($.jobId == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobPlainArgs", "jobId"); - } if ($.projectId == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobPlainArgs", "projectId"); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/PrivateLinkEndpointServiceEndpointArgs.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/PrivateLinkEndpointServiceEndpointArgs.java index ac6d33c5..b5e62fab 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/PrivateLinkEndpointServiceEndpointArgs.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/inputs/PrivateLinkEndpointServiceEndpointArgs.java @@ -48,14 +48,22 @@ public Optional> ipAddress() { /** * Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ @Import(name="serviceAttachmentName") private @Nullable Output serviceAttachmentName; /** * @return Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Optional> serviceAttachmentName() { return Optional.ofNullable(this.serviceAttachmentName); } @@ -149,7 +157,11 @@ public Builder ipAddress(String ipAddress) { * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Builder serviceAttachmentName(@Nullable Output serviceAttachmentName) { $.serviceAttachmentName = serviceAttachmentName; return this; @@ -160,7 +172,11 @@ public Builder serviceAttachmentName(@Nullable Output serviceAttachmentN * * @return builder * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Builder serviceAttachmentName(String serviceAttachmentName) { return serviceAttachmentName(Output.of(serviceAttachmentName)); } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java index d4e920af..9d7d17fc 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/FederatedDatabaseInstanceCloudProviderConfigAws.java @@ -30,10 +30,6 @@ public final class FederatedDatabaseInstanceCloudProviderConfigAws { * */ private @Nullable String iamUserArn; - /** - * @return Unique identifier of the role that the data lake can use to access the data stores. - * - */ private String roleId; private String testS3Bucket; @@ -62,10 +58,6 @@ public Optional iamAssumedRoleArn() { public Optional iamUserArn() { return Optional.ofNullable(this.iamUserArn); } - /** - * @return Unique identifier of the role that the data lake can use to access the data stores. - * - */ public String roleId() { return this.roleId; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java index 72b40e2c..a4c8720b 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportBucketResult.java @@ -26,6 +26,12 @@ public final class GetCloudBackupSnapshotExportBucketResult { * */ private String iamRoleId; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ private String id; private String projectId; @@ -54,6 +60,12 @@ public String exportBucketId() { public String iamRoleId() { return this.iamRoleId; } + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ public String id() { return this.id; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java index feb9c1cb..f6ac8e66 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotExportJobResult.java @@ -53,6 +53,12 @@ public final class GetCloudBackupSnapshotExportJobResult { * */ private String finishedAt; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ private String id; private String prefix; private String projectId; @@ -131,6 +137,12 @@ public Integer exportStatusTotalCollections() { public String finishedAt() { return this.finishedAt; } + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. */ public String id() { return this.id; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java index 91dc8b62..9857daa4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobResult.java @@ -10,6 +10,8 @@ import java.lang.String; import java.util.List; import java.util.Objects; +import java.util.Optional; +import javax.annotation.Nullable; @CustomType public final class GetCloudBackupSnapshotRestoreJobResult { @@ -22,7 +24,11 @@ public final class GetCloudBackupSnapshotRestoreJobResult { /** * @return UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ private String createdAt; /** * @return Type of restore job to create. Possible values are: automated and download. @@ -54,7 +60,13 @@ public final class GetCloudBackupSnapshotRestoreJobResult { * */ private String id; - private String jobId; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + private @Nullable String jobId; private Integer oplogInc; private Integer oplogTs; private Integer pointInTimeUtcSeconds; @@ -64,6 +76,7 @@ public final class GetCloudBackupSnapshotRestoreJobResult { * */ private String snapshotId; + private @Nullable String snapshotRestoreJobId; /** * @return Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated. * @@ -97,7 +110,11 @@ public String clusterName() { /** * @return UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public String createdAt() { return this.createdAt; } @@ -143,8 +160,14 @@ public String finishedAt() { public String id() { return this.id; } - public String jobId() { - return this.jobId; + /** + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. + * + */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead. */ + public Optional jobId() { + return Optional.ofNullable(this.jobId); } public Integer oplogInc() { return this.oplogInc; @@ -165,6 +188,9 @@ public String projectId() { public String snapshotId() { return this.snapshotId; } + public Optional snapshotRestoreJobId() { + return Optional.ofNullable(this.snapshotRestoreJobId); + } /** * @return Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated. * @@ -208,12 +234,13 @@ public static final class Builder { private String expiresAt; private String finishedAt; private String id; - private String jobId; + private @Nullable String jobId; private Integer oplogInc; private Integer oplogTs; private Integer pointInTimeUtcSeconds; private String projectId; private String snapshotId; + private @Nullable String snapshotRestoreJobId; private String targetClusterName; private String targetProjectId; private String timestamp; @@ -235,6 +262,7 @@ public Builder(GetCloudBackupSnapshotRestoreJobResult defaults) { this.pointInTimeUtcSeconds = defaults.pointInTimeUtcSeconds; this.projectId = defaults.projectId; this.snapshotId = defaults.snapshotId; + this.snapshotRestoreJobId = defaults.snapshotRestoreJobId; this.targetClusterName = defaults.targetClusterName; this.targetProjectId = defaults.targetProjectId; this.timestamp = defaults.timestamp; @@ -316,10 +344,8 @@ public Builder id(String id) { return this; } @CustomType.Setter - public Builder jobId(String jobId) { - if (jobId == null) { - throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "jobId"); - } + public Builder jobId(@Nullable String jobId) { + this.jobId = jobId; return this; } @@ -364,6 +390,12 @@ public Builder snapshotId(String snapshotId) { return this; } @CustomType.Setter + public Builder snapshotRestoreJobId(@Nullable String snapshotRestoreJobId) { + + this.snapshotRestoreJobId = snapshotRestoreJobId; + return this; + } + @CustomType.Setter public Builder targetClusterName(String targetClusterName) { if (targetClusterName == null) { throw new MissingRequiredPropertyException("GetCloudBackupSnapshotRestoreJobResult", "targetClusterName"); @@ -404,6 +436,7 @@ public GetCloudBackupSnapshotRestoreJobResult build() { _resultValue.pointInTimeUtcSeconds = pointInTimeUtcSeconds; _resultValue.projectId = projectId; _resultValue.snapshotId = snapshotId; + _resultValue.snapshotRestoreJobId = snapshotRestoreJobId; _resultValue.targetClusterName = targetClusterName; _resultValue.targetProjectId = targetProjectId; _resultValue.timestamp = timestamp; diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java index 71790392..b11543bb 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/GetCloudBackupSnapshotRestoreJobsResult.java @@ -21,7 +21,11 @@ public final class GetCloudBackupSnapshotRestoreJobsResult { /** * @return UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ private String createdAt; /** * @return Type of restore job to create. Possible values are: automated and download. @@ -91,7 +95,11 @@ public Boolean cancelled() { /** * @return UTC ISO 8601 formatted point in time when Atlas created the restore job. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public String createdAt() { return this.createdAt; } diff --git a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java index 7ca455b9..2c90f0c4 100644 --- a/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java +++ b/sdk/java/src/main/java/com/pulumi/mongodbatlas/outputs/PrivateLinkEndpointServiceEndpoint.java @@ -24,7 +24,11 @@ public final class PrivateLinkEndpointServiceEndpoint { /** * @return Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ private @Nullable String serviceAttachmentName; /** * @return Status of the endpoint. Atlas returns one of the [values shown above](https://docs.atlas.mongodb.com/reference/api/private-endpoints-endpoint-create-one/#std-label-ref-status-field). @@ -50,7 +54,11 @@ public Optional ipAddress() { /** * @return Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. * + * @deprecated + * This parameter is deprecated and will be removed in version 1.18.0. + * */ + @Deprecated /* This parameter is deprecated and will be removed in version 1.18.0. */ public Optional serviceAttachmentName() { return Optional.ofNullable(this.serviceAttachmentName); } diff --git a/sdk/nodejs/cloudBackupSnapshotRestoreJob.ts b/sdk/nodejs/cloudBackupSnapshotRestoreJob.ts index b500bf55..0ce7e9e3 100644 --- a/sdk/nodejs/cloudBackupSnapshotRestoreJob.ts +++ b/sdk/nodejs/cloudBackupSnapshotRestoreJob.ts @@ -158,6 +158,8 @@ export class CloudBackupSnapshotRestoreJob extends pulumi.CustomResource { public readonly clusterName!: pulumi.Output; /** * UTC ISO 8601 formatted point in time when Atlas created the restore job. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. */ public /*out*/ readonly createdAt!: pulumi.Output; /** @@ -284,6 +286,8 @@ export interface CloudBackupSnapshotRestoreJobState { clusterName?: pulumi.Input; /** * UTC ISO 8601 formatted point in time when Atlas created the restore job. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. */ createdAt?: pulumi.Input; /** diff --git a/sdk/nodejs/federatedDatabaseInstance.ts b/sdk/nodejs/federatedDatabaseInstance.ts index e3f4b09c..dbc123be 100644 --- a/sdk/nodejs/federatedDatabaseInstance.ts +++ b/sdk/nodejs/federatedDatabaseInstance.ts @@ -99,6 +99,22 @@ import * as utilities from "./utilities"; * }); * ``` * + * ## Example specifying data process region and provider + * + * ```typescript + * import * as pulumi from "@pulumi/pulumi"; + * import * as mongodbatlas from "@pulumi/mongodbatlas"; + * + * const test = new mongodbatlas.FederatedDatabaseInstance("test", { + * projectId: "PROJECT ID", + * name: "NAME OF THE FEDERATED DATABASE INSTANCE", + * dataProcessRegion: { + * cloudProvider: "AWS", + * region: "OREGON_USA", + * }, + * }); + * ``` + * * ## Import * * - The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g. diff --git a/sdk/nodejs/federatedSettingsOrgRoleMapping.ts b/sdk/nodejs/federatedSettingsOrgRoleMapping.ts index 3fbe01fa..348338e8 100644 --- a/sdk/nodejs/federatedSettingsOrgRoleMapping.ts +++ b/sdk/nodejs/federatedSettingsOrgRoleMapping.ts @@ -104,6 +104,10 @@ export class FederatedSettingsOrgRoleMapping extends pulumi.CustomResource { * Atlas roles and the unique identifiers of the groups and organizations associated with each role. */ public readonly roleAssignments!: pulumi.Output; + /** + * Unique 24-hexadecimal digit string that identifies this role mapping. + */ + public /*out*/ readonly roleMappingId!: pulumi.Output; /** * Create a FederatedSettingsOrgRoleMapping resource with the given unique name, arguments, and options. @@ -122,6 +126,7 @@ export class FederatedSettingsOrgRoleMapping extends pulumi.CustomResource { resourceInputs["federationSettingsId"] = state ? state.federationSettingsId : undefined; resourceInputs["orgId"] = state ? state.orgId : undefined; resourceInputs["roleAssignments"] = state ? state.roleAssignments : undefined; + resourceInputs["roleMappingId"] = state ? state.roleMappingId : undefined; } else { const args = argsOrState as FederatedSettingsOrgRoleMappingArgs | undefined; if ((!args || args.externalGroupName === undefined) && !opts.urn) { @@ -140,6 +145,7 @@ export class FederatedSettingsOrgRoleMapping extends pulumi.CustomResource { resourceInputs["federationSettingsId"] = args ? args.federationSettingsId : undefined; resourceInputs["orgId"] = args ? args.orgId : undefined; resourceInputs["roleAssignments"] = args ? args.roleAssignments : undefined; + resourceInputs["roleMappingId"] = undefined /*out*/; } opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts); super(FederatedSettingsOrgRoleMapping.__pulumiType, name, resourceInputs, opts); @@ -166,6 +172,10 @@ export interface FederatedSettingsOrgRoleMappingState { * Atlas roles and the unique identifiers of the groups and organizations associated with each role. */ roleAssignments?: pulumi.Input[]>; + /** + * Unique 24-hexadecimal digit string that identifies this role mapping. + */ + roleMappingId?: pulumi.Input; } /** diff --git a/sdk/nodejs/getCloudBackupSnapshotExportBucket.ts b/sdk/nodejs/getCloudBackupSnapshotExportBucket.ts index 582f367a..87da5fde 100644 --- a/sdk/nodejs/getCloudBackupSnapshotExportBucket.ts +++ b/sdk/nodejs/getCloudBackupSnapshotExportBucket.ts @@ -45,7 +45,10 @@ export interface GetCloudBackupSnapshotExportBucketArgs { * Unique identifier of the snapshot export bucket. */ exportBucketId: string; - id: string; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + */ + id?: string; /** * The unique identifier of the project for the Atlas cluster. */ @@ -69,6 +72,9 @@ export interface GetCloudBackupSnapshotExportBucketResult { * Unique identifier of the role that Atlas can use to access the bucket. You must also specify the `bucketName`. */ readonly iamRoleId: string; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + */ readonly id: string; readonly projectId: string; } @@ -107,7 +113,10 @@ export interface GetCloudBackupSnapshotExportBucketOutputArgs { * Unique identifier of the snapshot export bucket. */ exportBucketId: pulumi.Input; - id: pulumi.Input; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + */ + id?: pulumi.Input; /** * The unique identifier of the project for the Atlas cluster. */ diff --git a/sdk/nodejs/getCloudBackupSnapshotExportJob.ts b/sdk/nodejs/getCloudBackupSnapshotExportJob.ts index ea02121b..b5cc3f4a 100644 --- a/sdk/nodejs/getCloudBackupSnapshotExportJob.ts +++ b/sdk/nodejs/getCloudBackupSnapshotExportJob.ts @@ -63,7 +63,10 @@ export interface GetCloudBackupSnapshotExportJobArgs { * Unique identifier of the export job to retrieve. */ exportJobId: string; - id: string; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + */ + id?: string; /** * Unique 24-hexadecimal digit string that identifies the project which contains the Atlas cluster whose snapshot you want to retrieve. */ @@ -106,6 +109,9 @@ export interface GetCloudBackupSnapshotExportJobResult { * Timestamp in ISO 8601 date and time format in UTC when the export job completes. */ readonly finishedAt: string; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + */ readonly id: string; readonly prefix: string; readonly projectId: string; @@ -172,7 +178,10 @@ export interface GetCloudBackupSnapshotExportJobOutputArgs { * Unique identifier of the export job to retrieve. */ exportJobId: pulumi.Input; - id: pulumi.Input; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed. + */ + id?: pulumi.Input; /** * Unique 24-hexadecimal digit string that identifies the project which contains the Atlas cluster whose snapshot you want to retrieve. */ diff --git a/sdk/nodejs/getCloudBackupSnapshotRestoreJob.ts b/sdk/nodejs/getCloudBackupSnapshotRestoreJob.ts index 9ac14c22..36c1b035 100644 --- a/sdk/nodejs/getCloudBackupSnapshotRestoreJob.ts +++ b/sdk/nodejs/getCloudBackupSnapshotRestoreJob.ts @@ -16,6 +16,7 @@ export function getCloudBackupSnapshotRestoreJob(args: GetCloudBackupSnapshotRes "clusterName": args.clusterName, "jobId": args.jobId, "projectId": args.projectId, + "snapshotRestoreJobId": args.snapshotRestoreJobId, }, opts); } @@ -28,13 +29,19 @@ export interface GetCloudBackupSnapshotRestoreJobArgs { */ clusterName: string; /** - * The unique identifier of the restore job to retrieve. + * A base64-encoded ID of `projectId`, `clusterName`, and `jobId` of this resource. **Note**: This attribute is deprecated, use `snapshotRestoreJobId` instead. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. */ - jobId: string; + jobId?: string; /** * The unique identifier of the project for the Atlas cluster. */ projectId: string; + /** + * The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + */ + snapshotRestoreJobId?: string; } /** @@ -48,6 +55,8 @@ export interface GetCloudBackupSnapshotRestoreJobResult { readonly clusterName: string; /** * UTC ISO 8601 formatted point in time when Atlas created the restore job. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. */ readonly createdAt: string; /** @@ -74,7 +83,10 @@ export interface GetCloudBackupSnapshotRestoreJobResult { * The provider-assigned unique ID for this managed resource. */ readonly id: string; - readonly jobId: string; + /** + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. + */ + readonly jobId?: string; readonly oplogInc: number; readonly oplogTs: number; readonly pointInTimeUtcSeconds: number; @@ -83,6 +95,7 @@ export interface GetCloudBackupSnapshotRestoreJobResult { * Unique identifier of the source snapshot ID of the restore job. */ readonly snapshotId: string; + readonly snapshotRestoreJobId?: string; /** * Name of the target Atlas cluster to which the restore job restores the snapshot. Only visible if deliveryType is automated. */ @@ -117,11 +130,17 @@ export interface GetCloudBackupSnapshotRestoreJobOutputArgs { */ clusterName: pulumi.Input; /** - * The unique identifier of the restore job to retrieve. + * A base64-encoded ID of `projectId`, `clusterName`, and `jobId` of this resource. **Note**: This attribute is deprecated, use `snapshotRestoreJobId` instead. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. Use snapshotRestoreJobId instead. */ - jobId: pulumi.Input; + jobId?: pulumi.Input; /** * The unique identifier of the project for the Atlas cluster. */ projectId: pulumi.Input; + /** + * The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. + */ + snapshotRestoreJobId?: pulumi.Input; } diff --git a/sdk/nodejs/globalClusterConfig.ts b/sdk/nodejs/globalClusterConfig.ts index 840f4788..92c3312c 100644 --- a/sdk/nodejs/globalClusterConfig.ts +++ b/sdk/nodejs/globalClusterConfig.ts @@ -11,6 +11,8 @@ import * as utilities from "./utilities"; * * > **NOTE:** Groups and projects are synonymous terms. You may find groupId in the official documentation. * + * > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/) + * * ## Examples Usage * * ### Example Global cluster diff --git a/sdk/nodejs/project.ts b/sdk/nodejs/project.ts index 872d8370..0bb32b84 100644 --- a/sdk/nodejs/project.ts +++ b/sdk/nodejs/project.ts @@ -143,7 +143,7 @@ export class Project extends pulumi.CustomResource { /** * Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. For more information see [MongoDB Atlas for Government](https://www.mongodb.com/docs/atlas/government/api/#creating-a-project). */ - public readonly regionUsageRestrictions!: pulumi.Output; + public readonly regionUsageRestrictions!: pulumi.Output; /** * Map that contains key-value pairs between 1 to 255 characters in length for tagging and categorizing the project. See below. */ diff --git a/sdk/nodejs/types/input.ts b/sdk/nodejs/types/input.ts index ecc5771f..b21e38f7 100644 --- a/sdk/nodejs/types/input.ts +++ b/sdk/nodejs/types/input.ts @@ -1121,9 +1121,6 @@ export interface FederatedDatabaseInstanceCloudProviderConfigAws { * Amazon Resource Name (ARN) of the user that the Federated Database Instance assumes when accessing S3 Bucket data stores. */ iamUserArn?: pulumi.Input; - /** - * Unique identifier of the role that the data lake can use to access the data stores. - */ roleId: pulumi.Input; testS3Bucket: pulumi.Input; } @@ -1565,6 +1562,8 @@ export interface PrivateLinkEndpointServiceEndpoint { ipAddress?: pulumi.Input; /** * Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. */ serviceAttachmentName?: pulumi.Input; /** diff --git a/sdk/nodejs/types/output.ts b/sdk/nodejs/types/output.ts index 36032d9f..9ef95148 100644 --- a/sdk/nodejs/types/output.ts +++ b/sdk/nodejs/types/output.ts @@ -1121,9 +1121,6 @@ export interface FederatedDatabaseInstanceCloudProviderConfigAws { * Amazon Resource Name (ARN) of the user that the Federated Database Instance assumes when accessing S3 Bucket data stores. */ iamUserArn: string; - /** - * Unique identifier of the role that the data lake can use to access the data stores. - */ roleId: string; testS3Bucket: string; } @@ -2873,6 +2870,8 @@ export interface GetCloudBackupSnapshotRestoreJobsResult { cancelled: boolean; /** * UTC ISO 8601 formatted point in time when Atlas created the restore job. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. */ createdAt: string; /** @@ -6051,6 +6050,8 @@ export interface PrivateLinkEndpointServiceEndpoint { ipAddress?: string; /** * Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. + * + * @deprecated This parameter is deprecated and will be removed in version 1.18.0. */ serviceAttachmentName: string; /** diff --git a/sdk/python/pulumi_mongodbatlas/_inputs.py b/sdk/python/pulumi_mongodbatlas/_inputs.py index 06895ecb..e42f59ba 100644 --- a/sdk/python/pulumi_mongodbatlas/_inputs.py +++ b/sdk/python/pulumi_mongodbatlas/_inputs.py @@ -5126,7 +5126,6 @@ def __init__(__self__, *, iam_assumed_role_arn: Optional[pulumi.Input[str]] = None, iam_user_arn: Optional[pulumi.Input[str]] = None): """ - :param pulumi.Input[str] role_id: Unique identifier of the role that the data lake can use to access the data stores. :param pulumi.Input[str] external_id: Unique identifier associated with the IAM Role that the Federated Database Instance assumes when accessing the data stores. :param pulumi.Input[str] iam_assumed_role_arn: Amazon Resource Name (ARN) of the IAM Role that the Federated Database Instance assumes when accessing S3 Bucket data stores. The IAM Role must support the following actions against each S3 bucket: * `s3:GetObject` @@ -5146,9 +5145,6 @@ def __init__(__self__, *, @property @pulumi.getter(name="roleId") def role_id(self) -> pulumi.Input[str]: - """ - Unique identifier of the role that the data lake can use to access the data stores. - """ return pulumi.get(self, "role_id") @role_id.setter @@ -6400,6 +6396,9 @@ def __init__(__self__, *, pulumi.set(__self__, "endpoint_name", endpoint_name) if ip_address is not None: pulumi.set(__self__, "ip_address", ip_address) + if service_attachment_name is not None: + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""service_attachment_name is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") if service_attachment_name is not None: pulumi.set(__self__, "service_attachment_name", service_attachment_name) if status is not None: @@ -6435,6 +6434,9 @@ def service_attachment_name(self) -> Optional[pulumi.Input[str]]: """ Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. """ + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""service_attachment_name is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") + return pulumi.get(self, "service_attachment_name") @service_attachment_name.setter diff --git a/sdk/python/pulumi_mongodbatlas/cloud_backup_snapshot_restore_job.py b/sdk/python/pulumi_mongodbatlas/cloud_backup_snapshot_restore_job.py index 0b248ffa..4fe7616d 100644 --- a/sdk/python/pulumi_mongodbatlas/cloud_backup_snapshot_restore_job.py +++ b/sdk/python/pulumi_mongodbatlas/cloud_backup_snapshot_restore_job.py @@ -155,6 +155,9 @@ def __init__(__self__, *, pulumi.set(__self__, "cancelled", cancelled) if cluster_name is not None: pulumi.set(__self__, "cluster_name", cluster_name) + if created_at is not None: + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""created_at is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") if created_at is not None: pulumi.set(__self__, "created_at", created_at) if delivery_type_config is not None: @@ -206,6 +209,9 @@ def created_at(self) -> Optional[pulumi.Input[str]]: """ UTC ISO 8601 formatted point in time when Atlas created the restore job. """ + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""created_at is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") + return pulumi.get(self, "created_at") @created_at.setter @@ -730,6 +736,9 @@ def created_at(self) -> pulumi.Output[str]: """ UTC ISO 8601 formatted point in time when Atlas created the restore job. """ + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""created_at is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") + return pulumi.get(self, "created_at") @property diff --git a/sdk/python/pulumi_mongodbatlas/federated_database_instance.py b/sdk/python/pulumi_mongodbatlas/federated_database_instance.py index 7b9ff7bd..69abe8f9 100644 --- a/sdk/python/pulumi_mongodbatlas/federated_database_instance.py +++ b/sdk/python/pulumi_mongodbatlas/federated_database_instance.py @@ -539,6 +539,21 @@ def __init__(__self__, ]) ``` + ## Example specifying data process region and provider + + ```python + import pulumi + import pulumi_mongodbatlas as mongodbatlas + + test = mongodbatlas.FederatedDatabaseInstance("test", + project_id="PROJECT ID", + name="NAME OF THE FEDERATED DATABASE INSTANCE", + data_process_region=mongodbatlas.FederatedDatabaseInstanceDataProcessRegionArgs( + cloud_provider="AWS", + region="OREGON_USA", + )) + ``` + ## Import - The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g. @@ -706,6 +721,21 @@ def __init__(__self__, ]) ``` + ## Example specifying data process region and provider + + ```python + import pulumi + import pulumi_mongodbatlas as mongodbatlas + + test = mongodbatlas.FederatedDatabaseInstance("test", + project_id="PROJECT ID", + name="NAME OF THE FEDERATED DATABASE INSTANCE", + data_process_region=mongodbatlas.FederatedDatabaseInstanceDataProcessRegionArgs( + cloud_provider="AWS", + region="OREGON_USA", + )) + ``` + ## Import - The Federated Database Instance can be imported using project ID, name of the instance, in the format `project_id`--`name`, e.g. diff --git a/sdk/python/pulumi_mongodbatlas/federated_settings_org_role_mapping.py b/sdk/python/pulumi_mongodbatlas/federated_settings_org_role_mapping.py index b1b55c67..7391f6bb 100644 --- a/sdk/python/pulumi_mongodbatlas/federated_settings_org_role_mapping.py +++ b/sdk/python/pulumi_mongodbatlas/federated_settings_org_role_mapping.py @@ -87,13 +87,15 @@ def __init__(__self__, *, external_group_name: Optional[pulumi.Input[str]] = None, federation_settings_id: Optional[pulumi.Input[str]] = None, org_id: Optional[pulumi.Input[str]] = None, - role_assignments: Optional[pulumi.Input[Sequence[pulumi.Input['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]]] = None): + role_assignments: Optional[pulumi.Input[Sequence[pulumi.Input['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]]] = None, + role_mapping_id: Optional[pulumi.Input[str]] = None): """ Input properties used for looking up and filtering FederatedSettingsOrgRoleMapping resources. :param pulumi.Input[str] external_group_name: Unique human-readable label that identifies the identity provider group to which this role mapping applies. :param pulumi.Input[str] federation_settings_id: Unique 24-hexadecimal digit string that identifies the federated authentication configuration. :param pulumi.Input[str] org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects. :param pulumi.Input[Sequence[pulumi.Input['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]] role_assignments: Atlas roles and the unique identifiers of the groups and organizations associated with each role. + :param pulumi.Input[str] role_mapping_id: Unique 24-hexadecimal digit string that identifies this role mapping. """ if external_group_name is not None: pulumi.set(__self__, "external_group_name", external_group_name) @@ -103,6 +105,8 @@ def __init__(__self__, *, pulumi.set(__self__, "org_id", org_id) if role_assignments is not None: pulumi.set(__self__, "role_assignments", role_assignments) + if role_mapping_id is not None: + pulumi.set(__self__, "role_mapping_id", role_mapping_id) @property @pulumi.getter(name="externalGroupName") @@ -152,6 +156,18 @@ def role_assignments(self) -> Optional[pulumi.Input[Sequence[pulumi.Input['Feder def role_assignments(self, value: Optional[pulumi.Input[Sequence[pulumi.Input['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]]]): pulumi.set(self, "role_assignments", value) + @property + @pulumi.getter(name="roleMappingId") + def role_mapping_id(self) -> Optional[pulumi.Input[str]]: + """ + Unique 24-hexadecimal digit string that identifies this role mapping. + """ + return pulumi.get(self, "role_mapping_id") + + @role_mapping_id.setter + def role_mapping_id(self, value: Optional[pulumi.Input[str]]): + pulumi.set(self, "role_mapping_id", value) + class FederatedSettingsOrgRoleMapping(pulumi.CustomResource): @overload @@ -322,6 +338,7 @@ def _internal_init(__self__, if role_assignments is None and not opts.urn: raise TypeError("Missing required property 'role_assignments'") __props__.__dict__["role_assignments"] = role_assignments + __props__.__dict__["role_mapping_id"] = None super(FederatedSettingsOrgRoleMapping, __self__).__init__( 'mongodbatlas:index/federatedSettingsOrgRoleMapping:FederatedSettingsOrgRoleMapping', resource_name, @@ -335,7 +352,8 @@ def get(resource_name: str, external_group_name: Optional[pulumi.Input[str]] = None, federation_settings_id: Optional[pulumi.Input[str]] = None, org_id: Optional[pulumi.Input[str]] = None, - role_assignments: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]]]] = None) -> 'FederatedSettingsOrgRoleMapping': + role_assignments: Optional[pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]]]] = None, + role_mapping_id: Optional[pulumi.Input[str]] = None) -> 'FederatedSettingsOrgRoleMapping': """ Get an existing FederatedSettingsOrgRoleMapping resource's state with the given name, id, and optional extra properties used to qualify the lookup. @@ -347,6 +365,7 @@ def get(resource_name: str, :param pulumi.Input[str] federation_settings_id: Unique 24-hexadecimal digit string that identifies the federated authentication configuration. :param pulumi.Input[str] org_id: Unique 24-hexadecimal digit string that identifies the organization that contains your projects. :param pulumi.Input[Sequence[pulumi.Input[pulumi.InputType['FederatedSettingsOrgRoleMappingRoleAssignmentArgs']]]] role_assignments: Atlas roles and the unique identifiers of the groups and organizations associated with each role. + :param pulumi.Input[str] role_mapping_id: Unique 24-hexadecimal digit string that identifies this role mapping. """ opts = pulumi.ResourceOptions.merge(opts, pulumi.ResourceOptions(id=id)) @@ -356,6 +375,7 @@ def get(resource_name: str, __props__.__dict__["federation_settings_id"] = federation_settings_id __props__.__dict__["org_id"] = org_id __props__.__dict__["role_assignments"] = role_assignments + __props__.__dict__["role_mapping_id"] = role_mapping_id return FederatedSettingsOrgRoleMapping(resource_name, opts=opts, __props__=__props__) @property @@ -390,3 +410,11 @@ def role_assignments(self) -> pulumi.Output[Sequence['outputs.FederatedSettingsO """ return pulumi.get(self, "role_assignments") + @property + @pulumi.getter(name="roleMappingId") + def role_mapping_id(self) -> pulumi.Output[str]: + """ + Unique 24-hexadecimal digit string that identifies this role mapping. + """ + return pulumi.get(self, "role_mapping_id") + diff --git a/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_bucket.py b/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_bucket.py index 1e83df6f..11f950df 100644 --- a/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_bucket.py +++ b/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_bucket.py @@ -73,6 +73,9 @@ def iam_role_id(self) -> str: @property @pulumi.getter def id(self) -> str: + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.""", DeprecationWarning) + pulumi.log.warn("""id is deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.""") + return pulumi.get(self, "id") @property @@ -141,7 +144,7 @@ def get_cloud_backup_snapshot_export_bucket(export_bucket_id: Optional[str] = No @_utilities.lift_output_func(get_cloud_backup_snapshot_export_bucket) def get_cloud_backup_snapshot_export_bucket_output(export_bucket_id: Optional[pulumi.Input[str]] = None, - id: Optional[pulumi.Input[str]] = None, + id: Optional[pulumi.Input[Optional[str]]] = None, project_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudBackupSnapshotExportBucketResult]: """ diff --git a/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_job.py b/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_job.py index 89e693c8..cd31f1ad 100644 --- a/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_job.py +++ b/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_export_job.py @@ -144,6 +144,9 @@ def finished_at(self) -> str: @property @pulumi.getter def id(self) -> str: + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.""", DeprecationWarning) + pulumi.log.warn("""id is deprecated: This parameter is deprecated and will be removed in version 1.18.0. Will not be an input parameter, only computed.""") + return pulumi.get(self, "id") @property @@ -269,7 +272,7 @@ def get_cloud_backup_snapshot_export_job(cluster_name: Optional[str] = None, @_utilities.lift_output_func(get_cloud_backup_snapshot_export_job) def get_cloud_backup_snapshot_export_job_output(cluster_name: Optional[pulumi.Input[str]] = None, export_job_id: Optional[pulumi.Input[str]] = None, - id: Optional[pulumi.Input[str]] = None, + id: Optional[pulumi.Input[Optional[str]]] = None, project_id: Optional[pulumi.Input[str]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudBackupSnapshotExportJobResult]: """ diff --git a/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_restore_job.py b/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_restore_job.py index 7474c353..f0d56547 100644 --- a/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_restore_job.py +++ b/sdk/python/pulumi_mongodbatlas/get_cloud_backup_snapshot_restore_job.py @@ -21,7 +21,7 @@ class GetCloudBackupSnapshotRestoreJobResult: """ A collection of values returned by getCloudBackupSnapshotRestoreJob. """ - def __init__(__self__, cancelled=None, cluster_name=None, created_at=None, delivery_type=None, delivery_urls=None, expired=None, expires_at=None, finished_at=None, id=None, job_id=None, oplog_inc=None, oplog_ts=None, point_in_time_utc_seconds=None, project_id=None, snapshot_id=None, target_cluster_name=None, target_project_id=None, timestamp=None): + def __init__(__self__, cancelled=None, cluster_name=None, created_at=None, delivery_type=None, delivery_urls=None, expired=None, expires_at=None, finished_at=None, id=None, job_id=None, oplog_inc=None, oplog_ts=None, point_in_time_utc_seconds=None, project_id=None, snapshot_id=None, snapshot_restore_job_id=None, target_cluster_name=None, target_project_id=None, timestamp=None): if cancelled and not isinstance(cancelled, bool): raise TypeError("Expected argument 'cancelled' to be a bool") pulumi.set(__self__, "cancelled", cancelled) @@ -67,6 +67,9 @@ def __init__(__self__, cancelled=None, cluster_name=None, created_at=None, deliv if snapshot_id and not isinstance(snapshot_id, str): raise TypeError("Expected argument 'snapshot_id' to be a str") pulumi.set(__self__, "snapshot_id", snapshot_id) + if snapshot_restore_job_id and not isinstance(snapshot_restore_job_id, str): + raise TypeError("Expected argument 'snapshot_restore_job_id' to be a str") + pulumi.set(__self__, "snapshot_restore_job_id", snapshot_restore_job_id) if target_cluster_name and not isinstance(target_cluster_name, str): raise TypeError("Expected argument 'target_cluster_name' to be a str") pulumi.set(__self__, "target_cluster_name", target_cluster_name) @@ -96,6 +99,9 @@ def created_at(self) -> str: """ UTC ISO 8601 formatted point in time when Atlas created the restore job. """ + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""created_at is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") + return pulumi.get(self, "created_at") @property @@ -148,7 +154,10 @@ def id(self) -> str: @property @pulumi.getter(name="jobId") - def job_id(self) -> str: + def job_id(self) -> Optional[str]: + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.""", DeprecationWarning) + pulumi.log.warn("""job_id is deprecated: This parameter is deprecated and will be removed in version 1.18.0. Use snapshot_restore_job_id instead.""") + return pulumi.get(self, "job_id") @property @@ -179,6 +188,11 @@ def snapshot_id(self) -> str: """ return pulumi.get(self, "snapshot_id") + @property + @pulumi.getter(name="snapshotRestoreJobId") + def snapshot_restore_job_id(self) -> Optional[str]: + return pulumi.get(self, "snapshot_restore_job_id") + @property @pulumi.getter(name="targetClusterName") def target_cluster_name(self) -> str: @@ -228,6 +242,7 @@ def __await__(self): point_in_time_utc_seconds=self.point_in_time_utc_seconds, project_id=self.project_id, snapshot_id=self.snapshot_id, + snapshot_restore_job_id=self.snapshot_restore_job_id, target_cluster_name=self.target_cluster_name, target_project_id=self.target_project_id, timestamp=self.timestamp) @@ -236,6 +251,7 @@ def __await__(self): def get_cloud_backup_snapshot_restore_job(cluster_name: Optional[str] = None, job_id: Optional[str] = None, project_id: Optional[str] = None, + snapshot_restore_job_id: Optional[str] = None, opts: Optional[pulumi.InvokeOptions] = None) -> AwaitableGetCloudBackupSnapshotRestoreJobResult: """ `CloudBackupSnapshotRestoreJob` provides a Cloud Backup Snapshot Restore Job datasource. Gets all the cloud backup snapshot restore jobs for the specified cluster. @@ -244,13 +260,15 @@ def get_cloud_backup_snapshot_restore_job(cluster_name: Optional[str] = None, :param str cluster_name: The name of the Atlas cluster for which you want to retrieve the restore job. - :param str job_id: The unique identifier of the restore job to retrieve. + :param str job_id: A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. :param str project_id: The unique identifier of the project for the Atlas cluster. + :param str snapshot_restore_job_id: The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. """ __args__ = dict() __args__['clusterName'] = cluster_name __args__['jobId'] = job_id __args__['projectId'] = project_id + __args__['snapshotRestoreJobId'] = snapshot_restore_job_id opts = pulumi.InvokeOptions.merge(_utilities.get_invoke_opts_defaults(), opts) __ret__ = pulumi.runtime.invoke('mongodbatlas:index/getCloudBackupSnapshotRestoreJob:getCloudBackupSnapshotRestoreJob', __args__, opts=opts, typ=GetCloudBackupSnapshotRestoreJobResult).value @@ -270,6 +288,7 @@ def get_cloud_backup_snapshot_restore_job(cluster_name: Optional[str] = None, point_in_time_utc_seconds=pulumi.get(__ret__, 'point_in_time_utc_seconds'), project_id=pulumi.get(__ret__, 'project_id'), snapshot_id=pulumi.get(__ret__, 'snapshot_id'), + snapshot_restore_job_id=pulumi.get(__ret__, 'snapshot_restore_job_id'), target_cluster_name=pulumi.get(__ret__, 'target_cluster_name'), target_project_id=pulumi.get(__ret__, 'target_project_id'), timestamp=pulumi.get(__ret__, 'timestamp')) @@ -277,8 +296,9 @@ def get_cloud_backup_snapshot_restore_job(cluster_name: Optional[str] = None, @_utilities.lift_output_func(get_cloud_backup_snapshot_restore_job) def get_cloud_backup_snapshot_restore_job_output(cluster_name: Optional[pulumi.Input[str]] = None, - job_id: Optional[pulumi.Input[str]] = None, + job_id: Optional[pulumi.Input[Optional[str]]] = None, project_id: Optional[pulumi.Input[str]] = None, + snapshot_restore_job_id: Optional[pulumi.Input[Optional[str]]] = None, opts: Optional[pulumi.InvokeOptions] = None) -> pulumi.Output[GetCloudBackupSnapshotRestoreJobResult]: """ `CloudBackupSnapshotRestoreJob` provides a Cloud Backup Snapshot Restore Job datasource. Gets all the cloud backup snapshot restore jobs for the specified cluster. @@ -287,7 +307,8 @@ def get_cloud_backup_snapshot_restore_job_output(cluster_name: Optional[pulumi.I :param str cluster_name: The name of the Atlas cluster for which you want to retrieve the restore job. - :param str job_id: The unique identifier of the restore job to retrieve. + :param str job_id: A base64-encoded ID of `project_id`, `cluster_name`, and `job_id` of this resource. **Note**: This attribute is deprecated, use `snapshot_restore_job_id` instead. :param str project_id: The unique identifier of the project for the Atlas cluster. + :param str snapshot_restore_job_id: The unique identifier of the restore job to retrieve. Required for versions 1.18.0 and later. """ ... diff --git a/sdk/python/pulumi_mongodbatlas/global_cluster_config.py b/sdk/python/pulumi_mongodbatlas/global_cluster_config.py index d29a21ea..782b4b2a 100644 --- a/sdk/python/pulumi_mongodbatlas/global_cluster_config.py +++ b/sdk/python/pulumi_mongodbatlas/global_cluster_config.py @@ -186,6 +186,8 @@ def __init__(__self__, > **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation. + > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/) + ## Examples Usage ### Example Global cluster @@ -304,6 +306,8 @@ def __init__(__self__, > **NOTE:** Groups and projects are synonymous terms. You may find group_id in the official documentation. + > **IMPORTANT:** A Global Cluster Configuration, once created, can only be deleted. You can recreate the Global Cluster with the same data only in the Atlas UI. This is because the configuration and its related collection with shard key and indexes are managed separately and they would end up in an inconsistent state. [Read more about Global Cluster Configuration](https://www.mongodb.com/docs/atlas/global-clusters/) + ## Examples Usage ### Example Global cluster diff --git a/sdk/python/pulumi_mongodbatlas/outputs.py b/sdk/python/pulumi_mongodbatlas/outputs.py index 3afae3a9..6d0a2931 100644 --- a/sdk/python/pulumi_mongodbatlas/outputs.py +++ b/sdk/python/pulumi_mongodbatlas/outputs.py @@ -5487,7 +5487,6 @@ def __init__(__self__, *, iam_assumed_role_arn: Optional[str] = None, iam_user_arn: Optional[str] = None): """ - :param str role_id: Unique identifier of the role that the data lake can use to access the data stores. :param str external_id: Unique identifier associated with the IAM Role that the Federated Database Instance assumes when accessing the data stores. :param str iam_assumed_role_arn: Amazon Resource Name (ARN) of the IAM Role that the Federated Database Instance assumes when accessing S3 Bucket data stores. The IAM Role must support the following actions against each S3 bucket: * `s3:GetObject` @@ -5507,9 +5506,6 @@ def __init__(__self__, *, @property @pulumi.getter(name="roleId") def role_id(self) -> str: - """ - Unique identifier of the role that the data lake can use to access the data stores. - """ return pulumi.get(self, "role_id") @property @@ -6775,6 +6771,9 @@ def service_attachment_name(self) -> Optional[str]: """ Unique alphanumeric and special character strings that identify the service attachment associated with the endpoint. """ + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""service_attachment_name is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") + return pulumi.get(self, "service_attachment_name") @property @@ -12186,6 +12185,9 @@ def created_at(self) -> str: """ UTC ISO 8601 formatted point in time when Atlas created the restore job. """ + warnings.warn("""This parameter is deprecated and will be removed in version 1.18.0.""", DeprecationWarning) + pulumi.log.warn("""created_at is deprecated: This parameter is deprecated and will be removed in version 1.18.0.""") + return pulumi.get(self, "created_at") @property diff --git a/sdk/python/pulumi_mongodbatlas/project.py b/sdk/python/pulumi_mongodbatlas/project.py index 02b71a39..b4061c5a 100644 --- a/sdk/python/pulumi_mongodbatlas/project.py +++ b/sdk/python/pulumi_mongodbatlas/project.py @@ -894,7 +894,7 @@ def project_owner_id(self) -> pulumi.Output[Optional[str]]: @property @pulumi.getter(name="regionUsageRestrictions") - def region_usage_restrictions(self) -> pulumi.Output[Optional[str]]: + def region_usage_restrictions(self) -> pulumi.Output[str]: """ Designates that this project can be used for government regions only. If not set the project will default to standard regions. You cannot deploy clusters across government and standard regions in the same project. AWS is the only cloud provider for AtlasGov. For more information see [MongoDB Atlas for Government](https://www.mongodb.com/docs/atlas/government/api/#creating-a-project). """