Documentation ¶
Index ¶
- type Args
- type DataArgs
- type DataSource
- type DataTimeouts
- type DataTimeoutsAttributes
- type DataTimeoutsState
- type Import
- type ImportAttributes
- func (i ImportAttributes) AdministratorLogin() terra.StringValue
- func (i ImportAttributes) AdministratorLoginPassword() terra.StringValue
- func (i ImportAttributes) AuthenticationType() terra.StringValue
- func (i ImportAttributes) InternalRef() (terra.Reference, error)
- func (i ImportAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (i ImportAttributes) InternalWithRef(ref terra.Reference) ImportAttributes
- func (i ImportAttributes) OperationMode() terra.StringValue
- func (i ImportAttributes) StorageKey() terra.StringValue
- func (i ImportAttributes) StorageKeyType() terra.StringValue
- func (i ImportAttributes) StorageUri() terra.StringValue
- type ImportState
- type Resource
- func (asd *Resource) Attributes() azurermSqlDatabaseAttributes
- func (asd *Resource) Configuration() interface{}
- func (asd *Resource) DependOn() terra.Reference
- func (asd *Resource) Dependencies() terra.Dependencies
- func (asd *Resource) ImportState(state io.Reader) error
- func (asd *Resource) LifecycleManagement() *terra.Lifecycle
- func (asd *Resource) LocalName() string
- func (asd *Resource) State() (*azurermSqlDatabaseState, bool)
- func (asd *Resource) StateMust() *azurermSqlDatabaseState
- func (asd *Resource) Type() string
- type ThreatDetectionPolicy
- type ThreatDetectionPolicyAttributes
- func (tdp ThreatDetectionPolicyAttributes) DisabledAlerts() terra.SetValue[terra.StringValue]
- func (tdp ThreatDetectionPolicyAttributes) EmailAccountAdmins() terra.StringValue
- func (tdp ThreatDetectionPolicyAttributes) EmailAddresses() terra.SetValue[terra.StringValue]
- func (tdp ThreatDetectionPolicyAttributes) InternalRef() (terra.Reference, error)
- func (tdp ThreatDetectionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (tdp ThreatDetectionPolicyAttributes) InternalWithRef(ref terra.Reference) ThreatDetectionPolicyAttributes
- func (tdp ThreatDetectionPolicyAttributes) RetentionDays() terra.NumberValue
- func (tdp ThreatDetectionPolicyAttributes) State() terra.StringValue
- func (tdp ThreatDetectionPolicyAttributes) StorageAccountAccessKey() terra.StringValue
- func (tdp ThreatDetectionPolicyAttributes) StorageEndpoint() terra.StringValue
- type ThreatDetectionPolicyState
- type Timeouts
- type TimeoutsAttributes
- func (t TimeoutsAttributes) Create() terra.StringValue
- func (t TimeoutsAttributes) Delete() terra.StringValue
- func (t TimeoutsAttributes) InternalRef() (terra.Reference, error)
- func (t TimeoutsAttributes) InternalTokens() (hclwrite.Tokens, error)
- func (t TimeoutsAttributes) InternalWithRef(ref terra.Reference) TimeoutsAttributes
- func (t TimeoutsAttributes) Read() terra.StringValue
- func (t TimeoutsAttributes) Update() terra.StringValue
- type TimeoutsState
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 ¶
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 (t DataTimeoutsAttributes) InternalWithRef(ref terra.Reference) DataTimeoutsAttributes
func (DataTimeoutsAttributes) Read ¶
func (t DataTimeoutsAttributes) Read() terra.StringValue
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 (*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) Dependencies ¶
func (asd *Resource) Dependencies() terra.Dependencies
Dependencies returns the list of resources Resource depends_on.
func (*Resource) ImportState ¶
ImportState imports the given attribute values into Resource's state.
func (*Resource) LifecycleManagement ¶
LifecycleManagement returns the lifecycle block 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 (tdp ThreatDetectionPolicyAttributes) DisabledAlerts() terra.SetValue[terra.StringValue]
func (ThreatDetectionPolicyAttributes) EmailAccountAdmins ¶
func (tdp ThreatDetectionPolicyAttributes) EmailAccountAdmins() terra.StringValue
func (ThreatDetectionPolicyAttributes) EmailAddresses ¶
func (tdp ThreatDetectionPolicyAttributes) EmailAddresses() terra.SetValue[terra.StringValue]
func (ThreatDetectionPolicyAttributes) InternalRef ¶
func (tdp ThreatDetectionPolicyAttributes) InternalRef() (terra.Reference, error)
func (ThreatDetectionPolicyAttributes) InternalTokens ¶
func (tdp ThreatDetectionPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)
func (ThreatDetectionPolicyAttributes) InternalWithRef ¶
func (tdp ThreatDetectionPolicyAttributes) InternalWithRef(ref terra.Reference) ThreatDetectionPolicyAttributes
func (ThreatDetectionPolicyAttributes) RetentionDays ¶
func (tdp ThreatDetectionPolicyAttributes) RetentionDays() terra.NumberValue
func (ThreatDetectionPolicyAttributes) State ¶
func (tdp ThreatDetectionPolicyAttributes) State() terra.StringValue
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 (t TimeoutsAttributes) Create() terra.StringValue
func (TimeoutsAttributes) Delete ¶
func (t TimeoutsAttributes) Delete() terra.StringValue
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 (t TimeoutsAttributes) Read() terra.StringValue
func (TimeoutsAttributes) Update ¶
func (t TimeoutsAttributes) Update() terra.StringValue