azurerm_postgresql_flexible_server

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 {
	// AdministratorLogin: string, optional
	AdministratorLogin terra.StringValue `hcl:"administrator_login,attr"`
	// AdministratorPassword: string, optional
	AdministratorPassword terra.StringValue `hcl:"administrator_password,attr"`
	// AutoGrowEnabled: bool, optional
	AutoGrowEnabled terra.BoolValue `hcl:"auto_grow_enabled,attr"`
	// BackupRetentionDays: number, optional
	BackupRetentionDays terra.NumberValue `hcl:"backup_retention_days,attr"`
	// CreateMode: string, optional
	CreateMode terra.StringValue `hcl:"create_mode,attr"`
	// DelegatedSubnetId: string, optional
	DelegatedSubnetId terra.StringValue `hcl:"delegated_subnet_id,attr"`
	// GeoRedundantBackupEnabled: bool, optional
	GeoRedundantBackupEnabled terra.BoolValue `hcl:"geo_redundant_backup_enabled,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// PointInTimeRestoreTimeInUtc: string, optional
	PointInTimeRestoreTimeInUtc terra.StringValue `hcl:"point_in_time_restore_time_in_utc,attr"`
	// PrivateDnsZoneId: string, optional
	PrivateDnsZoneId terra.StringValue `hcl:"private_dns_zone_id,attr"`
	// ReplicationRole: string, optional
	ReplicationRole terra.StringValue `hcl:"replication_role,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// SkuName: string, optional
	SkuName terra.StringValue `hcl:"sku_name,attr"`
	// SourceServerId: string, optional
	SourceServerId terra.StringValue `hcl:"source_server_id,attr"`
	// StorageMb: number, optional
	StorageMb terra.NumberValue `hcl:"storage_mb,attr"`
	// StorageTier: string, optional
	StorageTier terra.StringValue `hcl:"storage_tier,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// Version: string, optional
	Version terra.StringValue `hcl:"version,attr"`
	// Zone: string, optional
	Zone terra.StringValue `hcl:"zone,attr"`
	// Authentication: optional
	Authentication *Authentication `hcl:"authentication,block"`
	// CustomerManagedKey: optional
	CustomerManagedKey *CustomerManagedKey `hcl:"customer_managed_key,block"`
	// HighAvailability: optional
	HighAvailability *HighAvailability `hcl:"high_availability,block"`
	// Identity: optional
	Identity *Identity `hcl:"identity,block"`
	// MaintenanceWindow: optional
	MaintenanceWindow *MaintenanceWindow `hcl:"maintenance_window,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_postgresql_flexible_server.

type Authentication

type Authentication struct {
	// ActiveDirectoryAuthEnabled: bool, optional
	ActiveDirectoryAuthEnabled terra.BoolValue `hcl:"active_directory_auth_enabled,attr"`
	// PasswordAuthEnabled: bool, optional
	PasswordAuthEnabled terra.BoolValue `hcl:"password_auth_enabled,attr"`
	// TenantId: string, optional
	TenantId terra.StringValue `hcl:"tenant_id,attr"`
}

type AuthenticationAttributes

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

func (AuthenticationAttributes) ActiveDirectoryAuthEnabled

func (a AuthenticationAttributes) ActiveDirectoryAuthEnabled() terra.BoolValue

func (AuthenticationAttributes) InternalRef

func (a AuthenticationAttributes) InternalRef() (terra.Reference, error)

func (AuthenticationAttributes) InternalTokens

func (a AuthenticationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AuthenticationAttributes) InternalWithRef

func (AuthenticationAttributes) PasswordAuthEnabled

func (a AuthenticationAttributes) PasswordAuthEnabled() terra.BoolValue

func (AuthenticationAttributes) TenantId

type AuthenticationState

type AuthenticationState struct {
	ActiveDirectoryAuthEnabled bool   `json:"active_directory_auth_enabled"`
	PasswordAuthEnabled        bool   `json:"password_auth_enabled"`
	TenantId                   string `json:"tenant_id"`
}

type CustomerManagedKey

type CustomerManagedKey struct {
	// GeoBackupKeyVaultKeyId: string, optional
	GeoBackupKeyVaultKeyId terra.StringValue `hcl:"geo_backup_key_vault_key_id,attr"`
	// GeoBackupUserAssignedIdentityId: string, optional
	GeoBackupUserAssignedIdentityId terra.StringValue `hcl:"geo_backup_user_assigned_identity_id,attr"`
	// KeyVaultKeyId: string, required
	KeyVaultKeyId terra.StringValue `hcl:"key_vault_key_id,attr" validate:"required"`
	// PrimaryUserAssignedIdentityId: string, optional
	PrimaryUserAssignedIdentityId terra.StringValue `hcl:"primary_user_assigned_identity_id,attr"`
}

type CustomerManagedKeyAttributes

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

func (CustomerManagedKeyAttributes) GeoBackupKeyVaultKeyId

func (cmk CustomerManagedKeyAttributes) GeoBackupKeyVaultKeyId() terra.StringValue

func (CustomerManagedKeyAttributes) GeoBackupUserAssignedIdentityId

func (cmk CustomerManagedKeyAttributes) GeoBackupUserAssignedIdentityId() terra.StringValue

func (CustomerManagedKeyAttributes) InternalRef

func (cmk CustomerManagedKeyAttributes) InternalRef() (terra.Reference, error)

func (CustomerManagedKeyAttributes) InternalTokens

func (cmk CustomerManagedKeyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CustomerManagedKeyAttributes) InternalWithRef

func (CustomerManagedKeyAttributes) KeyVaultKeyId

func (cmk CustomerManagedKeyAttributes) KeyVaultKeyId() terra.StringValue

func (CustomerManagedKeyAttributes) PrimaryUserAssignedIdentityId

func (cmk CustomerManagedKeyAttributes) PrimaryUserAssignedIdentityId() terra.StringValue

type CustomerManagedKeyState

type CustomerManagedKeyState struct {
	GeoBackupKeyVaultKeyId          string `json:"geo_backup_key_vault_key_id"`
	GeoBackupUserAssignedIdentityId string `json:"geo_backup_user_assigned_identity_id"`
	KeyVaultKeyId                   string `json:"key_vault_key_id"`
	PrimaryUserAssignedIdentityId   string `json:"primary_user_assigned_identity_id"`
}

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"`
	// Timeouts: optional
	Timeouts *DataTimeouts `hcl:"timeouts,block"`
}

