queue_consumer

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MPL-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewResource

func NewResource() resource.Resource

func ResourceSchema

func ResourceSchema(ctx context.Context) schema.Schema

Types

type QueueConsumerModel

type QueueConsumerModel struct {
	AccountID       types.String                                         `tfsdk:"account_id" path:"account_id,required"`
	QueueID         types.String                                         `tfsdk:"queue_id" path:"queue_id,required"`
	ScriptName      types.String                                         `tfsdk:"script_name" json:"script_name,optional"`
	ConsumerID      types.String                                         `tfsdk:"consumer_id" json:"consumer_id,computed"`
	CreatedOn       types.String                                         `tfsdk:"created_on" json:"created_on,computed"`
	DeadLetterQueue types.String                                         `tfsdk:"dead_letter_queue" json:"dead_letter_queue,optional"`
	Environment     types.String                                         `tfsdk:"environment" json:"environment,computed_optional"`
	QueueName       types.String                                         `tfsdk:"queue_name" json:"queue_name,computed"`
	Settings        customfield.NestedObject[QueueConsumerSettingsModel] `tfsdk:"settings" json:"settings,computed_optional"`
	Type            types.String                                         `tfsdk:"type" json:"type,required"`
}

func (QueueConsumerModel) MarshalJSON

func (m QueueConsumerModel) MarshalJSON() (data []byte, err error)

func (QueueConsumerModel) MarshalJSONForUpdate

func (m QueueConsumerModel) MarshalJSONForUpdate(state QueueConsumerModel) (data []byte, err error)

type QueueConsumerResource

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

QueueConsumerResource defines the resource implementation.

func (*QueueConsumerResource) ConfigValidators

func (*QueueConsumerResource) Configure

func (*QueueConsumerResource) Create

func (*QueueConsumerResource) Delete

func (*QueueConsumerResource) Metadata

func (*QueueConsumerResource) ModifyPlan

func (*QueueConsumerResource) Read

func (*QueueConsumerResource) Schema

func (*QueueConsumerResource) Update

type QueueConsumerResultEnvelope

type QueueConsumerResultEnvelope struct {
	Result QueueConsumerModel `json:"result"`
}

type QueueConsumerSettingsModel

type QueueConsumerSettingsModel struct {
	BatchSize     types.Float64 `tfsdk:"batch_size" json:"batch_size,computed_optional"`
	MaxRetries    types.Float64 `tfsdk:"max_retries" json:"max_retries,computed_optional"`
	MaxWaitTimeMs types.Float64 `tfsdk:"max_wait_time_ms" json:"max_wait_time_ms,computed_optional"`
}

Jump to

Keyboard shortcuts

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