cosmosdbaccount

package
v0.0.0-...-c2cc54e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AnalyticalStorage

type AnalyticalStorage struct {
	// SchemaType: string, required
	SchemaType terra.StringValue `hcl:"schema_type,attr" validate:"required"`
}

type AnalyticalStorageAttributes

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

func (AnalyticalStorageAttributes) InternalRef

func (as AnalyticalStorageAttributes) InternalRef() (terra.Reference, error)

func (AnalyticalStorageAttributes) InternalTokens

func (as AnalyticalStorageAttributes) InternalTokens() (hclwrite.Tokens, error)

func (AnalyticalStorageAttributes) InternalWithRef

func (AnalyticalStorageAttributes) SchemaType

type AnalyticalStorageState

type AnalyticalStorageState struct {
	SchemaType string `json:"schema_type"`
}

type Backup

type Backup struct {
	// IntervalInMinutes: number, optional
	IntervalInMinutes terra.NumberValue `hcl:"interval_in_minutes,attr"`
	// RetentionInHours: number, optional
	RetentionInHours terra.NumberValue `hcl:"retention_in_hours,attr"`
	// StorageRedundancy: string, optional
	StorageRedundancy terra.StringValue `hcl:"storage_redundancy,attr"`
	// Type: string, required
	Type terra.StringValue `hcl:"type,attr" validate:"required"`
}

type BackupAttributes

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

func (BackupAttributes) InternalRef

func (b BackupAttributes) InternalRef() (terra.Reference, error)

func (BackupAttributes) InternalTokens

func (b BackupAttributes) InternalTokens() (hclwrite.Tokens, error)

func (BackupAttributes) InternalWithRef

func (b BackupAttributes) InternalWithRef(ref terra.Reference) BackupAttributes

func (BackupAttributes) IntervalInMinutes

func (b BackupAttributes) IntervalInMinutes() terra.NumberValue

func (BackupAttributes) RetentionInHours

func (b BackupAttributes) RetentionInHours() terra.NumberValue

func (BackupAttributes) StorageRedundancy

func (b BackupAttributes) StorageRedundancy() terra.StringValue

func (BackupAttributes) Type

type BackupState

type BackupState struct {
	IntervalInMinutes float64 `json:"interval_in_minutes"`
	RetentionInHours  float64 `json:"retention_in_hours"`
	StorageRedundancy string  `json:"storage_redundancy"`
	Type              string  `json:"type"`
}

type Capabilities

type Capabilities struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type CapabilitiesAttributes

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

func (CapabilitiesAttributes) InternalRef

func (c CapabilitiesAttributes) InternalRef() (terra.Reference, error)

func (CapabilitiesAttributes) InternalTokens

func (c CapabilitiesAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CapabilitiesAttributes) InternalWithRef

func (CapabilitiesAttributes) Name

type CapabilitiesState

type CapabilitiesState struct {
	Name string `json:"name"`
}

type Capacity

type Capacity struct {
	// TotalThroughputLimit: number, required
	TotalThroughputLimit terra.NumberValue `hcl:"total_throughput_limit,attr" validate:"required"`
}

type CapacityAttributes

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

func (CapacityAttributes) InternalRef

func (c CapacityAttributes) InternalRef() (terra.Reference, error)

func (CapacityAttributes) InternalTokens

func (c CapacityAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CapacityAttributes) InternalWithRef

func (c CapacityAttributes) InternalWithRef(ref terra.Reference) CapacityAttributes

func (CapacityAttributes) TotalThroughputLimit

func (c CapacityAttributes) TotalThroughputLimit() terra.NumberValue

type CapacityState

type CapacityState struct {
	TotalThroughputLimit float64 `json:"total_throughput_limit"`
}

type ConsistencyPolicy

type ConsistencyPolicy struct {
	// ConsistencyLevel: string, required
	ConsistencyLevel terra.StringValue `hcl:"consistency_level,attr" validate:"required"`
	// MaxIntervalInSeconds: number, optional
	MaxIntervalInSeconds terra.NumberValue `hcl:"max_interval_in_seconds,attr"`
	// MaxStalenessPrefix: number, optional
	MaxStalenessPrefix terra.NumberValue `hcl:"max_staleness_prefix,attr"`
}

type ConsistencyPolicyAttributes

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

func (ConsistencyPolicyAttributes) ConsistencyLevel

func (cp ConsistencyPolicyAttributes) ConsistencyLevel() terra.StringValue

