Documentation ¶
Index ¶
- Constants
- Variables
- func FindRole(ctx context.Context, conn *matlas.Client, projectID, roleID string) (*matlas.CloudProviderAccessRole, error)
- func HashCodeString(s string) int
- func HashFunctionForKeyValuePair(v any) int
- func MultiEnvDefaultFunc(ks []string, def any) any
- func MuxedProviderFactory() func() tfprotov6.ProviderServer
- func NewAlertConfigurationDS() datasource.DataSource
- func NewAlertConfigurationRS() resource.Resource
- func NewAlertConfigurationsDS() datasource.DataSource
- func NewAtlasUserDS() datasource.DataSource
- func NewAtlasUsersDS() datasource.DataSource
- func NewDatabaseUserDS() datasource.DataSource
- func NewDatabaseUserRS() resource.Resource
- func NewDatabaseUsersDS() datasource.DataSource
- func NewEncryptionAtRestRS() resource.Resource
- func NewFrameworkProvider() provider.Provider
- func NewProjectDS() datasource.DataSource
- func NewProjectIPAccessListDS() datasource.DataSource
- func NewProjectIPAccessListRS() resource.Resource
- func NewProjectRS() resource.Resource
- func NewProjectsDS() datasource.DataSource
- func NewSdkV2Provider() *schema.Provider
- func NewSearchDeploymentDS() datasource.DataSource
- func NewSearchDeploymentRS() resource.Resource
- type APIProjectAssignmentKeyInput
- type AlertConfigurationDS
- type AlertConfigurationRS
- func (r *AlertConfigurationRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *AlertConfigurationRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *AlertConfigurationRS) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *AlertConfigurationRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *AlertConfigurationRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *AlertConfigurationRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type AlertConfigurationsDS
- type AssumeRole
- type AtlasUserDS
- type AtlasUsersDS
- type AtlastProjectDependents
- type Config
- type DSCommon
- type DatabaseUserDS
- type DatabaseUserRS
- func (r *DatabaseUserRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *DatabaseUserRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *DatabaseUserRS) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *DatabaseUserRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *DatabaseUserRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *DatabaseUserRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type DatabaseUsersDS
- type EncryptionAtRestRS
- func (r *EncryptionAtRestRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *EncryptionAtRestRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *EncryptionAtRestRS) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *EncryptionAtRestRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *EncryptionAtRestRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *EncryptionAtRestRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type MongoDBClient
- type MongodbtlasProvider
- func (p *MongodbtlasProvider) Configure(ctx context.Context, req provider.ConfigureRequest, ...)
- func (p *MongodbtlasProvider) DataSources(context.Context) []func() datasource.DataSource
- func (p *MongodbtlasProvider) Metadata(ctx context.Context, req provider.MetadataRequest, ...)
- func (p *MongodbtlasProvider) Resources(context.Context) []func() resource.Resource
- func (p *MongodbtlasProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
- type ProjectDS
- type ProjectIPAccessListDS
- type ProjectIPAccessListRS
- func (r *ProjectIPAccessListRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ProjectIPAccessListRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ProjectIPAccessListRS) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ProjectIPAccessListRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ProjectIPAccessListRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ProjectIPAccessListRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ProjectRS
- func (r *ProjectRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *ProjectRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *ProjectRS) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *ProjectRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *ProjectRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *ProjectRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type ProjectsDS
- type RSCommon
- type SearchDeploymentDS
- type SearchDeploymentRS
- func (r *SearchDeploymentRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *SearchDeploymentRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *SearchDeploymentRS) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *SearchDeploymentRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *SearchDeploymentRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *SearchDeploymentRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type SecretData
Constants ¶
const ( DeprecationMessageParameterToResource = "this parameter is deprecated and will be removed in %s, please transition to %s" DeprecationByDateMessageParameter = "this parameter is deprecated and will be removed by %s" DeprecationByDateWithReplacement = "this parameter is deprecated and will be removed by %s, please transition to %s" DeprecationByVersionMessageParameter = "this parameter is deprecated and will be removed in version %s" DeprecationMessage = "this resource is deprecated and will be removed in %s, please transition to %s" MissingAuthAttrError = "either Atlas Programmatic API Keys or AWS Secrets Manager attributes must be set" ProviderConfigError = "error in configuring the provider." AWS = "AWS" AZURE = "AZURE" GCP )
const (
AtlasUserDataSourceName = "atlas_user"
)
const (
AtlasUsersDataSourceName = "atlas_users"
)
const MongodbGovCloudURL = "https://cloud.mongodbgov.com"
const ToolName = "terraform-provider-mongodbatlas"
Variables ¶
var AssumeRoleType = types.ObjectType{AttrTypes: map[string]attr.Type{ "policy_arns": types.SetType{ElemType: types.StringType}, "transitive_tag_keys": types.SetType{ElemType: types.StringType}, "tags": types.MapType{ElemType: types.StringType}, "duration": types.StringType, "external_id": types.StringType, "policy": types.StringType, "role_arn": types.StringType, "session_name": types.StringType, "source_identity": types.StringType, }}
var LabelObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{ "key": types.StringType, "value": types.StringType, }}
var (
ProviderEnableBeta, _ = strconv.ParseBool(os.Getenv("MONGODB_ATLAS_ENABLE_BETA"))
)
var RoleObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{ "role_name": types.StringType, "collection_name": types.StringType, "database_name": types.StringType, }}
var ScopeObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{ "name": types.StringType, "type": types.StringType, }}
var SpecObjectType = types.ObjectType{AttrTypes: map[string]attr.Type{ "instance_size": types.StringType, "node_count": types.Int64Type, }}
Functions ¶
func HashCodeString ¶ added in v1.0.0
HashCodeString hashes a string to a unique hashcode.
crc32 returns a uint32, but for our use we need and non negative integer. Here we cast to an integer and invert it if the result is negative.
func HashFunctionForKeyValuePair ¶ added in v1.12.0
func MultiEnvDefaultFunc ¶ added in v1.12.0
func MuxedProviderFactory ¶ added in v1.12.0
func MuxedProviderFactory() func() tfprotov6.ProviderServer
func NewAlertConfigurationDS ¶ added in v1.12.0
func NewAlertConfigurationDS() datasource.DataSource
func NewAlertConfigurationRS ¶ added in v1.12.0
func NewAlertConfigurationsDS ¶ added in v1.12.0
func NewAlertConfigurationsDS() datasource.DataSource
func NewAtlasUserDS ¶ added in v1.12.0
func NewAtlasUserDS() datasource.DataSource
func NewAtlasUsersDS ¶ added in v1.12.0
func NewAtlasUsersDS() datasource.DataSource
func NewDatabaseUserDS ¶ added in v1.12.0
func NewDatabaseUserDS() datasource.DataSource
func NewDatabaseUserRS ¶ added in v1.12.0
func NewDatabaseUsersDS ¶ added in v1.12.0
func NewDatabaseUsersDS() datasource.DataSource
func NewEncryptionAtRestRS ¶ added in v1.12.0
func NewFrameworkProvider ¶ added in v1.12.0
func NewProjectDS ¶ added in v1.12.0
func NewProjectDS() datasource.DataSource
func NewProjectIPAccessListDS ¶ added in v1.12.0
func NewProjectIPAccessListDS() datasource.DataSource
func NewProjectIPAccessListRS ¶ added in v1.12.0
func NewProjectRS ¶ added in v1.12.0
func NewProjectsDS ¶ added in v1.12.0
func NewProjectsDS() datasource.DataSource
func NewSdkV2Provider ¶ added in v1.12.0
NewSdkV2Provider returns the provider to be use by the code.
func NewSearchDeploymentDS ¶ added in v1.13.0
func NewSearchDeploymentDS() datasource.DataSource
func NewSearchDeploymentRS ¶ added in v1.13.0
Types ¶
type APIProjectAssignmentKeyInput ¶ added in v1.10.0
type APIProjectAssignmentKeyInput struct { ProjectID string `json:"desc,omitempty"` RoleNames []string `json:"roles,omitempty"` }
func ExpandProjectAssignmentSet ¶ added in v1.10.0
func ExpandProjectAssignmentSet(projectAssignments *schema.Set) []*APIProjectAssignmentKeyInput
type AlertConfigurationDS ¶ added in v1.12.0
type AlertConfigurationDS struct {
DSCommon
}
func (*AlertConfigurationDS) Read ¶ added in v1.12.0
func (d *AlertConfigurationDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AlertConfigurationDS) Schema ¶ added in v1.12.0
func (d *AlertConfigurationDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AlertConfigurationRS ¶ added in v1.12.0
type AlertConfigurationRS struct {
RSCommon
}
func (*AlertConfigurationRS) Create ¶ added in v1.12.0
func (r *AlertConfigurationRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*AlertConfigurationRS) Delete ¶ added in v1.12.0
func (r *AlertConfigurationRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*AlertConfigurationRS) ImportState ¶ added in v1.12.0
func (r *AlertConfigurationRS) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*AlertConfigurationRS) Read ¶ added in v1.12.0
func (r *AlertConfigurationRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*AlertConfigurationRS) Schema ¶ added in v1.12.0
func (r *AlertConfigurationRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*AlertConfigurationRS) Update ¶ added in v1.12.0
func (r *AlertConfigurationRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type AlertConfigurationsDS ¶ added in v1.12.0
type AlertConfigurationsDS struct {
DSCommon
}
func (*AlertConfigurationsDS) Read ¶ added in v1.12.0
func (d *AlertConfigurationsDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AlertConfigurationsDS) Schema ¶ added in v1.12.0
func (d *AlertConfigurationsDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AssumeRole ¶ added in v1.7.0
type AtlasUserDS ¶ added in v1.12.0
type AtlasUserDS struct {
DSCommon
}
func (*AtlasUserDS) Read ¶ added in v1.12.0
func (d *AtlasUserDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AtlasUserDS) Schema ¶ added in v1.12.0
func (d *AtlasUserDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AtlasUsersDS ¶ added in v1.12.0
type AtlasUsersDS struct {
DSCommon
}
func (*AtlasUsersDS) Read ¶ added in v1.12.0
func (d *AtlasUsersDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*AtlasUsersDS) Schema ¶ added in v1.12.0
func (d *AtlasUsersDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type AtlastProjectDependents ¶ added in v1.3.1
type AtlastProjectDependents struct {
AdvancedClusters *matlas.AdvancedClustersResponse
}
Resources that need to be cleaned up before a project can be deleted
type Config ¶
type Config struct { AssumeRole *AssumeRole PublicKey string PrivateKey string BaseURL string RealmBaseURL string }
Config contains the configurations needed to use SDKs
type DSCommon ¶ added in v1.12.0
type DSCommon struct {
// contains filtered or unexported fields
}
DSCommon is used as an embedded struct for all framework data sources. Implements the following plugin-framework defined functions: - Metadata - Configure client is left empty and populated by the framework when envoking Configure method. dataSourceName must be defined when creating an instance of a data source.
func (*DSCommon) Configure ¶ added in v1.12.0
func (d *DSCommon) Configure(ctx context.Context, req datasource.ConfigureRequest, resp *datasource.ConfigureResponse)
func (*DSCommon) Metadata ¶ added in v1.12.0
func (d *DSCommon) Metadata(ctx context.Context, req datasource.MetadataRequest, resp *datasource.MetadataResponse)
type DatabaseUserDS ¶ added in v1.12.0
type DatabaseUserDS struct {
DSCommon
}
func (*DatabaseUserDS) Read ¶ added in v1.12.0
func (d *DatabaseUserDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabaseUserDS) Schema ¶ added in v1.12.0
func (d *DatabaseUserDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type DatabaseUserRS ¶ added in v1.12.0
type DatabaseUserRS struct {
RSCommon
}
func (*DatabaseUserRS) Create ¶ added in v1.12.0
func (r *DatabaseUserRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*DatabaseUserRS) Delete ¶ added in v1.12.0
func (r *DatabaseUserRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*DatabaseUserRS) ImportState ¶ added in v1.12.0
func (r *DatabaseUserRS) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*DatabaseUserRS) Read ¶ added in v1.12.0
func (r *DatabaseUserRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*DatabaseUserRS) Schema ¶ added in v1.12.0
func (r *DatabaseUserRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*DatabaseUserRS) Update ¶ added in v1.12.0
func (r *DatabaseUserRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type DatabaseUsersDS ¶ added in v1.12.0
type DatabaseUsersDS struct {
DSCommon
}
func (*DatabaseUsersDS) Read ¶ added in v1.12.0
func (d *DatabaseUsersDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*DatabaseUsersDS) Schema ¶ added in v1.12.0
func (d *DatabaseUsersDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type EncryptionAtRestRS ¶ added in v1.12.0
type EncryptionAtRestRS struct {
RSCommon
}
func (*EncryptionAtRestRS) Create ¶ added in v1.12.0
func (r *EncryptionAtRestRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*EncryptionAtRestRS) Delete ¶ added in v1.12.0
func (r *EncryptionAtRestRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*EncryptionAtRestRS) ImportState ¶ added in v1.12.0
func (r *EncryptionAtRestRS) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*EncryptionAtRestRS) Read ¶ added in v1.12.0
func (r *EncryptionAtRestRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*EncryptionAtRestRS) Schema ¶ added in v1.12.0
func (r *EncryptionAtRestRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*EncryptionAtRestRS) Update ¶ added in v1.12.0
func (r *EncryptionAtRestRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type MongoDBClient ¶ added in v1.0.0
type MongoDBClient struct { Atlas *matlasClient.Client AtlasV2 *atlasSDK.APIClient Config *Config }
MongoDBClient contains the mongodbatlas clients and configurations
func (*MongoDBClient) GetRealmClient ¶ added in v1.0.1
type MongodbtlasProvider ¶ added in v1.12.0
type MongodbtlasProvider struct{}
func (*MongodbtlasProvider) Configure ¶ added in v1.12.0
func (p *MongodbtlasProvider) Configure(ctx context.Context, req provider.ConfigureRequest, resp *provider.ConfigureResponse)
func (*MongodbtlasProvider) DataSources ¶ added in v1.12.0
func (p *MongodbtlasProvider) DataSources(context.Context) []func() datasource.DataSource
func (*MongodbtlasProvider) Metadata ¶ added in v1.12.0
func (p *MongodbtlasProvider) Metadata(ctx context.Context, req provider.MetadataRequest, resp *provider.MetadataResponse)
func (*MongodbtlasProvider) Resources ¶ added in v1.12.0
func (p *MongodbtlasProvider) Resources(context.Context) []func() resource.Resource
func (*MongodbtlasProvider) Schema ¶ added in v1.12.0
func (p *MongodbtlasProvider) Schema(ctx context.Context, req provider.SchemaRequest, resp *provider.SchemaResponse)
type ProjectDS ¶ added in v1.12.0
type ProjectDS struct {
DSCommon
}
func (*ProjectDS) Read ¶ added in v1.12.0
func (d *ProjectDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ProjectDS) Schema ¶ added in v1.12.0
func (d *ProjectDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ProjectIPAccessListDS ¶ added in v1.12.0
type ProjectIPAccessListDS struct {
DSCommon
}
func (*ProjectIPAccessListDS) Read ¶ added in v1.12.0
func (d *ProjectIPAccessListDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ProjectIPAccessListDS) Schema ¶ added in v1.12.0
func (d *ProjectIPAccessListDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type ProjectIPAccessListRS ¶ added in v1.12.0
type ProjectIPAccessListRS struct {
RSCommon
}
func (*ProjectIPAccessListRS) Create ¶ added in v1.12.0
func (r *ProjectIPAccessListRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ProjectIPAccessListRS) Delete ¶ added in v1.12.0
func (r *ProjectIPAccessListRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ProjectIPAccessListRS) ImportState ¶ added in v1.12.0
func (r *ProjectIPAccessListRS) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ProjectIPAccessListRS) Read ¶ added in v1.12.0
func (r *ProjectIPAccessListRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ProjectIPAccessListRS) Schema ¶ added in v1.12.0
func (r *ProjectIPAccessListRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ProjectIPAccessListRS) Update ¶ added in v1.12.0
func (r *ProjectIPAccessListRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
Update is not supported
type ProjectRS ¶ added in v1.12.0
type ProjectRS struct {
RSCommon
}
func (*ProjectRS) Create ¶ added in v1.12.0
func (r *ProjectRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*ProjectRS) Delete ¶ added in v1.12.0
func (r *ProjectRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*ProjectRS) ImportState ¶ added in v1.12.0
func (r *ProjectRS) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*ProjectRS) Read ¶ added in v1.12.0
func (r *ProjectRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*ProjectRS) Schema ¶ added in v1.12.0
func (r *ProjectRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*ProjectRS) Update ¶ added in v1.12.0
func (r *ProjectRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type ProjectsDS ¶ added in v1.12.0
type ProjectsDS struct {
DSCommon
}
func (*ProjectsDS) Read ¶ added in v1.12.0
func (d *ProjectsDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*ProjectsDS) Schema ¶ added in v1.12.0
func (d *ProjectsDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type RSCommon ¶ added in v1.12.0
type RSCommon struct {
// contains filtered or unexported fields
}
RSCommon is used as an embedded struct for all framework resources. Implements the following plugin-framework defined functions: - Metadata - Configure client is left empty and populated by the framework when envoking Configure method. resourceName must be defined when creating an instance of a resource.
func (*RSCommon) Configure ¶ added in v1.12.0
func (r *RSCommon) Configure(ctx context.Context, req resource.ConfigureRequest, resp *resource.ConfigureResponse)
func (*RSCommon) Metadata ¶ added in v1.12.0
func (r *RSCommon) Metadata(ctx context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse)
type SearchDeploymentDS ¶ added in v1.13.0
type SearchDeploymentDS struct {
DSCommon
}
func (*SearchDeploymentDS) Read ¶ added in v1.13.0
func (d *SearchDeploymentDS) Read(ctx context.Context, req datasource.ReadRequest, resp *datasource.ReadResponse)
func (*SearchDeploymentDS) Schema ¶ added in v1.13.0
func (d *SearchDeploymentDS) Schema(ctx context.Context, req datasource.SchemaRequest, resp *datasource.SchemaResponse)
type SearchDeploymentRS ¶ added in v1.13.0
type SearchDeploymentRS struct {
RSCommon
}
func (*SearchDeploymentRS) Create ¶ added in v1.13.0
func (r *SearchDeploymentRS) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
func (*SearchDeploymentRS) Delete ¶ added in v1.13.0
func (r *SearchDeploymentRS) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
func (*SearchDeploymentRS) ImportState ¶ added in v1.13.0
func (r *SearchDeploymentRS) ImportState(ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse)
func (*SearchDeploymentRS) Read ¶ added in v1.13.0
func (r *SearchDeploymentRS) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
func (*SearchDeploymentRS) Schema ¶ added in v1.13.0
func (r *SearchDeploymentRS) Schema(ctx context.Context, req resource.SchemaRequest, resp *resource.SchemaResponse)
func (*SearchDeploymentRS) Update ¶ added in v1.13.0
func (r *SearchDeploymentRS) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
type SecretData ¶ added in v1.7.0
Source Files ¶
- config.go
- data_source_mongodbatlas_accesslist_api_key.go
- data_source_mongodbatlas_accesslist_api_keys.go
- data_source_mongodbatlas_advanced_cluster.go
- data_source_mongodbatlas_advanced_clusters.go
- data_source_mongodbatlas_api_key.go
- data_source_mongodbatlas_api_keys.go
- data_source_mongodbatlas_auditing.go
- data_source_mongodbatlas_backup_compliance_policy.go
- data_source_mongodbatlas_cloud_backup_schedule.go
- data_source_mongodbatlas_cloud_backup_snapshot.go
- data_source_mongodbatlas_cloud_backup_snapshot_export_bucket.go
- data_source_mongodbatlas_cloud_backup_snapshot_export_buckets.go
- data_source_mongodbatlas_cloud_backup_snapshot_export_job.go
- data_source_mongodbatlas_cloud_backup_snapshot_export_jobs.go
- data_source_mongodbatlas_cloud_backup_snapshot_restore_job.go
- data_source_mongodbatlas_cloud_backup_snapshot_restore_jobs.go
- data_source_mongodbatlas_cloud_backup_snapshots.go
- data_source_mongodbatlas_cloud_provider_access.go
- data_source_mongodbatlas_cloud_provider_access_setup.go
- data_source_mongodbatlas_cloud_shared_tier_restore_job.go
- data_source_mongodbatlas_cloud_shared_tier_restore_jobs.go
- data_source_mongodbatlas_cluster.go
- data_source_mongodbatlas_cluster_outage_simulation.go
- data_source_mongodbatlas_clusters.go
- data_source_mongodbatlas_custom_db_role.go
- data_source_mongodbatlas_custom_db_roles.go
- data_source_mongodbatlas_custom_dns_configuration_cluster_aws.go
- data_source_mongodbatlas_data_lake_pipeline.go
- data_source_mongodbatlas_data_lake_pipeline_run.go
- data_source_mongodbatlas_data_lake_pipeline_runs.go
- data_source_mongodbatlas_data_lake_pipelines.go
- data_source_mongodbatlas_event_trigger.go
- data_source_mongodbatlas_event_triggers.go
- data_source_mongodbatlas_federated_database_instance.go
- data_source_mongodbatlas_federated_database_instances.go
- data_source_mongodbatlas_federated_query_limit.go
- data_source_mongodbatlas_federated_query_limits.go
- data_source_mongodbatlas_federated_settings.go
- data_source_mongodbatlas_federated_settings_connected_organization.go
- data_source_mongodbatlas_federated_settings_connected_organizations.go
- data_source_mongodbatlas_federated_settings_identity_provider.go
- data_source_mongodbatlas_federated_settings_identity_providers.go
- data_source_mongodbatlas_federated_settings_organization_role_mapping.go
- data_source_mongodbatlas_federated_settings_organization_role_mappings.go
- data_source_mongodbatlas_global_cluster_config.go
- data_source_mongodbatlas_ldap_configuration.go
- data_source_mongodbatlas_ldap_verify.go
- data_source_mongodbatlas_maintenance_window.go
- data_source_mongodbatlas_network_container.go
- data_source_mongodbatlas_network_containers.go
- data_source_mongodbatlas_network_peering.go
- data_source_mongodbatlas_network_peerings.go
- data_source_mongodbatlas_online_archive.go
- data_source_mongodbatlas_org_id.go
- data_source_mongodbatlas_org_invitation.go
- data_source_mongodbatlas_organization.go
- data_source_mongodbatlas_organizations.go
- data_source_mongodbatlas_private_endpoint_regional_mode.go
- data_source_mongodbatlas_privatelink_endpoint.go
- data_source_mongodbatlas_privatelink_endpoint_service.go
- data_source_mongodbatlas_privatelink_endpoint_service_data_federation_online_archive.go
- data_source_mongodbatlas_privatelink_endpoint_service_data_federation_online_archives.go
- data_source_mongodbatlas_privatelink_endpoint_service_serverless.go
- data_source_mongodbatlas_privatelink_endpoints_service_serverless.go
- data_source_mongodbatlas_project_api_key.go
- data_source_mongodbatlas_project_api_keys.go
- data_source_mongodbatlas_project_invitation.go
- data_source_mongodbatlas_search_index.go
- data_source_mongodbatlas_search_indexes.go
- data_source_mongodbatlas_serverless_instance.go
- data_source_mongodbatlas_serverless_instances.go
- data_source_mongodbatlas_shared_tier_snapshot.go
- data_source_mongodbatlas_shared_tier_snapshots.go
- data_source_mongodbatlas_team.go
- data_source_mongodbatlas_third_party_integration.go
- data_source_mongodbatlas_third_party_integrations.go
- data_source_mongodbatlas_x509_authentication_database_user.go
- fw_common.go
- fw_data_source_mongodbatlas_alert_configuration.go
- fw_data_source_mongodbatlas_alert_configurations.go
- fw_data_source_mongodbatlas_atlas_user.go
- fw_data_source_mongodbatlas_atlas_users.go
- fw_data_source_mongodbatlas_database_user.go
- fw_data_source_mongodbatlas_database_users.go
- fw_data_source_mongodbatlas_project.go
- fw_data_source_mongodbatlas_project_ip_access_list.go
- fw_data_source_mongodbatlas_projects.go
- fw_data_source_mongodbatlas_search_deployment.go
- fw_provider.go
- fw_resource_mongodbatlas_alert_configuration.go
- fw_resource_mongodbatlas_database_user.go
- fw_resource_mongodbatlas_encryption_at_rest.go
- fw_resource_mongodbatlas_project.go
- fw_resource_mongodbatlas_project_ip_access_list.go
- fw_resource_mongodbatlas_search_deployment.go
- provider.go
- resource_mongodbatlas_access_list_api_key.go
- resource_mongodbatlas_advanced_cluster.go
- resource_mongodbatlas_advanced_cluster_schema_migration.go
- resource_mongodbatlas_api_key.go
- resource_mongodbatlas_auditing.go
- resource_mongodbatlas_backup_compliance_policy.go
- resource_mongodbatlas_cloud_backup_schedule.go
- resource_mongodbatlas_cloud_backup_snapshot.go
- resource_mongodbatlas_cloud_backup_snapshot_export_bucket.go
- resource_mongodbatlas_cloud_backup_snapshot_export_job.go
- resource_mongodbatlas_cloud_backup_snapshot_restore_job.go
- resource_mongodbatlas_cloud_provider_access.go
- resource_mongodbatlas_cloud_provider_access_authorization.go
- resource_mongodbatlas_cloud_provider_access_setup.go
- resource_mongodbatlas_cluster.go
- resource_mongodbatlas_cluster_migrate.go
- resource_mongodbatlas_cluster_outage_simulation.go
- resource_mongodbatlas_custom_db_role.go
- resource_mongodbatlas_custom_dns_configuration_cluster_aws.go
- resource_mongodbatlas_data_lake_pipeline.go
- resource_mongodbatlas_event_trigger.go
- resource_mongodbatlas_federated_database_instance.go
- resource_mongodbatlas_federated_query_limit.go
- resource_mongodbatlas_federated_settings_connected_organization.go
- resource_mongodbatlas_federated_settings_identity_provider.go
- resource_mongodbatlas_federated_settings_organization_role_mapping.go
- resource_mongodbatlas_global_cluster_config.go
- resource_mongodbatlas_ldap_configuration.go
- resource_mongodbatlas_ldap_verify.go
- resource_mongodbatlas_maintenance_window.go
- resource_mongodbatlas_network_container.go
- resource_mongodbatlas_network_peering.go
- resource_mongodbatlas_online_archive.go
- resource_mongodbatlas_org_invitation.go
- resource_mongodbatlas_organization.go
- resource_mongodbatlas_private_endpoint_regional_mode.go
- resource_mongodbatlas_privatelink_endpoint.go
- resource_mongodbatlas_privatelink_endpoint_serverless.go
- resource_mongodbatlas_privatelink_endpoint_service.go
- resource_mongodbatlas_privatelink_endpoint_service_data_federation_online_archive.go
- resource_mongodbatlas_privatelink_endpoint_service_serverless.go
- resource_mongodbatlas_project_api_key.go
- resource_mongodbatlas_project_invitation.go
- resource_mongodbatlas_search_index.go
- resource_mongodbatlas_serverless_instance.go
- resource_mongodbatlas_team.go
- resource_mongodbatlas_third_party_integration.go
- resource_mongodbatlas_x509_authentication_database_user.go