File: types.go

package info (click to toggle)
golang-github-aws-aws-sdk-go-v2 1.24.1-2~bpo12%2B1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-backports
  • size: 554,032 kB
  • sloc: java: 15,941; makefile: 419; sh: 175
file content (153 lines) | stat: -rw-r--r-- 3,285 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
// Code generated by smithy-go-codegen DO NOT EDIT.

package types

import (
	smithydocument "github.com/aws/smithy-go/document"
	"time"
)

// Information about the checksum of a model deployed on a device.
type Checksum struct {

	// The checksum of the model.
	Sum *string

	// The type of the checksum.
	Type ChecksumType

	noSmithyDocumentSerde
}

type Definition struct {

	// The checksum information of the model.
	Checksum *Checksum

	// The unique model handle.
	ModelHandle *string

	// The absolute S3 location of the model.
	S3Url *string

	// The desired state of the model.
	State ModelState

	noSmithyDocumentSerde
}

type DeploymentModel struct {

	// The desired state of the model.
	DesiredState ModelState

	// The unique handle of the model.
	ModelHandle *string

	// The name of the model.
	ModelName *string

	// The version of the model.
	ModelVersion *string

	// Returns the error message if there is a rollback.
	RollbackFailureReason *string

	// Returns the current state of the model.
	State ModelState

	// Returns the deployment status of the model.
	Status DeploymentStatus

	// Returns the error message for the deployment status result.
	StatusReason *string

	noSmithyDocumentSerde
}

// Information about the result of a deployment on an edge device that is
// registered with SageMaker Edge Manager.
type DeploymentResult struct {

	// The timestamp of when the deployment was ended, and the agent got the
	// deployment results.
	DeploymentEndTime *time.Time

	// Returns a list of models deployed on the agent.
	DeploymentModels []DeploymentModel

	// The name and unique ID of the deployment.
	DeploymentName *string

	// The timestamp of when the deployment was started on the agent.
	DeploymentStartTime *time.Time

	// Returns the bucket error code.
	DeploymentStatus *string

	// Returns the detailed error message.
	DeploymentStatusMessage *string

	noSmithyDocumentSerde
}

// Information about a deployment on an edge device that is registered with
// SageMaker Edge Manager.
type EdgeDeployment struct {

	// Returns a list of Definition objects.
	Definitions []Definition

	// The name and unique ID of the deployment.
	DeploymentName *string

	// Determines whether to rollback to previous configuration if deployment fails.
	FailureHandlingPolicy FailureHandlingPolicy

	// The type of the deployment.
	Type DeploymentType

	noSmithyDocumentSerde
}

// Information required for edge device metrics.
type EdgeMetric struct {

	// The dimension of metrics published.
	Dimension *string

	// Returns the name of the metric.
	MetricName *string

	// Timestamp of when the metric was requested.
	Timestamp *time.Time

	// Returns the value of the metric.
	Value *float64

	noSmithyDocumentSerde
}

// Information about a model deployed on an edge device that is registered with
// SageMaker Edge Manager.
type Model struct {

	// The timestamp of the last inference that was made.
	LatestInference *time.Time

	// The timestamp of the last data sample taken.
	LatestSampleTime *time.Time

	// Information required for model metrics.
	ModelMetrics []EdgeMetric

	// The name of the model.
	ModelName *string

	// The version of the model.
	ModelVersion *string

	noSmithyDocumentSerde
}

type noSmithyDocumentSerde = smithydocument.NoSerde