encryptionatrest

package
v1.23.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: MPL-2.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataSource added in v1.19.0

func DataSource() datasource.DataSource

func DataSourceSchema added in v1.19.0

func DataSourceSchema(ctx context.Context) schema.Schema

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 Resource

func Resource() resource.Resource

func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc

func ResourceMongoDBAtlasEncryptionAtRestCreateRefreshFunc(ctx context.Context, projectID string, client admin.EncryptionAtRestUsingCustomerKeyManagementApi, encryptionAtRestReq *admin.EncryptionAtRest) retry.StateRefreshFunc

Types

type TFAwsKmsConfigModel added in v1.19.0

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"`
	Valid               types.Bool   `tfsdk:"valid"`
}

func NewTFAwsKmsConfig

func NewTFAwsKmsConfig(ctx context.Context, awsKms *admin.AWSKMSConfiguration) []TFAwsKmsConfigModel

func NewTFAwsKmsConfigItem added in v1.19.0

func NewTFAwsKmsConfigItem(awsKms *admin.AWSKMSConfiguration) *TFAwsKmsConfigModel

type TFAzureKeyVaultConfigModel added in v1.19.0

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"`
	RequirePrivateNetworking types.Bool   `tfsdk:"require_private_networking"`
	Valid                    types.Bool   `tfsdk:"valid"`
}

func NewTFAzureKeyVaultConfigItem added in v1.19.0

func NewTFAzureKeyVaultConfigItem(az *admin.AzureKeyVault) *TFAzureKeyVaultConfigModel

type TFEncryptionAtRestDSModel added in v1.19.0

type TFEncryptionAtRestDSModel struct {
	AzureKeyVaultConfig  *TFAzureKeyVaultConfigModel `tfsdk:"azure_key_vault_config"`
	AwsKmsConfig         *TFAwsKmsConfigModel        `tfsdk:"aws_kms_config"`
	GoogleCloudKmsConfig *TFGcpKmsConfigModel        `tfsdk:"google_cloud_kms_config"`
	ID                   types.String                `tfsdk:"id"`
	ProjectID            types.String                `tfsdk:"project_id"`
}

func NewTFEncryptionAtRestDSModel added in v1.19.0

func NewTFEncryptionAtRestDSModel(projectID string, encryptionResp *admin.EncryptionAtRest) *TFEncryptionAtRestDSModel

type TFGcpKmsConfigModel added in v1.19.0

type TFGcpKmsConfigModel struct {
	ServiceAccountKey    types.String `tfsdk:"service_account_key"`
	KeyVersionResourceID types.String `tfsdk:"key_version_resource_id"`
	Enabled              types.Bool   `tfsdk:"enabled"`
	Valid                types.Bool   `tfsdk:"valid"`
}

func NewTFGcpKmsConfig

func NewTFGcpKmsConfig(ctx context.Context, gcpKms *admin.GoogleCloudKMS) []TFGcpKmsConfigModel

func NewTFGcpKmsConfigItem added in v1.19.0

func NewTFGcpKmsConfigItem(gcpKms *admin.GoogleCloudKMS) *TFGcpKmsConfigModel

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 added in v1.19.0

func NewTFEncryptionAtRestRSModel(ctx context.Context, projectID string, encryptionResp *admin.EncryptionAtRest) *TfEncryptionAtRestRSModel

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL