azurerm_mssql_database

package
v0.0.0-...-4deecce Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args

type Args struct {
	// AutoPauseDelayInMinutes: number, optional
	AutoPauseDelayInMinutes terra.NumberValue `hcl:"auto_pause_delay_in_minutes,attr"`
	// Collation: string, optional
	Collation terra.StringValue `hcl:"collation,attr"`
	// CreateMode: string, optional
	CreateMode terra.StringValue `hcl:"create_mode,attr"`
	// CreationSourceDatabaseId: string, optional
	CreationSourceDatabaseId terra.StringValue `hcl:"creation_source_database_id,attr"`
	// ElasticPoolId: string, optional
	ElasticPoolId terra.StringValue `hcl:"elastic_pool_id,attr"`
	// EnclaveType: string, optional
	EnclaveType terra.StringValue `hcl:"enclave_type,attr"`
	// GeoBackupEnabled: bool, optional
	GeoBackupEnabled terra.BoolValue `hcl:"geo_backup_enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// LedgerEnabled: bool, optional
	LedgerEnabled terra.BoolValue `hcl:"ledger_enabled,attr"`
	// LicenseType: string, optional
	LicenseType terra.StringValue `hcl:"license_type,attr"`
	// MaintenanceConfigurationName: string, optional
	MaintenanceConfigurationName terra.StringValue `hcl:"maintenance_configuration_name,attr"`
	// MaxSizeGb: number, optional
	MaxSizeGb terra.NumberValue `hcl:"max_size_gb,attr"`
	// MinCapacity: number, optional
	MinCapacity terra.NumberValue `hcl:"min_capacity,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReadReplicaCount: number, optional
	ReadReplicaCount terra.NumberValue `hcl:"read_replica_count,attr"`
	// ReadScale: bool, optional
	ReadScale terra.BoolValue `hcl:"read_scale,attr"`
	// RecoverDatabaseId: string, optional
	RecoverDatabaseId terra.StringValue `hcl:"recover_database_id,attr"`
	// RecoveryPointId: string, optional
	RecoveryPointId terra.StringValue `hcl:"recovery_point_id,attr"`
	// RestoreDroppedDatabaseId: string, optional
	RestoreDroppedDatabaseId terra.StringValue `hcl:"restore_dropped_database_id,attr"`
	// RestoreLongTermRetentionBackupId: string, optional
	RestoreLongTermRetentionBackupId terra.StringValue `hcl:"restore_long_term_retention_backup_id,attr"`
	// RestorePointInTime: string, optional
	RestorePointInTime terra.StringValue `hcl:"restore_point_in_time,attr"`
	// SampleName: string, optional
	SampleName terra.StringValue `hcl:"sample_name,attr"`
	// SecondaryType: string, optional
	SecondaryType terra.StringValue `hcl:"secondary_type,attr"`
	// ServerId: string, required
	ServerId terra.StringValue `hcl:"server_id,attr" validate:"required"`
	// SkuName: string, optional
	SkuName terra.StringValue `hcl:"sku_name,attr"`
	// StorageAccountType: string, optional
	StorageAccountType terra.StringValue `hcl:"storage_account_type,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TransparentDataEncryptionEnabled: bool, optional
	TransparentDataEncryptionEnabled terra.BoolValue `hcl:"transparent_data_encryption_enabled,attr"`
	// TransparentDataEncryptionKeyAutomaticRotationEnabled: bool, optional
	TransparentDataEncryptionKeyAutomaticRotationEnabled terra.BoolValue `hcl:"transparent_data_encryption_key_automatic_rotation_enabled,attr"`
	// TransparentDataEncryptionKeyVaultKeyId: string, optional
	TransparentDataEncryptionKeyVaultKeyId terra.StringValue `hcl:"transparent_data_encryption_key_vault_key_id,attr"`
	// ZoneRedundant: bool, optional
	ZoneRedundant terra.BoolValue `hcl:"zone_redundant,attr"`
	// Identity: optional
	Identity *Identity `hcl:"identity,block"`
	// Import: optional
	Import *Import `hcl:"import,block"`
	// LongTermRetentionPolicy: optional
	LongTermRetentionPolicy *LongTermRetentionPolicy `hcl:"long_term_retention_policy,block"`
	// ShortTermRetentionPolicy: optional
	ShortTermRetentionPolicy *ShortTermRetentionPolicy `hcl:"short_term_retention_policy,block"`
	// ThreatDetectionPolicy: optional
	ThreatDetectionPolicy *ThreatDetectionPolicy `hcl:"threat_detection_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_mssql_database.

type DataArgs

type DataArgs struct {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ServerId: string, required
	ServerId terra.StringValue `hcl:"server_id,attr" validate:"required"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_mssql_database.

type DataIdentityAttributes

type DataIdentityAttributes struct {
	// contains filtered or unexported fields
}

func (DataIdentityAttributes) IdentityIds

func (DataIdentityAttributes) InternalRef

func (i DataIdentityAttributes) InternalRef() (terra.Reference, error)

func (DataIdentityAttributes) InternalTokens

func (i DataIdentityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataIdentityAttributes) InternalWithRef

func (DataIdentityAttributes) Type

type DataIdentityState

type DataIdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	Type        string   `json:"type"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_mssql_database.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (amd *DataSource) Attributes() dataAzurermMssqlDatabaseAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

func (amd *DataSource) Configuration() interface{}

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (amd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (amd *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type DataTimeouts

type DataTimeouts struct {
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
}

type DataTimeoutsAttributes

type DataTimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (DataTimeoutsAttributes) InternalRef

func (t DataTimeoutsAttributes) InternalRef() (terra.Reference, error)

func (DataTimeoutsAttributes) InternalTokens

func (t DataTimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataTimeoutsAttributes) InternalWithRef

func (DataTimeoutsAttributes) Read

type DataTimeoutsState

type DataTimeoutsState struct {
	Read string `json:"read"`
}

type Identity

type Identity struct {
	// IdentityIds: set of string, required
	IdentityIds terra.SetValue[terra.StringValue] `hcl:"identity_ids,attr" validate:"required"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type IdentityAttributes

type IdentityAttributes struct {
	// contains filtered or unexported fields
}

func (IdentityAttributes) IdentityIds

func (IdentityAttributes) InternalRef

func (i IdentityAttributes) InternalRef() (terra.Reference, error)

func (IdentityAttributes) InternalTokens

func (i IdentityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (IdentityAttributes) InternalWithRef

func (i IdentityAttributes) InternalWithRef(ref terra.Reference) IdentityAttributes

func (IdentityAttributes) Type

type IdentityState

type IdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	Type        string   `json:"type"`
}

type Import

type Import struct {
	// AdministratorLogin: string, required
	AdministratorLogin terra.StringValue `hcl:"administrator_login,attr" validate:"required"`
	// AdministratorLoginPassword: string, required
	AdministratorLoginPassword terra.StringValue `hcl:"administrator_login_password,attr" validate:"required"`
	// AuthenticationType: string, required
	AuthenticationType terra.StringValue `hcl:"authentication_type,attr" validate:"required"`
	// StorageAccountId: string, optional
	StorageAccountId terra.StringValue `hcl:"storage_account_id,attr"`
	// StorageKey: string, required
	StorageKey terra.StringValue `hcl:"storage_key,attr" validate:"required"`
	// StorageKeyType: string, required
	StorageKeyType terra.StringValue `hcl:"storage_key_type,attr" validate:"required"`
	// StorageUri: string, required
	StorageUri terra.StringValue `hcl:"storage_uri,attr" validate:"required"`
}

type ImportAttributes

type ImportAttributes struct {
	// contains filtered or unexported fields
}

func (ImportAttributes) AdministratorLogin

func (i ImportAttributes) AdministratorLogin() terra.StringValue

func (ImportAttributes) AdministratorLoginPassword

func (i ImportAttributes) AdministratorLoginPassword() terra.StringValue

func (ImportAttributes) AuthenticationType

func (i ImportAttributes) AuthenticationType() terra.StringValue

func (ImportAttributes) InternalRef

func (i ImportAttributes) InternalRef() (terra.Reference, error)

func (ImportAttributes) InternalTokens

func (i ImportAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ImportAttributes) InternalWithRef

func (i ImportAttributes) InternalWithRef(ref terra.Reference) ImportAttributes

func (ImportAttributes) StorageAccountId

func (i ImportAttributes) StorageAccountId() terra.StringValue

func (ImportAttributes) StorageKey

func (i ImportAttributes) StorageKey() terra.StringValue

func (ImportAttributes) StorageKeyType

func (i ImportAttributes) StorageKeyType() terra.StringValue

func (ImportAttributes) StorageUri

func (i ImportAttributes) StorageUri() terra.StringValue

type ImportState

type ImportState struct {
	AdministratorLogin         string `json:"administrator_login"`
	AdministratorLoginPassword string `json:"administrator_login_password"`
	AuthenticationType         string `json:"authentication_type"`
	StorageAccountId           string `json:"storage_account_id"`
	StorageKey                 string `json:"storage_key"`
	StorageKeyType             string `json:"storage_key_type"`
	StorageUri                 string `json:"storage_uri"`
}

type LongTermRetentionPolicy

type LongTermRetentionPolicy struct {
	// ImmutableBackupsEnabled: bool, optional
	ImmutableBackupsEnabled terra.BoolValue `hcl:"immutable_backups_enabled,attr"`
	// MonthlyRetention: string, optional
	MonthlyRetention terra.StringValue `hcl:"monthly_retention,attr"`
	// WeekOfYear: number, optional
	WeekOfYear terra.NumberValue `hcl:"week_of_year,attr"`
	// WeeklyRetention: string, optional
	WeeklyRetention terra.StringValue `hcl:"weekly_retention,attr"`
	// YearlyRetention: string, optional
	YearlyRetention terra.StringValue `hcl:"yearly_retention,attr"`
}

type LongTermRetentionPolicyAttributes

type LongTermRetentionPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (LongTermRetentionPolicyAttributes) ImmutableBackupsEnabled

func (ltrp LongTermRetentionPolicyAttributes) ImmutableBackupsEnabled() terra.BoolValue

func (LongTermRetentionPolicyAttributes) InternalRef

func (LongTermRetentionPolicyAttributes) InternalTokens

func (ltrp LongTermRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (LongTermRetentionPolicyAttributes) InternalWithRef

func (LongTermRetentionPolicyAttributes) MonthlyRetention

func (ltrp LongTermRetentionPolicyAttributes) MonthlyRetention() terra.StringValue

func (LongTermRetentionPolicyAttributes) WeekOfYear

func (LongTermRetentionPolicyAttributes) WeeklyRetention

func (ltrp LongTermRetentionPolicyAttributes) WeeklyRetention() terra.StringValue

func (LongTermRetentionPolicyAttributes) YearlyRetention

func (ltrp LongTermRetentionPolicyAttributes) YearlyRetention() terra.StringValue

type LongTermRetentionPolicyState

type LongTermRetentionPolicyState struct {
	ImmutableBackupsEnabled bool    `json:"immutable_backups_enabled"`
	MonthlyRetention        string  `json:"monthly_retention"`
	WeekOfYear              float64 `json:"week_of_year"`
	WeeklyRetention         string  `json:"weekly_retention"`
	YearlyRetention         string  `json:"yearly_retention"`
}

type Resource

type Resource struct {
	Name string
	Args Args

	DependsOn terra.Dependencies
	Lifecycle *terra.Lifecycle
	// contains filtered or unexported fields
}

Resource represents the Terraform resource azurerm_mssql_database.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (amd *Resource) Attributes() azurermMssqlDatabaseAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

func (amd *Resource) Configuration() interface{}

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

func (amd *Resource) DependOn() terra.Reference

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

func (amd *Resource) Dependencies() terra.Dependencies

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

func (amd *Resource) ImportState(state io.Reader) error

ImportState imports the given attribute values into Resource's state.

func (*Resource) LifecycleManagement

func (amd *Resource) LifecycleManagement() *terra.Lifecycle

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (amd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (amd *Resource) State() (*azurermMssqlDatabaseState, bool)

State returns the state and a bool indicating if Resource has state.

func (*Resource) StateMust

func (amd *Resource) StateMust() *azurermMssqlDatabaseState

StateMust returns the state for Resource. Panics if the state is nil.

func (*Resource) Type

func (amd *Resource) Type() string

Type returns the Terraform object type for Resource.

type ShortTermRetentionPolicy

type ShortTermRetentionPolicy struct {
	// BackupIntervalInHours: number, optional
	BackupIntervalInHours terra.NumberValue `hcl:"backup_interval_in_hours,attr"`
	// RetentionDays: number, required
	RetentionDays terra.NumberValue `hcl:"retention_days,attr" validate:"required"`
}

type ShortTermRetentionPolicyAttributes

type ShortTermRetentionPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (ShortTermRetentionPolicyAttributes) BackupIntervalInHours

func (strp ShortTermRetentionPolicyAttributes) BackupIntervalInHours() terra.NumberValue

func (ShortTermRetentionPolicyAttributes) InternalRef

func (ShortTermRetentionPolicyAttributes) InternalTokens

func (strp ShortTermRetentionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ShortTermRetentionPolicyAttributes) InternalWithRef

func (ShortTermRetentionPolicyAttributes) RetentionDays

type ShortTermRetentionPolicyState

type ShortTermRetentionPolicyState struct {
	BackupIntervalInHours float64 `json:"backup_interval_in_hours"`
	RetentionDays         float64 `json:"retention_days"`
}

type ThreatDetectionPolicy

type ThreatDetectionPolicy struct {
	// DisabledAlerts: set of string, optional
	DisabledAlerts terra.SetValue[terra.StringValue] `hcl:"disabled_alerts,attr"`
	// EmailAccountAdmins: string, optional
	EmailAccountAdmins terra.StringValue `hcl:"email_account_admins,attr"`
	// EmailAddresses: set of string, optional
	EmailAddresses terra.SetValue[terra.StringValue] `hcl:"email_addresses,attr"`
	// RetentionDays: number, optional
	RetentionDays terra.NumberValue `hcl:"retention_days,attr"`
	// State: string, optional
	State terra.StringValue `hcl:"state,attr"`
	// StorageAccountAccessKey: string, optional
	StorageAccountAccessKey terra.StringValue `hcl:"storage_account_access_key,attr"`
	// StorageEndpoint: string, optional
	StorageEndpoint terra.StringValue `hcl:"storage_endpoint,attr"`
}

type ThreatDetectionPolicyAttributes

type ThreatDetectionPolicyAttributes struct {
	// contains filtered or unexported fields
}

func (ThreatDetectionPolicyAttributes) DisabledAlerts

func (ThreatDetectionPolicyAttributes) EmailAccountAdmins

func (tdp ThreatDetectionPolicyAttributes) EmailAccountAdmins() terra.StringValue

func (ThreatDetectionPolicyAttributes) EmailAddresses

func (ThreatDetectionPolicyAttributes) InternalRef

func (ThreatDetectionPolicyAttributes) InternalTokens

func (tdp ThreatDetectionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ThreatDetectionPolicyAttributes) InternalWithRef

func (ThreatDetectionPolicyAttributes) RetentionDays

func (ThreatDetectionPolicyAttributes) State

func (ThreatDetectionPolicyAttributes) StorageAccountAccessKey

func (tdp ThreatDetectionPolicyAttributes) StorageAccountAccessKey() terra.StringValue

func (ThreatDetectionPolicyAttributes) StorageEndpoint

func (tdp ThreatDetectionPolicyAttributes) StorageEndpoint() terra.StringValue

type ThreatDetectionPolicyState

type ThreatDetectionPolicyState struct {
	DisabledAlerts          []string `json:"disabled_alerts"`
	EmailAccountAdmins      string   `json:"email_account_admins"`
	EmailAddresses          []string `json:"email_addresses"`
	RetentionDays           float64  `json:"retention_days"`
	State                   string   `json:"state"`
	StorageAccountAccessKey string   `json:"storage_account_access_key"`
	StorageEndpoint         string   `json:"storage_endpoint"`
}

type Timeouts

type Timeouts struct {
	// Create: string, optional
	Create terra.StringValue `hcl:"create,attr"`
	// Delete: string, optional
	Delete terra.StringValue `hcl:"delete,attr"`
	// Read: string, optional
	Read terra.StringValue `hcl:"read,attr"`
	// Update: string, optional
	Update terra.StringValue `hcl:"update,attr"`
}

type TimeoutsAttributes

type TimeoutsAttributes struct {
	// contains filtered or unexported fields
}

func (TimeoutsAttributes) Create

func (TimeoutsAttributes) Delete

func (TimeoutsAttributes) InternalRef

func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)

func (TimeoutsAttributes) InternalTokens

func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (TimeoutsAttributes) InternalWithRef

func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes

func (TimeoutsAttributes) Read

func (TimeoutsAttributes) Update

type TimeoutsState

type TimeoutsState struct {
	Create string `json:"create"`
	Delete string `json:"delete"`
	Read   string `json:"read"`
	Update string `json:"update"`
}

Jump to

Keyboard shortcuts

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