DataArgs contains the configurations for azurerm_postgresql_flexible_server.

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource azurerm_postgresql_flexible_server.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (apfs *DataSource) Attributes() dataAzurermPostgresqlFlexibleServerAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (apfs *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (apfs *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 HighAvailability

type HighAvailability struct {
	// Mode: string, required
	Mode terra.StringValue `hcl:"mode,attr" validate:"required"`
	// StandbyAvailabilityZone: string, optional
	StandbyAvailabilityZone terra.StringValue `hcl:"standby_availability_zone,attr"`
}

type HighAvailabilityAttributes

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

func (HighAvailabilityAttributes) InternalRef

func (ha HighAvailabilityAttributes) InternalRef() (terra.Reference, error)

func (HighAvailabilityAttributes) InternalTokens

func (ha HighAvailabilityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (HighAvailabilityAttributes) InternalWithRef

func (HighAvailabilityAttributes) Mode

func (HighAvailabilityAttributes) StandbyAvailabilityZone

func (ha HighAvailabilityAttributes) StandbyAvailabilityZone() terra.StringValue

type HighAvailabilityState

type HighAvailabilityState struct {
	Mode                    string `json:"mode"`
	StandbyAvailabilityZone string `json:"standby_availability_zone"`
}

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 MaintenanceWindow

type MaintenanceWindow struct {
	// DayOfWeek: number, optional
	DayOfWeek terra.NumberValue `hcl:"day_of_week,attr"`
	// StartHour: number, optional
	StartHour terra.NumberValue `hcl:"start_hour,attr"`
	// StartMinute: number, optional
	StartMinute terra.NumberValue `hcl:"start_minute,attr"`
}

type MaintenanceWindowAttributes

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

func (MaintenanceWindowAttributes) DayOfWeek

func (MaintenanceWindowAttributes) InternalRef

func (mw MaintenanceWindowAttributes) InternalRef() (terra.Reference, error)

func (MaintenanceWindowAttributes) InternalTokens

func (mw MaintenanceWindowAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MaintenanceWindowAttributes) InternalWithRef

func (MaintenanceWindowAttributes) StartHour

func (MaintenanceWindowAttributes) StartMinute

type MaintenanceWindowState

type MaintenanceWindowState struct {
	DayOfWeek   float64 `json:"day_of_week"`
	StartHour   float64 `json:"start_hour"`
	StartMinute float64 `json:"start_minute"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (apfs *Resource) Attributes() azurermPostgresqlFlexibleServerAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (apfs *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (apfs *Resource) State() (*azurermPostgresqlFlexibleServerState, bool)

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

func (*Resource) StateMust

func (apfs *Resource) StateMust() *azurermPostgresqlFlexibleServerState

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

func (*Resource) Type

func (apfs *Resource) Type() string

Type returns the Terraform object type for Resource.

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