github.com/pulumi/pulumi-aws/sdk/v6@v6.32.0/go/aws/signer/getSigningJob.go (about) 1 // Code generated by the Pulumi Terraform Bridge (tfgen) Tool DO NOT EDIT. 2 // *** WARNING: Do not edit by hand unless you're certain you know what you are doing! *** 3 4 package signer 5 6 import ( 7 "context" 8 "reflect" 9 10 "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/internal" 11 "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 12 ) 13 14 // Provides information about a Signer Signing Job. 15 // 16 // ## Example Usage 17 // 18 // <!--Start PulumiCodeChooser --> 19 // ```go 20 // package main 21 // 22 // import ( 23 // 24 // "github.com/pulumi/pulumi-aws/sdk/v6/go/aws/signer" 25 // "github.com/pulumi/pulumi/sdk/v3/go/pulumi" 26 // 27 // ) 28 // 29 // func main() { 30 // pulumi.Run(func(ctx *pulumi.Context) error { 31 // _, err := signer.LookupSigningJob(ctx, &signer.LookupSigningJobArgs{ 32 // JobId: "9ed7e5c3-b8d4-4da0-8459-44e0b068f7ee", 33 // }, nil) 34 // if err != nil { 35 // return err 36 // } 37 // return nil 38 // }) 39 // } 40 // 41 // ``` 42 // <!--End PulumiCodeChooser --> 43 func LookupSigningJob(ctx *pulumi.Context, args *LookupSigningJobArgs, opts ...pulumi.InvokeOption) (*LookupSigningJobResult, error) { 44 opts = internal.PkgInvokeDefaultOpts(opts) 45 var rv LookupSigningJobResult 46 err := ctx.Invoke("aws:signer/getSigningJob:getSigningJob", args, &rv, opts...) 47 if err != nil { 48 return nil, err 49 } 50 return &rv, nil 51 } 52 53 // A collection of arguments for invoking getSigningJob. 54 type LookupSigningJobArgs struct { 55 // ID of the signing job on output. 56 JobId string `pulumi:"jobId"` 57 } 58 59 // A collection of values returned by getSigningJob. 60 type LookupSigningJobResult struct { 61 // Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was completed. 62 CompletedAt string `pulumi:"completedAt"` 63 // Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was created. 64 CreatedAt string `pulumi:"createdAt"` 65 // The provider-assigned unique ID for this managed resource. 66 Id string `pulumi:"id"` 67 JobId string `pulumi:"jobId"` 68 // IAM entity that initiated the signing job. 69 JobInvoker string `pulumi:"jobInvoker"` 70 // AWS account ID of the job owner. 71 JobOwner string `pulumi:"jobOwner"` 72 // A human-readable name for the signing platform associated with the signing job. 73 PlatformDisplayName string `pulumi:"platformDisplayName"` 74 // Platform to which your signed code image will be distributed. 75 PlatformId string `pulumi:"platformId"` 76 // Name of the profile that initiated the signing operation. 77 ProfileName string `pulumi:"profileName"` 78 // Version of the signing profile used to initiate the signing job. 79 ProfileVersion string `pulumi:"profileVersion"` 80 // IAM principal that requested the signing job. 81 RequestedBy string `pulumi:"requestedBy"` 82 // Revocation record if the signature generated by the signing job has been revoked. Contains a timestamp and the ID of the IAM entity that revoked the signature. 83 RevocationRecords []GetSigningJobRevocationRecord `pulumi:"revocationRecords"` 84 // The time when the signature of a signing job expires. 85 SignatureExpiresAt string `pulumi:"signatureExpiresAt"` 86 // Name of the S3 bucket where the signed code image is saved by code signing. 87 SignedObjects []GetSigningJobSignedObject `pulumi:"signedObjects"` 88 // Object that contains the name of your S3 bucket or your raw code. 89 Sources []GetSigningJobSource `pulumi:"sources"` 90 // Status of the signing job. 91 Status string `pulumi:"status"` 92 // String value that contains the status reason. 93 StatusReason string `pulumi:"statusReason"` 94 } 95 96 func LookupSigningJobOutput(ctx *pulumi.Context, args LookupSigningJobOutputArgs, opts ...pulumi.InvokeOption) LookupSigningJobResultOutput { 97 return pulumi.ToOutputWithContext(context.Background(), args). 98 ApplyT(func(v interface{}) (LookupSigningJobResult, error) { 99 args := v.(LookupSigningJobArgs) 100 r, err := LookupSigningJob(ctx, &args, opts...) 101 var s LookupSigningJobResult 102 if r != nil { 103 s = *r 104 } 105 return s, err 106 }).(LookupSigningJobResultOutput) 107 } 108 109 // A collection of arguments for invoking getSigningJob. 110 type LookupSigningJobOutputArgs struct { 111 // ID of the signing job on output. 112 JobId pulumi.StringInput `pulumi:"jobId"` 113 } 114 115 func (LookupSigningJobOutputArgs) ElementType() reflect.Type { 116 return reflect.TypeOf((*LookupSigningJobArgs)(nil)).Elem() 117 } 118 119 // A collection of values returned by getSigningJob. 120 type LookupSigningJobResultOutput struct{ *pulumi.OutputState } 121 122 func (LookupSigningJobResultOutput) ElementType() reflect.Type { 123 return reflect.TypeOf((*LookupSigningJobResult)(nil)).Elem() 124 } 125 126 func (o LookupSigningJobResultOutput) ToLookupSigningJobResultOutput() LookupSigningJobResultOutput { 127 return o 128 } 129 130 func (o LookupSigningJobResultOutput) ToLookupSigningJobResultOutputWithContext(ctx context.Context) LookupSigningJobResultOutput { 131 return o 132 } 133 134 // Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was completed. 135 func (o LookupSigningJobResultOutput) CompletedAt() pulumi.StringOutput { 136 return o.ApplyT(func(v LookupSigningJobResult) string { return v.CompletedAt }).(pulumi.StringOutput) 137 } 138 139 // Date and time in [RFC3339 format](https://tools.ietf.org/html/rfc3339#section-5.8) that the signing job was created. 140 func (o LookupSigningJobResultOutput) CreatedAt() pulumi.StringOutput { 141 return o.ApplyT(func(v LookupSigningJobResult) string { return v.CreatedAt }).(pulumi.StringOutput) 142 } 143 144 // The provider-assigned unique ID for this managed resource. 145 func (o LookupSigningJobResultOutput) Id() pulumi.StringOutput { 146 return o.ApplyT(func(v LookupSigningJobResult) string { return v.Id }).(pulumi.StringOutput) 147 } 148 149 func (o LookupSigningJobResultOutput) JobId() pulumi.StringOutput { 150 return o.ApplyT(func(v LookupSigningJobResult) string { return v.JobId }).(pulumi.StringOutput) 151 } 152 153 // IAM entity that initiated the signing job. 154 func (o LookupSigningJobResultOutput) JobInvoker() pulumi.StringOutput { 155 return o.ApplyT(func(v LookupSigningJobResult) string { return v.JobInvoker }).(pulumi.StringOutput) 156 } 157 158 // AWS account ID of the job owner. 159 func (o LookupSigningJobResultOutput) JobOwner() pulumi.StringOutput { 160 return o.ApplyT(func(v LookupSigningJobResult) string { return v.JobOwner }).(pulumi.StringOutput) 161 } 162 163 // A human-readable name for the signing platform associated with the signing job. 164 func (o LookupSigningJobResultOutput) PlatformDisplayName() pulumi.StringOutput { 165 return o.ApplyT(func(v LookupSigningJobResult) string { return v.PlatformDisplayName }).(pulumi.StringOutput) 166 } 167 168 // Platform to which your signed code image will be distributed. 169 func (o LookupSigningJobResultOutput) PlatformId() pulumi.StringOutput { 170 return o.ApplyT(func(v LookupSigningJobResult) string { return v.PlatformId }).(pulumi.StringOutput) 171 } 172 173 // Name of the profile that initiated the signing operation. 174 func (o LookupSigningJobResultOutput) ProfileName() pulumi.StringOutput { 175 return o.ApplyT(func(v LookupSigningJobResult) string { return v.ProfileName }).(pulumi.StringOutput) 176 } 177 178 // Version of the signing profile used to initiate the signing job. 179 func (o LookupSigningJobResultOutput) ProfileVersion() pulumi.StringOutput { 180 return o.ApplyT(func(v LookupSigningJobResult) string { return v.ProfileVersion }).(pulumi.StringOutput) 181 } 182 183 // IAM principal that requested the signing job. 184 func (o LookupSigningJobResultOutput) RequestedBy() pulumi.StringOutput { 185 return o.ApplyT(func(v LookupSigningJobResult) string { return v.RequestedBy }).(pulumi.StringOutput) 186 } 187 188 // Revocation record if the signature generated by the signing job has been revoked. Contains a timestamp and the ID of the IAM entity that revoked the signature. 189 func (o LookupSigningJobResultOutput) RevocationRecords() GetSigningJobRevocationRecordArrayOutput { 190 return o.ApplyT(func(v LookupSigningJobResult) []GetSigningJobRevocationRecord { return v.RevocationRecords }).(GetSigningJobRevocationRecordArrayOutput) 191 } 192 193 // The time when the signature of a signing job expires. 194 func (o LookupSigningJobResultOutput) SignatureExpiresAt() pulumi.StringOutput { 195 return o.ApplyT(func(v LookupSigningJobResult) string { return v.SignatureExpiresAt }).(pulumi.StringOutput) 196 } 197 198 // Name of the S3 bucket where the signed code image is saved by code signing. 199 func (o LookupSigningJobResultOutput) SignedObjects() GetSigningJobSignedObjectArrayOutput { 200 return o.ApplyT(func(v LookupSigningJobResult) []GetSigningJobSignedObject { return v.SignedObjects }).(GetSigningJobSignedObjectArrayOutput) 201 } 202 203 // Object that contains the name of your S3 bucket or your raw code. 204 func (o LookupSigningJobResultOutput) Sources() GetSigningJobSourceArrayOutput { 205 return o.ApplyT(func(v LookupSigningJobResult) []GetSigningJobSource { return v.Sources }).(GetSigningJobSourceArrayOutput) 206 } 207 208 // Status of the signing job. 209 func (o LookupSigningJobResultOutput) Status() pulumi.StringOutput { 210 return o.ApplyT(func(v LookupSigningJobResult) string { return v.Status }).(pulumi.StringOutput) 211 } 212 213 // String value that contains the status reason. 214 func (o LookupSigningJobResultOutput) StatusReason() pulumi.StringOutput { 215 return o.ApplyT(func(v LookupSigningJobResult) string { return v.StatusReason }).(pulumi.StringOutput) 216 } 217 218 func init() { 219 pulumi.RegisterOutputType(LookupSigningJobResultOutput{}) 220 }