ecsserviceaction

package
v0.0.0-...-a5f8819 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(inputEvent interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(inputStream []byte) (map[string]interface{}, error)

Types

type AWSEvent

type AWSEvent struct {
	Detail     ECSServiceAction `json:"detail"`
	Account    string           `json:"account"`
	DetailType string           `json:"detail-type"`
	Id         string           `json:"id"`
	Region     string           `json:"region"`
	Resources  []string         `json:"resources"`
	Source     string           `json:"source"`
	Time       time.Time        `json:"time"`
	Version    string           `json:"version"`
}

func UnmarshalEvent

func UnmarshalEvent(inputStream []byte) (AWSEvent, error)

func (*AWSEvent) SetAccount

func (a *AWSEvent) SetAccount(account string)

func (*AWSEvent) SetDetail

func (a *AWSEvent) SetDetail(detail ECSServiceAction)

func (*AWSEvent) SetDetailType

func (a *AWSEvent) SetDetailType(detailType string)

func (*AWSEvent) SetId

func (a *AWSEvent) SetId(id string)

func (*AWSEvent) SetRegion

func (a *AWSEvent) SetRegion(region string)

func (*AWSEvent) SetResources

func (a *AWSEvent) SetResources(resources []string)

func (*AWSEvent) SetSource

func (a *AWSEvent) SetSource(source string)

func (*AWSEvent) SetTime

func (a *AWSEvent) SetTime(time time.Time)

func (*AWSEvent) SetVersion

func (a *AWSEvent) SetVersion(version string)

type ECSServiceAction

type ECSServiceAction struct {
	CapacityProviderArns  []string  `json:"capacityProviderArns,omitempty"`
	ClusterArn            string    `json:"clusterArn"`
	CreatedAt             time.Time `json:"createdAt,omitempty"`
	EventName             string    `json:"eventName"`
	EventType             string    `json:"eventType"`
	Reason                string    `json:"reason,omitempty"`
	DesiredCount          float64   `json:"desiredCount,omitempty"`
	ContainerPort         float64   `json:"containerPort,omitempty"`
	TaskArns              []string  `json:"taskArns,omitempty"`
	TaskSetArns           []string  `json:"taskSetArns,omitempty"`
	ContainerInstanceArns []string  `json:"containerInstanceArns,omitempty"`
	Ec2InstanceIds        []string  `json:"ec2InstanceIds,omitempty"`
	TargetGroupArns       []string  `json:"targetGroupArns,omitempty"`
	ServiceRegistryArns   []string  `json:"serviceRegistryArns,omitempty"`
	Targets               []string  `json:"targets,omitempty"`
}

func (*ECSServiceAction) SetCapacityProviderArns

func (e *ECSServiceAction) SetCapacityProviderArns(capacityProviderArns []string)

func (*ECSServiceAction) SetClusterArn

func (e *ECSServiceAction) SetClusterArn(clusterArn string)

func (*ECSServiceAction) SetContainerInstanceArns

func (e *ECSServiceAction) SetContainerInstanceArns(containerInstanceArns []string)

func (*ECSServiceAction) SetContainerPort

func (e *ECSServiceAction) SetContainerPort(containerPort float64)

func (*ECSServiceAction) SetCreatedAt

func (e *ECSServiceAction) SetCreatedAt(createdAt time.Time)

func (*ECSServiceAction) SetDesiredCount

func (e *ECSServiceAction) SetDesiredCount(desiredCount float64)

func (*ECSServiceAction) SetEc2InstanceIds

func (e *ECSServiceAction) SetEc2InstanceIds(ec2InstanceIds []string)

func (*ECSServiceAction) SetEventName

func (e *ECSServiceAction) SetEventName(eventName string)

func (*ECSServiceAction) SetEventType

func (e *ECSServiceAction) SetEventType(eventType string)

func (*ECSServiceAction) SetReason

func (e *ECSServiceAction) SetReason(reason string)

func (*ECSServiceAction) SetServiceRegistryArns

func (e *ECSServiceAction) SetServiceRegistryArns(serviceRegistryArns []string)

func (*ECSServiceAction) SetTargetGroupArns

func (e *ECSServiceAction) SetTargetGroupArns(targetGroupArns []string)

func (*ECSServiceAction) SetTargets

func (e *ECSServiceAction) SetTargets(targets []string)

func (*ECSServiceAction) SetTaskArns

func (e *ECSServiceAction) SetTaskArns(taskArns []string)

func (*ECSServiceAction) SetTaskSetArns

func (e *ECSServiceAction) SetTaskSetArns(taskSetArns []string)

Jump to

Keyboard shortcuts

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