Documentation
¶
Index ¶
- func HandleAwsKmsConfigDefaults(ctx context.Context, ...)
- func HandleAzureKeyVaultConfigDefaults(ctx context.Context, ...)
- func HandleGcpKmsConfig(ctx context.Context, ...)
- func NewAtlasAwsKms(tfAwsKmsConfigSlice []TfAwsKmsConfigModel) *admin.AWSKMSConfiguration
- func NewAtlasAzureKeyVault(tfAzKeyVaultConfigSlice []TfAzureKeyVaultConfigModel) *admin.AzureKeyVault
- func NewAtlasGcpKms(tfGcpKmsConfigSlice []TfGcpKmsConfigModel) *admin.GoogleCloudKMS
- func Resource() resource.Resource
- func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc(ctx context.Context, projectID string, client EarService, ...) retry.StateRefreshFunc
- type EarService
- type EarServiceFromClient
- type TfAwsKmsConfigModel
- type TfAzureKeyVaultConfigModel
- type TfEncryptionAtRestRSModel
- type TfGcpKmsConfigModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleAwsKmsConfigDefaults ¶
func HandleAwsKmsConfigDefaults(ctx context.Context, currentStateFile, newStateFile, earRSConfig *TfEncryptionAtRestRSModel)
func HandleAzureKeyVaultConfigDefaults ¶
func HandleAzureKeyVaultConfigDefaults(ctx context.Context, earRSCurrent, earRSNew, earRSConfig *TfEncryptionAtRestRSModel)
func HandleGcpKmsConfig ¶
func HandleGcpKmsConfig(ctx context.Context, earRSCurrent, earRSNew, earRSConfig *TfEncryptionAtRestRSModel)
func NewAtlasAwsKms ¶
func NewAtlasAwsKms(tfAwsKmsConfigSlice []TfAwsKmsConfigModel) *admin.AWSKMSConfiguration
func NewAtlasAzureKeyVault ¶
func NewAtlasAzureKeyVault(tfAzKeyVaultConfigSlice []TfAzureKeyVaultConfigModel) *admin.AzureKeyVault
func NewAtlasGcpKms ¶
func NewAtlasGcpKms(tfGcpKmsConfigSlice []TfGcpKmsConfigModel) *admin.GoogleCloudKMS
func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc ¶
func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc(ctx context.Context, projectID string, client EarService, encryptionAtRestReq *admin.EncryptionAtRest) retry.StateRefreshFunc
Types ¶
type EarService ¶
type EarService interface {
UpdateEncryptionAtRest(ctx context.Context, groupID string, encryptionAtRest *admin.EncryptionAtRest) (*admin.EncryptionAtRest, *http.Response, error)
}
func ServiceFromClient ¶
func ServiceFromClient(client *admin.APIClient) EarService
type EarServiceFromClient ¶
type EarServiceFromClient struct {
// contains filtered or unexported fields
}
func (*EarServiceFromClient) UpdateEncryptionAtRest ¶
func (a *EarServiceFromClient) UpdateEncryptionAtRest(ctx context.Context, groupID string, encryptionAtRest *admin.EncryptionAtRest) (*admin.EncryptionAtRest, *http.Response, error)
type TfAwsKmsConfigModel ¶
type TfAwsKmsConfigModel struct {
AccessKeyID types.String `tfsdk:"access_key_id"`
SecretAccessKey types.String `tfsdk:"secret_access_key"`
CustomerMasterKeyID types.String `tfsdk:"customer_master_key_id"`
Region types.String `tfsdk:"region"`
RoleID types.String `tfsdk:"role_id"`
Enabled types.Bool `tfsdk:"enabled"`
}
func NewTFAwsKmsConfig ¶
func NewTFAwsKmsConfig(ctx context.Context, awsKms *admin.AWSKMSConfiguration) []TfAwsKmsConfigModel
type TfAzureKeyVaultConfigModel ¶
type TfAzureKeyVaultConfigModel struct {
ClientID types.String `tfsdk:"client_id"`
AzureEnvironment types.String `tfsdk:"azure_environment"`
SubscriptionID types.String `tfsdk:"subscription_id"`
ResourceGroupName types.String `tfsdk:"resource_group_name"`
KeyVaultName types.String `tfsdk:"key_vault_name"`
KeyIdentifier types.String `tfsdk:"key_identifier"`
Secret types.String `tfsdk:"secret"`
TenantID types.String `tfsdk:"tenant_id"`
Enabled types.Bool `tfsdk:"enabled"`
}
func NewTFAzureKeyVaultConfig ¶
func NewTFAzureKeyVaultConfig(ctx context.Context, az *admin.AzureKeyVault) []TfAzureKeyVaultConfigModel
type TfEncryptionAtRestRSModel ¶
type TfEncryptionAtRestRSModel struct {
ID types.String `tfsdk:"id"`
ProjectID types.String `tfsdk:"project_id"`
AwsKmsConfig []TfAwsKmsConfigModel `tfsdk:"aws_kms_config"`
AzureKeyVaultConfig []TfAzureKeyVaultConfigModel `tfsdk:"azure_key_vault_config"`
GoogleCloudKmsConfig []TfGcpKmsConfigModel `tfsdk:"google_cloud_kms_config"`
}
func NewTfEncryptionAtRestRSModel ¶
func NewTfEncryptionAtRestRSModel(ctx context.Context, projectID string, encryptionResp *admin.EncryptionAtRest) *TfEncryptionAtRestRSModel
type TfGcpKmsConfigModel ¶
type TfGcpKmsConfigModel struct {
ServiceAccountKey types.String `tfsdk:"service_account_key"`
KeyVersionResourceID types.String `tfsdk:"key_version_resource_id"`
Enabled types.Bool `tfsdk:"enabled"`
}
func NewTFGcpKmsConfig ¶
func NewTFGcpKmsConfig(ctx context.Context, gcpKms *admin.GoogleCloudKMS) []TfGcpKmsConfigModel
Click to show internal directories.
Click to hide internal directories.