azurerm_cosmosdb_postgresql_cluster

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 {
	// AdministratorLoginPassword: string, optional
	AdministratorLoginPassword terra.StringValue `hcl:"administrator_login_password,attr"`
	// CitusVersion: string, optional
	CitusVersion terra.StringValue `hcl:"citus_version,attr"`
	// CoordinatorPublicIpAccessEnabled: bool, optional
	CoordinatorPublicIpAccessEnabled terra.BoolValue `hcl:"coordinator_public_ip_access_enabled,attr"`
	// CoordinatorServerEdition: string, optional
	CoordinatorServerEdition terra.StringValue `hcl:"coordinator_server_edition,attr"`
	// CoordinatorStorageQuotaInMb: number, optional
	CoordinatorStorageQuotaInMb terra.NumberValue `hcl:"coordinator_storage_quota_in_mb,attr"`
	// CoordinatorVcoreCount: number, optional
	CoordinatorVcoreCount terra.NumberValue `hcl:"coordinator_vcore_count,attr"`
	// HaEnabled: bool, optional
	HaEnabled terra.BoolValue `hcl:"ha_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"`
	// NodeCount: number, required
	NodeCount terra.NumberValue `hcl:"node_count,attr" validate:"required"`
	// NodePublicIpAccessEnabled: bool, optional
	NodePublicIpAccessEnabled terra.BoolValue `hcl:"node_public_ip_access_enabled,attr"`
	// NodeServerEdition: string, optional
	NodeServerEdition terra.StringValue `hcl:"node_server_edition,attr"`
	// NodeStorageQuotaInMb: number, optional
	NodeStorageQuotaInMb terra.NumberValue `hcl:"node_storage_quota_in_mb,attr"`
	// NodeVcores: number, optional
	NodeVcores terra.NumberValue `hcl:"node_vcores,attr"`
	// PointInTimeInUtc: string, optional
	PointInTimeInUtc terra.StringValue `hcl:"point_in_time_in_utc,attr"`
	// PreferredPrimaryZone: string, optional
	PreferredPrimaryZone terra.StringValue `hcl:"preferred_primary_zone,attr"`
	// ResourceGroupName: string, required
	ResourceGroupName terra.StringValue `hcl:"resource_group_name,attr" validate:"required"`
	// ShardsOnCoordinatorEnabled: bool, optional
	ShardsOnCoordinatorEnabled terra.BoolValue `hcl:"shards_on_coordinator_enabled,attr"`
	// SourceLocation: string, optional
	SourceLocation terra.StringValue `hcl:"source_location,attr"`
	// SourceResourceId: string, optional
	SourceResourceId terra.StringValue `hcl:"source_resource_id,attr"`
	// SqlVersion: string, optional
	SqlVersion terra.StringValue `hcl:"sql_version,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// MaintenanceWindow: optional
	MaintenanceWindow *MaintenanceWindow `hcl:"maintenance_window,block"`
	// Timeouts: optional
	Timeouts *Timeouts `hcl:"timeouts,block"`
}

Args contains the configurations for azurerm_cosmosdb_postgresql_cluster.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (acpc *Resource) Attributes() azurermCosmosdbPostgresqlClusterAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (acpc *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (acpc *Resource) State() (*azurermCosmosdbPostgresqlClusterState, bool)

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

func (*Resource) StateMust

func (acpc *Resource) StateMust() *azurermCosmosdbPostgresqlClusterState

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

func (*Resource) Type

func (acpc *Resource) Type() string

Type returns the Terraform object type for Resource.

type ServersAttributes

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

func (ServersAttributes) Fqdn

func (ServersAttributes) InternalRef

func (s ServersAttributes) InternalRef() (terra.Reference, error)

func (ServersAttributes) InternalTokens

func (s ServersAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ServersAttributes) InternalWithRef

func (s ServersAttributes) InternalWithRef(ref terra.Reference) ServersAttributes

func (ServersAttributes) Name

type ServersState

type ServersState struct {
	Fqdn string `json:"fqdn"`
	Name string `json:"name"`
}

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