@@ -18,39 +18,39 @@ type ECSContainerInstanceEvent struct {
1818}
1919
2020type 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"`
3232}
3333
34- type Attribute struct {
34+ type ECSContainerInstanceEventAttribute struct {
3535 Name string `json:"name"`
3636}
3737
38- type Resource struct {
38+ type ECSContainerInstanceEventResource struct {
3939 Name string `json:"name"`
4040 Type string `json:"type"`
4141 IntegerValue int `json:"integerValue,omitempty"`
4242 StringSetValue []* string `json:"stringSetValue,omitempty"`
4343}
4444
45- type VersionInfo struct {
45+ type ECSContainerInstanceEventVersionInfo struct {
4646 AgentHash string `json:"agentHash"`
4747 AgentVersion string `json:"agentVersion"`
4848 DockerVersion string `json:"dockerVersion"`
4949}
5050
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
5454 aux := struct {
5555 StringSetValue json.RawMessage `json:"stringSetValue,omitempty"`
5656 Alias
0 commit comments