diff --git a/internal/serviceapi/clusterapi/resource_schema.go b/internal/serviceapi/clusterapi/resource_schema.go index 45363092dd..fbbfe08871 100755 --- a/internal/serviceapi/clusterapi/resource_schema.go +++ b/internal/serviceapi/clusterapi/resource_schema.go @@ -185,6 +185,10 @@ func ResourceSchema(ctx context.Context) schema.Schema { Computed: true, MarkdownDescription: "Unique 24-hexadecimal digit string that identifies the cluster.", }, + "internal_cluster_role": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Internal classification of the cluster's role. Possible values: NONE (regular user cluster), SYSTEM_CLUSTER (system cluster for backup), INTERNAL_SHADOW_CLUSTER (internal use shadow cluster for testing).", + }, "labels": schema.ListNestedAttribute{ Optional: true, MarkdownDescription: "Collection of key-value pairs between 1 to 255 characters in length that tag and categorize the cluster. The MongoDB Cloud console doesn't display your labels.\n\nCluster labels are deprecated and will be removed in a future release. We strongly recommend that you use Resource Tags instead.", @@ -306,7 +310,7 @@ func ResourceSchema(ctx context.Context) schema.Schema { "analytics_specs": schema.SingleNestedAttribute{ Computed: true, Optional: true, - MarkdownDescription: "Hardware specifications for read-only nodes in the region. Read-only nodes can never become the primary member, but can enable local reads. If you don't specify this parameter, no read-only nodes are deployed to the region.", + MarkdownDescription: "The current hardware specifications for read only nodes in the region.", Attributes: map[string]schema.Attribute{ "disk_iops": schema.Int64Attribute{ Computed: true, @@ -320,7 +324,6 @@ func ResourceSchema(ctx context.Context) schema.Schema { }, "ebs_volume_type": schema.StringAttribute{ Computed: true, - Optional: true, MarkdownDescription: "Type of storage you want to attach to your AWS-provisioned cluster.\n\n- `STANDARD` volume types can't exceed the default input/output operations per second (IOPS) rate for the selected volume size. \n\n- `PROVISIONED` volume types must fall within the allowable IOPS range for the selected volume size. You must set this value to (`PROVISIONED`) for NVMe clusters.", }, "instance_size": schema.StringAttribute{ @@ -390,6 +393,84 @@ func ResourceSchema(ctx context.Context) schema.Schema { Optional: true, MarkdownDescription: "Cloud service provider on which MongoDB Cloud provisioned the multi-tenant cluster. The resource returns this parameter when **providerName** is `TENANT` and **electableSpecs.instanceSize** is `M0`, `M2` or `M5`. \n\nPlease note that using an instanceSize of M2 or M5 will create a Flex cluster instead. Support for the instanceSize of M2 or M5 will be discontinued in January 2026. We recommend using the createFlexCluster API for such configurations moving forward.", }, + "effective_analytics_specs": schema.SingleNestedAttribute{ + Computed: true, + MarkdownDescription: "The current hardware specifications for read only nodes in the region.", + Attributes: map[string]schema.Attribute{ + "disk_iops": schema.Int64Attribute{ + Computed: true, + MarkdownDescription: "Target throughput desired for storage attached to your Azure-provisioned cluster. Change this parameter if you:\n\n- set `\"replicationSpecs[n].regionConfigs[m].providerName\" : \"Azure\"`.\n- set `\"replicationSpecs[n].regionConfigs[m].electableSpecs.instanceSize\" : \"M40\"` or greater not including `Mxx_NVME` tiers.\n\nThe maximum input/output operations per second (IOPS) depend on the selected **.instanceSize** and **.diskSizeGB**.\nThis parameter defaults to the cluster tier's standard IOPS value.\nChanging this value impacts cluster cost.", + }, + "disk_size_gb": schema.Float64Attribute{ + Computed: true, + MarkdownDescription: "Storage capacity of instance data volumes expressed in gigabytes. Increase this number to add capacity.\n\n This value must be equal for all shards and node types.\n\n This value is not configurable on M0/M2/M5 clusters.\n\n MongoDB Cloud requires this parameter if you set **replicationSpecs**.\n\n If you specify a disk size below the minimum (10 GB), this parameter defaults to the minimum disk size value. \n\n Storage charge calculations depend on whether you choose the default value or a custom value.\n\n The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier.", + }, + "ebs_volume_type": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Type of storage you want to attach to your AWS-provisioned cluster.\n\n- `STANDARD` volume types can't exceed the default input/output operations per second (IOPS) rate for the selected volume size. \n\n- `PROVISIONED` volume types must fall within the allowable IOPS range for the selected volume size. You must set this value to (`PROVISIONED`) for NVMe clusters.", + }, + "instance_size": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Hardware specification for the instance sizes in this region in this shard. Each instance size has a default storage and memory capacity. Electable nodes and read-only nodes (known as \"base nodes\") within a single shard must use the same instance size. Analytics nodes can scale independently from base nodes within a shard. Both base nodes and analytics nodes can scale independently from their equivalents in other shards.", + }, + "node_count": schema.Int64Attribute{ + Computed: true, + MarkdownDescription: "Number of nodes of the given type for MongoDB Cloud to deploy to the region.", + }, + }, + }, + "effective_electable_specs": schema.SingleNestedAttribute{ + Computed: true, + MarkdownDescription: "The current hardware specifications for read only nodes in the region.", + Attributes: map[string]schema.Attribute{ + "disk_iops": schema.Int64Attribute{ + Computed: true, + MarkdownDescription: "Target throughput desired for storage attached to your Azure-provisioned cluster. Change this parameter if you:\n\n- set `\"replicationSpecs[n].regionConfigs[m].providerName\" : \"Azure\"`.\n- set `\"replicationSpecs[n].regionConfigs[m].electableSpecs.instanceSize\" : \"M40\"` or greater not including `Mxx_NVME` tiers.\n\nThe maximum input/output operations per second (IOPS) depend on the selected **.instanceSize** and **.diskSizeGB**.\nThis parameter defaults to the cluster tier's standard IOPS value.\nChanging this value impacts cluster cost.", + }, + "disk_size_gb": schema.Float64Attribute{ + Computed: true, + MarkdownDescription: "Storage capacity of instance data volumes expressed in gigabytes. Increase this number to add capacity.\n\n This value must be equal for all shards and node types.\n\n This value is not configurable on M0/M2/M5 clusters.\n\n MongoDB Cloud requires this parameter if you set **replicationSpecs**.\n\n If you specify a disk size below the minimum (10 GB), this parameter defaults to the minimum disk size value. \n\n Storage charge calculations depend on whether you choose the default value or a custom value.\n\n The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier.", + }, + "ebs_volume_type": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Type of storage you want to attach to your AWS-provisioned cluster.\n\n- `STANDARD` volume types can't exceed the default input/output operations per second (IOPS) rate for the selected volume size. \n\n- `PROVISIONED` volume types must fall within the allowable IOPS range for the selected volume size. You must set this value to (`PROVISIONED`) for NVMe clusters.", + }, + "instance_size": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Hardware specification for the instance sizes in this region in this shard. Each instance size has a default storage and memory capacity. Electable nodes and read-only nodes (known as \"base nodes\") within a single shard must use the same instance size. Analytics nodes can scale independently from base nodes within a shard. Both base nodes and analytics nodes can scale independently from their equivalents in other shards.", + }, + "node_count": schema.Int64Attribute{ + Computed: true, + MarkdownDescription: "Number of nodes of the given type for MongoDB Cloud to deploy to the region.", + }, + }, + }, + "effective_read_only_specs": schema.SingleNestedAttribute{ + Computed: true, + MarkdownDescription: "The current hardware specifications for read only nodes in the region.", + Attributes: map[string]schema.Attribute{ + "disk_iops": schema.Int64Attribute{ + Computed: true, + MarkdownDescription: "Target throughput desired for storage attached to your Azure-provisioned cluster. Change this parameter if you:\n\n- set `\"replicationSpecs[n].regionConfigs[m].providerName\" : \"Azure\"`.\n- set `\"replicationSpecs[n].regionConfigs[m].electableSpecs.instanceSize\" : \"M40\"` or greater not including `Mxx_NVME` tiers.\n\nThe maximum input/output operations per second (IOPS) depend on the selected **.instanceSize** and **.diskSizeGB**.\nThis parameter defaults to the cluster tier's standard IOPS value.\nChanging this value impacts cluster cost.", + }, + "disk_size_gb": schema.Float64Attribute{ + Computed: true, + MarkdownDescription: "Storage capacity of instance data volumes expressed in gigabytes. Increase this number to add capacity.\n\n This value must be equal for all shards and node types.\n\n This value is not configurable on M0/M2/M5 clusters.\n\n MongoDB Cloud requires this parameter if you set **replicationSpecs**.\n\n If you specify a disk size below the minimum (10 GB), this parameter defaults to the minimum disk size value. \n\n Storage charge calculations depend on whether you choose the default value or a custom value.\n\n The maximum value for disk storage cannot exceed 50 times the maximum RAM for the selected cluster. If you require more storage space, consider upgrading your cluster to a higher tier.", + }, + "ebs_volume_type": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Type of storage you want to attach to your AWS-provisioned cluster.\n\n- `STANDARD` volume types can't exceed the default input/output operations per second (IOPS) rate for the selected volume size. \n\n- `PROVISIONED` volume types must fall within the allowable IOPS range for the selected volume size. You must set this value to (`PROVISIONED`) for NVMe clusters.", + }, + "instance_size": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "Hardware specification for the instance sizes in this region in this shard. Each instance size has a default storage and memory capacity. Electable nodes and read-only nodes (known as \"base nodes\") within a single shard must use the same instance size. Analytics nodes can scale independently from base nodes within a shard. Both base nodes and analytics nodes can scale independently from their equivalents in other shards.", + }, + "node_count": schema.Int64Attribute{ + Computed: true, + MarkdownDescription: "Number of nodes of the given type for MongoDB Cloud to deploy to the region.", + }, + }, + }, "electable_specs": schema.SingleNestedAttribute{ Optional: true, MarkdownDescription: "Hardware specifications for all electable nodes deployed in the region. Electable nodes can become the primary and can enable local reads. If you don't specify this option, MongoDB Cloud deploys no electable nodes to the region.", @@ -434,7 +515,7 @@ func ResourceSchema(ctx context.Context) schema.Schema { "read_only_specs": schema.SingleNestedAttribute{ Computed: true, Optional: true, - MarkdownDescription: "Hardware specifications for read-only nodes in the region. Read-only nodes can never become the primary member, but can enable local reads. If you don't specify this parameter, no read-only nodes are deployed to the region.", + MarkdownDescription: "The current hardware specifications for read only nodes in the region.", Attributes: map[string]schema.Attribute{ "disk_iops": schema.Int64Attribute{ Computed: true, @@ -448,7 +529,6 @@ func ResourceSchema(ctx context.Context) schema.Schema { }, "ebs_volume_type": schema.StringAttribute{ Computed: true, - Optional: true, MarkdownDescription: "Type of storage you want to attach to your AWS-provisioned cluster.\n\n- `STANDARD` volume types can't exceed the default input/output operations per second (IOPS) rate for the selected volume size. \n\n- `PROVISIONED` volume types must fall within the allowable IOPS range for the selected volume size. You must set this value to (`PROVISIONED`) for NVMe clusters.", }, "instance_size": schema.StringAttribute{ @@ -512,6 +592,11 @@ func ResourceSchema(ctx context.Context) schema.Schema { Optional: true, MarkdownDescription: "Flag that indicates whether termination protection is enabled on the cluster. If set to `true`, MongoDB Cloud won't delete the cluster. If set to `false`, MongoDB Cloud will delete the cluster.", }, + "use_aws_time_based_snapshot_copy_for_fast_initial_sync": schema.BoolAttribute{ + Computed: true, + Optional: true, + MarkdownDescription: "Flag that indicates whether AWS time-based snapshot copies will be used instead of slower standard snapshot copies during fast Atlas cross-region initial syncs. This flag is only relevant for clusters containing AWS nodes.", + }, "version_release_system": schema.StringAttribute{ Computed: true, Optional: true, @@ -522,37 +607,39 @@ func ResourceSchema(ctx context.Context) schema.Schema { } type TFModel struct { - Labels types.List `tfsdk:"labels"` - Tags types.List `tfsdk:"tags"` - ReplicationSpecs types.List `tfsdk:"replication_specs"` - GroupId types.String `tfsdk:"group_id" autogen:"omitjson"` - BiConnector types.Object `tfsdk:"bi_connector"` - ConfigServerManagementMode types.String `tfsdk:"config_server_management_mode"` - ConfigServerType types.String `tfsdk:"config_server_type" autogen:"omitjson"` - ConnectionStrings types.Object `tfsdk:"connection_strings" autogen:"omitjson"` - CreateDate types.String `tfsdk:"create_date" autogen:"omitjson"` - DiskWarmingMode types.String `tfsdk:"disk_warming_mode"` - EncryptionAtRestProvider types.String `tfsdk:"encryption_at_rest_provider"` - FeatureCompatibilityVersion types.String `tfsdk:"feature_compatibility_version" autogen:"omitjson"` - FeatureCompatibilityVersionExpirationDate types.String `tfsdk:"feature_compatibility_version_expiration_date" autogen:"omitjson"` - VersionReleaseSystem types.String `tfsdk:"version_release_system"` - AcceptDataRisksAndForceReplicaSetReconfig types.String `tfsdk:"accept_data_risks_and_force_replica_set_reconfig"` - Id types.String `tfsdk:"id" autogen:"omitjson"` - ClusterType types.String `tfsdk:"cluster_type"` - MongoDbemployeeAccessGrant types.Object `tfsdk:"mongo_dbemployee_access_grant"` - MongoDbmajorVersion types.String `tfsdk:"mongo_dbmajor_version"` - MongoDbversion types.String `tfsdk:"mongo_dbversion" autogen:"omitjson"` - Name types.String `tfsdk:"name"` - AdvancedConfiguration types.Object `tfsdk:"advanced_configuration"` - StateName types.String `tfsdk:"state_name" autogen:"omitjson"` - RootCertType types.String `tfsdk:"root_cert_type"` - ReplicaSetScalingStrategy types.String `tfsdk:"replica_set_scaling_strategy"` - BackupEnabled types.Bool `tfsdk:"backup_enabled"` - RedactClientLogData types.Bool `tfsdk:"redact_client_log_data"` - PitEnabled types.Bool `tfsdk:"pit_enabled"` - Paused types.Bool `tfsdk:"paused"` - TerminationProtectionEnabled types.Bool `tfsdk:"termination_protection_enabled"` - GlobalClusterSelfManagedSharding types.Bool `tfsdk:"global_cluster_self_managed_sharding"` + Labels types.List `tfsdk:"labels"` + Tags types.List `tfsdk:"tags"` + ReplicationSpecs types.List `tfsdk:"replication_specs"` + InternalClusterRole types.String `tfsdk:"internal_cluster_role" autogen:"omitjson"` + MongoDbmajorVersion types.String `tfsdk:"mongo_dbmajor_version"` + ConfigServerManagementMode types.String `tfsdk:"config_server_management_mode"` + ConfigServerType types.String `tfsdk:"config_server_type" autogen:"omitjson"` + ConnectionStrings types.Object `tfsdk:"connection_strings" autogen:"omitjson"` + CreateDate types.String `tfsdk:"create_date" autogen:"omitjson"` + DiskWarmingMode types.String `tfsdk:"disk_warming_mode"` + EncryptionAtRestProvider types.String `tfsdk:"encryption_at_rest_provider"` + FeatureCompatibilityVersion types.String `tfsdk:"feature_compatibility_version" autogen:"omitjson"` + FeatureCompatibilityVersionExpirationDate types.String `tfsdk:"feature_compatibility_version_expiration_date" autogen:"omitjson"` + VersionReleaseSystem types.String `tfsdk:"version_release_system"` + GroupId types.String `tfsdk:"group_id" autogen:"omitjson"` + Id types.String `tfsdk:"id" autogen:"omitjson"` + AcceptDataRisksAndForceReplicaSetReconfig types.String `tfsdk:"accept_data_risks_and_force_replica_set_reconfig"` + ClusterType types.String `tfsdk:"cluster_type"` + AdvancedConfiguration types.Object `tfsdk:"advanced_configuration"` + ReplicaSetScalingStrategy types.String `tfsdk:"replica_set_scaling_strategy"` + MongoDbversion types.String `tfsdk:"mongo_dbversion" autogen:"omitjson"` + Name types.String `tfsdk:"name"` + StateName types.String `tfsdk:"state_name" autogen:"omitjson"` + MongoDbemployeeAccessGrant types.Object `tfsdk:"mongo_dbemployee_access_grant"` + RootCertType types.String `tfsdk:"root_cert_type"` + BiConnector types.Object `tfsdk:"bi_connector"` + BackupEnabled types.Bool `tfsdk:"backup_enabled"` + RedactClientLogData types.Bool `tfsdk:"redact_client_log_data"` + Paused types.Bool `tfsdk:"paused"` + PitEnabled types.Bool `tfsdk:"pit_enabled"` + TerminationProtectionEnabled types.Bool `tfsdk:"termination_protection_enabled"` + UseAwsTimeBasedSnapshotCopyForFastInitialSync types.Bool `tfsdk:"use_aws_time_based_snapshot_copy_for_fast_initial_sync"` + GlobalClusterSelfManagedSharding types.Bool `tfsdk:"global_cluster_self_managed_sharding"` } type TFAdvancedConfigurationModel struct { CustomOpensslCipherConfigTls12 types.List `tfsdk:"custom_openssl_cipher_config_tls12"` @@ -599,15 +686,18 @@ type TFReplicationSpecsModel struct { ZoneName types.String `tfsdk:"zone_name"` } type TFReplicationSpecsRegionConfigsModel struct { - AnalyticsAutoScaling types.Object `tfsdk:"analytics_auto_scaling"` - AnalyticsSpecs types.Object `tfsdk:"analytics_specs"` - AutoScaling types.Object `tfsdk:"auto_scaling"` - BackingProviderName types.String `tfsdk:"backing_provider_name"` - ElectableSpecs types.Object `tfsdk:"electable_specs"` - ProviderName types.String `tfsdk:"provider_name"` - ReadOnlySpecs types.Object `tfsdk:"read_only_specs"` - RegionName types.String `tfsdk:"region_name"` - Priority types.Int64 `tfsdk:"priority"` + AnalyticsAutoScaling types.Object `tfsdk:"analytics_auto_scaling"` + AnalyticsSpecs types.Object `tfsdk:"analytics_specs" autogen:"omitjson"` + AutoScaling types.Object `tfsdk:"auto_scaling"` + BackingProviderName types.String `tfsdk:"backing_provider_name"` + EffectiveAnalyticsSpecs types.Object `tfsdk:"effective_analytics_specs" autogen:"omitjson"` + EffectiveElectableSpecs types.Object `tfsdk:"effective_electable_specs" autogen:"omitjson"` + EffectiveReadOnlySpecs types.Object `tfsdk:"effective_read_only_specs" autogen:"omitjson"` + ElectableSpecs types.Object `tfsdk:"electable_specs"` + ProviderName types.String `tfsdk:"provider_name"` + ReadOnlySpecs types.Object `tfsdk:"read_only_specs" autogen:"omitjson"` + RegionName types.String `tfsdk:"region_name"` + Priority types.Int64 `tfsdk:"priority"` } type TFReplicationSpecsRegionConfigsAnalyticsAutoScalingModel struct { Compute types.Object `tfsdk:"compute"` @@ -624,11 +714,11 @@ type TFReplicationSpecsRegionConfigsAnalyticsAutoScalingDiskGbModel struct { Enabled types.Bool `tfsdk:"enabled"` } type TFReplicationSpecsRegionConfigsAnalyticsSpecsModel struct { - DiskSizeGb types.Float64 `tfsdk:"disk_size_gb"` - EbsVolumeType types.String `tfsdk:"ebs_volume_type"` - InstanceSize types.String `tfsdk:"instance_size"` - DiskIops types.Int64 `tfsdk:"disk_iops"` - NodeCount types.Int64 `tfsdk:"node_count"` + DiskSizeGb types.Float64 `tfsdk:"disk_size_gb" autogen:"omitjson"` + EbsVolumeType types.String `tfsdk:"ebs_volume_type" autogen:"omitjson"` + InstanceSize types.String `tfsdk:"instance_size" autogen:"omitjson"` + DiskIops types.Int64 `tfsdk:"disk_iops" autogen:"omitjson"` + NodeCount types.Int64 `tfsdk:"node_count" autogen:"omitjson"` } type TFReplicationSpecsRegionConfigsAutoScalingModel struct { Compute types.Object `tfsdk:"compute"` @@ -644,6 +734,27 @@ type TFReplicationSpecsRegionConfigsAutoScalingComputeModel struct { type TFReplicationSpecsRegionConfigsAutoScalingDiskGbModel struct { Enabled types.Bool `tfsdk:"enabled"` } +type TFReplicationSpecsRegionConfigsEffectiveAnalyticsSpecsModel struct { + DiskSizeGb types.Float64 `tfsdk:"disk_size_gb" autogen:"omitjson"` + EbsVolumeType types.String `tfsdk:"ebs_volume_type" autogen:"omitjson"` + InstanceSize types.String `tfsdk:"instance_size" autogen:"omitjson"` + DiskIops types.Int64 `tfsdk:"disk_iops" autogen:"omitjson"` + NodeCount types.Int64 `tfsdk:"node_count" autogen:"omitjson"` +} +type TFReplicationSpecsRegionConfigsEffectiveElectableSpecsModel struct { + DiskSizeGb types.Float64 `tfsdk:"disk_size_gb" autogen:"omitjson"` + EbsVolumeType types.String `tfsdk:"ebs_volume_type" autogen:"omitjson"` + InstanceSize types.String `tfsdk:"instance_size" autogen:"omitjson"` + DiskIops types.Int64 `tfsdk:"disk_iops" autogen:"omitjson"` + NodeCount types.Int64 `tfsdk:"node_count" autogen:"omitjson"` +} +type TFReplicationSpecsRegionConfigsEffectiveReadOnlySpecsModel struct { + DiskSizeGb types.Float64 `tfsdk:"disk_size_gb" autogen:"omitjson"` + EbsVolumeType types.String `tfsdk:"ebs_volume_type" autogen:"omitjson"` + InstanceSize types.String `tfsdk:"instance_size" autogen:"omitjson"` + DiskIops types.Int64 `tfsdk:"disk_iops" autogen:"omitjson"` + NodeCount types.Int64 `tfsdk:"node_count" autogen:"omitjson"` +} type TFReplicationSpecsRegionConfigsElectableSpecsModel struct { DiskSizeGb types.Float64 `tfsdk:"disk_size_gb"` EbsVolumeType types.String `tfsdk:"ebs_volume_type"` @@ -653,11 +764,11 @@ type TFReplicationSpecsRegionConfigsElectableSpecsModel struct { NodeCount types.Int64 `tfsdk:"node_count"` } type TFReplicationSpecsRegionConfigsReadOnlySpecsModel struct { - DiskSizeGb types.Float64 `tfsdk:"disk_size_gb"` - EbsVolumeType types.String `tfsdk:"ebs_volume_type"` - InstanceSize types.String `tfsdk:"instance_size"` - DiskIops types.Int64 `tfsdk:"disk_iops"` - NodeCount types.Int64 `tfsdk:"node_count"` + DiskSizeGb types.Float64 `tfsdk:"disk_size_gb" autogen:"omitjson"` + EbsVolumeType types.String `tfsdk:"ebs_volume_type" autogen:"omitjson"` + InstanceSize types.String `tfsdk:"instance_size" autogen:"omitjson"` + DiskIops types.Int64 `tfsdk:"disk_iops" autogen:"omitjson"` + NodeCount types.Int64 `tfsdk:"node_count" autogen:"omitjson"` } type TFTagsModel struct { Key types.String `tfsdk:"key"` diff --git a/internal/serviceapi/streaminstanceapi/resource_schema.go b/internal/serviceapi/streaminstanceapi/resource_schema.go index b990ee48de..1a1dfeea3b 100755 --- a/internal/serviceapi/streaminstanceapi/resource_schema.go +++ b/internal/serviceapi/streaminstanceapi/resource_schema.go @@ -30,14 +30,14 @@ func ResourceSchema(ctx context.Context) schema.Schema { MarkdownDescription: "OIDC client secret for authentication to the Kafka cluster.", Sensitive: true, }, - "https_ca_pem": schema.StringAttribute{ - Computed: true, - MarkdownDescription: "HTTPS CA certificate in PEM format for SSL/TLS verification.", - }, "mechanism": schema.StringAttribute{ Computed: true, MarkdownDescription: "Style of authentication. Can be one of PLAIN, SCRAM-256, SCRAM-512, or OAUTHBEARER.", }, + "method": schema.StringAttribute{ + Computed: true, + MarkdownDescription: "SASL OAUTHBEARER authentication method. Can only be OIDC currently.", + }, "password": schema.StringAttribute{ Computed: true, MarkdownDescription: "Password of the account to connect to the Kafka cluster.", @@ -222,6 +222,10 @@ func ResourceSchema(ctx context.Context) schema.Schema { Optional: true, MarkdownDescription: "Configuration options for an Atlas Stream Processing Instance.", Attributes: map[string]schema.Attribute{ + "max_tier_size": schema.StringAttribute{ + Optional: true, + MarkdownDescription: "Max tier size for the Stream Instance. Configures Memory / VCPU allowances. This field is not supported yet.", + }, "tier": schema.StringAttribute{ Optional: true, MarkdownDescription: "Selected tier for the Stream Instance. Configures Memory / VCPU allowances.", @@ -259,8 +263,8 @@ type TFConnectionsModel struct { type TFConnectionsAuthenticationModel struct { ClientId types.String `tfsdk:"client_id" autogen:"omitjson"` ClientSecret types.String `tfsdk:"client_secret" autogen:"omitjson"` - HttpsCaPem types.String `tfsdk:"https_ca_pem" autogen:"omitjson"` Mechanism types.String `tfsdk:"mechanism" autogen:"omitjson"` + Method types.String `tfsdk:"method" autogen:"omitjson"` Password types.String `tfsdk:"password" autogen:"omitjson"` SaslOauthbearerExtensions types.String `tfsdk:"sasl_oauthbearer_extensions" autogen:"omitjson"` Scope types.String `tfsdk:"scope" autogen:"omitjson"` @@ -299,5 +303,6 @@ type TFSampleConnectionsModel struct { Solar types.Bool `tfsdk:"solar"` } type TFStreamConfigModel struct { - Tier types.String `tfsdk:"tier"` + MaxTierSize types.String `tfsdk:"max_tier_size"` + Tier types.String `tfsdk:"tier"` }