func (ConsistencyPolicyAttributes) InternalRef

func (cp ConsistencyPolicyAttributes) InternalRef() (terra.Reference, error)

func (ConsistencyPolicyAttributes) InternalTokens

func (cp ConsistencyPolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConsistencyPolicyAttributes) InternalWithRef

func (ConsistencyPolicyAttributes) MaxIntervalInSeconds

func (cp ConsistencyPolicyAttributes) MaxIntervalInSeconds() terra.NumberValue

func (ConsistencyPolicyAttributes) MaxStalenessPrefix

func (cp ConsistencyPolicyAttributes) MaxStalenessPrefix() terra.NumberValue

type ConsistencyPolicyState

type ConsistencyPolicyState struct {
	ConsistencyLevel     string  `json:"consistency_level"`
	MaxIntervalInSeconds float64 `json:"max_interval_in_seconds"`
	MaxStalenessPrefix   float64 `json:"max_staleness_prefix"`
}

type CorsRule

type CorsRule struct {
	// AllowedHeaders: list of string, required
	AllowedHeaders terra.ListValue[terra.StringValue] `hcl:"allowed_headers,attr" validate:"required"`
	// AllowedMethods: list of string, required
	AllowedMethods terra.ListValue[terra.StringValue] `hcl:"allowed_methods,attr" validate:"required"`
	// AllowedOrigins: list of string, required
	AllowedOrigins terra.ListValue[terra.StringValue] `hcl:"allowed_origins,attr" validate:"required"`
	// ExposedHeaders: list of string, required
	ExposedHeaders terra.ListValue[terra.StringValue] `hcl:"exposed_headers,attr" validate:"required"`
	// MaxAgeInSeconds: number, required
	MaxAgeInSeconds terra.NumberValue `hcl:"max_age_in_seconds,attr" validate:"required"`
}

type CorsRuleAttributes

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

func (CorsRuleAttributes) AllowedHeaders

func (cr CorsRuleAttributes) AllowedHeaders() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) AllowedMethods

func (cr CorsRuleAttributes) AllowedMethods() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) AllowedOrigins

func (cr CorsRuleAttributes) AllowedOrigins() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) ExposedHeaders

func (cr CorsRuleAttributes) ExposedHeaders() terra.ListValue[terra.StringValue]

func (CorsRuleAttributes) InternalRef

func (cr CorsRuleAttributes) InternalRef() (terra.Reference, error)

func (CorsRuleAttributes) InternalTokens

