@@ -18,39 +18,39 @@ type ECSContainerInstanceEvent struct {
18
18
}
19
19
20
20
type ECSContainerInstanceEventDetailType struct {
21
- AgentConnected bool `json:"agentConnected"`
22
- Attributes []Attribute `json:"attributes"`
23
- ClusterARN string `json:"clusterArn"`
24
- ContainerInstanceARN string `json:"containerInstanceArn"`
25
- EC2InstanceID string `json:"ec2InstanceId"`
26
- RegisteredResources []Resource `json:"registeredResources"`
27
- RemainingResources []Resource `json:"remainingResources"`
28
- Status string `json:"status"`
29
- Version int `json:"version"`
30
- VersionInfo VersionInfo `json:"versionInfo"`
31
- UpdatedAt time.Time `json:"updatedAt"`
21
+ AgentConnected bool `json:"agentConnected"`
22
+ Attributes []ECSContainerInstanceEventAttribute `json:"attributes"`
23
+ ClusterARN string `json:"clusterArn"`
24
+ ContainerInstanceARN string `json:"containerInstanceArn"`
25
+ EC2InstanceID string `json:"ec2InstanceId"`
26
+ RegisteredResources []ECSContainerInstanceEventResource `json:"registeredResources"`
27
+ RemainingResources []ECSContainerInstanceEventResource `json:"remainingResources"`
28
+ Status string `json:"status"`
29
+ Version int `json:"version"`
30
+ VersionInfo ECSContainerInstanceEventVersionInfo `json:"versionInfo"`
31
+ UpdatedAt time.Time `json:"updatedAt"`
32
32
}
33
33
34
- type Attribute struct {
34
+ type ECSContainerInstanceEventAttribute struct {
35
35
Name string `json:"name"`
36
36
}
37
37
38
- type Resource struct {
38
+ type ECSContainerInstanceEventResource struct {
39
39
Name string `json:"name"`
40
40
Type string `json:"type"`
41
41
IntegerValue int `json:"integerValue,omitempty"`
42
42
StringSetValue []* string `json:"stringSetValue,omitempty"`
43
43
}
44
44
45
- type VersionInfo struct {
45
+ type ECSContainerInstanceEventVersionInfo struct {
46
46
AgentHash string `json:"agentHash"`
47
47
AgentVersion string `json:"agentVersion"`
48
48
DockerVersion string `json:"dockerVersion"`
49
49
}
50
50
51
- // MarshalJSON implements cuustom marshaling to marshal the struct into JSON format while preserving an empty string slice in `StringSetValue` field.
52
- func (r Resource ) MarshalJSON () ([]byte , error ) {
53
- type Alias Resource
51
+ // MarshalJSON implements custom marshaling to marshal the struct into JSON format while preserving an empty string slice in `StringSetValue` field.
52
+ func (r ECSContainerInstanceEventResource ) MarshalJSON () ([]byte , error ) {
53
+ type Alias ECSContainerInstanceEventResource
54
54
aux := struct {
55
55
StringSetValue json.RawMessage `json:"stringSetValue,omitempty"`
56
56
Alias
0 commit comments