azurerm_sql_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 {
	// Collation: string, optional
	Collation terra.StringValue `hcl:"collation,attr"`
	// CreateMode: string, optional
	CreateMode terra.StringValue `hcl:"create_mode,attr"`
	// Edition: string, optional
	Edition terra.StringValue `hcl:"edition,attr"`
	// ElasticPoolName: string, optional
	ElasticPoolName terra.StringValue `hcl:"elastic_pool_name,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// MaxSizeBytes: string, optional
	MaxSizeBytes terra.StringValue `hcl:"max_size_bytes,attr"`
	// MaxSizeGb: string, optional
	MaxSizeGb terra.StringValue `hcl:"max_size_gb,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// ReadScale: bool, optional
	ReadScale terra.BoolValue `hcl:"read_scale,attr"`
	// RequestedServiceObjectiveId: string, optional
	RequestedServiceObjectiveId terra.StringValue `hcl:"requested_service_objective_id,attr"`
	// RequestedServiceObjectiveName: string, optional
	RequestedServiceObjectiveName terra.StringValue `hcl:"requested_service_objective_name,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// RestorePointInTime: string, optional
	RestorePointInTime terra.StringValue `hcl:"restore_point_in_time,attr"`
	// ServerName: string, required
	ServerName terra.StringValue `hcl:"server_name,attr" validate:"required"`
	// SourceDatabaseDeletionDate: string, optional
	SourceDatabaseDeletionDate terra.StringValue `hcl:"source_database_deletion_date,attr"`
	// SourceDatabaseId: string, optional
	SourceDatabaseId terra.StringValue `hcl:"source_database_id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// ZoneRedundant: bool, optional
	ZoneRedundant terra.BoolValue `hcl:"zone_redundant,attr"`
	// Import: optional
	Import *Import `hcl:"import,block"`
	// ThreatDetectionPolicy: optional
	ThreatDetectionPolicy *ThreatDetectionPolicy `hcl:"threat_detection_policy,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_sql_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"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// ServerName: string, required
	ServerName terra.StringValue `hcl:"server_name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_sql_database.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_sql_database.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (asd *DataSource) Attributes() dataAzurermSqlDatabaseAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (asd *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (asd *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 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"`
	// OperationMode: string, optional
	OperationMode terra.StringValue `hcl:"operation_mode,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) OperationMode

func (i ImportAttributes) OperationMode() 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"`
	OperationMode              string `json:"operation_mode"`
	StorageKey                 string `json:"storage_key"`
	StorageKeyType             string `json:"storage_key_type"`
	StorageUri                 string `json:"storage_uri"`
}

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_sql_database.

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (asd *Resource) Attributes() azurermSqlDatabaseAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (asd *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (asd *Resource) State() (*azurermSqlDatabaseState, bool)

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

func (*Resource) StateMust

func (asd *Resource) StateMust() *azurermSqlDatabaseState

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

func (*Resource) Type

func (asd *Resource) Type() string

Type returns the Terraform object type for Resource.

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