func (cr CorsRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (CorsRuleAttributes) InternalWithRef

func (cr CorsRuleAttributes) InternalWithRef(ref terra.Reference) CorsRuleAttributes

func (CorsRuleAttributes) MaxAgeInSeconds

func (cr CorsRuleAttributes) MaxAgeInSeconds() terra.NumberValue

type CorsRuleState

type CorsRuleState struct {
	AllowedHeaders  []string `json:"allowed_headers"`
	AllowedMethods  []string `json:"allowed_methods"`
	AllowedOrigins  []string `json:"allowed_origins"`
	ExposedHeaders  []string `json:"exposed_headers"`
	MaxAgeInSeconds float64  `json:"max_age_in_seconds"`
}

type Database

type Database struct {
	// CollectionNames: set of string, optional
	CollectionNames terra.SetValue[terra.StringValue] `hcl:"collection_names,attr"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
}

type DatabaseAttributes

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

func (DatabaseAttributes) CollectionNames

func (d DatabaseAttributes) CollectionNames() terra.SetValue[terra.StringValue]

func (DatabaseAttributes) InternalRef

func (d DatabaseAttributes) InternalRef() (terra.Reference, error)

func (DatabaseAttributes) InternalTokens

func (d DatabaseAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DatabaseAttributes) InternalWithRef

func (d DatabaseAttributes) InternalWithRef(ref terra.Reference) DatabaseAttributes

func (DatabaseAttributes) Name

type DatabaseState

type DatabaseState struct {
	CollectionNames []string `json:"collection_names"`
	Name            string   `json:"name"`
}

type GeoLocation

type GeoLocation struct {
	// FailoverPriority: number, required
	FailoverPriority terra.NumberValue `hcl:"failover_priority,attr" validate:"required"`
	// Location: string, required
	Location terra.StringValue `hcl:"location,attr" validate:"required"`
	// ZoneRedundant: bool, optional
	ZoneRedundant terra.BoolValue `hcl:"zone_redundant,attr"`
}

type GeoLocationAttributes

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

func (GeoLocationAttributes) FailoverPriority

func (gl GeoLocationAttributes) FailoverPriority() terra.NumberValue

func (GeoLocationAttributes) Id

func (GeoLocationAttributes) InternalRef

func (gl GeoLocationAttributes) InternalRef() (terra.Reference, error)

func (GeoLocationAttributes) InternalTokens

func (gl GeoLocationAttributes) InternalTokens() (hclwrite.Tokens, error)

func (GeoLocationAttributes) InternalWithRef

func (GeoLocationAttributes) Location

func (gl GeoLocationAttributes) Location() terra.StringValue

func (GeoLocationAttributes) ZoneRedundant

func (gl GeoLocationAttributes) ZoneRedundant() terra.BoolValue

type GeoLocationState

type GeoLocationState struct {
	FailoverPriority float64 `json:"failover_priority"`
	Id               string  `json:"id"`
	Location         string  `json:"location"`
	ZoneRedundant    bool    `json:"zone_redundant"`
}

type Identity

type Identity struct {
	// IdentityIds: set of string, optional
	IdentityIds terra.SetValue[terra.StringValue] `hcl:"identity_ids,attr"`
	// 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) PrincipalId

func (i IdentityAttributes) PrincipalId() terra.StringValue

func (IdentityAttributes) TenantId

func (i IdentityAttributes) TenantId() terra.StringValue

func (IdentityAttributes) Type

type IdentityState

type IdentityState struct {
	IdentityIds []string `json:"identity_ids"`
	PrincipalId string   `json:"principal_id"`
	TenantId    string   `json:"tenant_id"`
	Type        string   `json:"type"`
}

type Restore

type Restore struct {
	// RestoreTimestampInUtc: string, required
	RestoreTimestampInUtc terra.StringValue `hcl:"restore_timestamp_in_utc,attr" validate:"required"`
	// SourceCosmosdbAccountId: string, required
	SourceCosmosdbAccountId terra.StringValue `hcl:"source_cosmosdb_account_id,attr" validate:"required"`
	// Database: min=0
	Database []Database `hcl:"database,block" validate:"min=0"`
}

type RestoreAttributes

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

func (RestoreAttributes) Database

func (RestoreAttributes) InternalRef

func (r RestoreAttributes) InternalRef() (terra.Reference, error)

func (RestoreAttributes) InternalTokens

func (r RestoreAttributes) InternalTokens() (hclwrite.Tokens, error)

func (RestoreAttributes) InternalWithRef

func (r RestoreAttributes) InternalWithRef(ref terra.Reference) RestoreAttributes

func (RestoreAttributes) RestoreTimestampInUtc

func (r RestoreAttributes) RestoreTimestampInUtc() terra.StringValue

func (RestoreAttributes) SourceCosmosdbAccountId

func (r RestoreAttributes) SourceCosmosdbAccountId() terra.StringValue

type RestoreState

type RestoreState struct {
	RestoreTimestampInUtc   string          `json:"restore_timestamp_in_utc"`
	SourceCosmosdbAccountId string          `json:"source_cosmosdb_account_id"`
	Database                []DatabaseState `json:"database"`
}

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"`
}

type VirtualNetworkRule

type VirtualNetworkRule struct {
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// IgnoreMissingVnetServiceEndpoint: bool, optional
	IgnoreMissingVnetServiceEndpoint terra.BoolValue `hcl:"ignore_missing_vnet_service_endpoint,attr"`
}

type VirtualNetworkRuleAttributes

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

func (VirtualNetworkRuleAttributes) Id

func (VirtualNetworkRuleAttributes) IgnoreMissingVnetServiceEndpoint

func (vnr VirtualNetworkRuleAttributes) IgnoreMissingVnetServiceEndpoint() terra.BoolValue

func (VirtualNetworkRuleAttributes) InternalRef

func (vnr VirtualNetworkRuleAttributes) InternalRef() (terra.Reference, error)

func (VirtualNetworkRuleAttributes) InternalTokens

func (vnr VirtualNetworkRuleAttributes) InternalTokens() (hclwrite.Tokens, error)

func (VirtualNetworkRuleAttributes) InternalWithRef

type VirtualNetworkRuleState

type VirtualNetworkRuleState struct {
	Id                               string `json:"id"`
	IgnoreMissingVnetServiceEndpoint bool   `json:"ignore_missing_vnet_service_endpoint"`
}

Jump to

Keyboard shortcuts

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