aws_batch_scheduling_policy

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 {
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// 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"`
	// FairSharePolicy: optional
	FairSharePolicy *FairSharePolicy `hcl:"fair_share_policy,block"`
}

Args contains the configurations for aws_batch_scheduling_policy.

type DataArgs

type DataArgs struct {
	// Arn: string, required
	Arn terra.StringValue `hcl:"arn,attr" validate:"required"`
	// Id: string, optional
	Id terra.StringValue `hcl:"id,attr"`
	// Tags: map of string, optional
	Tags terra.MapValue[terra.StringValue] `hcl:"tags,attr"`
}

DataArgs contains the configurations for aws_batch_scheduling_policy.

type DataFairSharePolicyAttributes

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

func (DataFairSharePolicyAttributes) ComputeReservation

func (fsp DataFairSharePolicyAttributes) ComputeReservation() terra.NumberValue

func (DataFairSharePolicyAttributes) InternalRef

func (fsp DataFairSharePolicyAttributes) InternalRef() (terra.Reference, error)

func (DataFairSharePolicyAttributes) InternalTokens

func (fsp DataFairSharePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (DataFairSharePolicyAttributes) InternalWithRef

func (DataFairSharePolicyAttributes) ShareDecaySeconds

func (fsp DataFairSharePolicyAttributes) ShareDecaySeconds() terra.NumberValue

func (DataFairSharePolicyAttributes) ShareDistribution

type DataFairSharePolicyShareDistributionAttributes

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

func (DataFairSharePolicyShareDistributionAttributes) InternalRef

func (DataFairSharePolicyShareDistributionAttributes) InternalTokens

func (DataFairSharePolicyShareDistributionAttributes) InternalWithRef

func (DataFairSharePolicyShareDistributionAttributes) ShareIdentifier

func (DataFairSharePolicyShareDistributionAttributes) WeightFactor

type DataFairSharePolicyShareDistributionState

type DataFairSharePolicyShareDistributionState struct {
	ShareIdentifier string  `json:"share_identifier"`
	WeightFactor    float64 `json:"weight_factor"`
}

type DataFairSharePolicyState

type DataFairSharePolicyState struct {
	ComputeReservation float64                                     `json:"compute_reservation"`
	ShareDecaySeconds  float64                                     `json:"share_decay_seconds"`
	ShareDistribution  []DataFairSharePolicyShareDistributionState `json:"share_distribution"`
}

type DataSource

type DataSource struct {
	Name string
	Args DataArgs
}

DataSource represents the Terraform data resource aws_batch_scheduling_policy.

func Data

func Data(name string, args DataArgs) *DataSource

Data creates a new instance of DataSource.

func (*DataSource) Attributes

func (absp *DataSource) Attributes() dataAwsBatchSchedulingPolicyAttributes

Attributes returns the attributes for DataSource.

func (*DataSource) Configuration

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

Configuration returns the configuration (args) for DataSource.

func (*DataSource) DataSource

func (absp *DataSource) DataSource() string

DataSource returns the Terraform object type for DataSource.

func (*DataSource) LocalName

func (absp *DataSource) LocalName() string

LocalName returns the local name for DataSource.

type FairSharePolicy

type FairSharePolicy struct {
	// ComputeReservation: number, optional
	ComputeReservation terra.NumberValue `hcl:"compute_reservation,attr"`
	// ShareDecaySeconds: number, optional
	ShareDecaySeconds terra.NumberValue `hcl:"share_decay_seconds,attr"`
	// FairSharePolicyShareDistribution: min=0,max=500
	ShareDistribution []FairSharePolicyShareDistribution `hcl:"share_distribution,block" validate:"min=0,max=500"`
}

type FairSharePolicyAttributes

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

func (FairSharePolicyAttributes) ComputeReservation

func (fsp FairSharePolicyAttributes) ComputeReservation() terra.NumberValue

func (FairSharePolicyAttributes) InternalRef

func (fsp FairSharePolicyAttributes) InternalRef() (terra.Reference, error)

func (FairSharePolicyAttributes) InternalTokens

func (fsp FairSharePolicyAttributes) InternalTokens() (hclwrite.Tokens, error)

func (FairSharePolicyAttributes) InternalWithRef

func (FairSharePolicyAttributes) ShareDecaySeconds

func (fsp FairSharePolicyAttributes) ShareDecaySeconds() terra.NumberValue

func (FairSharePolicyAttributes) ShareDistribution

type FairSharePolicyShareDistribution

type FairSharePolicyShareDistribution struct {
	// ShareIdentifier: string, required
	ShareIdentifier terra.StringValue `hcl:"share_identifier,attr" validate:"required"`
	// WeightFactor: number, optional
	WeightFactor terra.NumberValue `hcl:"weight_factor,attr"`
}

type FairSharePolicyShareDistributionAttributes

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

func (FairSharePolicyShareDistributionAttributes) InternalRef

func (FairSharePolicyShareDistributionAttributes) InternalTokens

func (FairSharePolicyShareDistributionAttributes) InternalWithRef

func (FairSharePolicyShareDistributionAttributes) ShareIdentifier

func (FairSharePolicyShareDistributionAttributes) WeightFactor

type FairSharePolicyShareDistributionState

type FairSharePolicyShareDistributionState struct {
	ShareIdentifier string  `json:"share_identifier"`
	WeightFactor    float64 `json:"weight_factor"`
}

type FairSharePolicyState

type FairSharePolicyState struct {
	ComputeReservation float64                                 `json:"compute_reservation"`
	ShareDecaySeconds  float64                                 `json:"share_decay_seconds"`
	ShareDistribution  []FairSharePolicyShareDistributionState `json:"share_distribution"`
}

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

func New

func New(name string, args Args) *Resource

New creates a new instance of Resource.

func (*Resource) Attributes

func (absp *Resource) Attributes() awsBatchSchedulingPolicyAttributes

Attributes returns the attributes for Resource.

func (*Resource) Configuration

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

Configuration returns the configuration (args) for Resource.

func (*Resource) DependOn

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

DependOn is used for other resources to depend on Resource.

func (*Resource) Dependencies

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

Dependencies returns the list of resources Resource depends_on.

func (*Resource) ImportState

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

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

func (*Resource) LifecycleManagement

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

LifecycleManagement returns the lifecycle block for Resource.

func (*Resource) LocalName

func (absp *Resource) LocalName() string

LocalName returns the local name for Resource.

func (*Resource) State

func (absp *Resource) State() (*awsBatchSchedulingPolicyState, bool)

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

func (*Resource) StateMust

func (absp *Resource) StateMust() *awsBatchSchedulingPolicyState

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

func (*Resource) Type

func (absp *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