Skip to content

Commit

Permalink
feat(neptune-snapshot): new properties: Status and CreateTime
Browse files Browse the repository at this point in the history
  • Loading branch information
ekristen committed Jan 2, 2025
1 parent 78cb22c commit 6d956b5
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions resources/neptune-snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,11 @@ package resources

import (
"context"
"github.com/ekristen/libnuke/pkg/types"
"time"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/service/neptune"
"github.com/ekristen/libnuke/pkg/types"

"github.com/ekristen/libnuke/pkg/registry"
"github.com/ekristen/libnuke/pkg/resource"
Expand Down Expand Up @@ -46,8 +48,10 @@ func (l *NeptuneSnapshotLister) List(_ context.Context, o interface{}) ([]resour

for _, dbClusterSnapshot := range output.DBClusterSnapshots {
resources = append(resources, &NeptuneSnapshot{
svc: svc,
ID: dbClusterSnapshot.DBClusterSnapshotIdentifier,
svc: svc,
ID: dbClusterSnapshot.DBClusterSnapshotIdentifier,
Status: dbClusterSnapshot.Status,
CreateTime: dbClusterSnapshot.SnapshotCreateTime,
})
}

Expand All @@ -62,8 +66,10 @@ func (l *NeptuneSnapshotLister) List(_ context.Context, o interface{}) ([]resour
}

type NeptuneSnapshot struct {
svc *neptune.Neptune
ID *string
svc *neptune.Neptune
ID *string
Status *string
CreateTime *time.Time
}

func (r *NeptuneSnapshot) Remove(_ context.Context) error {
Expand Down

0 comments on commit 6d956b5

Please sign in to comment.