model

package
Version: v0.0.0-...-f4b3689 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package model contains message struct for MDS/SSM messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCommandID

func GetCommandID(messageID string) (string, error)

Types

type CancelPayload

type CancelPayload struct {
	CancelMessageID string `json:"CancelMessageId"`
}

CancelPayload represents the json structure of a cancel command MDS message payload.

type SendCommandPayload

type SendCommandPayload struct {
	Parameters              map[string]interface{}    `json:"Parameters"`
	DocumentContent         contracts.DocumentContent `json:"DocumentContent"`
	CommandID               string                    `json:"CommandId"`
	DocumentName            string                    `json:"DocumentName"`
	OutputS3KeyPrefix       string                    `json:"OutputS3KeyPrefix"`
	OutputS3BucketName      string                    `json:"OutputS3BucketName"`
	CloudWatchLogGroupName  string                    `json:"CloudWatchLogGroupName"`
	CloudWatchOutputEnabled string                    `json:"CloudWatchOutputEnabled"`
}

SendCommandPayload parallels the structure of a send command MDS message payload.

type SendReplyPayload

type SendReplyPayload struct {
	AdditionalInfo      contracts.AdditionalInfo                  `json:"additionalInfo"`
	DocumentStatus      contracts.ResultStatus                    `json:"documentStatus"`
	DocumentTraceOutput string                                    `json:"documentTraceOutput"`
	RuntimeStatus       map[string]*contracts.PluginRuntimeStatus `json:"runtimeStatus"`
}

SendReplyPayload represents the json structure of a reply sent to MDS.

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL