resource_cluster

package
v0.131.0 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: MPL-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClusterResourceSchema

func ClusterResourceSchema(ctx context.Context) schema.Schema

func NewResource

func NewResource() resource.Resource

Types

type ClusterModel

type ClusterModel struct {
	AdminPassword         types.String               `tfsdk:"admin_password"`
	AirflowConfig         types.Map                  `tfsdk:"airflow_config"`
	CodeSync              CodeSyncValue              `tfsdk:"code_sync"`
	CreatedAt             types.String               `tfsdk:"created_at"`
	DebPackages           types.Set                  `tfsdk:"deb_packages"`
	DeletionProtection    types.Bool                 `tfsdk:"deletion_protection"`
	Description           types.String               `tfsdk:"description"`
	FolderId              types.String               `tfsdk:"folder_id"`
	Health                types.String               `tfsdk:"health"`
	Id                    types.String               `tfsdk:"id"`
	Labels                types.Map                  `tfsdk:"labels"`
	LockboxSecretsBackend LockboxSecretsBackendValue `tfsdk:"lockbox_secrets_backend"`
	Logging               LoggingValue               `tfsdk:"logging"`
	Name                  types.String               `tfsdk:"name"`
	PipPackages           types.Set                  `tfsdk:"pip_packages"`
	Scheduler             SchedulerValue             `tfsdk:"scheduler"`
	SecurityGroupIds      types.Set                  `tfsdk:"security_group_ids"`
	ServiceAccountId      types.String               `tfsdk:"service_account_id"`
	Status                types.String               `tfsdk:"status"`
	SubnetIds             types.Set                  `tfsdk:"subnet_ids"`
	Triggerer             TriggererValue             `tfsdk:"triggerer"`
	Webserver             WebserverValue             `tfsdk:"webserver"`
	Worker                WorkerValue                `tfsdk:"worker"`
	Timeouts              timeouts.Value             `tfsdk:"timeouts"`
}

type CodeSyncType

type CodeSyncType struct {
	basetypes.ObjectType
}

func (CodeSyncType) Equal

func (t CodeSyncType) Equal(o attr.Type) bool

func (CodeSyncType) String

func (t CodeSyncType) String() string

func (CodeSyncType) ValueFromObject

func (CodeSyncType) ValueFromTerraform

func (t CodeSyncType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (CodeSyncType) ValueType

func (t CodeSyncType) ValueType(ctx context.Context) attr.Value

type CodeSyncValue

type CodeSyncValue struct {
	S3 basetypes.ObjectValue `tfsdk:"s3"`
	// contains filtered or unexported fields
}

func NewCodeSyncValue

func NewCodeSyncValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (CodeSyncValue, diag.Diagnostics)

func NewCodeSyncValueMust

func NewCodeSyncValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) CodeSyncValue

func NewCodeSyncValueNull

func NewCodeSyncValueNull() CodeSyncValue

func NewCodeSyncValueUnknown

func NewCodeSyncValueUnknown() CodeSyncValue

func (CodeSyncValue) AttributeTypes

