aws_connect_hours_of_operation

package
v5.45.0 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 {
	// Description: string, optional
	Description terra.StringValue `hcl:"description,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceId: string, required
	InstanceId terra.StringValue `hcl:"instance_id,attr" validate:"required"`
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
	// TagsAll: map of string, optional
	TagsAll terra.MapValue[terra.StringValue] `hcl:"tags_all,attr"`
	// TimeZone: string, required
	TimeZone terra.StringValue `hcl:"time_zone,attr" validate:"required"`
	// Config: min=1
	Config []Config `hcl:"config,block" validate:"min=1"`
}

Args contains the configurations for aws_connect_hours_of_operation.

type Config

type Config struct {
	// Day: string, required
	Day terra.StringValue `hcl:"day,attr" validate:"required"`
	// ConfigEndTime: required
	EndTime *ConfigEndTime `hcl:"end_time,block" validate:"required"`
	// ConfigStartTime: required
	StartTime *ConfigStartTime `hcl:"start_time,block" validate:"required"`
}

type ConfigAttributes

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

func (ConfigAttributes) Day

func (ConfigAttributes) EndTime

func (ConfigAttributes) InternalRef

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

func (ConfigAttributes) InternalTokens

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

func (ConfigAttributes) InternalWithRef

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

func (ConfigAttributes) StartTime

type ConfigEndTime

type ConfigEndTime struct {
	// Hours: number, required
	Hours terra.NumberValue `hcl:"hours,attr" validate:"required"`
	// Minutes: number, required
	Minutes terra.NumberValue `hcl:"minutes,attr" validate:"required"`
}

type ConfigEndTimeAttributes

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

func (ConfigEndTimeAttributes) Hours

func (ConfigEndTimeAttributes) InternalRef

func (et ConfigEndTimeAttributes) InternalRef() (terra.Reference, error)

func (ConfigEndTimeAttributes) InternalTokens

func (et ConfigEndTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigEndTimeAttributes) InternalWithRef

func (ConfigEndTimeAttributes) Minutes

type ConfigEndTimeState

type ConfigEndTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
}

type ConfigStartTime

type ConfigStartTime struct {
	// Hours: number, required
	Hours terra.NumberValue `hcl:"hours,attr" validate:"required"`
	// Minutes: number, required
	Minutes terra.NumberValue `hcl:"minutes,attr" validate:"required"`
}

type ConfigStartTimeAttributes

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

func (ConfigStartTimeAttributes) Hours

func (ConfigStartTimeAttributes) InternalRef

func (st ConfigStartTimeAttributes) InternalRef() (terra.Reference, error)

func (ConfigStartTimeAttributes) InternalTokens

func (st ConfigStartTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (ConfigStartTimeAttributes) InternalWithRef

func (ConfigStartTimeAttributes) Minutes

type ConfigStartTimeState

type ConfigStartTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
}

type ConfigState

type ConfigState struct {
	Day       string                 `json:"day"`
	EndTime   []ConfigEndTimeState   `json:"end_time"`
	StartTime []ConfigStartTimeState `json:"start_time"`
}

type DataArgs

type DataArgs struct {
	// HoursOfOperationId: string, optional
	HoursOfOperationId terra.StringValue `hcl:"hours_of_operation_id,attr"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// InstanceId: string, required
	InstanceId terra.StringValue `hcl:"instance_id,attr" validate:"required"`
	// Name: string, optional
	Name terra.StringValue `hcl:"name,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_connect_hours_of_operation.

type DataConfigAttributes

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

func (DataConfigAttributes) Day

func (DataConfigAttributes) EndTime

func (DataConfigAttributes) InternalRef

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

func (DataConfigAttributes) InternalTokens

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

func (DataConfigAttributes) InternalWithRef

func (DataConfigAttributes) StartTime

type DataConfigEndTimeAttributes

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

func (DataConfigEndTimeAttributes) Hours

func (DataConfigEndTimeAttributes) InternalRef

func (et DataConfigEndTimeAttributes) InternalRef() (terra.Reference, error)

func (DataConfigEndTimeAttributes) InternalTokens

func (et DataConfigEndTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataConfigEndTimeAttributes) InternalWithRef

func (DataConfigEndTimeAttributes) Minutes

type DataConfigEndTimeState

type DataConfigEndTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
}

type DataConfigStartTimeAttributes

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

func (DataConfigStartTimeAttributes) Hours

func (DataConfigStartTimeAttributes) InternalRef

func (st DataConfigStartTimeAttributes) InternalRef() (terra.Reference, error)

func (DataConfigStartTimeAttributes) InternalTokens

func (st DataConfigStartTimeAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataConfigStartTimeAttributes) InternalWithRef

func (DataConfigStartTimeAttributes) Minutes

type DataConfigStartTimeState

type DataConfigStartTimeState struct {
	Hours   float64 `json:"hours"`
	Minutes float64 `json:"minutes"`
}

type DataConfigState

type DataConfigState struct {
	Day       string                     `json:"day"`
	EndTime   []DataConfigEndTimeState   `json:"end_time"`
	StartTime []DataConfigStartTimeState `json:"start_time"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_connect_hours_of_operation.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (achoo *DataSource) Attributes() dataAwsConnectHoursOfOperationAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (achoo *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (achoo *DataSource) LocalName() string

LocalName returns the local name for DataSource.

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (achoo *Resource) Attributes() awsConnectHoursOfOperationAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (achoo *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (achoo *Resource) State() (*awsConnectHoursOfOperationState, bool)

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

func (*Resource) StateMust

func (achoo *Resource) StateMust() *awsConnectHoursOfOperationState

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

func (*Resource) Type

func (achoo *Resource) Type() string

Type returns the Terraform object type for Resource.

Jump to

Keyboard shortcuts

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