@@ -2,6 +2,7 @@ package resources
2
2
3
3
import (
4
4
"fmt"
5
+ "time"
5
6
6
7
"github.com/aws/aws-sdk-go/aws"
7
8
"github.com/aws/aws-sdk-go/aws/session"
@@ -10,10 +11,17 @@ import (
10
11
)
11
12
12
13
type SignerSigningJob struct {
13
- svc * signer.Signer
14
- jobId * string
15
- reason string
16
- isRevoked * bool
14
+ svc * signer.Signer
15
+ jobId * string
16
+ reason string
17
+ isRevoked * bool
18
+ createdAt time.Time
19
+ profileName * string
20
+ profileVersion * string
21
+ platformId * string
22
+ platformDisplayName * string
23
+ jobOwner * string
24
+ jobInvoker * string
17
25
}
18
26
19
27
func init () {
@@ -30,10 +38,17 @@ func ListSignerSigningJobs(sess *session.Session) ([]Resource, error) {
30
38
err := svc .ListSigningJobsPages (listJobsInput , func (page * signer.ListSigningJobsOutput , lastPage bool ) bool {
31
39
for _ , job := range page .Jobs {
32
40
resources = append (resources , & SignerSigningJob {
33
- svc : svc ,
34
- jobId : job .JobId ,
35
- reason : reason ,
36
- isRevoked : job .IsRevoked ,
41
+ svc : svc ,
42
+ jobId : job .JobId ,
43
+ reason : reason ,
44
+ isRevoked : job .IsRevoked ,
45
+ createdAt : * job .CreatedAt ,
46
+ profileName : job .ProfileName ,
47
+ profileVersion : job .ProfileVersion ,
48
+ platformId : job .PlatformId ,
49
+ platformDisplayName : job .PlatformDisplayName ,
50
+ jobOwner : job .JobOwner ,
51
+ jobInvoker : job .JobInvoker ,
37
52
})
38
53
}
39
54
return true // continue iterating over pages
@@ -67,5 +82,12 @@ func (j *SignerSigningJob) Remove() error {
67
82
func (j * SignerSigningJob ) Properties () types.Properties {
68
83
properties := types .NewProperties ()
69
84
properties .Set ("JobId" , j .jobId )
85
+ properties .Set ("CreatedAt" , j .createdAt .Format (time .RFC3339 ))
86
+ properties .Set ("ProfileName" , j .profileName )
87
+ properties .Set ("ProfileVersion" , j .profileVersion )
88
+ properties .Set ("PlatformId" , j .platformId )
89
+ properties .Set ("PlatformDisplayName" , j .platformDisplayName )
90
+ properties .Set ("JobOwner" , j .jobOwner )
91
+ properties .Set ("JobInvoker" , j .jobInvoker )
70
92
return properties
71
93
}
0 commit comments