func (v CodeSyncValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (CodeSyncValue) Equal

func (v CodeSyncValue) Equal(o attr.Value) bool

func (CodeSyncValue) IsNull

func (v CodeSyncValue) IsNull() bool

func (CodeSyncValue) IsUnknown

func (v CodeSyncValue) IsUnknown() bool

func (CodeSyncValue) String

func (v CodeSyncValue) String() string

func (CodeSyncValue) ToObjectValue

func (CodeSyncValue) ToTerraformValue

func (v CodeSyncValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (CodeSyncValue) Type

func (v CodeSyncValue) Type(ctx context.Context) attr.Type

type CommonForCreateAndUpdate

type CommonForCreateAndUpdate struct {
	Name               string
	Description        string
	Labels             map[string]string
	CodeSync           *airflow.CodeSyncConfig
	SecurityGroupIds   []string
	DeletionProtection bool
	ServiceAccountId   string
	Logging            *airflow.LoggingConfig

	AirflowConfig *airflow.AirflowConfig
	Webserver     *airflow.WebserverConfig
	Scheduler     *airflow.SchedulerConfig
	Worker        *airflow.WorkerConfig
	Triggerer     *airflow.TriggererConfig
	Dependencies  *airflow.Dependencies
	Lockbox       *airflow.LockboxConfig
}

type LockboxSecretsBackendType

type LockboxSecretsBackendType struct {
	basetypes.ObjectType
}

func (LockboxSecretsBackendType) Equal

func (LockboxSecretsBackendType) String

func (t LockboxSecretsBackendType) String() string

func (LockboxSecretsBackendType) ValueFromObject

func (LockboxSecretsBackendType) ValueFromTerraform

func (t LockboxSecretsBackendType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (LockboxSecretsBackendType) ValueType

type LockboxSecretsBackendValue

type LockboxSecretsBackendValue struct {
	Enabled basetypes.BoolValue `tfsdk:"enabled"`
	// contains filtered or unexported fields
}

func NewLockboxSecretsBackendValue

func NewLockboxSecretsBackendValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (LockboxSecretsBackendValue, diag.Diagnostics)

func NewLockboxSecretsBackendValueMust

func NewLockboxSecretsBackendValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) LockboxSecretsBackendValue

func NewLockboxSecretsBackendValueNull

func NewLockboxSecretsBackendValueNull() LockboxSecretsBackendValue

func NewLockboxSecretsBackendValueUnknown

func NewLockboxSecretsBackendValueUnknown() LockboxSecretsBackendValue

func (LockboxSecretsBackendValue) AttributeTypes

func (v LockboxSecretsBackendValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (LockboxSecretsBackendValue) Equal

func (LockboxSecretsBackendValue) IsExplicitlyDisabled

func (v LockboxSecretsBackendValue) IsExplicitlyDisabled() bool

func (LockboxSecretsBackendValue) IsNull

func (v LockboxSecretsBackendValue) IsNull() bool

func (LockboxSecretsBackendValue) IsUnknown

func (v LockboxSecretsBackendValue) IsUnknown() bool

func (LockboxSecretsBackendValue) String

func (LockboxSecretsBackendValue) ToObjectValue

func (LockboxSecretsBackendValue) ToTerraformValue

func (v LockboxSecretsBackendValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (LockboxSecretsBackendValue) Type

type LoggingType

type LoggingType struct {
	basetypes.ObjectType
}

func (LoggingType) Equal

func (t LoggingType) Equal(o attr.Type) bool

func (LoggingType) String

func (t LoggingType) String() string

func (LoggingType) ValueFromObject

func (LoggingType) ValueFromTerraform

func (t LoggingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (LoggingType) ValueType

func (t LoggingType) ValueType(ctx context.Context) attr.Value

type LoggingValue

type LoggingValue struct {
	Enabled    basetypes.BoolValue   `tfsdk:"enabled"`
	FolderId   basetypes.StringValue `tfsdk:"folder_id"`
	LogGroupId basetypes.StringValue `tfsdk:"log_group_id"`
	MinLevel   basetypes.StringValue `tfsdk:"min_level"`
	// contains filtered or unexported fields
}

func NewLoggingValue

func NewLoggingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (LoggingValue, diag.Diagnostics)

func NewLoggingValueMust

func NewLoggingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) LoggingValue

func NewLoggingValueNull

func NewLoggingValueNull() LoggingValue

func NewLoggingValueUnknown

func NewLoggingValueUnknown() LoggingValue

func (LoggingValue) AttributeTypes

func (v LoggingValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (LoggingValue) Equal

func (v LoggingValue) Equal(o attr.Value) bool

func (LoggingValue) IsExplicitlyDisabled

func (v LoggingValue) IsExplicitlyDisabled() bool

func (LoggingValue) IsNull

func (v LoggingValue) IsNull() bool

func (LoggingValue) IsUnknown

func (v LoggingValue) IsUnknown() bool

func (LoggingValue) String

func (v LoggingValue) String() string

func (LoggingValue) ToObjectValue

func (LoggingValue) ToTerraformValue

func (v LoggingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (LoggingValue) Type

func (v LoggingValue) Type(ctx context.Context) attr.Type

type S3Type

type S3Type struct {
	basetypes.ObjectType
}

func (S3Type) Equal

func (t S3Type) Equal(o attr.Type) bool

func (S3Type) String

func (t S3Type) String() string

func (S3Type) ValueFromTerraform

func (t S3Type) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (S3Type) ValueType

func (t S3Type) ValueType(ctx context.Context) attr.Value

type S3Value

type S3Value struct {
	Bucket basetypes.StringValue `tfsdk:"bucket"`
	// contains filtered or unexported fields
}

func NewS3Value

func NewS3Value(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (S3Value, diag.Diagnostics)

func NewS3ValueMust

func NewS3ValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) S3Value

func NewS3ValueNull

func NewS3ValueNull() S3Value

func NewS3ValueUnknown

func NewS3ValueUnknown() S3Value

func (S3Value) AttributeTypes

func (v S3Value) AttributeTypes(ctx context.Context) map[string]attr.Type

func (S3Value) Equal

func (v S3Value) Equal(o attr.Value) bool

func (S3Value) IsNull

func (v S3Value) IsNull() bool

func (S3Value) IsUnknown

func (v S3Value) IsUnknown() bool

func (S3Value) String

func (v S3Value) String() string

func (S3Value) ToObjectValue

func (v S3Value) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)

func (S3Value) ToTerraformValue

func (v S3Value) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (S3Value) Type

func (v S3Value) Type(ctx context.Context) attr.Type

type SchedulerType

type SchedulerType struct {
	basetypes.ObjectType
}

func (SchedulerType) Equal

func (t SchedulerType) Equal(o attr.Type) bool

func (SchedulerType) String

func (t SchedulerType) String() string

func (SchedulerType) ValueFromObject

func (SchedulerType) ValueFromTerraform

func (t SchedulerType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (SchedulerType) ValueType

func (t SchedulerType) ValueType(ctx context.Context) attr.Value

type SchedulerValue

type SchedulerValue struct {
	Count            basetypes.Int64Value  `tfsdk:"count"`
	ResourcePresetId basetypes.StringValue `tfsdk:"resource_preset_id"`
	// contains filtered or unexported fields
}

func NewSchedulerValue

func NewSchedulerValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SchedulerValue, diag.Diagnostics)

func NewSchedulerValueMust

func NewSchedulerValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SchedulerValue

func NewSchedulerValueNull

func NewSchedulerValueNull() SchedulerValue

func NewSchedulerValueUnknown

func NewSchedulerValueUnknown() SchedulerValue

func (SchedulerValue) AttributeTypes

func (v SchedulerValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (SchedulerValue) Equal

func (v SchedulerValue) Equal(o attr.Value) bool

func (SchedulerValue) IsNull

func (v SchedulerValue) IsNull() bool

func (SchedulerValue) IsUnknown

func (v SchedulerValue) IsUnknown() bool

func (SchedulerValue) String

func (v SchedulerValue) String() string

func (SchedulerValue) ToObjectValue

func (SchedulerValue) ToTerraformValue

func (v SchedulerValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (SchedulerValue) Type

func (v SchedulerValue) Type(ctx context.Context) attr.Type

type TimeoutsType

type TimeoutsType struct {
	basetypes.ObjectType
}

func (TimeoutsType) Equal

func (t TimeoutsType) Equal(o attr.Type) bool

func (TimeoutsType) String

func (t TimeoutsType) String() string

func (TimeoutsType) ValueFromObject

func (TimeoutsType) ValueFromTerraform

func (t TimeoutsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (TimeoutsType) ValueType

func (t TimeoutsType) ValueType(ctx context.Context) attr.Value

type TimeoutsValue

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

func NewTimeoutsValue

func NewTimeoutsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (TimeoutsValue, diag.Diagnostics)

func NewTimeoutsValueMust

func NewTimeoutsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) TimeoutsValue

func NewTimeoutsValueNull

func NewTimeoutsValueNull() TimeoutsValue

func NewTimeoutsValueUnknown

func NewTimeoutsValueUnknown() TimeoutsValue

func (TimeoutsValue) AttributeTypes

func (v TimeoutsValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (TimeoutsValue) Equal

func (v TimeoutsValue) Equal(o attr.Value) bool

func (TimeoutsValue) IsNull

func (v TimeoutsValue) IsNull() bool

func (TimeoutsValue) IsUnknown

func (v TimeoutsValue) IsUnknown() bool

func (TimeoutsValue) String

func (v TimeoutsValue) String() string

func (TimeoutsValue) ToObjectValue

func (TimeoutsValue) ToTerraformValue

func (v TimeoutsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (TimeoutsValue) Type

func (v TimeoutsValue) Type(ctx context.Context) attr.Type

type TriggererType

type TriggererType struct {
	basetypes.ObjectType
}

func (TriggererType) Equal

func (t TriggererType) Equal(o attr.Type) bool

func (TriggererType) String

func (t TriggererType) String() string

func (TriggererType) ValueFromObject

func (TriggererType) ValueFromTerraform

func (t TriggererType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (TriggererType) ValueType

func (t TriggererType) ValueType(ctx context.Context) attr.Value

type TriggererValue

type TriggererValue struct {
	Count            basetypes.Int64Value  `tfsdk:"count"`
	ResourcePresetId basetypes.StringValue `tfsdk:"resource_preset_id"`
	// contains filtered or unexported fields
}

func NewTriggererValue

func NewTriggererValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (TriggererValue, diag.Diagnostics)

func NewTriggererValueMust

func NewTriggererValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) TriggererValue

func NewTriggererValueNull

func NewTriggererValueNull() TriggererValue

func NewTriggererValueUnknown

func NewTriggererValueUnknown() TriggererValue

func (TriggererValue) AttributeTypes

func (v TriggererValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (TriggererValue) Equal

func (v TriggererValue) Equal(o attr.Value) bool

func (TriggererValue) IsNull

func (v TriggererValue) IsNull() bool

func (TriggererValue) IsUnknown

func (v TriggererValue) IsUnknown() bool

func (TriggererValue) String

func (v TriggererValue) String() string

func (TriggererValue) ToObjectValue

func (TriggererValue) ToTerraformValue

func (v TriggererValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (TriggererValue) Type

func (v TriggererValue) Type(ctx context.Context) attr.Type

type WebserverType

type WebserverType struct {
	basetypes.ObjectType
}

func (WebserverType) Equal

func (t WebserverType) Equal(o attr.Type) bool

func (WebserverType) String

func (t WebserverType) String() string

func (WebserverType) ValueFromObject

func (WebserverType) ValueFromTerraform

func (t WebserverType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (WebserverType) ValueType

func (t WebserverType) ValueType(ctx context.Context) attr.Value

type WebserverValue

type WebserverValue struct {
	Count            basetypes.Int64Value  `tfsdk:"count"`
	ResourcePresetId basetypes.StringValue `tfsdk:"resource_preset_id"`
	// contains filtered or unexported fields
}

func NewWebserverValue

func NewWebserverValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (WebserverValue, diag.Diagnostics)

func NewWebserverValueMust

func NewWebserverValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) WebserverValue

func NewWebserverValueNull

func NewWebserverValueNull() WebserverValue

func NewWebserverValueUnknown

func NewWebserverValueUnknown() WebserverValue

func (WebserverValue) AttributeTypes

func (v WebserverValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (WebserverValue) Equal

func (v WebserverValue) Equal(o attr.Value) bool

func (WebserverValue) IsNull

func (v WebserverValue) IsNull() bool

func (WebserverValue) IsUnknown

func (v WebserverValue) IsUnknown() bool

func (WebserverValue) String

func (v WebserverValue) String() string

func (WebserverValue) ToObjectValue

func (WebserverValue) ToTerraformValue

func (v WebserverValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WebserverValue) Type

func (v WebserverValue) Type(ctx context.Context) attr.Type

type WorkerType

type WorkerType struct {
	basetypes.ObjectType
}

func (WorkerType) Equal

func (t WorkerType) Equal(o attr.Type) bool

func (WorkerType) String

func (t WorkerType) String() string

func (WorkerType) ValueFromObject

func (WorkerType) ValueFromTerraform

func (t WorkerType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (WorkerType) ValueType

func (t WorkerType) ValueType(ctx context.Context) attr.Value

type WorkerValue

type WorkerValue struct {
	MaxCount         basetypes.Int64Value  `tfsdk:"max_count"`
	MinCount         basetypes.Int64Value  `tfsdk:"min_count"`
	ResourcePresetId basetypes.StringValue `tfsdk:"resource_preset_id"`
	// contains filtered or unexported fields
}

func NewWorkerValue

func NewWorkerValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (WorkerValue, diag.Diagnostics)

func NewWorkerValueMust

func NewWorkerValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) WorkerValue

func NewWorkerValueNull

func NewWorkerValueNull() WorkerValue

func NewWorkerValueUnknown

func NewWorkerValueUnknown() WorkerValue

func (WorkerValue) AttributeTypes

func (v WorkerValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (WorkerValue) Equal

func (v WorkerValue) Equal(o attr.Value) bool

func (WorkerValue) IsNull

func (v WorkerValue) IsNull() bool

func (WorkerValue) IsUnknown

func (v WorkerValue) IsUnknown() bool

func (WorkerValue) String

func (v WorkerValue) String() string

func (WorkerValue) ToObjectValue

func (WorkerValue) ToTerraformValue

func (v WorkerValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (WorkerValue) Type

func (v WorkerValue) Type(ctx context.Context) attr.Type

Jump to

Keyboard shortcuts

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