File tree Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Expand file tree Collapse file tree 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ package resources
3
3
import (
4
4
"context"
5
5
"fmt"
6
+ "time"
6
7
7
8
"github.com/gotidy/ptr"
8
9
@@ -79,6 +80,7 @@ func (n *EC2NATGateway) Remove(_ context.Context) error {
79
80
80
81
func (n * EC2NATGateway ) Properties () types.Properties {
81
82
properties := types .NewProperties ()
83
+ properties .Set ("CreateTime" , n .natgw .CreateTime .Format (time .RFC3339 ))
82
84
for _ , tagValue := range n .natgw .Tags {
83
85
properties .SetTag (tagValue .Key , tagValue .Value )
84
86
}
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ package resources
2
2
3
3
import (
4
4
"context"
5
+ "time"
5
6
6
7
"github.com/aws/aws-sdk-go/service/ec2"
7
8
@@ -60,6 +61,7 @@ func (e *EC2Volume) Remove(_ context.Context) error {
60
61
func (e * EC2Volume ) Properties () types.Properties {
61
62
properties := types .NewProperties ()
62
63
properties .Set ("State" , e .volume .State )
64
+ properties .Set ("CreateTime" , e .volume .CreateTime .Format (time .RFC3339 ))
63
65
for _ , tagValue := range e .volume .Tags {
64
66
properties .SetTag (tagValue .Key , tagValue .Value )
65
67
}
You can’t perform that action at this time.
0 commit comments