github.com/aavshr/aws-sdk-go@v1.41.3/service/signer/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package signer 4 5 import ( 6 "fmt" 7 "time" 8 9 "github.com/aavshr/aws-sdk-go/aws" 10 "github.com/aavshr/aws-sdk-go/aws/awsutil" 11 "github.com/aavshr/aws-sdk-go/aws/request" 12 "github.com/aavshr/aws-sdk-go/private/protocol" 13 "github.com/aavshr/aws-sdk-go/private/protocol/restjson" 14 ) 15 16 const opAddProfilePermission = "AddProfilePermission" 17 18 // AddProfilePermissionRequest generates a "aws/request.Request" representing the 19 // client's request for the AddProfilePermission operation. The "output" return 20 // value will be populated with the request's response once the request completes 21 // successfully. 22 // 23 // Use "Send" method on the returned Request to send the API call to the service. 24 // the "output" return value is not valid until after Send returns without error. 25 // 26 // See AddProfilePermission for more information on using the AddProfilePermission 27 // API call, and error handling. 28 // 29 // This method is useful when you want to inject custom logic or configuration 30 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 31 // 32 // 33 // // Example sending a request using the AddProfilePermissionRequest method. 34 // req, resp := client.AddProfilePermissionRequest(params) 35 // 36 // err := req.Send() 37 // if err == nil { // resp is now filled 38 // fmt.Println(resp) 39 // } 40 // 41 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/AddProfilePermission 42 func (c *Signer) AddProfilePermissionRequest(input *AddProfilePermissionInput) (req *request.Request, output *AddProfilePermissionOutput) { 43 op := &request.Operation{ 44 Name: opAddProfilePermission, 45 HTTPMethod: "POST", 46 HTTPPath: "/signing-profiles/{profileName}/permissions", 47 } 48 49 if input == nil { 50 input = &AddProfilePermissionInput{} 51 } 52 53 output = &AddProfilePermissionOutput{} 54 req = c.newRequest(op, input, output) 55 return 56 } 57 58 // AddProfilePermission API operation for AWS Signer. 59 // 60 // Adds cross-account permissions to a signing profile. 61 // 62 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 63 // with awserr.Error's Code and Message methods to get detailed information about 64 // the error. 65 // 66 // See the AWS API reference guide for AWS Signer's 67 // API operation AddProfilePermission for usage and error information. 68 // 69 // Returned Error Types: 70 // * ValidationException 71 // You signing certificate could not be validated. 72 // 73 // * ResourceNotFoundException 74 // A specified resource could not be found. 75 // 76 // * AccessDeniedException 77 // You do not have sufficient access to perform this action. 78 // 79 // * ServiceLimitExceededException 80 // The client is making a request that exceeds service limits. 81 // 82 // * ConflictException 83 // The resource encountered a conflicting state. 84 // 85 // * TooManyRequestsException 86 // The allowed number of job-signing requests has been exceeded. 87 // 88 // This error supersedes the error ThrottlingException. 89 // 90 // * InternalServiceErrorException 91 // An internal error occurred. 92 // 93 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/AddProfilePermission 94 func (c *Signer) AddProfilePermission(input *AddProfilePermissionInput) (*AddProfilePermissionOutput, error) { 95 req, out := c.AddProfilePermissionRequest(input) 96 return out, req.Send() 97 } 98 99 // AddProfilePermissionWithContext is the same as AddProfilePermission with the addition of 100 // the ability to pass a context and additional request options. 101 // 102 // See AddProfilePermission for details on how to use this API operation. 103 // 104 // The context must be non-nil and will be used for request cancellation. If 105 // the context is nil a panic will occur. In the future the SDK may create 106 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 107 // for more information on using Contexts. 108 func (c *Signer) AddProfilePermissionWithContext(ctx aws.Context, input *AddProfilePermissionInput, opts ...request.Option) (*AddProfilePermissionOutput, error) { 109 req, out := c.AddProfilePermissionRequest(input) 110 req.SetContext(ctx) 111 req.ApplyOptions(opts...) 112 return out, req.Send() 113 } 114 115 const opCancelSigningProfile = "CancelSigningProfile" 116 117 // CancelSigningProfileRequest generates a "aws/request.Request" representing the 118 // client's request for the CancelSigningProfile operation. The "output" return 119 // value will be populated with the request's response once the request completes 120 // successfully. 121 // 122 // Use "Send" method on the returned Request to send the API call to the service. 123 // the "output" return value is not valid until after Send returns without error. 124 // 125 // See CancelSigningProfile for more information on using the CancelSigningProfile 126 // API call, and error handling. 127 // 128 // This method is useful when you want to inject custom logic or configuration 129 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 130 // 131 // 132 // // Example sending a request using the CancelSigningProfileRequest method. 133 // req, resp := client.CancelSigningProfileRequest(params) 134 // 135 // err := req.Send() 136 // if err == nil { // resp is now filled 137 // fmt.Println(resp) 138 // } 139 // 140 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/CancelSigningProfile 141 func (c *Signer) CancelSigningProfileRequest(input *CancelSigningProfileInput) (req *request.Request, output *CancelSigningProfileOutput) { 142 op := &request.Operation{ 143 Name: opCancelSigningProfile, 144 HTTPMethod: "DELETE", 145 HTTPPath: "/signing-profiles/{profileName}", 146 } 147 148 if input == nil { 149 input = &CancelSigningProfileInput{} 150 } 151 152 output = &CancelSigningProfileOutput{} 153 req = c.newRequest(op, input, output) 154 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 155 return 156 } 157 158 // CancelSigningProfile API operation for AWS Signer. 159 // 160 // Changes the state of an ACTIVE signing profile to CANCELED. A canceled profile 161 // is still viewable with the ListSigningProfiles operation, but it cannot perform 162 // new signing jobs, and is deleted two years after cancelation. 163 // 164 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 165 // with awserr.Error's Code and Message methods to get detailed information about 166 // the error. 167 // 168 // See the AWS API reference guide for AWS Signer's 169 // API operation CancelSigningProfile for usage and error information. 170 // 171 // Returned Error Types: 172 // * ResourceNotFoundException 173 // A specified resource could not be found. 174 // 175 // * AccessDeniedException 176 // You do not have sufficient access to perform this action. 177 // 178 // * TooManyRequestsException 179 // The allowed number of job-signing requests has been exceeded. 180 // 181 // This error supersedes the error ThrottlingException. 182 // 183 // * InternalServiceErrorException 184 // An internal error occurred. 185 // 186 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/CancelSigningProfile 187 func (c *Signer) CancelSigningProfile(input *CancelSigningProfileInput) (*CancelSigningProfileOutput, error) { 188 req, out := c.CancelSigningProfileRequest(input) 189 return out, req.Send() 190 } 191 192 // CancelSigningProfileWithContext is the same as CancelSigningProfile with the addition of 193 // the ability to pass a context and additional request options. 194 // 195 // See CancelSigningProfile for details on how to use this API operation. 196 // 197 // The context must be non-nil and will be used for request cancellation. If 198 // the context is nil a panic will occur. In the future the SDK may create 199 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 200 // for more information on using Contexts. 201 func (c *Signer) CancelSigningProfileWithContext(ctx aws.Context, input *CancelSigningProfileInput, opts ...request.Option) (*CancelSigningProfileOutput, error) { 202 req, out := c.CancelSigningProfileRequest(input) 203 req.SetContext(ctx) 204 req.ApplyOptions(opts...) 205 return out, req.Send() 206 } 207 208 const opDescribeSigningJob = "DescribeSigningJob" 209 210 // DescribeSigningJobRequest generates a "aws/request.Request" representing the 211 // client's request for the DescribeSigningJob operation. The "output" return 212 // value will be populated with the request's response once the request completes 213 // successfully. 214 // 215 // Use "Send" method on the returned Request to send the API call to the service. 216 // the "output" return value is not valid until after Send returns without error. 217 // 218 // See DescribeSigningJob for more information on using the DescribeSigningJob 219 // API call, and error handling. 220 // 221 // This method is useful when you want to inject custom logic or configuration 222 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 223 // 224 // 225 // // Example sending a request using the DescribeSigningJobRequest method. 226 // req, resp := client.DescribeSigningJobRequest(params) 227 // 228 // err := req.Send() 229 // if err == nil { // resp is now filled 230 // fmt.Println(resp) 231 // } 232 // 233 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/DescribeSigningJob 234 func (c *Signer) DescribeSigningJobRequest(input *DescribeSigningJobInput) (req *request.Request, output *DescribeSigningJobOutput) { 235 op := &request.Operation{ 236 Name: opDescribeSigningJob, 237 HTTPMethod: "GET", 238 HTTPPath: "/signing-jobs/{jobId}", 239 } 240 241 if input == nil { 242 input = &DescribeSigningJobInput{} 243 } 244 245 output = &DescribeSigningJobOutput{} 246 req = c.newRequest(op, input, output) 247 return 248 } 249 250 // DescribeSigningJob API operation for AWS Signer. 251 // 252 // Returns information about a specific code signing job. You specify the job 253 // by using the jobId value that is returned by the StartSigningJob operation. 254 // 255 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 256 // with awserr.Error's Code and Message methods to get detailed information about 257 // the error. 258 // 259 // See the AWS API reference guide for AWS Signer's 260 // API operation DescribeSigningJob for usage and error information. 261 // 262 // Returned Error Types: 263 // * ResourceNotFoundException 264 // A specified resource could not be found. 265 // 266 // * AccessDeniedException 267 // You do not have sufficient access to perform this action. 268 // 269 // * TooManyRequestsException 270 // The allowed number of job-signing requests has been exceeded. 271 // 272 // This error supersedes the error ThrottlingException. 273 // 274 // * InternalServiceErrorException 275 // An internal error occurred. 276 // 277 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/DescribeSigningJob 278 func (c *Signer) DescribeSigningJob(input *DescribeSigningJobInput) (*DescribeSigningJobOutput, error) { 279 req, out := c.DescribeSigningJobRequest(input) 280 return out, req.Send() 281 } 282 283 // DescribeSigningJobWithContext is the same as DescribeSigningJob with the addition of 284 // the ability to pass a context and additional request options. 285 // 286 // See DescribeSigningJob for details on how to use this API operation. 287 // 288 // The context must be non-nil and will be used for request cancellation. If 289 // the context is nil a panic will occur. In the future the SDK may create 290 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 291 // for more information on using Contexts. 292 func (c *Signer) DescribeSigningJobWithContext(ctx aws.Context, input *DescribeSigningJobInput, opts ...request.Option) (*DescribeSigningJobOutput, error) { 293 req, out := c.DescribeSigningJobRequest(input) 294 req.SetContext(ctx) 295 req.ApplyOptions(opts...) 296 return out, req.Send() 297 } 298 299 const opGetSigningPlatform = "GetSigningPlatform" 300 301 // GetSigningPlatformRequest generates a "aws/request.Request" representing the 302 // client's request for the GetSigningPlatform operation. The "output" return 303 // value will be populated with the request's response once the request completes 304 // successfully. 305 // 306 // Use "Send" method on the returned Request to send the API call to the service. 307 // the "output" return value is not valid until after Send returns without error. 308 // 309 // See GetSigningPlatform for more information on using the GetSigningPlatform 310 // API call, and error handling. 311 // 312 // This method is useful when you want to inject custom logic or configuration 313 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 314 // 315 // 316 // // Example sending a request using the GetSigningPlatformRequest method. 317 // req, resp := client.GetSigningPlatformRequest(params) 318 // 319 // err := req.Send() 320 // if err == nil { // resp is now filled 321 // fmt.Println(resp) 322 // } 323 // 324 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningPlatform 325 func (c *Signer) GetSigningPlatformRequest(input *GetSigningPlatformInput) (req *request.Request, output *GetSigningPlatformOutput) { 326 op := &request.Operation{ 327 Name: opGetSigningPlatform, 328 HTTPMethod: "GET", 329 HTTPPath: "/signing-platforms/{platformId}", 330 } 331 332 if input == nil { 333 input = &GetSigningPlatformInput{} 334 } 335 336 output = &GetSigningPlatformOutput{} 337 req = c.newRequest(op, input, output) 338 return 339 } 340 341 // GetSigningPlatform API operation for AWS Signer. 342 // 343 // Returns information on a specific signing platform. 344 // 345 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 346 // with awserr.Error's Code and Message methods to get detailed information about 347 // the error. 348 // 349 // See the AWS API reference guide for AWS Signer's 350 // API operation GetSigningPlatform for usage and error information. 351 // 352 // Returned Error Types: 353 // * ResourceNotFoundException 354 // A specified resource could not be found. 355 // 356 // * AccessDeniedException 357 // You do not have sufficient access to perform this action. 358 // 359 // * TooManyRequestsException 360 // The allowed number of job-signing requests has been exceeded. 361 // 362 // This error supersedes the error ThrottlingException. 363 // 364 // * InternalServiceErrorException 365 // An internal error occurred. 366 // 367 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningPlatform 368 func (c *Signer) GetSigningPlatform(input *GetSigningPlatformInput) (*GetSigningPlatformOutput, error) { 369 req, out := c.GetSigningPlatformRequest(input) 370 return out, req.Send() 371 } 372 373 // GetSigningPlatformWithContext is the same as GetSigningPlatform with the addition of 374 // the ability to pass a context and additional request options. 375 // 376 // See GetSigningPlatform for details on how to use this API operation. 377 // 378 // The context must be non-nil and will be used for request cancellation. If 379 // the context is nil a panic will occur. In the future the SDK may create 380 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 381 // for more information on using Contexts. 382 func (c *Signer) GetSigningPlatformWithContext(ctx aws.Context, input *GetSigningPlatformInput, opts ...request.Option) (*GetSigningPlatformOutput, error) { 383 req, out := c.GetSigningPlatformRequest(input) 384 req.SetContext(ctx) 385 req.ApplyOptions(opts...) 386 return out, req.Send() 387 } 388 389 const opGetSigningProfile = "GetSigningProfile" 390 391 // GetSigningProfileRequest generates a "aws/request.Request" representing the 392 // client's request for the GetSigningProfile operation. The "output" return 393 // value will be populated with the request's response once the request completes 394 // successfully. 395 // 396 // Use "Send" method on the returned Request to send the API call to the service. 397 // the "output" return value is not valid until after Send returns without error. 398 // 399 // See GetSigningProfile for more information on using the GetSigningProfile 400 // API call, and error handling. 401 // 402 // This method is useful when you want to inject custom logic or configuration 403 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 404 // 405 // 406 // // Example sending a request using the GetSigningProfileRequest method. 407 // req, resp := client.GetSigningProfileRequest(params) 408 // 409 // err := req.Send() 410 // if err == nil { // resp is now filled 411 // fmt.Println(resp) 412 // } 413 // 414 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningProfile 415 func (c *Signer) GetSigningProfileRequest(input *GetSigningProfileInput) (req *request.Request, output *GetSigningProfileOutput) { 416 op := &request.Operation{ 417 Name: opGetSigningProfile, 418 HTTPMethod: "GET", 419 HTTPPath: "/signing-profiles/{profileName}", 420 } 421 422 if input == nil { 423 input = &GetSigningProfileInput{} 424 } 425 426 output = &GetSigningProfileOutput{} 427 req = c.newRequest(op, input, output) 428 return 429 } 430 431 // GetSigningProfile API operation for AWS Signer. 432 // 433 // Returns information on a specific signing profile. 434 // 435 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 436 // with awserr.Error's Code and Message methods to get detailed information about 437 // the error. 438 // 439 // See the AWS API reference guide for AWS Signer's 440 // API operation GetSigningProfile for usage and error information. 441 // 442 // Returned Error Types: 443 // * ResourceNotFoundException 444 // A specified resource could not be found. 445 // 446 // * AccessDeniedException 447 // You do not have sufficient access to perform this action. 448 // 449 // * TooManyRequestsException 450 // The allowed number of job-signing requests has been exceeded. 451 // 452 // This error supersedes the error ThrottlingException. 453 // 454 // * InternalServiceErrorException 455 // An internal error occurred. 456 // 457 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/GetSigningProfile 458 func (c *Signer) GetSigningProfile(input *GetSigningProfileInput) (*GetSigningProfileOutput, error) { 459 req, out := c.GetSigningProfileRequest(input) 460 return out, req.Send() 461 } 462 463 // GetSigningProfileWithContext is the same as GetSigningProfile with the addition of 464 // the ability to pass a context and additional request options. 465 // 466 // See GetSigningProfile for details on how to use this API operation. 467 // 468 // The context must be non-nil and will be used for request cancellation. If 469 // the context is nil a panic will occur. In the future the SDK may create 470 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 471 // for more information on using Contexts. 472 func (c *Signer) GetSigningProfileWithContext(ctx aws.Context, input *GetSigningProfileInput, opts ...request.Option) (*GetSigningProfileOutput, error) { 473 req, out := c.GetSigningProfileRequest(input) 474 req.SetContext(ctx) 475 req.ApplyOptions(opts...) 476 return out, req.Send() 477 } 478 479 const opListProfilePermissions = "ListProfilePermissions" 480 481 // ListProfilePermissionsRequest generates a "aws/request.Request" representing the 482 // client's request for the ListProfilePermissions operation. The "output" return 483 // value will be populated with the request's response once the request completes 484 // successfully. 485 // 486 // Use "Send" method on the returned Request to send the API call to the service. 487 // the "output" return value is not valid until after Send returns without error. 488 // 489 // See ListProfilePermissions for more information on using the ListProfilePermissions 490 // API call, and error handling. 491 // 492 // This method is useful when you want to inject custom logic or configuration 493 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 494 // 495 // 496 // // Example sending a request using the ListProfilePermissionsRequest method. 497 // req, resp := client.ListProfilePermissionsRequest(params) 498 // 499 // err := req.Send() 500 // if err == nil { // resp is now filled 501 // fmt.Println(resp) 502 // } 503 // 504 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListProfilePermissions 505 func (c *Signer) ListProfilePermissionsRequest(input *ListProfilePermissionsInput) (req *request.Request, output *ListProfilePermissionsOutput) { 506 op := &request.Operation{ 507 Name: opListProfilePermissions, 508 HTTPMethod: "GET", 509 HTTPPath: "/signing-profiles/{profileName}/permissions", 510 } 511 512 if input == nil { 513 input = &ListProfilePermissionsInput{} 514 } 515 516 output = &ListProfilePermissionsOutput{} 517 req = c.newRequest(op, input, output) 518 return 519 } 520 521 // ListProfilePermissions API operation for AWS Signer. 522 // 523 // Lists the cross-account permissions associated with a signing profile. 524 // 525 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 526 // with awserr.Error's Code and Message methods to get detailed information about 527 // the error. 528 // 529 // See the AWS API reference guide for AWS Signer's 530 // API operation ListProfilePermissions for usage and error information. 531 // 532 // Returned Error Types: 533 // * ValidationException 534 // You signing certificate could not be validated. 535 // 536 // * ResourceNotFoundException 537 // A specified resource could not be found. 538 // 539 // * AccessDeniedException 540 // You do not have sufficient access to perform this action. 541 // 542 // * TooManyRequestsException 543 // The allowed number of job-signing requests has been exceeded. 544 // 545 // This error supersedes the error ThrottlingException. 546 // 547 // * InternalServiceErrorException 548 // An internal error occurred. 549 // 550 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListProfilePermissions 551 func (c *Signer) ListProfilePermissions(input *ListProfilePermissionsInput) (*ListProfilePermissionsOutput, error) { 552 req, out := c.ListProfilePermissionsRequest(input) 553 return out, req.Send() 554 } 555 556 // ListProfilePermissionsWithContext is the same as ListProfilePermissions with the addition of 557 // the ability to pass a context and additional request options. 558 // 559 // See ListProfilePermissions for details on how to use this API operation. 560 // 561 // The context must be non-nil and will be used for request cancellation. If 562 // the context is nil a panic will occur. In the future the SDK may create 563 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 564 // for more information on using Contexts. 565 func (c *Signer) ListProfilePermissionsWithContext(ctx aws.Context, input *ListProfilePermissionsInput, opts ...request.Option) (*ListProfilePermissionsOutput, error) { 566 req, out := c.ListProfilePermissionsRequest(input) 567 req.SetContext(ctx) 568 req.ApplyOptions(opts...) 569 return out, req.Send() 570 } 571 572 const opListSigningJobs = "ListSigningJobs" 573 574 // ListSigningJobsRequest generates a "aws/request.Request" representing the 575 // client's request for the ListSigningJobs operation. The "output" return 576 // value will be populated with the request's response once the request completes 577 // successfully. 578 // 579 // Use "Send" method on the returned Request to send the API call to the service. 580 // the "output" return value is not valid until after Send returns without error. 581 // 582 // See ListSigningJobs for more information on using the ListSigningJobs 583 // API call, and error handling. 584 // 585 // This method is useful when you want to inject custom logic or configuration 586 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 587 // 588 // 589 // // Example sending a request using the ListSigningJobsRequest method. 590 // req, resp := client.ListSigningJobsRequest(params) 591 // 592 // err := req.Send() 593 // if err == nil { // resp is now filled 594 // fmt.Println(resp) 595 // } 596 // 597 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs 598 func (c *Signer) ListSigningJobsRequest(input *ListSigningJobsInput) (req *request.Request, output *ListSigningJobsOutput) { 599 op := &request.Operation{ 600 Name: opListSigningJobs, 601 HTTPMethod: "GET", 602 HTTPPath: "/signing-jobs", 603 Paginator: &request.Paginator{ 604 InputTokens: []string{"nextToken"}, 605 OutputTokens: []string{"nextToken"}, 606 LimitToken: "maxResults", 607 TruncationToken: "", 608 }, 609 } 610 611 if input == nil { 612 input = &ListSigningJobsInput{} 613 } 614 615 output = &ListSigningJobsOutput{} 616 req = c.newRequest(op, input, output) 617 return 618 } 619 620 // ListSigningJobs API operation for AWS Signer. 621 // 622 // Lists all your signing jobs. You can use the maxResults parameter to limit 623 // the number of signing jobs that are returned in the response. If additional 624 // jobs remain to be listed, code signing returns a nextToken value. Use this 625 // value in subsequent calls to ListSigningJobs to fetch the remaining values. 626 // You can continue calling ListSigningJobs with your maxResults parameter and 627 // with new values that code signing returns in the nextToken parameter until 628 // all of your signing jobs have been returned. 629 // 630 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 631 // with awserr.Error's Code and Message methods to get detailed information about 632 // the error. 633 // 634 // See the AWS API reference guide for AWS Signer's 635 // API operation ListSigningJobs for usage and error information. 636 // 637 // Returned Error Types: 638 // * ValidationException 639 // You signing certificate could not be validated. 640 // 641 // * AccessDeniedException 642 // You do not have sufficient access to perform this action. 643 // 644 // * TooManyRequestsException 645 // The allowed number of job-signing requests has been exceeded. 646 // 647 // This error supersedes the error ThrottlingException. 648 // 649 // * InternalServiceErrorException 650 // An internal error occurred. 651 // 652 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningJobs 653 func (c *Signer) ListSigningJobs(input *ListSigningJobsInput) (*ListSigningJobsOutput, error) { 654 req, out := c.ListSigningJobsRequest(input) 655 return out, req.Send() 656 } 657 658 // ListSigningJobsWithContext is the same as ListSigningJobs with the addition of 659 // the ability to pass a context and additional request options. 660 // 661 // See ListSigningJobs for details on how to use this API operation. 662 // 663 // The context must be non-nil and will be used for request cancellation. If 664 // the context is nil a panic will occur. In the future the SDK may create 665 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 666 // for more information on using Contexts. 667 func (c *Signer) ListSigningJobsWithContext(ctx aws.Context, input *ListSigningJobsInput, opts ...request.Option) (*ListSigningJobsOutput, error) { 668 req, out := c.ListSigningJobsRequest(input) 669 req.SetContext(ctx) 670 req.ApplyOptions(opts...) 671 return out, req.Send() 672 } 673 674 // ListSigningJobsPages iterates over the pages of a ListSigningJobs operation, 675 // calling the "fn" function with the response data for each page. To stop 676 // iterating, return false from the fn function. 677 // 678 // See ListSigningJobs method for more information on how to use this operation. 679 // 680 // Note: This operation can generate multiple requests to a service. 681 // 682 // // Example iterating over at most 3 pages of a ListSigningJobs operation. 683 // pageNum := 0 684 // err := client.ListSigningJobsPages(params, 685 // func(page *signer.ListSigningJobsOutput, lastPage bool) bool { 686 // pageNum++ 687 // fmt.Println(page) 688 // return pageNum <= 3 689 // }) 690 // 691 func (c *Signer) ListSigningJobsPages(input *ListSigningJobsInput, fn func(*ListSigningJobsOutput, bool) bool) error { 692 return c.ListSigningJobsPagesWithContext(aws.BackgroundContext(), input, fn) 693 } 694 695 // ListSigningJobsPagesWithContext same as ListSigningJobsPages except 696 // it takes a Context and allows setting request options on the pages. 697 // 698 // The context must be non-nil and will be used for request cancellation. If 699 // the context is nil a panic will occur. In the future the SDK may create 700 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 701 // for more information on using Contexts. 702 func (c *Signer) ListSigningJobsPagesWithContext(ctx aws.Context, input *ListSigningJobsInput, fn func(*ListSigningJobsOutput, bool) bool, opts ...request.Option) error { 703 p := request.Pagination{ 704 NewRequest: func() (*request.Request, error) { 705 var inCpy *ListSigningJobsInput 706 if input != nil { 707 tmp := *input 708 inCpy = &tmp 709 } 710 req, _ := c.ListSigningJobsRequest(inCpy) 711 req.SetContext(ctx) 712 req.ApplyOptions(opts...) 713 return req, nil 714 }, 715 } 716 717 for p.Next() { 718 if !fn(p.Page().(*ListSigningJobsOutput), !p.HasNextPage()) { 719 break 720 } 721 } 722 723 return p.Err() 724 } 725 726 const opListSigningPlatforms = "ListSigningPlatforms" 727 728 // ListSigningPlatformsRequest generates a "aws/request.Request" representing the 729 // client's request for the ListSigningPlatforms operation. The "output" return 730 // value will be populated with the request's response once the request completes 731 // successfully. 732 // 733 // Use "Send" method on the returned Request to send the API call to the service. 734 // the "output" return value is not valid until after Send returns without error. 735 // 736 // See ListSigningPlatforms for more information on using the ListSigningPlatforms 737 // API call, and error handling. 738 // 739 // This method is useful when you want to inject custom logic or configuration 740 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 741 // 742 // 743 // // Example sending a request using the ListSigningPlatformsRequest method. 744 // req, resp := client.ListSigningPlatformsRequest(params) 745 // 746 // err := req.Send() 747 // if err == nil { // resp is now filled 748 // fmt.Println(resp) 749 // } 750 // 751 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningPlatforms 752 func (c *Signer) ListSigningPlatformsRequest(input *ListSigningPlatformsInput) (req *request.Request, output *ListSigningPlatformsOutput) { 753 op := &request.Operation{ 754 Name: opListSigningPlatforms, 755 HTTPMethod: "GET", 756 HTTPPath: "/signing-platforms", 757 Paginator: &request.Paginator{ 758 InputTokens: []string{"nextToken"}, 759 OutputTokens: []string{"nextToken"}, 760 LimitToken: "maxResults", 761 TruncationToken: "", 762 }, 763 } 764 765 if input == nil { 766 input = &ListSigningPlatformsInput{} 767 } 768 769 output = &ListSigningPlatformsOutput{} 770 req = c.newRequest(op, input, output) 771 return 772 } 773 774 // ListSigningPlatforms API operation for AWS Signer. 775 // 776 // Lists all signing platforms available in code signing that match the request 777 // parameters. If additional jobs remain to be listed, code signing returns 778 // a nextToken value. Use this value in subsequent calls to ListSigningJobs 779 // to fetch the remaining values. You can continue calling ListSigningJobs with 780 // your maxResults parameter and with new values that code signing returns in 781 // the nextToken parameter until all of your signing jobs have been returned. 782 // 783 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 784 // with awserr.Error's Code and Message methods to get detailed information about 785 // the error. 786 // 787 // See the AWS API reference guide for AWS Signer's 788 // API operation ListSigningPlatforms for usage and error information. 789 // 790 // Returned Error Types: 791 // * ValidationException 792 // You signing certificate could not be validated. 793 // 794 // * AccessDeniedException 795 // You do not have sufficient access to perform this action. 796 // 797 // * TooManyRequestsException 798 // The allowed number of job-signing requests has been exceeded. 799 // 800 // This error supersedes the error ThrottlingException. 801 // 802 // * InternalServiceErrorException 803 // An internal error occurred. 804 // 805 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningPlatforms 806 func (c *Signer) ListSigningPlatforms(input *ListSigningPlatformsInput) (*ListSigningPlatformsOutput, error) { 807 req, out := c.ListSigningPlatformsRequest(input) 808 return out, req.Send() 809 } 810 811 // ListSigningPlatformsWithContext is the same as ListSigningPlatforms with the addition of 812 // the ability to pass a context and additional request options. 813 // 814 // See ListSigningPlatforms for details on how to use this API operation. 815 // 816 // The context must be non-nil and will be used for request cancellation. If 817 // the context is nil a panic will occur. In the future the SDK may create 818 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 819 // for more information on using Contexts. 820 func (c *Signer) ListSigningPlatformsWithContext(ctx aws.Context, input *ListSigningPlatformsInput, opts ...request.Option) (*ListSigningPlatformsOutput, error) { 821 req, out := c.ListSigningPlatformsRequest(input) 822 req.SetContext(ctx) 823 req.ApplyOptions(opts...) 824 return out, req.Send() 825 } 826 827 // ListSigningPlatformsPages iterates over the pages of a ListSigningPlatforms operation, 828 // calling the "fn" function with the response data for each page. To stop 829 // iterating, return false from the fn function. 830 // 831 // See ListSigningPlatforms method for more information on how to use this operation. 832 // 833 // Note: This operation can generate multiple requests to a service. 834 // 835 // // Example iterating over at most 3 pages of a ListSigningPlatforms operation. 836 // pageNum := 0 837 // err := client.ListSigningPlatformsPages(params, 838 // func(page *signer.ListSigningPlatformsOutput, lastPage bool) bool { 839 // pageNum++ 840 // fmt.Println(page) 841 // return pageNum <= 3 842 // }) 843 // 844 func (c *Signer) ListSigningPlatformsPages(input *ListSigningPlatformsInput, fn func(*ListSigningPlatformsOutput, bool) bool) error { 845 return c.ListSigningPlatformsPagesWithContext(aws.BackgroundContext(), input, fn) 846 } 847 848 // ListSigningPlatformsPagesWithContext same as ListSigningPlatformsPages except 849 // it takes a Context and allows setting request options on the pages. 850 // 851 // The context must be non-nil and will be used for request cancellation. If 852 // the context is nil a panic will occur. In the future the SDK may create 853 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 854 // for more information on using Contexts. 855 func (c *Signer) ListSigningPlatformsPagesWithContext(ctx aws.Context, input *ListSigningPlatformsInput, fn func(*ListSigningPlatformsOutput, bool) bool, opts ...request.Option) error { 856 p := request.Pagination{ 857 NewRequest: func() (*request.Request, error) { 858 var inCpy *ListSigningPlatformsInput 859 if input != nil { 860 tmp := *input 861 inCpy = &tmp 862 } 863 req, _ := c.ListSigningPlatformsRequest(inCpy) 864 req.SetContext(ctx) 865 req.ApplyOptions(opts...) 866 return req, nil 867 }, 868 } 869 870 for p.Next() { 871 if !fn(p.Page().(*ListSigningPlatformsOutput), !p.HasNextPage()) { 872 break 873 } 874 } 875 876 return p.Err() 877 } 878 879 const opListSigningProfiles = "ListSigningProfiles" 880 881 // ListSigningProfilesRequest generates a "aws/request.Request" representing the 882 // client's request for the ListSigningProfiles operation. The "output" return 883 // value will be populated with the request's response once the request completes 884 // successfully. 885 // 886 // Use "Send" method on the returned Request to send the API call to the service. 887 // the "output" return value is not valid until after Send returns without error. 888 // 889 // See ListSigningProfiles for more information on using the ListSigningProfiles 890 // API call, and error handling. 891 // 892 // This method is useful when you want to inject custom logic or configuration 893 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 894 // 895 // 896 // // Example sending a request using the ListSigningProfilesRequest method. 897 // req, resp := client.ListSigningProfilesRequest(params) 898 // 899 // err := req.Send() 900 // if err == nil { // resp is now filled 901 // fmt.Println(resp) 902 // } 903 // 904 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles 905 func (c *Signer) ListSigningProfilesRequest(input *ListSigningProfilesInput) (req *request.Request, output *ListSigningProfilesOutput) { 906 op := &request.Operation{ 907 Name: opListSigningProfiles, 908 HTTPMethod: "GET", 909 HTTPPath: "/signing-profiles", 910 Paginator: &request.Paginator{ 911 InputTokens: []string{"nextToken"}, 912 OutputTokens: []string{"nextToken"}, 913 LimitToken: "maxResults", 914 TruncationToken: "", 915 }, 916 } 917 918 if input == nil { 919 input = &ListSigningProfilesInput{} 920 } 921 922 output = &ListSigningProfilesOutput{} 923 req = c.newRequest(op, input, output) 924 return 925 } 926 927 // ListSigningProfiles API operation for AWS Signer. 928 // 929 // Lists all available signing profiles in your AWS account. Returns only profiles 930 // with an ACTIVE status unless the includeCanceled request field is set to 931 // true. If additional jobs remain to be listed, code signing returns a nextToken 932 // value. Use this value in subsequent calls to ListSigningJobs to fetch the 933 // remaining values. You can continue calling ListSigningJobs with your maxResults 934 // parameter and with new values that code signing returns in the nextToken 935 // parameter until all of your signing jobs have been returned. 936 // 937 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 938 // with awserr.Error's Code and Message methods to get detailed information about 939 // the error. 940 // 941 // See the AWS API reference guide for AWS Signer's 942 // API operation ListSigningProfiles for usage and error information. 943 // 944 // Returned Error Types: 945 // * AccessDeniedException 946 // You do not have sufficient access to perform this action. 947 // 948 // * TooManyRequestsException 949 // The allowed number of job-signing requests has been exceeded. 950 // 951 // This error supersedes the error ThrottlingException. 952 // 953 // * InternalServiceErrorException 954 // An internal error occurred. 955 // 956 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListSigningProfiles 957 func (c *Signer) ListSigningProfiles(input *ListSigningProfilesInput) (*ListSigningProfilesOutput, error) { 958 req, out := c.ListSigningProfilesRequest(input) 959 return out, req.Send() 960 } 961 962 // ListSigningProfilesWithContext is the same as ListSigningProfiles with the addition of 963 // the ability to pass a context and additional request options. 964 // 965 // See ListSigningProfiles for details on how to use this API operation. 966 // 967 // The context must be non-nil and will be used for request cancellation. If 968 // the context is nil a panic will occur. In the future the SDK may create 969 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 970 // for more information on using Contexts. 971 func (c *Signer) ListSigningProfilesWithContext(ctx aws.Context, input *ListSigningProfilesInput, opts ...request.Option) (*ListSigningProfilesOutput, error) { 972 req, out := c.ListSigningProfilesRequest(input) 973 req.SetContext(ctx) 974 req.ApplyOptions(opts...) 975 return out, req.Send() 976 } 977 978 // ListSigningProfilesPages iterates over the pages of a ListSigningProfiles operation, 979 // calling the "fn" function with the response data for each page. To stop 980 // iterating, return false from the fn function. 981 // 982 // See ListSigningProfiles method for more information on how to use this operation. 983 // 984 // Note: This operation can generate multiple requests to a service. 985 // 986 // // Example iterating over at most 3 pages of a ListSigningProfiles operation. 987 // pageNum := 0 988 // err := client.ListSigningProfilesPages(params, 989 // func(page *signer.ListSigningProfilesOutput, lastPage bool) bool { 990 // pageNum++ 991 // fmt.Println(page) 992 // return pageNum <= 3 993 // }) 994 // 995 func (c *Signer) ListSigningProfilesPages(input *ListSigningProfilesInput, fn func(*ListSigningProfilesOutput, bool) bool) error { 996 return c.ListSigningProfilesPagesWithContext(aws.BackgroundContext(), input, fn) 997 } 998 999 // ListSigningProfilesPagesWithContext same as ListSigningProfilesPages except 1000 // it takes a Context and allows setting request options on the pages. 1001 // 1002 // The context must be non-nil and will be used for request cancellation. If 1003 // the context is nil a panic will occur. In the future the SDK may create 1004 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1005 // for more information on using Contexts. 1006 func (c *Signer) ListSigningProfilesPagesWithContext(ctx aws.Context, input *ListSigningProfilesInput, fn func(*ListSigningProfilesOutput, bool) bool, opts ...request.Option) error { 1007 p := request.Pagination{ 1008 NewRequest: func() (*request.Request, error) { 1009 var inCpy *ListSigningProfilesInput 1010 if input != nil { 1011 tmp := *input 1012 inCpy = &tmp 1013 } 1014 req, _ := c.ListSigningProfilesRequest(inCpy) 1015 req.SetContext(ctx) 1016 req.ApplyOptions(opts...) 1017 return req, nil 1018 }, 1019 } 1020 1021 for p.Next() { 1022 if !fn(p.Page().(*ListSigningProfilesOutput), !p.HasNextPage()) { 1023 break 1024 } 1025 } 1026 1027 return p.Err() 1028 } 1029 1030 const opListTagsForResource = "ListTagsForResource" 1031 1032 // ListTagsForResourceRequest generates a "aws/request.Request" representing the 1033 // client's request for the ListTagsForResource operation. The "output" return 1034 // value will be populated with the request's response once the request completes 1035 // successfully. 1036 // 1037 // Use "Send" method on the returned Request to send the API call to the service. 1038 // the "output" return value is not valid until after Send returns without error. 1039 // 1040 // See ListTagsForResource for more information on using the ListTagsForResource 1041 // API call, and error handling. 1042 // 1043 // This method is useful when you want to inject custom logic or configuration 1044 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1045 // 1046 // 1047 // // Example sending a request using the ListTagsForResourceRequest method. 1048 // req, resp := client.ListTagsForResourceRequest(params) 1049 // 1050 // err := req.Send() 1051 // if err == nil { // resp is now filled 1052 // fmt.Println(resp) 1053 // } 1054 // 1055 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListTagsForResource 1056 func (c *Signer) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 1057 op := &request.Operation{ 1058 Name: opListTagsForResource, 1059 HTTPMethod: "GET", 1060 HTTPPath: "/tags/{resourceArn}", 1061 } 1062 1063 if input == nil { 1064 input = &ListTagsForResourceInput{} 1065 } 1066 1067 output = &ListTagsForResourceOutput{} 1068 req = c.newRequest(op, input, output) 1069 return 1070 } 1071 1072 // ListTagsForResource API operation for AWS Signer. 1073 // 1074 // Returns a list of the tags associated with a signing profile resource. 1075 // 1076 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1077 // with awserr.Error's Code and Message methods to get detailed information about 1078 // the error. 1079 // 1080 // See the AWS API reference guide for AWS Signer's 1081 // API operation ListTagsForResource for usage and error information. 1082 // 1083 // Returned Error Types: 1084 // * InternalServiceErrorException 1085 // An internal error occurred. 1086 // 1087 // * BadRequestException 1088 // The request contains invalid parameters for the ARN or tags. This exception 1089 // also occurs when you call a tagging API on a cancelled signing profile. 1090 // 1091 // * NotFoundException 1092 // The signing profile was not found. 1093 // 1094 // * TooManyRequestsException 1095 // The allowed number of job-signing requests has been exceeded. 1096 // 1097 // This error supersedes the error ThrottlingException. 1098 // 1099 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/ListTagsForResource 1100 func (c *Signer) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 1101 req, out := c.ListTagsForResourceRequest(input) 1102 return out, req.Send() 1103 } 1104 1105 // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 1106 // the ability to pass a context and additional request options. 1107 // 1108 // See ListTagsForResource for details on how to use this API operation. 1109 // 1110 // The context must be non-nil and will be used for request cancellation. If 1111 // the context is nil a panic will occur. In the future the SDK may create 1112 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1113 // for more information on using Contexts. 1114 func (c *Signer) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 1115 req, out := c.ListTagsForResourceRequest(input) 1116 req.SetContext(ctx) 1117 req.ApplyOptions(opts...) 1118 return out, req.Send() 1119 } 1120 1121 const opPutSigningProfile = "PutSigningProfile" 1122 1123 // PutSigningProfileRequest generates a "aws/request.Request" representing the 1124 // client's request for the PutSigningProfile operation. The "output" return 1125 // value will be populated with the request's response once the request completes 1126 // successfully. 1127 // 1128 // Use "Send" method on the returned Request to send the API call to the service. 1129 // the "output" return value is not valid until after Send returns without error. 1130 // 1131 // See PutSigningProfile for more information on using the PutSigningProfile 1132 // API call, and error handling. 1133 // 1134 // This method is useful when you want to inject custom logic or configuration 1135 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1136 // 1137 // 1138 // // Example sending a request using the PutSigningProfileRequest method. 1139 // req, resp := client.PutSigningProfileRequest(params) 1140 // 1141 // err := req.Send() 1142 // if err == nil { // resp is now filled 1143 // fmt.Println(resp) 1144 // } 1145 // 1146 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfile 1147 func (c *Signer) PutSigningProfileRequest(input *PutSigningProfileInput) (req *request.Request, output *PutSigningProfileOutput) { 1148 op := &request.Operation{ 1149 Name: opPutSigningProfile, 1150 HTTPMethod: "PUT", 1151 HTTPPath: "/signing-profiles/{profileName}", 1152 } 1153 1154 if input == nil { 1155 input = &PutSigningProfileInput{} 1156 } 1157 1158 output = &PutSigningProfileOutput{} 1159 req = c.newRequest(op, input, output) 1160 return 1161 } 1162 1163 // PutSigningProfile API operation for AWS Signer. 1164 // 1165 // Creates a signing profile. A signing profile is a code signing template that 1166 // can be used to carry out a pre-defined signing job. For more information, 1167 // see http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html 1168 // (http://docs.aws.amazon.com/signer/latest/developerguide/gs-profile.html) 1169 // 1170 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1171 // with awserr.Error's Code and Message methods to get detailed information about 1172 // the error. 1173 // 1174 // See the AWS API reference guide for AWS Signer's 1175 // API operation PutSigningProfile for usage and error information. 1176 // 1177 // Returned Error Types: 1178 // * ResourceNotFoundException 1179 // A specified resource could not be found. 1180 // 1181 // * AccessDeniedException 1182 // You do not have sufficient access to perform this action. 1183 // 1184 // * ValidationException 1185 // You signing certificate could not be validated. 1186 // 1187 // * TooManyRequestsException 1188 // The allowed number of job-signing requests has been exceeded. 1189 // 1190 // This error supersedes the error ThrottlingException. 1191 // 1192 // * InternalServiceErrorException 1193 // An internal error occurred. 1194 // 1195 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/PutSigningProfile 1196 func (c *Signer) PutSigningProfile(input *PutSigningProfileInput) (*PutSigningProfileOutput, error) { 1197 req, out := c.PutSigningProfileRequest(input) 1198 return out, req.Send() 1199 } 1200 1201 // PutSigningProfileWithContext is the same as PutSigningProfile with the addition of 1202 // the ability to pass a context and additional request options. 1203 // 1204 // See PutSigningProfile for details on how to use this API operation. 1205 // 1206 // The context must be non-nil and will be used for request cancellation. If 1207 // the context is nil a panic will occur. In the future the SDK may create 1208 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1209 // for more information on using Contexts. 1210 func (c *Signer) PutSigningProfileWithContext(ctx aws.Context, input *PutSigningProfileInput, opts ...request.Option) (*PutSigningProfileOutput, error) { 1211 req, out := c.PutSigningProfileRequest(input) 1212 req.SetContext(ctx) 1213 req.ApplyOptions(opts...) 1214 return out, req.Send() 1215 } 1216 1217 const opRemoveProfilePermission = "RemoveProfilePermission" 1218 1219 // RemoveProfilePermissionRequest generates a "aws/request.Request" representing the 1220 // client's request for the RemoveProfilePermission operation. The "output" return 1221 // value will be populated with the request's response once the request completes 1222 // successfully. 1223 // 1224 // Use "Send" method on the returned Request to send the API call to the service. 1225 // the "output" return value is not valid until after Send returns without error. 1226 // 1227 // See RemoveProfilePermission for more information on using the RemoveProfilePermission 1228 // API call, and error handling. 1229 // 1230 // This method is useful when you want to inject custom logic or configuration 1231 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1232 // 1233 // 1234 // // Example sending a request using the RemoveProfilePermissionRequest method. 1235 // req, resp := client.RemoveProfilePermissionRequest(params) 1236 // 1237 // err := req.Send() 1238 // if err == nil { // resp is now filled 1239 // fmt.Println(resp) 1240 // } 1241 // 1242 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RemoveProfilePermission 1243 func (c *Signer) RemoveProfilePermissionRequest(input *RemoveProfilePermissionInput) (req *request.Request, output *RemoveProfilePermissionOutput) { 1244 op := &request.Operation{ 1245 Name: opRemoveProfilePermission, 1246 HTTPMethod: "DELETE", 1247 HTTPPath: "/signing-profiles/{profileName}/permissions/{statementId}", 1248 } 1249 1250 if input == nil { 1251 input = &RemoveProfilePermissionInput{} 1252 } 1253 1254 output = &RemoveProfilePermissionOutput{} 1255 req = c.newRequest(op, input, output) 1256 return 1257 } 1258 1259 // RemoveProfilePermission API operation for AWS Signer. 1260 // 1261 // Removes cross-account permissions from a signing profile. 1262 // 1263 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1264 // with awserr.Error's Code and Message methods to get detailed information about 1265 // the error. 1266 // 1267 // See the AWS API reference guide for AWS Signer's 1268 // API operation RemoveProfilePermission for usage and error information. 1269 // 1270 // Returned Error Types: 1271 // * ValidationException 1272 // You signing certificate could not be validated. 1273 // 1274 // * ResourceNotFoundException 1275 // A specified resource could not be found. 1276 // 1277 // * AccessDeniedException 1278 // You do not have sufficient access to perform this action. 1279 // 1280 // * ConflictException 1281 // The resource encountered a conflicting state. 1282 // 1283 // * TooManyRequestsException 1284 // The allowed number of job-signing requests has been exceeded. 1285 // 1286 // This error supersedes the error ThrottlingException. 1287 // 1288 // * InternalServiceErrorException 1289 // An internal error occurred. 1290 // 1291 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RemoveProfilePermission 1292 func (c *Signer) RemoveProfilePermission(input *RemoveProfilePermissionInput) (*RemoveProfilePermissionOutput, error) { 1293 req, out := c.RemoveProfilePermissionRequest(input) 1294 return out, req.Send() 1295 } 1296 1297 // RemoveProfilePermissionWithContext is the same as RemoveProfilePermission with the addition of 1298 // the ability to pass a context and additional request options. 1299 // 1300 // See RemoveProfilePermission for details on how to use this API operation. 1301 // 1302 // The context must be non-nil and will be used for request cancellation. If 1303 // the context is nil a panic will occur. In the future the SDK may create 1304 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1305 // for more information on using Contexts. 1306 func (c *Signer) RemoveProfilePermissionWithContext(ctx aws.Context, input *RemoveProfilePermissionInput, opts ...request.Option) (*RemoveProfilePermissionOutput, error) { 1307 req, out := c.RemoveProfilePermissionRequest(input) 1308 req.SetContext(ctx) 1309 req.ApplyOptions(opts...) 1310 return out, req.Send() 1311 } 1312 1313 const opRevokeSignature = "RevokeSignature" 1314 1315 // RevokeSignatureRequest generates a "aws/request.Request" representing the 1316 // client's request for the RevokeSignature operation. The "output" return 1317 // value will be populated with the request's response once the request completes 1318 // successfully. 1319 // 1320 // Use "Send" method on the returned Request to send the API call to the service. 1321 // the "output" return value is not valid until after Send returns without error. 1322 // 1323 // See RevokeSignature for more information on using the RevokeSignature 1324 // API call, and error handling. 1325 // 1326 // This method is useful when you want to inject custom logic or configuration 1327 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1328 // 1329 // 1330 // // Example sending a request using the RevokeSignatureRequest method. 1331 // req, resp := client.RevokeSignatureRequest(params) 1332 // 1333 // err := req.Send() 1334 // if err == nil { // resp is now filled 1335 // fmt.Println(resp) 1336 // } 1337 // 1338 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSignature 1339 func (c *Signer) RevokeSignatureRequest(input *RevokeSignatureInput) (req *request.Request, output *RevokeSignatureOutput) { 1340 op := &request.Operation{ 1341 Name: opRevokeSignature, 1342 HTTPMethod: "PUT", 1343 HTTPPath: "/signing-jobs/{jobId}/revoke", 1344 } 1345 1346 if input == nil { 1347 input = &RevokeSignatureInput{} 1348 } 1349 1350 output = &RevokeSignatureOutput{} 1351 req = c.newRequest(op, input, output) 1352 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1353 return 1354 } 1355 1356 // RevokeSignature API operation for AWS Signer. 1357 // 1358 // Changes the state of a signing job to REVOKED. This indicates that the signature 1359 // is no longer valid. 1360 // 1361 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1362 // with awserr.Error's Code and Message methods to get detailed information about 1363 // the error. 1364 // 1365 // See the AWS API reference guide for AWS Signer's 1366 // API operation RevokeSignature for usage and error information. 1367 // 1368 // Returned Error Types: 1369 // * ValidationException 1370 // You signing certificate could not be validated. 1371 // 1372 // * AccessDeniedException 1373 // You do not have sufficient access to perform this action. 1374 // 1375 // * ResourceNotFoundException 1376 // A specified resource could not be found. 1377 // 1378 // * TooManyRequestsException 1379 // The allowed number of job-signing requests has been exceeded. 1380 // 1381 // This error supersedes the error ThrottlingException. 1382 // 1383 // * InternalServiceErrorException 1384 // An internal error occurred. 1385 // 1386 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSignature 1387 func (c *Signer) RevokeSignature(input *RevokeSignatureInput) (*RevokeSignatureOutput, error) { 1388 req, out := c.RevokeSignatureRequest(input) 1389 return out, req.Send() 1390 } 1391 1392 // RevokeSignatureWithContext is the same as RevokeSignature with the addition of 1393 // the ability to pass a context and additional request options. 1394 // 1395 // See RevokeSignature for details on how to use this API operation. 1396 // 1397 // The context must be non-nil and will be used for request cancellation. If 1398 // the context is nil a panic will occur. In the future the SDK may create 1399 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1400 // for more information on using Contexts. 1401 func (c *Signer) RevokeSignatureWithContext(ctx aws.Context, input *RevokeSignatureInput, opts ...request.Option) (*RevokeSignatureOutput, error) { 1402 req, out := c.RevokeSignatureRequest(input) 1403 req.SetContext(ctx) 1404 req.ApplyOptions(opts...) 1405 return out, req.Send() 1406 } 1407 1408 const opRevokeSigningProfile = "RevokeSigningProfile" 1409 1410 // RevokeSigningProfileRequest generates a "aws/request.Request" representing the 1411 // client's request for the RevokeSigningProfile operation. The "output" return 1412 // value will be populated with the request's response once the request completes 1413 // successfully. 1414 // 1415 // Use "Send" method on the returned Request to send the API call to the service. 1416 // the "output" return value is not valid until after Send returns without error. 1417 // 1418 // See RevokeSigningProfile for more information on using the RevokeSigningProfile 1419 // API call, and error handling. 1420 // 1421 // This method is useful when you want to inject custom logic or configuration 1422 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1423 // 1424 // 1425 // // Example sending a request using the RevokeSigningProfileRequest method. 1426 // req, resp := client.RevokeSigningProfileRequest(params) 1427 // 1428 // err := req.Send() 1429 // if err == nil { // resp is now filled 1430 // fmt.Println(resp) 1431 // } 1432 // 1433 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSigningProfile 1434 func (c *Signer) RevokeSigningProfileRequest(input *RevokeSigningProfileInput) (req *request.Request, output *RevokeSigningProfileOutput) { 1435 op := &request.Operation{ 1436 Name: opRevokeSigningProfile, 1437 HTTPMethod: "PUT", 1438 HTTPPath: "/signing-profiles/{profileName}/revoke", 1439 } 1440 1441 if input == nil { 1442 input = &RevokeSigningProfileInput{} 1443 } 1444 1445 output = &RevokeSigningProfileOutput{} 1446 req = c.newRequest(op, input, output) 1447 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1448 return 1449 } 1450 1451 // RevokeSigningProfile API operation for AWS Signer. 1452 // 1453 // Changes the state of a signing profile to REVOKED. This indicates that signatures 1454 // generated using the signing profile after an effective start date are no 1455 // longer valid. 1456 // 1457 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1458 // with awserr.Error's Code and Message methods to get detailed information about 1459 // the error. 1460 // 1461 // See the AWS API reference guide for AWS Signer's 1462 // API operation RevokeSigningProfile for usage and error information. 1463 // 1464 // Returned Error Types: 1465 // * ValidationException 1466 // You signing certificate could not be validated. 1467 // 1468 // * AccessDeniedException 1469 // You do not have sufficient access to perform this action. 1470 // 1471 // * ResourceNotFoundException 1472 // A specified resource could not be found. 1473 // 1474 // * TooManyRequestsException 1475 // The allowed number of job-signing requests has been exceeded. 1476 // 1477 // This error supersedes the error ThrottlingException. 1478 // 1479 // * InternalServiceErrorException 1480 // An internal error occurred. 1481 // 1482 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/RevokeSigningProfile 1483 func (c *Signer) RevokeSigningProfile(input *RevokeSigningProfileInput) (*RevokeSigningProfileOutput, error) { 1484 req, out := c.RevokeSigningProfileRequest(input) 1485 return out, req.Send() 1486 } 1487 1488 // RevokeSigningProfileWithContext is the same as RevokeSigningProfile with the addition of 1489 // the ability to pass a context and additional request options. 1490 // 1491 // See RevokeSigningProfile for details on how to use this API operation. 1492 // 1493 // The context must be non-nil and will be used for request cancellation. If 1494 // the context is nil a panic will occur. In the future the SDK may create 1495 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1496 // for more information on using Contexts. 1497 func (c *Signer) RevokeSigningProfileWithContext(ctx aws.Context, input *RevokeSigningProfileInput, opts ...request.Option) (*RevokeSigningProfileOutput, error) { 1498 req, out := c.RevokeSigningProfileRequest(input) 1499 req.SetContext(ctx) 1500 req.ApplyOptions(opts...) 1501 return out, req.Send() 1502 } 1503 1504 const opStartSigningJob = "StartSigningJob" 1505 1506 // StartSigningJobRequest generates a "aws/request.Request" representing the 1507 // client's request for the StartSigningJob operation. The "output" return 1508 // value will be populated with the request's response once the request completes 1509 // successfully. 1510 // 1511 // Use "Send" method on the returned Request to send the API call to the service. 1512 // the "output" return value is not valid until after Send returns without error. 1513 // 1514 // See StartSigningJob for more information on using the StartSigningJob 1515 // API call, and error handling. 1516 // 1517 // This method is useful when you want to inject custom logic or configuration 1518 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1519 // 1520 // 1521 // // Example sending a request using the StartSigningJobRequest method. 1522 // req, resp := client.StartSigningJobRequest(params) 1523 // 1524 // err := req.Send() 1525 // if err == nil { // resp is now filled 1526 // fmt.Println(resp) 1527 // } 1528 // 1529 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJob 1530 func (c *Signer) StartSigningJobRequest(input *StartSigningJobInput) (req *request.Request, output *StartSigningJobOutput) { 1531 op := &request.Operation{ 1532 Name: opStartSigningJob, 1533 HTTPMethod: "POST", 1534 HTTPPath: "/signing-jobs", 1535 } 1536 1537 if input == nil { 1538 input = &StartSigningJobInput{} 1539 } 1540 1541 output = &StartSigningJobOutput{} 1542 req = c.newRequest(op, input, output) 1543 return 1544 } 1545 1546 // StartSigningJob API operation for AWS Signer. 1547 // 1548 // Initiates a signing job to be performed on the code provided. Signing jobs 1549 // are viewable by the ListSigningJobs operation for two years after they are 1550 // performed. Note the following requirements: 1551 // 1552 // * You must create an Amazon S3 source bucket. For more information, see 1553 // Create a Bucket (http://docs.aws.amazon.com/AmazonS3/latest/gsg/CreatingABucket.html) 1554 // in the Amazon S3 Getting Started Guide. 1555 // 1556 // * Your S3 source bucket must be version enabled. 1557 // 1558 // * You must create an S3 destination bucket. Code signing uses your S3 1559 // destination bucket to write your signed code. 1560 // 1561 // * You specify the name of the source and destination buckets when calling 1562 // the StartSigningJob operation. 1563 // 1564 // * You must also specify a request token that identifies your request to 1565 // code signing. 1566 // 1567 // You can call the DescribeSigningJob and the ListSigningJobs actions after 1568 // you call StartSigningJob. 1569 // 1570 // For a Java example that shows how to use this action, see http://docs.aws.amazon.com/acm/latest/userguide/ 1571 // (http://docs.aws.amazon.com/acm/latest/userguide/) 1572 // 1573 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1574 // with awserr.Error's Code and Message methods to get detailed information about 1575 // the error. 1576 // 1577 // See the AWS API reference guide for AWS Signer's 1578 // API operation StartSigningJob for usage and error information. 1579 // 1580 // Returned Error Types: 1581 // * ValidationException 1582 // You signing certificate could not be validated. 1583 // 1584 // * ResourceNotFoundException 1585 // A specified resource could not be found. 1586 // 1587 // * AccessDeniedException 1588 // You do not have sufficient access to perform this action. 1589 // 1590 // * ThrottlingException 1591 // The request was denied due to request throttling. 1592 // 1593 // Instead of this error, TooManyRequestsException should be used. 1594 // 1595 // * TooManyRequestsException 1596 // The allowed number of job-signing requests has been exceeded. 1597 // 1598 // This error supersedes the error ThrottlingException. 1599 // 1600 // * InternalServiceErrorException 1601 // An internal error occurred. 1602 // 1603 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/StartSigningJob 1604 func (c *Signer) StartSigningJob(input *StartSigningJobInput) (*StartSigningJobOutput, error) { 1605 req, out := c.StartSigningJobRequest(input) 1606 return out, req.Send() 1607 } 1608 1609 // StartSigningJobWithContext is the same as StartSigningJob with the addition of 1610 // the ability to pass a context and additional request options. 1611 // 1612 // See StartSigningJob for details on how to use this API operation. 1613 // 1614 // The context must be non-nil and will be used for request cancellation. If 1615 // the context is nil a panic will occur. In the future the SDK may create 1616 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1617 // for more information on using Contexts. 1618 func (c *Signer) StartSigningJobWithContext(ctx aws.Context, input *StartSigningJobInput, opts ...request.Option) (*StartSigningJobOutput, error) { 1619 req, out := c.StartSigningJobRequest(input) 1620 req.SetContext(ctx) 1621 req.ApplyOptions(opts...) 1622 return out, req.Send() 1623 } 1624 1625 const opTagResource = "TagResource" 1626 1627 // TagResourceRequest generates a "aws/request.Request" representing the 1628 // client's request for the TagResource operation. The "output" return 1629 // value will be populated with the request's response once the request completes 1630 // successfully. 1631 // 1632 // Use "Send" method on the returned Request to send the API call to the service. 1633 // the "output" return value is not valid until after Send returns without error. 1634 // 1635 // See TagResource for more information on using the TagResource 1636 // API call, and error handling. 1637 // 1638 // This method is useful when you want to inject custom logic or configuration 1639 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1640 // 1641 // 1642 // // Example sending a request using the TagResourceRequest method. 1643 // req, resp := client.TagResourceRequest(params) 1644 // 1645 // err := req.Send() 1646 // if err == nil { // resp is now filled 1647 // fmt.Println(resp) 1648 // } 1649 // 1650 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TagResource 1651 func (c *Signer) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 1652 op := &request.Operation{ 1653 Name: opTagResource, 1654 HTTPMethod: "POST", 1655 HTTPPath: "/tags/{resourceArn}", 1656 } 1657 1658 if input == nil { 1659 input = &TagResourceInput{} 1660 } 1661 1662 output = &TagResourceOutput{} 1663 req = c.newRequest(op, input, output) 1664 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1665 return 1666 } 1667 1668 // TagResource API operation for AWS Signer. 1669 // 1670 // Adds one or more tags to a signing profile. Tags are labels that you can 1671 // use to identify and organize your AWS resources. Each tag consists of a key 1672 // and an optional value. To specify the signing profile, use its Amazon Resource 1673 // Name (ARN). To specify the tag, use a key-value pair. 1674 // 1675 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1676 // with awserr.Error's Code and Message methods to get detailed information about 1677 // the error. 1678 // 1679 // See the AWS API reference guide for AWS Signer's 1680 // API operation TagResource for usage and error information. 1681 // 1682 // Returned Error Types: 1683 // * InternalServiceErrorException 1684 // An internal error occurred. 1685 // 1686 // * BadRequestException 1687 // The request contains invalid parameters for the ARN or tags. This exception 1688 // also occurs when you call a tagging API on a cancelled signing profile. 1689 // 1690 // * NotFoundException 1691 // The signing profile was not found. 1692 // 1693 // * TooManyRequestsException 1694 // The allowed number of job-signing requests has been exceeded. 1695 // 1696 // This error supersedes the error ThrottlingException. 1697 // 1698 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/TagResource 1699 func (c *Signer) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 1700 req, out := c.TagResourceRequest(input) 1701 return out, req.Send() 1702 } 1703 1704 // TagResourceWithContext is the same as TagResource with the addition of 1705 // the ability to pass a context and additional request options. 1706 // 1707 // See TagResource for details on how to use this API operation. 1708 // 1709 // The context must be non-nil and will be used for request cancellation. If 1710 // the context is nil a panic will occur. In the future the SDK may create 1711 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1712 // for more information on using Contexts. 1713 func (c *Signer) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 1714 req, out := c.TagResourceRequest(input) 1715 req.SetContext(ctx) 1716 req.ApplyOptions(opts...) 1717 return out, req.Send() 1718 } 1719 1720 const opUntagResource = "UntagResource" 1721 1722 // UntagResourceRequest generates a "aws/request.Request" representing the 1723 // client's request for the UntagResource operation. The "output" return 1724 // value will be populated with the request's response once the request completes 1725 // successfully. 1726 // 1727 // Use "Send" method on the returned Request to send the API call to the service. 1728 // the "output" return value is not valid until after Send returns without error. 1729 // 1730 // See UntagResource for more information on using the UntagResource 1731 // API call, and error handling. 1732 // 1733 // This method is useful when you want to inject custom logic or configuration 1734 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1735 // 1736 // 1737 // // Example sending a request using the UntagResourceRequest method. 1738 // req, resp := client.UntagResourceRequest(params) 1739 // 1740 // err := req.Send() 1741 // if err == nil { // resp is now filled 1742 // fmt.Println(resp) 1743 // } 1744 // 1745 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/UntagResource 1746 func (c *Signer) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 1747 op := &request.Operation{ 1748 Name: opUntagResource, 1749 HTTPMethod: "DELETE", 1750 HTTPPath: "/tags/{resourceArn}", 1751 } 1752 1753 if input == nil { 1754 input = &UntagResourceInput{} 1755 } 1756 1757 output = &UntagResourceOutput{} 1758 req = c.newRequest(op, input, output) 1759 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1760 return 1761 } 1762 1763 // UntagResource API operation for AWS Signer. 1764 // 1765 // Removes one or more tags from a signing profile. To remove the tags, specify 1766 // a list of tag keys. 1767 // 1768 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1769 // with awserr.Error's Code and Message methods to get detailed information about 1770 // the error. 1771 // 1772 // See the AWS API reference guide for AWS Signer's 1773 // API operation UntagResource for usage and error information. 1774 // 1775 // Returned Error Types: 1776 // * InternalServiceErrorException 1777 // An internal error occurred. 1778 // 1779 // * BadRequestException 1780 // The request contains invalid parameters for the ARN or tags. This exception 1781 // also occurs when you call a tagging API on a cancelled signing profile. 1782 // 1783 // * NotFoundException 1784 // The signing profile was not found. 1785 // 1786 // * TooManyRequestsException 1787 // The allowed number of job-signing requests has been exceeded. 1788 // 1789 // This error supersedes the error ThrottlingException. 1790 // 1791 // See also, https://docs.aws.amazon.com/goto/WebAPI/signer-2017-08-25/UntagResource 1792 func (c *Signer) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 1793 req, out := c.UntagResourceRequest(input) 1794 return out, req.Send() 1795 } 1796 1797 // UntagResourceWithContext is the same as UntagResource with the addition of 1798 // the ability to pass a context and additional request options. 1799 // 1800 // See UntagResource for details on how to use this API operation. 1801 // 1802 // The context must be non-nil and will be used for request cancellation. If 1803 // the context is nil a panic will occur. In the future the SDK may create 1804 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1805 // for more information on using Contexts. 1806 func (c *Signer) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 1807 req, out := c.UntagResourceRequest(input) 1808 req.SetContext(ctx) 1809 req.ApplyOptions(opts...) 1810 return out, req.Send() 1811 } 1812 1813 // You do not have sufficient access to perform this action. 1814 type AccessDeniedException struct { 1815 _ struct{} `type:"structure"` 1816 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1817 1818 Code_ *string `locationName:"code" type:"string"` 1819 1820 Message_ *string `locationName:"message" type:"string"` 1821 } 1822 1823 // String returns the string representation. 1824 // 1825 // API parameter values that are decorated as "sensitive" in the API will not 1826 // be included in the string output. The member name will be present, but the 1827 // value will be replaced with "sensitive". 1828 func (s AccessDeniedException) String() string { 1829 return awsutil.Prettify(s) 1830 } 1831 1832 // GoString returns the string representation. 1833 // 1834 // API parameter values that are decorated as "sensitive" in the API will not 1835 // be included in the string output. The member name will be present, but the 1836 // value will be replaced with "sensitive". 1837 func (s AccessDeniedException) GoString() string { 1838 return s.String() 1839 } 1840 1841 func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 1842 return &AccessDeniedException{ 1843 RespMetadata: v, 1844 } 1845 } 1846 1847 // Code returns the exception type name. 1848 func (s *AccessDeniedException) Code() string { 1849 return "AccessDeniedException" 1850 } 1851 1852 // Message returns the exception's message. 1853 func (s *AccessDeniedException) Message() string { 1854 if s.Message_ != nil { 1855 return *s.Message_ 1856 } 1857 return "" 1858 } 1859 1860 // OrigErr always returns nil, satisfies awserr.Error interface. 1861 func (s *AccessDeniedException) OrigErr() error { 1862 return nil 1863 } 1864 1865 func (s *AccessDeniedException) Error() string { 1866 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 1867 } 1868 1869 // Status code returns the HTTP status code for the request's response error. 1870 func (s *AccessDeniedException) StatusCode() int { 1871 return s.RespMetadata.StatusCode 1872 } 1873 1874 // RequestID returns the service's response RequestID for request. 1875 func (s *AccessDeniedException) RequestID() string { 1876 return s.RespMetadata.RequestID 1877 } 1878 1879 type AddProfilePermissionInput struct { 1880 _ struct{} `type:"structure"` 1881 1882 // The AWS Signer action permitted as part of cross-account permissions. 1883 // 1884 // Action is a required field 1885 Action *string `locationName:"action" type:"string" required:"true"` 1886 1887 // The AWS principal receiving cross-account permissions. This may be an IAM 1888 // role or another AWS account ID. 1889 // 1890 // Principal is a required field 1891 Principal *string `locationName:"principal" type:"string" required:"true"` 1892 1893 // The human-readable name of the signing profile. 1894 // 1895 // ProfileName is a required field 1896 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 1897 1898 // The version of the signing profile. 1899 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 1900 1901 // A unique identifier for the current profile revision. 1902 RevisionId *string `locationName:"revisionId" type:"string"` 1903 1904 // A unique identifier for the cross-account permission statement. 1905 // 1906 // StatementId is a required field 1907 StatementId *string `locationName:"statementId" type:"string" required:"true"` 1908 } 1909 1910 // String returns the string representation. 1911 // 1912 // API parameter values that are decorated as "sensitive" in the API will not 1913 // be included in the string output. The member name will be present, but the 1914 // value will be replaced with "sensitive". 1915 func (s AddProfilePermissionInput) String() string { 1916 return awsutil.Prettify(s) 1917 } 1918 1919 // GoString returns the string representation. 1920 // 1921 // API parameter values that are decorated as "sensitive" in the API will not 1922 // be included in the string output. The member name will be present, but the 1923 // value will be replaced with "sensitive". 1924 func (s AddProfilePermissionInput) GoString() string { 1925 return s.String() 1926 } 1927 1928 // Validate inspects the fields of the type to determine if they are valid. 1929 func (s *AddProfilePermissionInput) Validate() error { 1930 invalidParams := request.ErrInvalidParams{Context: "AddProfilePermissionInput"} 1931 if s.Action == nil { 1932 invalidParams.Add(request.NewErrParamRequired("Action")) 1933 } 1934 if s.Principal == nil { 1935 invalidParams.Add(request.NewErrParamRequired("Principal")) 1936 } 1937 if s.ProfileName == nil { 1938 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 1939 } 1940 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 1941 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 1942 } 1943 if s.ProfileVersion != nil && len(*s.ProfileVersion) < 10 { 1944 invalidParams.Add(request.NewErrParamMinLen("ProfileVersion", 10)) 1945 } 1946 if s.StatementId == nil { 1947 invalidParams.Add(request.NewErrParamRequired("StatementId")) 1948 } 1949 1950 if invalidParams.Len() > 0 { 1951 return invalidParams 1952 } 1953 return nil 1954 } 1955 1956 // SetAction sets the Action field's value. 1957 func (s *AddProfilePermissionInput) SetAction(v string) *AddProfilePermissionInput { 1958 s.Action = &v 1959 return s 1960 } 1961 1962 // SetPrincipal sets the Principal field's value. 1963 func (s *AddProfilePermissionInput) SetPrincipal(v string) *AddProfilePermissionInput { 1964 s.Principal = &v 1965 return s 1966 } 1967 1968 // SetProfileName sets the ProfileName field's value. 1969 func (s *AddProfilePermissionInput) SetProfileName(v string) *AddProfilePermissionInput { 1970 s.ProfileName = &v 1971 return s 1972 } 1973 1974 // SetProfileVersion sets the ProfileVersion field's value. 1975 func (s *AddProfilePermissionInput) SetProfileVersion(v string) *AddProfilePermissionInput { 1976 s.ProfileVersion = &v 1977 return s 1978 } 1979 1980 // SetRevisionId sets the RevisionId field's value. 1981 func (s *AddProfilePermissionInput) SetRevisionId(v string) *AddProfilePermissionInput { 1982 s.RevisionId = &v 1983 return s 1984 } 1985 1986 // SetStatementId sets the StatementId field's value. 1987 func (s *AddProfilePermissionInput) SetStatementId(v string) *AddProfilePermissionInput { 1988 s.StatementId = &v 1989 return s 1990 } 1991 1992 type AddProfilePermissionOutput struct { 1993 _ struct{} `type:"structure"` 1994 1995 // A unique identifier for the current profile revision. 1996 RevisionId *string `locationName:"revisionId" type:"string"` 1997 } 1998 1999 // String returns the string representation. 2000 // 2001 // API parameter values that are decorated as "sensitive" in the API will not 2002 // be included in the string output. The member name will be present, but the 2003 // value will be replaced with "sensitive". 2004 func (s AddProfilePermissionOutput) String() string { 2005 return awsutil.Prettify(s) 2006 } 2007 2008 // GoString returns the string representation. 2009 // 2010 // API parameter values that are decorated as "sensitive" in the API will not 2011 // be included in the string output. The member name will be present, but the 2012 // value will be replaced with "sensitive". 2013 func (s AddProfilePermissionOutput) GoString() string { 2014 return s.String() 2015 } 2016 2017 // SetRevisionId sets the RevisionId field's value. 2018 func (s *AddProfilePermissionOutput) SetRevisionId(v string) *AddProfilePermissionOutput { 2019 s.RevisionId = &v 2020 return s 2021 } 2022 2023 // The request contains invalid parameters for the ARN or tags. This exception 2024 // also occurs when you call a tagging API on a cancelled signing profile. 2025 type BadRequestException struct { 2026 _ struct{} `type:"structure"` 2027 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2028 2029 Code_ *string `locationName:"code" type:"string"` 2030 2031 Message_ *string `locationName:"message" type:"string"` 2032 } 2033 2034 // String returns the string representation. 2035 // 2036 // API parameter values that are decorated as "sensitive" in the API will not 2037 // be included in the string output. The member name will be present, but the 2038 // value will be replaced with "sensitive". 2039 func (s BadRequestException) String() string { 2040 return awsutil.Prettify(s) 2041 } 2042 2043 // GoString returns the string representation. 2044 // 2045 // API parameter values that are decorated as "sensitive" in the API will not 2046 // be included in the string output. The member name will be present, but the 2047 // value will be replaced with "sensitive". 2048 func (s BadRequestException) GoString() string { 2049 return s.String() 2050 } 2051 2052 func newErrorBadRequestException(v protocol.ResponseMetadata) error { 2053 return &BadRequestException{ 2054 RespMetadata: v, 2055 } 2056 } 2057 2058 // Code returns the exception type name. 2059 func (s *BadRequestException) Code() string { 2060 return "BadRequestException" 2061 } 2062 2063 // Message returns the exception's message. 2064 func (s *BadRequestException) Message() string { 2065 if s.Message_ != nil { 2066 return *s.Message_ 2067 } 2068 return "" 2069 } 2070 2071 // OrigErr always returns nil, satisfies awserr.Error interface. 2072 func (s *BadRequestException) OrigErr() error { 2073 return nil 2074 } 2075 2076 func (s *BadRequestException) Error() string { 2077 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 2078 } 2079 2080 // Status code returns the HTTP status code for the request's response error. 2081 func (s *BadRequestException) StatusCode() int { 2082 return s.RespMetadata.StatusCode 2083 } 2084 2085 // RequestID returns the service's response RequestID for request. 2086 func (s *BadRequestException) RequestID() string { 2087 return s.RespMetadata.RequestID 2088 } 2089 2090 type CancelSigningProfileInput struct { 2091 _ struct{} `type:"structure" nopayload:"true"` 2092 2093 // The name of the signing profile to be canceled. 2094 // 2095 // ProfileName is a required field 2096 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 2097 } 2098 2099 // String returns the string representation. 2100 // 2101 // API parameter values that are decorated as "sensitive" in the API will not 2102 // be included in the string output. The member name will be present, but the 2103 // value will be replaced with "sensitive". 2104 func (s CancelSigningProfileInput) String() string { 2105 return awsutil.Prettify(s) 2106 } 2107 2108 // GoString returns the string representation. 2109 // 2110 // API parameter values that are decorated as "sensitive" in the API will not 2111 // be included in the string output. The member name will be present, but the 2112 // value will be replaced with "sensitive". 2113 func (s CancelSigningProfileInput) GoString() string { 2114 return s.String() 2115 } 2116 2117 // Validate inspects the fields of the type to determine if they are valid. 2118 func (s *CancelSigningProfileInput) Validate() error { 2119 invalidParams := request.ErrInvalidParams{Context: "CancelSigningProfileInput"} 2120 if s.ProfileName == nil { 2121 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 2122 } 2123 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 2124 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 2125 } 2126 2127 if invalidParams.Len() > 0 { 2128 return invalidParams 2129 } 2130 return nil 2131 } 2132 2133 // SetProfileName sets the ProfileName field's value. 2134 func (s *CancelSigningProfileInput) SetProfileName(v string) *CancelSigningProfileInput { 2135 s.ProfileName = &v 2136 return s 2137 } 2138 2139 type CancelSigningProfileOutput struct { 2140 _ struct{} `type:"structure" nopayload:"true"` 2141 } 2142 2143 // String returns the string representation. 2144 // 2145 // API parameter values that are decorated as "sensitive" in the API will not 2146 // be included in the string output. The member name will be present, but the 2147 // value will be replaced with "sensitive". 2148 func (s CancelSigningProfileOutput) String() string { 2149 return awsutil.Prettify(s) 2150 } 2151 2152 // GoString returns the string representation. 2153 // 2154 // API parameter values that are decorated as "sensitive" in the API will not 2155 // be included in the string output. The member name will be present, but the 2156 // value will be replaced with "sensitive". 2157 func (s CancelSigningProfileOutput) GoString() string { 2158 return s.String() 2159 } 2160 2161 // The resource encountered a conflicting state. 2162 type ConflictException struct { 2163 _ struct{} `type:"structure"` 2164 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2165 2166 Code_ *string `locationName:"code" type:"string"` 2167 2168 Message_ *string `locationName:"message" type:"string"` 2169 } 2170 2171 // String returns the string representation. 2172 // 2173 // API parameter values that are decorated as "sensitive" in the API will not 2174 // be included in the string output. The member name will be present, but the 2175 // value will be replaced with "sensitive". 2176 func (s ConflictException) String() string { 2177 return awsutil.Prettify(s) 2178 } 2179 2180 // GoString returns the string representation. 2181 // 2182 // API parameter values that are decorated as "sensitive" in the API will not 2183 // be included in the string output. The member name will be present, but the 2184 // value will be replaced with "sensitive". 2185 func (s ConflictException) GoString() string { 2186 return s.String() 2187 } 2188 2189 func newErrorConflictException(v protocol.ResponseMetadata) error { 2190 return &ConflictException{ 2191 RespMetadata: v, 2192 } 2193 } 2194 2195 // Code returns the exception type name. 2196 func (s *ConflictException) Code() string { 2197 return "ConflictException" 2198 } 2199 2200 // Message returns the exception's message. 2201 func (s *ConflictException) Message() string { 2202 if s.Message_ != nil { 2203 return *s.Message_ 2204 } 2205 return "" 2206 } 2207 2208 // OrigErr always returns nil, satisfies awserr.Error interface. 2209 func (s *ConflictException) OrigErr() error { 2210 return nil 2211 } 2212 2213 func (s *ConflictException) Error() string { 2214 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 2215 } 2216 2217 // Status code returns the HTTP status code for the request's response error. 2218 func (s *ConflictException) StatusCode() int { 2219 return s.RespMetadata.StatusCode 2220 } 2221 2222 // RequestID returns the service's response RequestID for request. 2223 func (s *ConflictException) RequestID() string { 2224 return s.RespMetadata.RequestID 2225 } 2226 2227 type DescribeSigningJobInput struct { 2228 _ struct{} `type:"structure" nopayload:"true"` 2229 2230 // The ID of the signing job on input. 2231 // 2232 // JobId is a required field 2233 JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"` 2234 } 2235 2236 // String returns the string representation. 2237 // 2238 // API parameter values that are decorated as "sensitive" in the API will not 2239 // be included in the string output. The member name will be present, but the 2240 // value will be replaced with "sensitive". 2241 func (s DescribeSigningJobInput) String() string { 2242 return awsutil.Prettify(s) 2243 } 2244 2245 // GoString returns the string representation. 2246 // 2247 // API parameter values that are decorated as "sensitive" in the API will not 2248 // be included in the string output. The member name will be present, but the 2249 // value will be replaced with "sensitive". 2250 func (s DescribeSigningJobInput) GoString() string { 2251 return s.String() 2252 } 2253 2254 // Validate inspects the fields of the type to determine if they are valid. 2255 func (s *DescribeSigningJobInput) Validate() error { 2256 invalidParams := request.ErrInvalidParams{Context: "DescribeSigningJobInput"} 2257 if s.JobId == nil { 2258 invalidParams.Add(request.NewErrParamRequired("JobId")) 2259 } 2260 if s.JobId != nil && len(*s.JobId) < 1 { 2261 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 2262 } 2263 2264 if invalidParams.Len() > 0 { 2265 return invalidParams 2266 } 2267 return nil 2268 } 2269 2270 // SetJobId sets the JobId field's value. 2271 func (s *DescribeSigningJobInput) SetJobId(v string) *DescribeSigningJobInput { 2272 s.JobId = &v 2273 return s 2274 } 2275 2276 type DescribeSigningJobOutput struct { 2277 _ struct{} `type:"structure"` 2278 2279 // Date and time that the signing job was completed. 2280 CompletedAt *time.Time `locationName:"completedAt" type:"timestamp"` 2281 2282 // Date and time that the signing job was created. 2283 CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` 2284 2285 // The ID of the signing job on output. 2286 JobId *string `locationName:"jobId" type:"string"` 2287 2288 // The IAM entity that initiated the signing job. 2289 JobInvoker *string `locationName:"jobInvoker" min:"12" type:"string"` 2290 2291 // The AWS account ID of the job owner. 2292 JobOwner *string `locationName:"jobOwner" min:"12" type:"string"` 2293 2294 // A list of any overrides that were applied to the signing operation. 2295 Overrides *SigningPlatformOverrides `locationName:"overrides" type:"structure"` 2296 2297 // A human-readable name for the signing platform associated with the signing 2298 // job. 2299 PlatformDisplayName *string `locationName:"platformDisplayName" type:"string"` 2300 2301 // The microcontroller platform to which your signed code image will be distributed. 2302 PlatformId *string `locationName:"platformId" type:"string"` 2303 2304 // The name of the profile that initiated the signing operation. 2305 ProfileName *string `locationName:"profileName" min:"2" type:"string"` 2306 2307 // The version of the signing profile used to initiate the signing job. 2308 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 2309 2310 // The IAM principal that requested the signing job. 2311 RequestedBy *string `locationName:"requestedBy" type:"string"` 2312 2313 // A revocation record if the signature generated by the signing job has been 2314 // revoked. Contains a timestamp and the ID of the IAM entity that revoked the 2315 // signature. 2316 RevocationRecord *SigningJobRevocationRecord `locationName:"revocationRecord" type:"structure"` 2317 2318 // Thr expiration timestamp for the signature generated by the signing job. 2319 SignatureExpiresAt *time.Time `locationName:"signatureExpiresAt" type:"timestamp"` 2320 2321 // Name of the S3 bucket where the signed code image is saved by code signing. 2322 SignedObject *SignedObject `locationName:"signedObject" type:"structure"` 2323 2324 // The Amazon Resource Name (ARN) of your code signing certificate. 2325 SigningMaterial *SigningMaterial `locationName:"signingMaterial" type:"structure"` 2326 2327 // Map of user-assigned key-value pairs used during signing. These values contain 2328 // any information that you specified for use in your signing job. 2329 SigningParameters map[string]*string `locationName:"signingParameters" type:"map"` 2330 2331 // The object that contains the name of your S3 bucket or your raw code. 2332 Source *Source `locationName:"source" type:"structure"` 2333 2334 // Status of the signing job. 2335 Status *string `locationName:"status" type:"string" enum:"SigningStatus"` 2336 2337 // String value that contains the status reason. 2338 StatusReason *string `locationName:"statusReason" type:"string"` 2339 } 2340 2341 // String returns the string representation. 2342 // 2343 // API parameter values that are decorated as "sensitive" in the API will not 2344 // be included in the string output. The member name will be present, but the 2345 // value will be replaced with "sensitive". 2346 func (s DescribeSigningJobOutput) String() string { 2347 return awsutil.Prettify(s) 2348 } 2349 2350 // GoString returns the string representation. 2351 // 2352 // API parameter values that are decorated as "sensitive" in the API will not 2353 // be included in the string output. The member name will be present, but the 2354 // value will be replaced with "sensitive". 2355 func (s DescribeSigningJobOutput) GoString() string { 2356 return s.String() 2357 } 2358 2359 // SetCompletedAt sets the CompletedAt field's value. 2360 func (s *DescribeSigningJobOutput) SetCompletedAt(v time.Time) *DescribeSigningJobOutput { 2361 s.CompletedAt = &v 2362 return s 2363 } 2364 2365 // SetCreatedAt sets the CreatedAt field's value. 2366 func (s *DescribeSigningJobOutput) SetCreatedAt(v time.Time) *DescribeSigningJobOutput { 2367 s.CreatedAt = &v 2368 return s 2369 } 2370 2371 // SetJobId sets the JobId field's value. 2372 func (s *DescribeSigningJobOutput) SetJobId(v string) *DescribeSigningJobOutput { 2373 s.JobId = &v 2374 return s 2375 } 2376 2377 // SetJobInvoker sets the JobInvoker field's value. 2378 func (s *DescribeSigningJobOutput) SetJobInvoker(v string) *DescribeSigningJobOutput { 2379 s.JobInvoker = &v 2380 return s 2381 } 2382 2383 // SetJobOwner sets the JobOwner field's value. 2384 func (s *DescribeSigningJobOutput) SetJobOwner(v string) *DescribeSigningJobOutput { 2385 s.JobOwner = &v 2386 return s 2387 } 2388 2389 // SetOverrides sets the Overrides field's value. 2390 func (s *DescribeSigningJobOutput) SetOverrides(v *SigningPlatformOverrides) *DescribeSigningJobOutput { 2391 s.Overrides = v 2392 return s 2393 } 2394 2395 // SetPlatformDisplayName sets the PlatformDisplayName field's value. 2396 func (s *DescribeSigningJobOutput) SetPlatformDisplayName(v string) *DescribeSigningJobOutput { 2397 s.PlatformDisplayName = &v 2398 return s 2399 } 2400 2401 // SetPlatformId sets the PlatformId field's value. 2402 func (s *DescribeSigningJobOutput) SetPlatformId(v string) *DescribeSigningJobOutput { 2403 s.PlatformId = &v 2404 return s 2405 } 2406 2407 // SetProfileName sets the ProfileName field's value. 2408 func (s *DescribeSigningJobOutput) SetProfileName(v string) *DescribeSigningJobOutput { 2409 s.ProfileName = &v 2410 return s 2411 } 2412 2413 // SetProfileVersion sets the ProfileVersion field's value. 2414 func (s *DescribeSigningJobOutput) SetProfileVersion(v string) *DescribeSigningJobOutput { 2415 s.ProfileVersion = &v 2416 return s 2417 } 2418 2419 // SetRequestedBy sets the RequestedBy field's value. 2420 func (s *DescribeSigningJobOutput) SetRequestedBy(v string) *DescribeSigningJobOutput { 2421 s.RequestedBy = &v 2422 return s 2423 } 2424 2425 // SetRevocationRecord sets the RevocationRecord field's value. 2426 func (s *DescribeSigningJobOutput) SetRevocationRecord(v *SigningJobRevocationRecord) *DescribeSigningJobOutput { 2427 s.RevocationRecord = v 2428 return s 2429 } 2430 2431 // SetSignatureExpiresAt sets the SignatureExpiresAt field's value. 2432 func (s *DescribeSigningJobOutput) SetSignatureExpiresAt(v time.Time) *DescribeSigningJobOutput { 2433 s.SignatureExpiresAt = &v 2434 return s 2435 } 2436 2437 // SetSignedObject sets the SignedObject field's value. 2438 func (s *DescribeSigningJobOutput) SetSignedObject(v *SignedObject) *DescribeSigningJobOutput { 2439 s.SignedObject = v 2440 return s 2441 } 2442 2443 // SetSigningMaterial sets the SigningMaterial field's value. 2444 func (s *DescribeSigningJobOutput) SetSigningMaterial(v *SigningMaterial) *DescribeSigningJobOutput { 2445 s.SigningMaterial = v 2446 return s 2447 } 2448 2449 // SetSigningParameters sets the SigningParameters field's value. 2450 func (s *DescribeSigningJobOutput) SetSigningParameters(v map[string]*string) *DescribeSigningJobOutput { 2451 s.SigningParameters = v 2452 return s 2453 } 2454 2455 // SetSource sets the Source field's value. 2456 func (s *DescribeSigningJobOutput) SetSource(v *Source) *DescribeSigningJobOutput { 2457 s.Source = v 2458 return s 2459 } 2460 2461 // SetStatus sets the Status field's value. 2462 func (s *DescribeSigningJobOutput) SetStatus(v string) *DescribeSigningJobOutput { 2463 s.Status = &v 2464 return s 2465 } 2466 2467 // SetStatusReason sets the StatusReason field's value. 2468 func (s *DescribeSigningJobOutput) SetStatusReason(v string) *DescribeSigningJobOutput { 2469 s.StatusReason = &v 2470 return s 2471 } 2472 2473 // Points to an S3Destination object that contains information about your S3 2474 // bucket. 2475 type Destination struct { 2476 _ struct{} `type:"structure"` 2477 2478 // The S3Destination object. 2479 S3 *S3Destination `locationName:"s3" type:"structure"` 2480 } 2481 2482 // String returns the string representation. 2483 // 2484 // API parameter values that are decorated as "sensitive" in the API will not 2485 // be included in the string output. The member name will be present, but the 2486 // value will be replaced with "sensitive". 2487 func (s Destination) String() string { 2488 return awsutil.Prettify(s) 2489 } 2490 2491 // GoString returns the string representation. 2492 // 2493 // API parameter values that are decorated as "sensitive" in the API will not 2494 // be included in the string output. The member name will be present, but the 2495 // value will be replaced with "sensitive". 2496 func (s Destination) GoString() string { 2497 return s.String() 2498 } 2499 2500 // SetS3 sets the S3 field's value. 2501 func (s *Destination) SetS3(v *S3Destination) *Destination { 2502 s.S3 = v 2503 return s 2504 } 2505 2506 // The encryption algorithm options that are available to a code signing job. 2507 type EncryptionAlgorithmOptions struct { 2508 _ struct{} `type:"structure"` 2509 2510 // The set of accepted encryption algorithms that are allowed in a code signing 2511 // job. 2512 // 2513 // AllowedValues is a required field 2514 AllowedValues []*string `locationName:"allowedValues" type:"list" required:"true"` 2515 2516 // The default encryption algorithm that is used by a code signing job. 2517 // 2518 // DefaultValue is a required field 2519 DefaultValue *string `locationName:"defaultValue" type:"string" required:"true" enum:"EncryptionAlgorithm"` 2520 } 2521 2522 // String returns the string representation. 2523 // 2524 // API parameter values that are decorated as "sensitive" in the API will not 2525 // be included in the string output. The member name will be present, but the 2526 // value will be replaced with "sensitive". 2527 func (s EncryptionAlgorithmOptions) String() string { 2528 return awsutil.Prettify(s) 2529 } 2530 2531 // GoString returns the string representation. 2532 // 2533 // API parameter values that are decorated as "sensitive" in the API will not 2534 // be included in the string output. The member name will be present, but the 2535 // value will be replaced with "sensitive". 2536 func (s EncryptionAlgorithmOptions) GoString() string { 2537 return s.String() 2538 } 2539 2540 // SetAllowedValues sets the AllowedValues field's value. 2541 func (s *EncryptionAlgorithmOptions) SetAllowedValues(v []*string) *EncryptionAlgorithmOptions { 2542 s.AllowedValues = v 2543 return s 2544 } 2545 2546 // SetDefaultValue sets the DefaultValue field's value. 2547 func (s *EncryptionAlgorithmOptions) SetDefaultValue(v string) *EncryptionAlgorithmOptions { 2548 s.DefaultValue = &v 2549 return s 2550 } 2551 2552 type GetSigningPlatformInput struct { 2553 _ struct{} `type:"structure" nopayload:"true"` 2554 2555 // The ID of the target signing platform. 2556 // 2557 // PlatformId is a required field 2558 PlatformId *string `location:"uri" locationName:"platformId" type:"string" required:"true"` 2559 } 2560 2561 // String returns the string representation. 2562 // 2563 // API parameter values that are decorated as "sensitive" in the API will not 2564 // be included in the string output. The member name will be present, but the 2565 // value will be replaced with "sensitive". 2566 func (s GetSigningPlatformInput) String() string { 2567 return awsutil.Prettify(s) 2568 } 2569 2570 // GoString returns the string representation. 2571 // 2572 // API parameter values that are decorated as "sensitive" in the API will not 2573 // be included in the string output. The member name will be present, but the 2574 // value will be replaced with "sensitive". 2575 func (s GetSigningPlatformInput) GoString() string { 2576 return s.String() 2577 } 2578 2579 // Validate inspects the fields of the type to determine if they are valid. 2580 func (s *GetSigningPlatformInput) Validate() error { 2581 invalidParams := request.ErrInvalidParams{Context: "GetSigningPlatformInput"} 2582 if s.PlatformId == nil { 2583 invalidParams.Add(request.NewErrParamRequired("PlatformId")) 2584 } 2585 if s.PlatformId != nil && len(*s.PlatformId) < 1 { 2586 invalidParams.Add(request.NewErrParamMinLen("PlatformId", 1)) 2587 } 2588 2589 if invalidParams.Len() > 0 { 2590 return invalidParams 2591 } 2592 return nil 2593 } 2594 2595 // SetPlatformId sets the PlatformId field's value. 2596 func (s *GetSigningPlatformInput) SetPlatformId(v string) *GetSigningPlatformInput { 2597 s.PlatformId = &v 2598 return s 2599 } 2600 2601 type GetSigningPlatformOutput struct { 2602 _ struct{} `type:"structure"` 2603 2604 // The category type of the target signing platform. 2605 Category *string `locationName:"category" type:"string" enum:"Category"` 2606 2607 // The display name of the target signing platform. 2608 DisplayName *string `locationName:"displayName" type:"string"` 2609 2610 // The maximum size (in MB) of the payload that can be signed by the target 2611 // platform. 2612 MaxSizeInMB *int64 `locationName:"maxSizeInMB" type:"integer"` 2613 2614 // A list of partner entities that use the target signing platform. 2615 Partner *string `locationName:"partner" type:"string"` 2616 2617 // The ID of the target signing platform. 2618 PlatformId *string `locationName:"platformId" type:"string"` 2619 2620 // A flag indicating whether signatures generated for the signing platform can 2621 // be revoked. 2622 RevocationSupported *bool `locationName:"revocationSupported" type:"boolean"` 2623 2624 // A list of configurations applied to the target platform at signing. 2625 SigningConfiguration *SigningConfiguration `locationName:"signingConfiguration" type:"structure"` 2626 2627 // The format of the target platform's signing image. 2628 SigningImageFormat *SigningImageFormat `locationName:"signingImageFormat" type:"structure"` 2629 2630 // The validation template that is used by the target signing platform. 2631 Target *string `locationName:"target" type:"string"` 2632 } 2633 2634 // String returns the string representation. 2635 // 2636 // API parameter values that are decorated as "sensitive" in the API will not 2637 // be included in the string output. The member name will be present, but the 2638 // value will be replaced with "sensitive". 2639 func (s GetSigningPlatformOutput) String() string { 2640 return awsutil.Prettify(s) 2641 } 2642 2643 // GoString returns the string representation. 2644 // 2645 // API parameter values that are decorated as "sensitive" in the API will not 2646 // be included in the string output. The member name will be present, but the 2647 // value will be replaced with "sensitive". 2648 func (s GetSigningPlatformOutput) GoString() string { 2649 return s.String() 2650 } 2651 2652 // SetCategory sets the Category field's value. 2653 func (s *GetSigningPlatformOutput) SetCategory(v string) *GetSigningPlatformOutput { 2654 s.Category = &v 2655 return s 2656 } 2657 2658 // SetDisplayName sets the DisplayName field's value. 2659 func (s *GetSigningPlatformOutput) SetDisplayName(v string) *GetSigningPlatformOutput { 2660 s.DisplayName = &v 2661 return s 2662 } 2663 2664 // SetMaxSizeInMB sets the MaxSizeInMB field's value. 2665 func (s *GetSigningPlatformOutput) SetMaxSizeInMB(v int64) *GetSigningPlatformOutput { 2666 s.MaxSizeInMB = &v 2667 return s 2668 } 2669 2670 // SetPartner sets the Partner field's value. 2671 func (s *GetSigningPlatformOutput) SetPartner(v string) *GetSigningPlatformOutput { 2672 s.Partner = &v 2673 return s 2674 } 2675 2676 // SetPlatformId sets the PlatformId field's value. 2677 func (s *GetSigningPlatformOutput) SetPlatformId(v string) *GetSigningPlatformOutput { 2678 s.PlatformId = &v 2679 return s 2680 } 2681 2682 // SetRevocationSupported sets the RevocationSupported field's value. 2683 func (s *GetSigningPlatformOutput) SetRevocationSupported(v bool) *GetSigningPlatformOutput { 2684 s.RevocationSupported = &v 2685 return s 2686 } 2687 2688 // SetSigningConfiguration sets the SigningConfiguration field's value. 2689 func (s *GetSigningPlatformOutput) SetSigningConfiguration(v *SigningConfiguration) *GetSigningPlatformOutput { 2690 s.SigningConfiguration = v 2691 return s 2692 } 2693 2694 // SetSigningImageFormat sets the SigningImageFormat field's value. 2695 func (s *GetSigningPlatformOutput) SetSigningImageFormat(v *SigningImageFormat) *GetSigningPlatformOutput { 2696 s.SigningImageFormat = v 2697 return s 2698 } 2699 2700 // SetTarget sets the Target field's value. 2701 func (s *GetSigningPlatformOutput) SetTarget(v string) *GetSigningPlatformOutput { 2702 s.Target = &v 2703 return s 2704 } 2705 2706 type GetSigningProfileInput struct { 2707 _ struct{} `type:"structure" nopayload:"true"` 2708 2709 // The name of the target signing profile. 2710 // 2711 // ProfileName is a required field 2712 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 2713 2714 // The AWS account ID of the profile owner. 2715 ProfileOwner *string `location:"querystring" locationName:"profileOwner" min:"12" type:"string"` 2716 } 2717 2718 // String returns the string representation. 2719 // 2720 // API parameter values that are decorated as "sensitive" in the API will not 2721 // be included in the string output. The member name will be present, but the 2722 // value will be replaced with "sensitive". 2723 func (s GetSigningProfileInput) String() string { 2724 return awsutil.Prettify(s) 2725 } 2726 2727 // GoString returns the string representation. 2728 // 2729 // API parameter values that are decorated as "sensitive" in the API will not 2730 // be included in the string output. The member name will be present, but the 2731 // value will be replaced with "sensitive". 2732 func (s GetSigningProfileInput) GoString() string { 2733 return s.String() 2734 } 2735 2736 // Validate inspects the fields of the type to determine if they are valid. 2737 func (s *GetSigningProfileInput) Validate() error { 2738 invalidParams := request.ErrInvalidParams{Context: "GetSigningProfileInput"} 2739 if s.ProfileName == nil { 2740 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 2741 } 2742 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 2743 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 2744 } 2745 if s.ProfileOwner != nil && len(*s.ProfileOwner) < 12 { 2746 invalidParams.Add(request.NewErrParamMinLen("ProfileOwner", 12)) 2747 } 2748 2749 if invalidParams.Len() > 0 { 2750 return invalidParams 2751 } 2752 return nil 2753 } 2754 2755 // SetProfileName sets the ProfileName field's value. 2756 func (s *GetSigningProfileInput) SetProfileName(v string) *GetSigningProfileInput { 2757 s.ProfileName = &v 2758 return s 2759 } 2760 2761 // SetProfileOwner sets the ProfileOwner field's value. 2762 func (s *GetSigningProfileInput) SetProfileOwner(v string) *GetSigningProfileInput { 2763 s.ProfileOwner = &v 2764 return s 2765 } 2766 2767 type GetSigningProfileOutput struct { 2768 _ struct{} `type:"structure"` 2769 2770 // The Amazon Resource Name (ARN) for the signing profile. 2771 Arn *string `locationName:"arn" type:"string"` 2772 2773 // A list of overrides applied by the target signing profile for signing operations. 2774 Overrides *SigningPlatformOverrides `locationName:"overrides" type:"structure"` 2775 2776 // A human-readable name for the signing platform associated with the signing 2777 // profile. 2778 PlatformDisplayName *string `locationName:"platformDisplayName" type:"string"` 2779 2780 // The ID of the platform that is used by the target signing profile. 2781 PlatformId *string `locationName:"platformId" type:"string"` 2782 2783 // The name of the target signing profile. 2784 ProfileName *string `locationName:"profileName" min:"2" type:"string"` 2785 2786 // The current version of the signing profile. 2787 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 2788 2789 // The signing profile ARN, including the profile version. 2790 ProfileVersionArn *string `locationName:"profileVersionArn" min:"20" type:"string"` 2791 2792 // Revocation information for a signing profile. 2793 RevocationRecord *SigningProfileRevocationRecord `locationName:"revocationRecord" type:"structure"` 2794 2795 // The validity period for a signing job. 2796 SignatureValidityPeriod *SignatureValidityPeriod `locationName:"signatureValidityPeriod" type:"structure"` 2797 2798 // The ARN of the certificate that the target profile uses for signing operations. 2799 SigningMaterial *SigningMaterial `locationName:"signingMaterial" type:"structure"` 2800 2801 // A map of key-value pairs for signing operations that is attached to the target 2802 // signing profile. 2803 SigningParameters map[string]*string `locationName:"signingParameters" type:"map"` 2804 2805 // The status of the target signing profile. 2806 Status *string `locationName:"status" type:"string" enum:"SigningProfileStatus"` 2807 2808 // Reason for the status of the target signing profile. 2809 StatusReason *string `locationName:"statusReason" type:"string"` 2810 2811 // A list of tags associated with the signing profile. 2812 Tags map[string]*string `locationName:"tags" min:"1" type:"map"` 2813 } 2814 2815 // String returns the string representation. 2816 // 2817 // API parameter values that are decorated as "sensitive" in the API will not 2818 // be included in the string output. The member name will be present, but the 2819 // value will be replaced with "sensitive". 2820 func (s GetSigningProfileOutput) String() string { 2821 return awsutil.Prettify(s) 2822 } 2823 2824 // GoString returns the string representation. 2825 // 2826 // API parameter values that are decorated as "sensitive" in the API will not 2827 // be included in the string output. The member name will be present, but the 2828 // value will be replaced with "sensitive". 2829 func (s GetSigningProfileOutput) GoString() string { 2830 return s.String() 2831 } 2832 2833 // SetArn sets the Arn field's value. 2834 func (s *GetSigningProfileOutput) SetArn(v string) *GetSigningProfileOutput { 2835 s.Arn = &v 2836 return s 2837 } 2838 2839 // SetOverrides sets the Overrides field's value. 2840 func (s *GetSigningProfileOutput) SetOverrides(v *SigningPlatformOverrides) *GetSigningProfileOutput { 2841 s.Overrides = v 2842 return s 2843 } 2844 2845 // SetPlatformDisplayName sets the PlatformDisplayName field's value. 2846 func (s *GetSigningProfileOutput) SetPlatformDisplayName(v string) *GetSigningProfileOutput { 2847 s.PlatformDisplayName = &v 2848 return s 2849 } 2850 2851 // SetPlatformId sets the PlatformId field's value. 2852 func (s *GetSigningProfileOutput) SetPlatformId(v string) *GetSigningProfileOutput { 2853 s.PlatformId = &v 2854 return s 2855 } 2856 2857 // SetProfileName sets the ProfileName field's value. 2858 func (s *GetSigningProfileOutput) SetProfileName(v string) *GetSigningProfileOutput { 2859 s.ProfileName = &v 2860 return s 2861 } 2862 2863 // SetProfileVersion sets the ProfileVersion field's value. 2864 func (s *GetSigningProfileOutput) SetProfileVersion(v string) *GetSigningProfileOutput { 2865 s.ProfileVersion = &v 2866 return s 2867 } 2868 2869 // SetProfileVersionArn sets the ProfileVersionArn field's value. 2870 func (s *GetSigningProfileOutput) SetProfileVersionArn(v string) *GetSigningProfileOutput { 2871 s.ProfileVersionArn = &v 2872 return s 2873 } 2874 2875 // SetRevocationRecord sets the RevocationRecord field's value. 2876 func (s *GetSigningProfileOutput) SetRevocationRecord(v *SigningProfileRevocationRecord) *GetSigningProfileOutput { 2877 s.RevocationRecord = v 2878 return s 2879 } 2880 2881 // SetSignatureValidityPeriod sets the SignatureValidityPeriod field's value. 2882 func (s *GetSigningProfileOutput) SetSignatureValidityPeriod(v *SignatureValidityPeriod) *GetSigningProfileOutput { 2883 s.SignatureValidityPeriod = v 2884 return s 2885 } 2886 2887 // SetSigningMaterial sets the SigningMaterial field's value. 2888 func (s *GetSigningProfileOutput) SetSigningMaterial(v *SigningMaterial) *GetSigningProfileOutput { 2889 s.SigningMaterial = v 2890 return s 2891 } 2892 2893 // SetSigningParameters sets the SigningParameters field's value. 2894 func (s *GetSigningProfileOutput) SetSigningParameters(v map[string]*string) *GetSigningProfileOutput { 2895 s.SigningParameters = v 2896 return s 2897 } 2898 2899 // SetStatus sets the Status field's value. 2900 func (s *GetSigningProfileOutput) SetStatus(v string) *GetSigningProfileOutput { 2901 s.Status = &v 2902 return s 2903 } 2904 2905 // SetStatusReason sets the StatusReason field's value. 2906 func (s *GetSigningProfileOutput) SetStatusReason(v string) *GetSigningProfileOutput { 2907 s.StatusReason = &v 2908 return s 2909 } 2910 2911 // SetTags sets the Tags field's value. 2912 func (s *GetSigningProfileOutput) SetTags(v map[string]*string) *GetSigningProfileOutput { 2913 s.Tags = v 2914 return s 2915 } 2916 2917 // The hash algorithms that are available to a code signing job. 2918 type HashAlgorithmOptions struct { 2919 _ struct{} `type:"structure"` 2920 2921 // The set of accepted hash algorithms allowed in a code signing job. 2922 // 2923 // AllowedValues is a required field 2924 AllowedValues []*string `locationName:"allowedValues" type:"list" required:"true"` 2925 2926 // The default hash algorithm that is used in a code signing job. 2927 // 2928 // DefaultValue is a required field 2929 DefaultValue *string `locationName:"defaultValue" type:"string" required:"true" enum:"HashAlgorithm"` 2930 } 2931 2932 // String returns the string representation. 2933 // 2934 // API parameter values that are decorated as "sensitive" in the API will not 2935 // be included in the string output. The member name will be present, but the 2936 // value will be replaced with "sensitive". 2937 func (s HashAlgorithmOptions) String() string { 2938 return awsutil.Prettify(s) 2939 } 2940 2941 // GoString returns the string representation. 2942 // 2943 // API parameter values that are decorated as "sensitive" in the API will not 2944 // be included in the string output. The member name will be present, but the 2945 // value will be replaced with "sensitive". 2946 func (s HashAlgorithmOptions) GoString() string { 2947 return s.String() 2948 } 2949 2950 // SetAllowedValues sets the AllowedValues field's value. 2951 func (s *HashAlgorithmOptions) SetAllowedValues(v []*string) *HashAlgorithmOptions { 2952 s.AllowedValues = v 2953 return s 2954 } 2955 2956 // SetDefaultValue sets the DefaultValue field's value. 2957 func (s *HashAlgorithmOptions) SetDefaultValue(v string) *HashAlgorithmOptions { 2958 s.DefaultValue = &v 2959 return s 2960 } 2961 2962 // An internal error occurred. 2963 type InternalServiceErrorException struct { 2964 _ struct{} `type:"structure"` 2965 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2966 2967 Code_ *string `locationName:"code" type:"string"` 2968 2969 Message_ *string `locationName:"message" type:"string"` 2970 } 2971 2972 // String returns the string representation. 2973 // 2974 // API parameter values that are decorated as "sensitive" in the API will not 2975 // be included in the string output. The member name will be present, but the 2976 // value will be replaced with "sensitive". 2977 func (s InternalServiceErrorException) String() string { 2978 return awsutil.Prettify(s) 2979 } 2980 2981 // GoString returns the string representation. 2982 // 2983 // API parameter values that are decorated as "sensitive" in the API will not 2984 // be included in the string output. The member name will be present, but the 2985 // value will be replaced with "sensitive". 2986 func (s InternalServiceErrorException) GoString() string { 2987 return s.String() 2988 } 2989 2990 func newErrorInternalServiceErrorException(v protocol.ResponseMetadata) error { 2991 return &InternalServiceErrorException{ 2992 RespMetadata: v, 2993 } 2994 } 2995 2996 // Code returns the exception type name. 2997 func (s *InternalServiceErrorException) Code() string { 2998 return "InternalServiceErrorException" 2999 } 3000 3001 // Message returns the exception's message. 3002 func (s *InternalServiceErrorException) Message() string { 3003 if s.Message_ != nil { 3004 return *s.Message_ 3005 } 3006 return "" 3007 } 3008 3009 // OrigErr always returns nil, satisfies awserr.Error interface. 3010 func (s *InternalServiceErrorException) OrigErr() error { 3011 return nil 3012 } 3013 3014 func (s *InternalServiceErrorException) Error() string { 3015 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 3016 } 3017 3018 // Status code returns the HTTP status code for the request's response error. 3019 func (s *InternalServiceErrorException) StatusCode() int { 3020 return s.RespMetadata.StatusCode 3021 } 3022 3023 // RequestID returns the service's response RequestID for request. 3024 func (s *InternalServiceErrorException) RequestID() string { 3025 return s.RespMetadata.RequestID 3026 } 3027 3028 type ListProfilePermissionsInput struct { 3029 _ struct{} `type:"structure" nopayload:"true"` 3030 3031 // String for specifying the next set of paginated results. 3032 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 3033 3034 // Name of the signing profile containing the cross-account permissions. 3035 // 3036 // ProfileName is a required field 3037 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 3038 } 3039 3040 // String returns the string representation. 3041 // 3042 // API parameter values that are decorated as "sensitive" in the API will not 3043 // be included in the string output. The member name will be present, but the 3044 // value will be replaced with "sensitive". 3045 func (s ListProfilePermissionsInput) String() string { 3046 return awsutil.Prettify(s) 3047 } 3048 3049 // GoString returns the string representation. 3050 // 3051 // API parameter values that are decorated as "sensitive" in the API will not 3052 // be included in the string output. The member name will be present, but the 3053 // value will be replaced with "sensitive". 3054 func (s ListProfilePermissionsInput) GoString() string { 3055 return s.String() 3056 } 3057 3058 // Validate inspects the fields of the type to determine if they are valid. 3059 func (s *ListProfilePermissionsInput) Validate() error { 3060 invalidParams := request.ErrInvalidParams{Context: "ListProfilePermissionsInput"} 3061 if s.ProfileName == nil { 3062 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 3063 } 3064 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 3065 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 3066 } 3067 3068 if invalidParams.Len() > 0 { 3069 return invalidParams 3070 } 3071 return nil 3072 } 3073 3074 // SetNextToken sets the NextToken field's value. 3075 func (s *ListProfilePermissionsInput) SetNextToken(v string) *ListProfilePermissionsInput { 3076 s.NextToken = &v 3077 return s 3078 } 3079 3080 // SetProfileName sets the ProfileName field's value. 3081 func (s *ListProfilePermissionsInput) SetProfileName(v string) *ListProfilePermissionsInput { 3082 s.ProfileName = &v 3083 return s 3084 } 3085 3086 type ListProfilePermissionsOutput struct { 3087 _ struct{} `type:"structure"` 3088 3089 // String for specifying the next set of paginated results. 3090 NextToken *string `locationName:"nextToken" type:"string"` 3091 3092 // List of permissions associated with the Signing Profile. 3093 Permissions []*Permission `locationName:"permissions" type:"list"` 3094 3095 // Total size of the policy associated with the Signing Profile in bytes. 3096 PolicySizeBytes *int64 `locationName:"policySizeBytes" type:"integer"` 3097 3098 // The identifier for the current revision of profile permissions. 3099 RevisionId *string `locationName:"revisionId" type:"string"` 3100 } 3101 3102 // String returns the string representation. 3103 // 3104 // API parameter values that are decorated as "sensitive" in the API will not 3105 // be included in the string output. The member name will be present, but the 3106 // value will be replaced with "sensitive". 3107 func (s ListProfilePermissionsOutput) String() string { 3108 return awsutil.Prettify(s) 3109 } 3110 3111 // GoString returns the string representation. 3112 // 3113 // API parameter values that are decorated as "sensitive" in the API will not 3114 // be included in the string output. The member name will be present, but the 3115 // value will be replaced with "sensitive". 3116 func (s ListProfilePermissionsOutput) GoString() string { 3117 return s.String() 3118 } 3119 3120 // SetNextToken sets the NextToken field's value. 3121 func (s *ListProfilePermissionsOutput) SetNextToken(v string) *ListProfilePermissionsOutput { 3122 s.NextToken = &v 3123 return s 3124 } 3125 3126 // SetPermissions sets the Permissions field's value. 3127 func (s *ListProfilePermissionsOutput) SetPermissions(v []*Permission) *ListProfilePermissionsOutput { 3128 s.Permissions = v 3129 return s 3130 } 3131 3132 // SetPolicySizeBytes sets the PolicySizeBytes field's value. 3133 func (s *ListProfilePermissionsOutput) SetPolicySizeBytes(v int64) *ListProfilePermissionsOutput { 3134 s.PolicySizeBytes = &v 3135 return s 3136 } 3137 3138 // SetRevisionId sets the RevisionId field's value. 3139 func (s *ListProfilePermissionsOutput) SetRevisionId(v string) *ListProfilePermissionsOutput { 3140 s.RevisionId = &v 3141 return s 3142 } 3143 3144 type ListSigningJobsInput struct { 3145 _ struct{} `type:"structure" nopayload:"true"` 3146 3147 // Filters results to return only signing jobs with revoked signatures. 3148 IsRevoked *bool `location:"querystring" locationName:"isRevoked" type:"boolean"` 3149 3150 // Filters results to return only signing jobs initiated by a specified IAM 3151 // entity. 3152 JobInvoker *string `location:"querystring" locationName:"jobInvoker" min:"12" type:"string"` 3153 3154 // Specifies the maximum number of items to return in the response. Use this 3155 // parameter when paginating results. If additional items exist beyond the number 3156 // you specify, the nextToken element is set in the response. Use the nextToken 3157 // value in a subsequent request to retrieve additional items. 3158 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 3159 3160 // String for specifying the next set of paginated results to return. After 3161 // you receive a response with truncated results, use this parameter in a subsequent 3162 // request. Set it to the value of nextToken from the response that you just 3163 // received. 3164 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 3165 3166 // The ID of microcontroller platform that you specified for the distribution 3167 // of your code image. 3168 PlatformId *string `location:"querystring" locationName:"platformId" type:"string"` 3169 3170 // The IAM principal that requested the signing job. 3171 RequestedBy *string `location:"querystring" locationName:"requestedBy" type:"string"` 3172 3173 // Filters results to return only signing jobs with signatures expiring after 3174 // a specified timestamp. 3175 SignatureExpiresAfter *time.Time `location:"querystring" locationName:"signatureExpiresAfter" type:"timestamp"` 3176 3177 // Filters results to return only signing jobs with signatures expiring before 3178 // a specified timestamp. 3179 SignatureExpiresBefore *time.Time `location:"querystring" locationName:"signatureExpiresBefore" type:"timestamp"` 3180 3181 // A status value with which to filter your results. 3182 Status *string `location:"querystring" locationName:"status" type:"string" enum:"SigningStatus"` 3183 } 3184 3185 // String returns the string representation. 3186 // 3187 // API parameter values that are decorated as "sensitive" in the API will not 3188 // be included in the string output. The member name will be present, but the 3189 // value will be replaced with "sensitive". 3190 func (s ListSigningJobsInput) String() string { 3191 return awsutil.Prettify(s) 3192 } 3193 3194 // GoString returns the string representation. 3195 // 3196 // API parameter values that are decorated as "sensitive" in the API will not 3197 // be included in the string output. The member name will be present, but the 3198 // value will be replaced with "sensitive". 3199 func (s ListSigningJobsInput) GoString() string { 3200 return s.String() 3201 } 3202 3203 // Validate inspects the fields of the type to determine if they are valid. 3204 func (s *ListSigningJobsInput) Validate() error { 3205 invalidParams := request.ErrInvalidParams{Context: "ListSigningJobsInput"} 3206 if s.JobInvoker != nil && len(*s.JobInvoker) < 12 { 3207 invalidParams.Add(request.NewErrParamMinLen("JobInvoker", 12)) 3208 } 3209 if s.MaxResults != nil && *s.MaxResults < 1 { 3210 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3211 } 3212 3213 if invalidParams.Len() > 0 { 3214 return invalidParams 3215 } 3216 return nil 3217 } 3218 3219 // SetIsRevoked sets the IsRevoked field's value. 3220 func (s *ListSigningJobsInput) SetIsRevoked(v bool) *ListSigningJobsInput { 3221 s.IsRevoked = &v 3222 return s 3223 } 3224 3225 // SetJobInvoker sets the JobInvoker field's value. 3226 func (s *ListSigningJobsInput) SetJobInvoker(v string) *ListSigningJobsInput { 3227 s.JobInvoker = &v 3228 return s 3229 } 3230 3231 // SetMaxResults sets the MaxResults field's value. 3232 func (s *ListSigningJobsInput) SetMaxResults(v int64) *ListSigningJobsInput { 3233 s.MaxResults = &v 3234 return s 3235 } 3236 3237 // SetNextToken sets the NextToken field's value. 3238 func (s *ListSigningJobsInput) SetNextToken(v string) *ListSigningJobsInput { 3239 s.NextToken = &v 3240 return s 3241 } 3242 3243 // SetPlatformId sets the PlatformId field's value. 3244 func (s *ListSigningJobsInput) SetPlatformId(v string) *ListSigningJobsInput { 3245 s.PlatformId = &v 3246 return s 3247 } 3248 3249 // SetRequestedBy sets the RequestedBy field's value. 3250 func (s *ListSigningJobsInput) SetRequestedBy(v string) *ListSigningJobsInput { 3251 s.RequestedBy = &v 3252 return s 3253 } 3254 3255 // SetSignatureExpiresAfter sets the SignatureExpiresAfter field's value. 3256 func (s *ListSigningJobsInput) SetSignatureExpiresAfter(v time.Time) *ListSigningJobsInput { 3257 s.SignatureExpiresAfter = &v 3258 return s 3259 } 3260 3261 // SetSignatureExpiresBefore sets the SignatureExpiresBefore field's value. 3262 func (s *ListSigningJobsInput) SetSignatureExpiresBefore(v time.Time) *ListSigningJobsInput { 3263 s.SignatureExpiresBefore = &v 3264 return s 3265 } 3266 3267 // SetStatus sets the Status field's value. 3268 func (s *ListSigningJobsInput) SetStatus(v string) *ListSigningJobsInput { 3269 s.Status = &v 3270 return s 3271 } 3272 3273 type ListSigningJobsOutput struct { 3274 _ struct{} `type:"structure"` 3275 3276 // A list of your signing jobs. 3277 Jobs []*SigningJob `locationName:"jobs" type:"list"` 3278 3279 // String for specifying the next set of paginated results. 3280 NextToken *string `locationName:"nextToken" type:"string"` 3281 } 3282 3283 // String returns the string representation. 3284 // 3285 // API parameter values that are decorated as "sensitive" in the API will not 3286 // be included in the string output. The member name will be present, but the 3287 // value will be replaced with "sensitive". 3288 func (s ListSigningJobsOutput) String() string { 3289 return awsutil.Prettify(s) 3290 } 3291 3292 // GoString returns the string representation. 3293 // 3294 // API parameter values that are decorated as "sensitive" in the API will not 3295 // be included in the string output. The member name will be present, but the 3296 // value will be replaced with "sensitive". 3297 func (s ListSigningJobsOutput) GoString() string { 3298 return s.String() 3299 } 3300 3301 // SetJobs sets the Jobs field's value. 3302 func (s *ListSigningJobsOutput) SetJobs(v []*SigningJob) *ListSigningJobsOutput { 3303 s.Jobs = v 3304 return s 3305 } 3306 3307 // SetNextToken sets the NextToken field's value. 3308 func (s *ListSigningJobsOutput) SetNextToken(v string) *ListSigningJobsOutput { 3309 s.NextToken = &v 3310 return s 3311 } 3312 3313 type ListSigningPlatformsInput struct { 3314 _ struct{} `type:"structure" nopayload:"true"` 3315 3316 // The category type of a signing platform. 3317 Category *string `location:"querystring" locationName:"category" type:"string"` 3318 3319 // The maximum number of results to be returned by this operation. 3320 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 3321 3322 // Value for specifying the next set of paginated results to return. After you 3323 // receive a response with truncated results, use this parameter in a subsequent 3324 // request. Set it to the value of nextToken from the response that you just 3325 // received. 3326 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 3327 3328 // Any partner entities connected to a signing platform. 3329 Partner *string `location:"querystring" locationName:"partner" type:"string"` 3330 3331 // The validation template that is used by the target signing platform. 3332 Target *string `location:"querystring" locationName:"target" type:"string"` 3333 } 3334 3335 // String returns the string representation. 3336 // 3337 // API parameter values that are decorated as "sensitive" in the API will not 3338 // be included in the string output. The member name will be present, but the 3339 // value will be replaced with "sensitive". 3340 func (s ListSigningPlatformsInput) String() string { 3341 return awsutil.Prettify(s) 3342 } 3343 3344 // GoString returns the string representation. 3345 // 3346 // API parameter values that are decorated as "sensitive" in the API will not 3347 // be included in the string output. The member name will be present, but the 3348 // value will be replaced with "sensitive". 3349 func (s ListSigningPlatformsInput) GoString() string { 3350 return s.String() 3351 } 3352 3353 // Validate inspects the fields of the type to determine if they are valid. 3354 func (s *ListSigningPlatformsInput) Validate() error { 3355 invalidParams := request.ErrInvalidParams{Context: "ListSigningPlatformsInput"} 3356 if s.MaxResults != nil && *s.MaxResults < 1 { 3357 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3358 } 3359 3360 if invalidParams.Len() > 0 { 3361 return invalidParams 3362 } 3363 return nil 3364 } 3365 3366 // SetCategory sets the Category field's value. 3367 func (s *ListSigningPlatformsInput) SetCategory(v string) *ListSigningPlatformsInput { 3368 s.Category = &v 3369 return s 3370 } 3371 3372 // SetMaxResults sets the MaxResults field's value. 3373 func (s *ListSigningPlatformsInput) SetMaxResults(v int64) *ListSigningPlatformsInput { 3374 s.MaxResults = &v 3375 return s 3376 } 3377 3378 // SetNextToken sets the NextToken field's value. 3379 func (s *ListSigningPlatformsInput) SetNextToken(v string) *ListSigningPlatformsInput { 3380 s.NextToken = &v 3381 return s 3382 } 3383 3384 // SetPartner sets the Partner field's value. 3385 func (s *ListSigningPlatformsInput) SetPartner(v string) *ListSigningPlatformsInput { 3386 s.Partner = &v 3387 return s 3388 } 3389 3390 // SetTarget sets the Target field's value. 3391 func (s *ListSigningPlatformsInput) SetTarget(v string) *ListSigningPlatformsInput { 3392 s.Target = &v 3393 return s 3394 } 3395 3396 type ListSigningPlatformsOutput struct { 3397 _ struct{} `type:"structure"` 3398 3399 // Value for specifying the next set of paginated results to return. 3400 NextToken *string `locationName:"nextToken" type:"string"` 3401 3402 // A list of all platforms that match the request parameters. 3403 Platforms []*SigningPlatform `locationName:"platforms" type:"list"` 3404 } 3405 3406 // String returns the string representation. 3407 // 3408 // API parameter values that are decorated as "sensitive" in the API will not 3409 // be included in the string output. The member name will be present, but the 3410 // value will be replaced with "sensitive". 3411 func (s ListSigningPlatformsOutput) String() string { 3412 return awsutil.Prettify(s) 3413 } 3414 3415 // GoString returns the string representation. 3416 // 3417 // API parameter values that are decorated as "sensitive" in the API will not 3418 // be included in the string output. The member name will be present, but the 3419 // value will be replaced with "sensitive". 3420 func (s ListSigningPlatformsOutput) GoString() string { 3421 return s.String() 3422 } 3423 3424 // SetNextToken sets the NextToken field's value. 3425 func (s *ListSigningPlatformsOutput) SetNextToken(v string) *ListSigningPlatformsOutput { 3426 s.NextToken = &v 3427 return s 3428 } 3429 3430 // SetPlatforms sets the Platforms field's value. 3431 func (s *ListSigningPlatformsOutput) SetPlatforms(v []*SigningPlatform) *ListSigningPlatformsOutput { 3432 s.Platforms = v 3433 return s 3434 } 3435 3436 type ListSigningProfilesInput struct { 3437 _ struct{} `type:"structure" nopayload:"true"` 3438 3439 // Designates whether to include profiles with the status of CANCELED. 3440 IncludeCanceled *bool `location:"querystring" locationName:"includeCanceled" type:"boolean"` 3441 3442 // The maximum number of profiles to be returned. 3443 MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"` 3444 3445 // Value for specifying the next set of paginated results to return. After you 3446 // receive a response with truncated results, use this parameter in a subsequent 3447 // request. Set it to the value of nextToken from the response that you just 3448 // received. 3449 NextToken *string `location:"querystring" locationName:"nextToken" type:"string"` 3450 3451 // Filters results to return only signing jobs initiated for a specified signing 3452 // platform. 3453 PlatformId *string `location:"querystring" locationName:"platformId" type:"string"` 3454 3455 // Filters results to return only signing jobs with statuses in the specified 3456 // list. 3457 Statuses []*string `location:"querystring" locationName:"statuses" type:"list"` 3458 } 3459 3460 // String returns the string representation. 3461 // 3462 // API parameter values that are decorated as "sensitive" in the API will not 3463 // be included in the string output. The member name will be present, but the 3464 // value will be replaced with "sensitive". 3465 func (s ListSigningProfilesInput) String() string { 3466 return awsutil.Prettify(s) 3467 } 3468 3469 // GoString returns the string representation. 3470 // 3471 // API parameter values that are decorated as "sensitive" in the API will not 3472 // be included in the string output. The member name will be present, but the 3473 // value will be replaced with "sensitive". 3474 func (s ListSigningProfilesInput) GoString() string { 3475 return s.String() 3476 } 3477 3478 // Validate inspects the fields of the type to determine if they are valid. 3479 func (s *ListSigningProfilesInput) Validate() error { 3480 invalidParams := request.ErrInvalidParams{Context: "ListSigningProfilesInput"} 3481 if s.MaxResults != nil && *s.MaxResults < 1 { 3482 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3483 } 3484 3485 if invalidParams.Len() > 0 { 3486 return invalidParams 3487 } 3488 return nil 3489 } 3490 3491 // SetIncludeCanceled sets the IncludeCanceled field's value. 3492 func (s *ListSigningProfilesInput) SetIncludeCanceled(v bool) *ListSigningProfilesInput { 3493 s.IncludeCanceled = &v 3494 return s 3495 } 3496 3497 // SetMaxResults sets the MaxResults field's value. 3498 func (s *ListSigningProfilesInput) SetMaxResults(v int64) *ListSigningProfilesInput { 3499 s.MaxResults = &v 3500 return s 3501 } 3502 3503 // SetNextToken sets the NextToken field's value. 3504 func (s *ListSigningProfilesInput) SetNextToken(v string) *ListSigningProfilesInput { 3505 s.NextToken = &v 3506 return s 3507 } 3508 3509 // SetPlatformId sets the PlatformId field's value. 3510 func (s *ListSigningProfilesInput) SetPlatformId(v string) *ListSigningProfilesInput { 3511 s.PlatformId = &v 3512 return s 3513 } 3514 3515 // SetStatuses sets the Statuses field's value. 3516 func (s *ListSigningProfilesInput) SetStatuses(v []*string) *ListSigningProfilesInput { 3517 s.Statuses = v 3518 return s 3519 } 3520 3521 type ListSigningProfilesOutput struct { 3522 _ struct{} `type:"structure"` 3523 3524 // Value for specifying the next set of paginated results to return. 3525 NextToken *string `locationName:"nextToken" type:"string"` 3526 3527 // A list of profiles that are available in the AWS account. This includes profiles 3528 // with the status of CANCELED if the includeCanceled parameter is set to true. 3529 Profiles []*SigningProfile `locationName:"profiles" type:"list"` 3530 } 3531 3532 // String returns the string representation. 3533 // 3534 // API parameter values that are decorated as "sensitive" in the API will not 3535 // be included in the string output. The member name will be present, but the 3536 // value will be replaced with "sensitive". 3537 func (s ListSigningProfilesOutput) String() string { 3538 return awsutil.Prettify(s) 3539 } 3540 3541 // GoString returns the string representation. 3542 // 3543 // API parameter values that are decorated as "sensitive" in the API will not 3544 // be included in the string output. The member name will be present, but the 3545 // value will be replaced with "sensitive". 3546 func (s ListSigningProfilesOutput) GoString() string { 3547 return s.String() 3548 } 3549 3550 // SetNextToken sets the NextToken field's value. 3551 func (s *ListSigningProfilesOutput) SetNextToken(v string) *ListSigningProfilesOutput { 3552 s.NextToken = &v 3553 return s 3554 } 3555 3556 // SetProfiles sets the Profiles field's value. 3557 func (s *ListSigningProfilesOutput) SetProfiles(v []*SigningProfile) *ListSigningProfilesOutput { 3558 s.Profiles = v 3559 return s 3560 } 3561 3562 type ListTagsForResourceInput struct { 3563 _ struct{} `type:"structure" nopayload:"true"` 3564 3565 // The Amazon Resource Name (ARN) for the signing profile. 3566 // 3567 // ResourceArn is a required field 3568 ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` 3569 } 3570 3571 // String returns the string representation. 3572 // 3573 // API parameter values that are decorated as "sensitive" in the API will not 3574 // be included in the string output. The member name will be present, but the 3575 // value will be replaced with "sensitive". 3576 func (s ListTagsForResourceInput) String() string { 3577 return awsutil.Prettify(s) 3578 } 3579 3580 // GoString returns the string representation. 3581 // 3582 // API parameter values that are decorated as "sensitive" in the API will not 3583 // be included in the string output. The member name will be present, but the 3584 // value will be replaced with "sensitive". 3585 func (s ListTagsForResourceInput) GoString() string { 3586 return s.String() 3587 } 3588 3589 // Validate inspects the fields of the type to determine if they are valid. 3590 func (s *ListTagsForResourceInput) Validate() error { 3591 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 3592 if s.ResourceArn == nil { 3593 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 3594 } 3595 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 3596 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 3597 } 3598 3599 if invalidParams.Len() > 0 { 3600 return invalidParams 3601 } 3602 return nil 3603 } 3604 3605 // SetResourceArn sets the ResourceArn field's value. 3606 func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 3607 s.ResourceArn = &v 3608 return s 3609 } 3610 3611 type ListTagsForResourceOutput struct { 3612 _ struct{} `type:"structure"` 3613 3614 // A list of tags associated with the signing profile. 3615 Tags map[string]*string `locationName:"tags" min:"1" type:"map"` 3616 } 3617 3618 // String returns the string representation. 3619 // 3620 // API parameter values that are decorated as "sensitive" in the API will not 3621 // be included in the string output. The member name will be present, but the 3622 // value will be replaced with "sensitive". 3623 func (s ListTagsForResourceOutput) String() string { 3624 return awsutil.Prettify(s) 3625 } 3626 3627 // GoString returns the string representation. 3628 // 3629 // API parameter values that are decorated as "sensitive" in the API will not 3630 // be included in the string output. The member name will be present, but the 3631 // value will be replaced with "sensitive". 3632 func (s ListTagsForResourceOutput) GoString() string { 3633 return s.String() 3634 } 3635 3636 // SetTags sets the Tags field's value. 3637 func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { 3638 s.Tags = v 3639 return s 3640 } 3641 3642 // The signing profile was not found. 3643 type NotFoundException struct { 3644 _ struct{} `type:"structure"` 3645 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3646 3647 Code_ *string `locationName:"code" type:"string"` 3648 3649 Message_ *string `locationName:"message" type:"string"` 3650 } 3651 3652 // String returns the string representation. 3653 // 3654 // API parameter values that are decorated as "sensitive" in the API will not 3655 // be included in the string output. The member name will be present, but the 3656 // value will be replaced with "sensitive". 3657 func (s NotFoundException) String() string { 3658 return awsutil.Prettify(s) 3659 } 3660 3661 // GoString returns the string representation. 3662 // 3663 // API parameter values that are decorated as "sensitive" in the API will not 3664 // be included in the string output. The member name will be present, but the 3665 // value will be replaced with "sensitive". 3666 func (s NotFoundException) GoString() string { 3667 return s.String() 3668 } 3669 3670 func newErrorNotFoundException(v protocol.ResponseMetadata) error { 3671 return &NotFoundException{ 3672 RespMetadata: v, 3673 } 3674 } 3675 3676 // Code returns the exception type name. 3677 func (s *NotFoundException) Code() string { 3678 return "NotFoundException" 3679 } 3680 3681 // Message returns the exception's message. 3682 func (s *NotFoundException) Message() string { 3683 if s.Message_ != nil { 3684 return *s.Message_ 3685 } 3686 return "" 3687 } 3688 3689 // OrigErr always returns nil, satisfies awserr.Error interface. 3690 func (s *NotFoundException) OrigErr() error { 3691 return nil 3692 } 3693 3694 func (s *NotFoundException) Error() string { 3695 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 3696 } 3697 3698 // Status code returns the HTTP status code for the request's response error. 3699 func (s *NotFoundException) StatusCode() int { 3700 return s.RespMetadata.StatusCode 3701 } 3702 3703 // RequestID returns the service's response RequestID for request. 3704 func (s *NotFoundException) RequestID() string { 3705 return s.RespMetadata.RequestID 3706 } 3707 3708 // A cross-account permission for a signing profile. 3709 type Permission struct { 3710 _ struct{} `type:"structure"` 3711 3712 // An AWS Signer action permitted as part of cross-account permissions. 3713 Action *string `locationName:"action" type:"string"` 3714 3715 // The AWS principal that has been granted a cross-account permission. 3716 Principal *string `locationName:"principal" type:"string"` 3717 3718 // The signing profile version that a permission applies to. 3719 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 3720 3721 // A unique identifier for a cross-account permission statement. 3722 StatementId *string `locationName:"statementId" type:"string"` 3723 } 3724 3725 // String returns the string representation. 3726 // 3727 // API parameter values that are decorated as "sensitive" in the API will not 3728 // be included in the string output. The member name will be present, but the 3729 // value will be replaced with "sensitive". 3730 func (s Permission) String() string { 3731 return awsutil.Prettify(s) 3732 } 3733 3734 // GoString returns the string representation. 3735 // 3736 // API parameter values that are decorated as "sensitive" in the API will not 3737 // be included in the string output. The member name will be present, but the 3738 // value will be replaced with "sensitive". 3739 func (s Permission) GoString() string { 3740 return s.String() 3741 } 3742 3743 // SetAction sets the Action field's value. 3744 func (s *Permission) SetAction(v string) *Permission { 3745 s.Action = &v 3746 return s 3747 } 3748 3749 // SetPrincipal sets the Principal field's value. 3750 func (s *Permission) SetPrincipal(v string) *Permission { 3751 s.Principal = &v 3752 return s 3753 } 3754 3755 // SetProfileVersion sets the ProfileVersion field's value. 3756 func (s *Permission) SetProfileVersion(v string) *Permission { 3757 s.ProfileVersion = &v 3758 return s 3759 } 3760 3761 // SetStatementId sets the StatementId field's value. 3762 func (s *Permission) SetStatementId(v string) *Permission { 3763 s.StatementId = &v 3764 return s 3765 } 3766 3767 type PutSigningProfileInput struct { 3768 _ struct{} `type:"structure"` 3769 3770 // A subfield of platform. This specifies any different configuration options 3771 // that you want to apply to the chosen platform (such as a different hash-algorithm 3772 // or signing-algorithm). 3773 Overrides *SigningPlatformOverrides `locationName:"overrides" type:"structure"` 3774 3775 // The ID of the signing platform to be created. 3776 // 3777 // PlatformId is a required field 3778 PlatformId *string `locationName:"platformId" type:"string" required:"true"` 3779 3780 // The name of the signing profile to be created. 3781 // 3782 // ProfileName is a required field 3783 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 3784 3785 // The default validity period override for any signature generated using this 3786 // signing profile. If unspecified, the default is 135 months. 3787 SignatureValidityPeriod *SignatureValidityPeriod `locationName:"signatureValidityPeriod" type:"structure"` 3788 3789 // The AWS Certificate Manager certificate that will be used to sign code with 3790 // the new signing profile. 3791 SigningMaterial *SigningMaterial `locationName:"signingMaterial" type:"structure"` 3792 3793 // Map of key-value pairs for signing. These can include any information that 3794 // you want to use during signing. 3795 SigningParameters map[string]*string `locationName:"signingParameters" type:"map"` 3796 3797 // Tags to be associated with the signing profile that is being created. 3798 Tags map[string]*string `locationName:"tags" min:"1" type:"map"` 3799 } 3800 3801 // String returns the string representation. 3802 // 3803 // API parameter values that are decorated as "sensitive" in the API will not 3804 // be included in the string output. The member name will be present, but the 3805 // value will be replaced with "sensitive". 3806 func (s PutSigningProfileInput) String() string { 3807 return awsutil.Prettify(s) 3808 } 3809 3810 // GoString returns the string representation. 3811 // 3812 // API parameter values that are decorated as "sensitive" in the API will not 3813 // be included in the string output. The member name will be present, but the 3814 // value will be replaced with "sensitive". 3815 func (s PutSigningProfileInput) GoString() string { 3816 return s.String() 3817 } 3818 3819 // Validate inspects the fields of the type to determine if they are valid. 3820 func (s *PutSigningProfileInput) Validate() error { 3821 invalidParams := request.ErrInvalidParams{Context: "PutSigningProfileInput"} 3822 if s.PlatformId == nil { 3823 invalidParams.Add(request.NewErrParamRequired("PlatformId")) 3824 } 3825 if s.ProfileName == nil { 3826 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 3827 } 3828 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 3829 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 3830 } 3831 if s.Tags != nil && len(s.Tags) < 1 { 3832 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 3833 } 3834 if s.SigningMaterial != nil { 3835 if err := s.SigningMaterial.Validate(); err != nil { 3836 invalidParams.AddNested("SigningMaterial", err.(request.ErrInvalidParams)) 3837 } 3838 } 3839 3840 if invalidParams.Len() > 0 { 3841 return invalidParams 3842 } 3843 return nil 3844 } 3845 3846 // SetOverrides sets the Overrides field's value. 3847 func (s *PutSigningProfileInput) SetOverrides(v *SigningPlatformOverrides) *PutSigningProfileInput { 3848 s.Overrides = v 3849 return s 3850 } 3851 3852 // SetPlatformId sets the PlatformId field's value. 3853 func (s *PutSigningProfileInput) SetPlatformId(v string) *PutSigningProfileInput { 3854 s.PlatformId = &v 3855 return s 3856 } 3857 3858 // SetProfileName sets the ProfileName field's value. 3859 func (s *PutSigningProfileInput) SetProfileName(v string) *PutSigningProfileInput { 3860 s.ProfileName = &v 3861 return s 3862 } 3863 3864 // SetSignatureValidityPeriod sets the SignatureValidityPeriod field's value. 3865 func (s *PutSigningProfileInput) SetSignatureValidityPeriod(v *SignatureValidityPeriod) *PutSigningProfileInput { 3866 s.SignatureValidityPeriod = v 3867 return s 3868 } 3869 3870 // SetSigningMaterial sets the SigningMaterial field's value. 3871 func (s *PutSigningProfileInput) SetSigningMaterial(v *SigningMaterial) *PutSigningProfileInput { 3872 s.SigningMaterial = v 3873 return s 3874 } 3875 3876 // SetSigningParameters sets the SigningParameters field's value. 3877 func (s *PutSigningProfileInput) SetSigningParameters(v map[string]*string) *PutSigningProfileInput { 3878 s.SigningParameters = v 3879 return s 3880 } 3881 3882 // SetTags sets the Tags field's value. 3883 func (s *PutSigningProfileInput) SetTags(v map[string]*string) *PutSigningProfileInput { 3884 s.Tags = v 3885 return s 3886 } 3887 3888 type PutSigningProfileOutput struct { 3889 _ struct{} `type:"structure"` 3890 3891 // The Amazon Resource Name (ARN) of the signing profile created. 3892 Arn *string `locationName:"arn" type:"string"` 3893 3894 // The version of the signing profile being created. 3895 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 3896 3897 // The signing profile ARN, including the profile version. 3898 ProfileVersionArn *string `locationName:"profileVersionArn" min:"20" type:"string"` 3899 } 3900 3901 // String returns the string representation. 3902 // 3903 // API parameter values that are decorated as "sensitive" in the API will not 3904 // be included in the string output. The member name will be present, but the 3905 // value will be replaced with "sensitive". 3906 func (s PutSigningProfileOutput) String() string { 3907 return awsutil.Prettify(s) 3908 } 3909 3910 // GoString returns the string representation. 3911 // 3912 // API parameter values that are decorated as "sensitive" in the API will not 3913 // be included in the string output. The member name will be present, but the 3914 // value will be replaced with "sensitive". 3915 func (s PutSigningProfileOutput) GoString() string { 3916 return s.String() 3917 } 3918 3919 // SetArn sets the Arn field's value. 3920 func (s *PutSigningProfileOutput) SetArn(v string) *PutSigningProfileOutput { 3921 s.Arn = &v 3922 return s 3923 } 3924 3925 // SetProfileVersion sets the ProfileVersion field's value. 3926 func (s *PutSigningProfileOutput) SetProfileVersion(v string) *PutSigningProfileOutput { 3927 s.ProfileVersion = &v 3928 return s 3929 } 3930 3931 // SetProfileVersionArn sets the ProfileVersionArn field's value. 3932 func (s *PutSigningProfileOutput) SetProfileVersionArn(v string) *PutSigningProfileOutput { 3933 s.ProfileVersionArn = &v 3934 return s 3935 } 3936 3937 type RemoveProfilePermissionInput struct { 3938 _ struct{} `type:"structure" nopayload:"true"` 3939 3940 // A human-readable name for the signing profile with permissions to be removed. 3941 // 3942 // ProfileName is a required field 3943 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 3944 3945 // An identifier for the current revision of the signing profile permissions. 3946 // 3947 // RevisionId is a required field 3948 RevisionId *string `location:"querystring" locationName:"revisionId" type:"string" required:"true"` 3949 3950 // A unique identifier for the cross-account permissions statement. 3951 // 3952 // StatementId is a required field 3953 StatementId *string `location:"uri" locationName:"statementId" type:"string" required:"true"` 3954 } 3955 3956 // String returns the string representation. 3957 // 3958 // API parameter values that are decorated as "sensitive" in the API will not 3959 // be included in the string output. The member name will be present, but the 3960 // value will be replaced with "sensitive". 3961 func (s RemoveProfilePermissionInput) String() string { 3962 return awsutil.Prettify(s) 3963 } 3964 3965 // GoString returns the string representation. 3966 // 3967 // API parameter values that are decorated as "sensitive" in the API will not 3968 // be included in the string output. The member name will be present, but the 3969 // value will be replaced with "sensitive". 3970 func (s RemoveProfilePermissionInput) GoString() string { 3971 return s.String() 3972 } 3973 3974 // Validate inspects the fields of the type to determine if they are valid. 3975 func (s *RemoveProfilePermissionInput) Validate() error { 3976 invalidParams := request.ErrInvalidParams{Context: "RemoveProfilePermissionInput"} 3977 if s.ProfileName == nil { 3978 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 3979 } 3980 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 3981 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 3982 } 3983 if s.RevisionId == nil { 3984 invalidParams.Add(request.NewErrParamRequired("RevisionId")) 3985 } 3986 if s.StatementId == nil { 3987 invalidParams.Add(request.NewErrParamRequired("StatementId")) 3988 } 3989 if s.StatementId != nil && len(*s.StatementId) < 1 { 3990 invalidParams.Add(request.NewErrParamMinLen("StatementId", 1)) 3991 } 3992 3993 if invalidParams.Len() > 0 { 3994 return invalidParams 3995 } 3996 return nil 3997 } 3998 3999 // SetProfileName sets the ProfileName field's value. 4000 func (s *RemoveProfilePermissionInput) SetProfileName(v string) *RemoveProfilePermissionInput { 4001 s.ProfileName = &v 4002 return s 4003 } 4004 4005 // SetRevisionId sets the RevisionId field's value. 4006 func (s *RemoveProfilePermissionInput) SetRevisionId(v string) *RemoveProfilePermissionInput { 4007 s.RevisionId = &v 4008 return s 4009 } 4010 4011 // SetStatementId sets the StatementId field's value. 4012 func (s *RemoveProfilePermissionInput) SetStatementId(v string) *RemoveProfilePermissionInput { 4013 s.StatementId = &v 4014 return s 4015 } 4016 4017 type RemoveProfilePermissionOutput struct { 4018 _ struct{} `type:"structure"` 4019 4020 // An identifier for the current revision of the profile permissions. 4021 RevisionId *string `locationName:"revisionId" type:"string"` 4022 } 4023 4024 // String returns the string representation. 4025 // 4026 // API parameter values that are decorated as "sensitive" in the API will not 4027 // be included in the string output. The member name will be present, but the 4028 // value will be replaced with "sensitive". 4029 func (s RemoveProfilePermissionOutput) String() string { 4030 return awsutil.Prettify(s) 4031 } 4032 4033 // GoString returns the string representation. 4034 // 4035 // API parameter values that are decorated as "sensitive" in the API will not 4036 // be included in the string output. The member name will be present, but the 4037 // value will be replaced with "sensitive". 4038 func (s RemoveProfilePermissionOutput) GoString() string { 4039 return s.String() 4040 } 4041 4042 // SetRevisionId sets the RevisionId field's value. 4043 func (s *RemoveProfilePermissionOutput) SetRevisionId(v string) *RemoveProfilePermissionOutput { 4044 s.RevisionId = &v 4045 return s 4046 } 4047 4048 // A specified resource could not be found. 4049 type ResourceNotFoundException struct { 4050 _ struct{} `type:"structure"` 4051 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4052 4053 Code_ *string `locationName:"code" type:"string"` 4054 4055 Message_ *string `locationName:"message" type:"string"` 4056 } 4057 4058 // String returns the string representation. 4059 // 4060 // API parameter values that are decorated as "sensitive" in the API will not 4061 // be included in the string output. The member name will be present, but the 4062 // value will be replaced with "sensitive". 4063 func (s ResourceNotFoundException) String() string { 4064 return awsutil.Prettify(s) 4065 } 4066 4067 // GoString returns the string representation. 4068 // 4069 // API parameter values that are decorated as "sensitive" in the API will not 4070 // be included in the string output. The member name will be present, but the 4071 // value will be replaced with "sensitive". 4072 func (s ResourceNotFoundException) GoString() string { 4073 return s.String() 4074 } 4075 4076 func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 4077 return &ResourceNotFoundException{ 4078 RespMetadata: v, 4079 } 4080 } 4081 4082 // Code returns the exception type name. 4083 func (s *ResourceNotFoundException) Code() string { 4084 return "ResourceNotFoundException" 4085 } 4086 4087 // Message returns the exception's message. 4088 func (s *ResourceNotFoundException) Message() string { 4089 if s.Message_ != nil { 4090 return *s.Message_ 4091 } 4092 return "" 4093 } 4094 4095 // OrigErr always returns nil, satisfies awserr.Error interface. 4096 func (s *ResourceNotFoundException) OrigErr() error { 4097 return nil 4098 } 4099 4100 func (s *ResourceNotFoundException) Error() string { 4101 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 4102 } 4103 4104 // Status code returns the HTTP status code for the request's response error. 4105 func (s *ResourceNotFoundException) StatusCode() int { 4106 return s.RespMetadata.StatusCode 4107 } 4108 4109 // RequestID returns the service's response RequestID for request. 4110 func (s *ResourceNotFoundException) RequestID() string { 4111 return s.RespMetadata.RequestID 4112 } 4113 4114 type RevokeSignatureInput struct { 4115 _ struct{} `type:"structure"` 4116 4117 // ID of the signing job to be revoked. 4118 // 4119 // JobId is a required field 4120 JobId *string `location:"uri" locationName:"jobId" type:"string" required:"true"` 4121 4122 // AWS account ID of the job owner. 4123 JobOwner *string `locationName:"jobOwner" min:"12" type:"string"` 4124 4125 // The reason for revoking the signing job. 4126 // 4127 // Reason is a required field 4128 Reason *string `locationName:"reason" min:"1" type:"string" required:"true"` 4129 } 4130 4131 // String returns the string representation. 4132 // 4133 // API parameter values that are decorated as "sensitive" in the API will not 4134 // be included in the string output. The member name will be present, but the 4135 // value will be replaced with "sensitive". 4136 func (s RevokeSignatureInput) String() string { 4137 return awsutil.Prettify(s) 4138 } 4139 4140 // GoString returns the string representation. 4141 // 4142 // API parameter values that are decorated as "sensitive" in the API will not 4143 // be included in the string output. The member name will be present, but the 4144 // value will be replaced with "sensitive". 4145 func (s RevokeSignatureInput) GoString() string { 4146 return s.String() 4147 } 4148 4149 // Validate inspects the fields of the type to determine if they are valid. 4150 func (s *RevokeSignatureInput) Validate() error { 4151 invalidParams := request.ErrInvalidParams{Context: "RevokeSignatureInput"} 4152 if s.JobId == nil { 4153 invalidParams.Add(request.NewErrParamRequired("JobId")) 4154 } 4155 if s.JobId != nil && len(*s.JobId) < 1 { 4156 invalidParams.Add(request.NewErrParamMinLen("JobId", 1)) 4157 } 4158 if s.JobOwner != nil && len(*s.JobOwner) < 12 { 4159 invalidParams.Add(request.NewErrParamMinLen("JobOwner", 12)) 4160 } 4161 if s.Reason == nil { 4162 invalidParams.Add(request.NewErrParamRequired("Reason")) 4163 } 4164 if s.Reason != nil && len(*s.Reason) < 1 { 4165 invalidParams.Add(request.NewErrParamMinLen("Reason", 1)) 4166 } 4167 4168 if invalidParams.Len() > 0 { 4169 return invalidParams 4170 } 4171 return nil 4172 } 4173 4174 // SetJobId sets the JobId field's value. 4175 func (s *RevokeSignatureInput) SetJobId(v string) *RevokeSignatureInput { 4176 s.JobId = &v 4177 return s 4178 } 4179 4180 // SetJobOwner sets the JobOwner field's value. 4181 func (s *RevokeSignatureInput) SetJobOwner(v string) *RevokeSignatureInput { 4182 s.JobOwner = &v 4183 return s 4184 } 4185 4186 // SetReason sets the Reason field's value. 4187 func (s *RevokeSignatureInput) SetReason(v string) *RevokeSignatureInput { 4188 s.Reason = &v 4189 return s 4190 } 4191 4192 type RevokeSignatureOutput struct { 4193 _ struct{} `type:"structure" nopayload:"true"` 4194 } 4195 4196 // String returns the string representation. 4197 // 4198 // API parameter values that are decorated as "sensitive" in the API will not 4199 // be included in the string output. The member name will be present, but the 4200 // value will be replaced with "sensitive". 4201 func (s RevokeSignatureOutput) String() string { 4202 return awsutil.Prettify(s) 4203 } 4204 4205 // GoString returns the string representation. 4206 // 4207 // API parameter values that are decorated as "sensitive" in the API will not 4208 // be included in the string output. The member name will be present, but the 4209 // value will be replaced with "sensitive". 4210 func (s RevokeSignatureOutput) GoString() string { 4211 return s.String() 4212 } 4213 4214 type RevokeSigningProfileInput struct { 4215 _ struct{} `type:"structure"` 4216 4217 // A timestamp for when revocation of a Signing Profile should become effective. 4218 // Signatures generated using the signing profile after this timestamp are not 4219 // trusted. 4220 // 4221 // EffectiveTime is a required field 4222 EffectiveTime *time.Time `locationName:"effectiveTime" type:"timestamp" required:"true"` 4223 4224 // The name of the signing profile to be revoked. 4225 // 4226 // ProfileName is a required field 4227 ProfileName *string `location:"uri" locationName:"profileName" min:"2" type:"string" required:"true"` 4228 4229 // The version of the signing profile to be revoked. 4230 // 4231 // ProfileVersion is a required field 4232 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string" required:"true"` 4233 4234 // The reason for revoking a signing profile. 4235 // 4236 // Reason is a required field 4237 Reason *string `locationName:"reason" min:"1" type:"string" required:"true"` 4238 } 4239 4240 // String returns the string representation. 4241 // 4242 // API parameter values that are decorated as "sensitive" in the API will not 4243 // be included in the string output. The member name will be present, but the 4244 // value will be replaced with "sensitive". 4245 func (s RevokeSigningProfileInput) String() string { 4246 return awsutil.Prettify(s) 4247 } 4248 4249 // GoString returns the string representation. 4250 // 4251 // API parameter values that are decorated as "sensitive" in the API will not 4252 // be included in the string output. The member name will be present, but the 4253 // value will be replaced with "sensitive". 4254 func (s RevokeSigningProfileInput) GoString() string { 4255 return s.String() 4256 } 4257 4258 // Validate inspects the fields of the type to determine if they are valid. 4259 func (s *RevokeSigningProfileInput) Validate() error { 4260 invalidParams := request.ErrInvalidParams{Context: "RevokeSigningProfileInput"} 4261 if s.EffectiveTime == nil { 4262 invalidParams.Add(request.NewErrParamRequired("EffectiveTime")) 4263 } 4264 if s.ProfileName == nil { 4265 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 4266 } 4267 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 4268 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 4269 } 4270 if s.ProfileVersion == nil { 4271 invalidParams.Add(request.NewErrParamRequired("ProfileVersion")) 4272 } 4273 if s.ProfileVersion != nil && len(*s.ProfileVersion) < 10 { 4274 invalidParams.Add(request.NewErrParamMinLen("ProfileVersion", 10)) 4275 } 4276 if s.Reason == nil { 4277 invalidParams.Add(request.NewErrParamRequired("Reason")) 4278 } 4279 if s.Reason != nil && len(*s.Reason) < 1 { 4280 invalidParams.Add(request.NewErrParamMinLen("Reason", 1)) 4281 } 4282 4283 if invalidParams.Len() > 0 { 4284 return invalidParams 4285 } 4286 return nil 4287 } 4288 4289 // SetEffectiveTime sets the EffectiveTime field's value. 4290 func (s *RevokeSigningProfileInput) SetEffectiveTime(v time.Time) *RevokeSigningProfileInput { 4291 s.EffectiveTime = &v 4292 return s 4293 } 4294 4295 // SetProfileName sets the ProfileName field's value. 4296 func (s *RevokeSigningProfileInput) SetProfileName(v string) *RevokeSigningProfileInput { 4297 s.ProfileName = &v 4298 return s 4299 } 4300 4301 // SetProfileVersion sets the ProfileVersion field's value. 4302 func (s *RevokeSigningProfileInput) SetProfileVersion(v string) *RevokeSigningProfileInput { 4303 s.ProfileVersion = &v 4304 return s 4305 } 4306 4307 // SetReason sets the Reason field's value. 4308 func (s *RevokeSigningProfileInput) SetReason(v string) *RevokeSigningProfileInput { 4309 s.Reason = &v 4310 return s 4311 } 4312 4313 type RevokeSigningProfileOutput struct { 4314 _ struct{} `type:"structure" nopayload:"true"` 4315 } 4316 4317 // String returns the string representation. 4318 // 4319 // API parameter values that are decorated as "sensitive" in the API will not 4320 // be included in the string output. The member name will be present, but the 4321 // value will be replaced with "sensitive". 4322 func (s RevokeSigningProfileOutput) String() string { 4323 return awsutil.Prettify(s) 4324 } 4325 4326 // GoString returns the string representation. 4327 // 4328 // API parameter values that are decorated as "sensitive" in the API will not 4329 // be included in the string output. The member name will be present, but the 4330 // value will be replaced with "sensitive". 4331 func (s RevokeSigningProfileOutput) GoString() string { 4332 return s.String() 4333 } 4334 4335 // The name and prefix of the S3 bucket where code signing saves your signed 4336 // objects. 4337 type S3Destination struct { 4338 _ struct{} `type:"structure"` 4339 4340 // Name of the S3 bucket. 4341 BucketName *string `locationName:"bucketName" type:"string"` 4342 4343 // An Amazon S3 prefix that you can use to limit responses to those that begin 4344 // with the specified prefix. 4345 Prefix *string `locationName:"prefix" type:"string"` 4346 } 4347 4348 // String returns the string representation. 4349 // 4350 // API parameter values that are decorated as "sensitive" in the API will not 4351 // be included in the string output. The member name will be present, but the 4352 // value will be replaced with "sensitive". 4353 func (s S3Destination) String() string { 4354 return awsutil.Prettify(s) 4355 } 4356 4357 // GoString returns the string representation. 4358 // 4359 // API parameter values that are decorated as "sensitive" in the API will not 4360 // be included in the string output. The member name will be present, but the 4361 // value will be replaced with "sensitive". 4362 func (s S3Destination) GoString() string { 4363 return s.String() 4364 } 4365 4366 // SetBucketName sets the BucketName field's value. 4367 func (s *S3Destination) SetBucketName(v string) *S3Destination { 4368 s.BucketName = &v 4369 return s 4370 } 4371 4372 // SetPrefix sets the Prefix field's value. 4373 func (s *S3Destination) SetPrefix(v string) *S3Destination { 4374 s.Prefix = &v 4375 return s 4376 } 4377 4378 // The S3 bucket name and key where code signing saved your signed code image. 4379 type S3SignedObject struct { 4380 _ struct{} `type:"structure"` 4381 4382 // Name of the S3 bucket. 4383 BucketName *string `locationName:"bucketName" type:"string"` 4384 4385 // Key name that uniquely identifies a signed code image in your bucket. 4386 Key *string `locationName:"key" type:"string"` 4387 } 4388 4389 // String returns the string representation. 4390 // 4391 // API parameter values that are decorated as "sensitive" in the API will not 4392 // be included in the string output. The member name will be present, but the 4393 // value will be replaced with "sensitive". 4394 func (s S3SignedObject) String() string { 4395 return awsutil.Prettify(s) 4396 } 4397 4398 // GoString returns the string representation. 4399 // 4400 // API parameter values that are decorated as "sensitive" in the API will not 4401 // be included in the string output. The member name will be present, but the 4402 // value will be replaced with "sensitive". 4403 func (s S3SignedObject) GoString() string { 4404 return s.String() 4405 } 4406 4407 // SetBucketName sets the BucketName field's value. 4408 func (s *S3SignedObject) SetBucketName(v string) *S3SignedObject { 4409 s.BucketName = &v 4410 return s 4411 } 4412 4413 // SetKey sets the Key field's value. 4414 func (s *S3SignedObject) SetKey(v string) *S3SignedObject { 4415 s.Key = &v 4416 return s 4417 } 4418 4419 // Information about the S3 bucket where you saved your unsigned code. 4420 type S3Source struct { 4421 _ struct{} `type:"structure"` 4422 4423 // Name of the S3 bucket. 4424 // 4425 // BucketName is a required field 4426 BucketName *string `locationName:"bucketName" type:"string" required:"true"` 4427 4428 // Key name of the bucket object that contains your unsigned code. 4429 // 4430 // Key is a required field 4431 Key *string `locationName:"key" type:"string" required:"true"` 4432 4433 // Version of your source image in your version enabled S3 bucket. 4434 // 4435 // Version is a required field 4436 Version *string `locationName:"version" type:"string" required:"true"` 4437 } 4438 4439 // String returns the string representation. 4440 // 4441 // API parameter values that are decorated as "sensitive" in the API will not 4442 // be included in the string output. The member name will be present, but the 4443 // value will be replaced with "sensitive". 4444 func (s S3Source) String() string { 4445 return awsutil.Prettify(s) 4446 } 4447 4448 // GoString returns the string representation. 4449 // 4450 // API parameter values that are decorated as "sensitive" in the API will not 4451 // be included in the string output. The member name will be present, but the 4452 // value will be replaced with "sensitive". 4453 func (s S3Source) GoString() string { 4454 return s.String() 4455 } 4456 4457 // Validate inspects the fields of the type to determine if they are valid. 4458 func (s *S3Source) Validate() error { 4459 invalidParams := request.ErrInvalidParams{Context: "S3Source"} 4460 if s.BucketName == nil { 4461 invalidParams.Add(request.NewErrParamRequired("BucketName")) 4462 } 4463 if s.Key == nil { 4464 invalidParams.Add(request.NewErrParamRequired("Key")) 4465 } 4466 if s.Version == nil { 4467 invalidParams.Add(request.NewErrParamRequired("Version")) 4468 } 4469 4470 if invalidParams.Len() > 0 { 4471 return invalidParams 4472 } 4473 return nil 4474 } 4475 4476 // SetBucketName sets the BucketName field's value. 4477 func (s *S3Source) SetBucketName(v string) *S3Source { 4478 s.BucketName = &v 4479 return s 4480 } 4481 4482 // SetKey sets the Key field's value. 4483 func (s *S3Source) SetKey(v string) *S3Source { 4484 s.Key = &v 4485 return s 4486 } 4487 4488 // SetVersion sets the Version field's value. 4489 func (s *S3Source) SetVersion(v string) *S3Source { 4490 s.Version = &v 4491 return s 4492 } 4493 4494 // The client is making a request that exceeds service limits. 4495 type ServiceLimitExceededException struct { 4496 _ struct{} `type:"structure"` 4497 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4498 4499 Code_ *string `locationName:"code" type:"string"` 4500 4501 Message_ *string `locationName:"message" type:"string"` 4502 } 4503 4504 // String returns the string representation. 4505 // 4506 // API parameter values that are decorated as "sensitive" in the API will not 4507 // be included in the string output. The member name will be present, but the 4508 // value will be replaced with "sensitive". 4509 func (s ServiceLimitExceededException) String() string { 4510 return awsutil.Prettify(s) 4511 } 4512 4513 // GoString returns the string representation. 4514 // 4515 // API parameter values that are decorated as "sensitive" in the API will not 4516 // be included in the string output. The member name will be present, but the 4517 // value will be replaced with "sensitive". 4518 func (s ServiceLimitExceededException) GoString() string { 4519 return s.String() 4520 } 4521 4522 func newErrorServiceLimitExceededException(v protocol.ResponseMetadata) error { 4523 return &ServiceLimitExceededException{ 4524 RespMetadata: v, 4525 } 4526 } 4527 4528 // Code returns the exception type name. 4529 func (s *ServiceLimitExceededException) Code() string { 4530 return "ServiceLimitExceededException" 4531 } 4532 4533 // Message returns the exception's message. 4534 func (s *ServiceLimitExceededException) Message() string { 4535 if s.Message_ != nil { 4536 return *s.Message_ 4537 } 4538 return "" 4539 } 4540 4541 // OrigErr always returns nil, satisfies awserr.Error interface. 4542 func (s *ServiceLimitExceededException) OrigErr() error { 4543 return nil 4544 } 4545 4546 func (s *ServiceLimitExceededException) Error() string { 4547 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 4548 } 4549 4550 // Status code returns the HTTP status code for the request's response error. 4551 func (s *ServiceLimitExceededException) StatusCode() int { 4552 return s.RespMetadata.StatusCode 4553 } 4554 4555 // RequestID returns the service's response RequestID for request. 4556 func (s *ServiceLimitExceededException) RequestID() string { 4557 return s.RespMetadata.RequestID 4558 } 4559 4560 // The validity period for a signing job. 4561 type SignatureValidityPeriod struct { 4562 _ struct{} `type:"structure"` 4563 4564 // The time unit for signature validity. 4565 Type *string `locationName:"type" type:"string" enum:"ValidityType"` 4566 4567 // The numerical value of the time unit for signature validity. 4568 Value *int64 `locationName:"value" type:"integer"` 4569 } 4570 4571 // String returns the string representation. 4572 // 4573 // API parameter values that are decorated as "sensitive" in the API will not 4574 // be included in the string output. The member name will be present, but the 4575 // value will be replaced with "sensitive". 4576 func (s SignatureValidityPeriod) String() string { 4577 return awsutil.Prettify(s) 4578 } 4579 4580 // GoString returns the string representation. 4581 // 4582 // API parameter values that are decorated as "sensitive" in the API will not 4583 // be included in the string output. The member name will be present, but the 4584 // value will be replaced with "sensitive". 4585 func (s SignatureValidityPeriod) GoString() string { 4586 return s.String() 4587 } 4588 4589 // SetType sets the Type field's value. 4590 func (s *SignatureValidityPeriod) SetType(v string) *SignatureValidityPeriod { 4591 s.Type = &v 4592 return s 4593 } 4594 4595 // SetValue sets the Value field's value. 4596 func (s *SignatureValidityPeriod) SetValue(v int64) *SignatureValidityPeriod { 4597 s.Value = &v 4598 return s 4599 } 4600 4601 // Points to an S3SignedObject object that contains information about your signed 4602 // code image. 4603 type SignedObject struct { 4604 _ struct{} `type:"structure"` 4605 4606 // The S3SignedObject. 4607 S3 *S3SignedObject `locationName:"s3" type:"structure"` 4608 } 4609 4610 // String returns the string representation. 4611 // 4612 // API parameter values that are decorated as "sensitive" in the API will not 4613 // be included in the string output. The member name will be present, but the 4614 // value will be replaced with "sensitive". 4615 func (s SignedObject) String() string { 4616 return awsutil.Prettify(s) 4617 } 4618 4619 // GoString returns the string representation. 4620 // 4621 // API parameter values that are decorated as "sensitive" in the API will not 4622 // be included in the string output. The member name will be present, but the 4623 // value will be replaced with "sensitive". 4624 func (s SignedObject) GoString() string { 4625 return s.String() 4626 } 4627 4628 // SetS3 sets the S3 field's value. 4629 func (s *SignedObject) SetS3(v *S3SignedObject) *SignedObject { 4630 s.S3 = v 4631 return s 4632 } 4633 4634 // The configuration of a code signing operation. 4635 type SigningConfiguration struct { 4636 _ struct{} `type:"structure"` 4637 4638 // The encryption algorithm options that are available for a code signing job. 4639 // 4640 // EncryptionAlgorithmOptions is a required field 4641 EncryptionAlgorithmOptions *EncryptionAlgorithmOptions `locationName:"encryptionAlgorithmOptions" type:"structure" required:"true"` 4642 4643 // The hash algorithm options that are available for a code signing job. 4644 // 4645 // HashAlgorithmOptions is a required field 4646 HashAlgorithmOptions *HashAlgorithmOptions `locationName:"hashAlgorithmOptions" type:"structure" required:"true"` 4647 } 4648 4649 // String returns the string representation. 4650 // 4651 // API parameter values that are decorated as "sensitive" in the API will not 4652 // be included in the string output. The member name will be present, but the 4653 // value will be replaced with "sensitive". 4654 func (s SigningConfiguration) String() string { 4655 return awsutil.Prettify(s) 4656 } 4657 4658 // GoString returns the string representation. 4659 // 4660 // API parameter values that are decorated as "sensitive" in the API will not 4661 // be included in the string output. The member name will be present, but the 4662 // value will be replaced with "sensitive". 4663 func (s SigningConfiguration) GoString() string { 4664 return s.String() 4665 } 4666 4667 // SetEncryptionAlgorithmOptions sets the EncryptionAlgorithmOptions field's value. 4668 func (s *SigningConfiguration) SetEncryptionAlgorithmOptions(v *EncryptionAlgorithmOptions) *SigningConfiguration { 4669 s.EncryptionAlgorithmOptions = v 4670 return s 4671 } 4672 4673 // SetHashAlgorithmOptions sets the HashAlgorithmOptions field's value. 4674 func (s *SigningConfiguration) SetHashAlgorithmOptions(v *HashAlgorithmOptions) *SigningConfiguration { 4675 s.HashAlgorithmOptions = v 4676 return s 4677 } 4678 4679 // A signing configuration that overrides the default encryption or hash algorithm 4680 // of a signing job. 4681 type SigningConfigurationOverrides struct { 4682 _ struct{} `type:"structure"` 4683 4684 // A specified override of the default encryption algorithm that is used in 4685 // a code signing job. 4686 EncryptionAlgorithm *string `locationName:"encryptionAlgorithm" type:"string" enum:"EncryptionAlgorithm"` 4687 4688 // A specified override of the default hash algorithm that is used in a code 4689 // signing job. 4690 HashAlgorithm *string `locationName:"hashAlgorithm" type:"string" enum:"HashAlgorithm"` 4691 } 4692 4693 // String returns the string representation. 4694 // 4695 // API parameter values that are decorated as "sensitive" in the API will not 4696 // be included in the string output. The member name will be present, but the 4697 // value will be replaced with "sensitive". 4698 func (s SigningConfigurationOverrides) String() string { 4699 return awsutil.Prettify(s) 4700 } 4701 4702 // GoString returns the string representation. 4703 // 4704 // API parameter values that are decorated as "sensitive" in the API will not 4705 // be included in the string output. The member name will be present, but the 4706 // value will be replaced with "sensitive". 4707 func (s SigningConfigurationOverrides) GoString() string { 4708 return s.String() 4709 } 4710 4711 // SetEncryptionAlgorithm sets the EncryptionAlgorithm field's value. 4712 func (s *SigningConfigurationOverrides) SetEncryptionAlgorithm(v string) *SigningConfigurationOverrides { 4713 s.EncryptionAlgorithm = &v 4714 return s 4715 } 4716 4717 // SetHashAlgorithm sets the HashAlgorithm field's value. 4718 func (s *SigningConfigurationOverrides) SetHashAlgorithm(v string) *SigningConfigurationOverrides { 4719 s.HashAlgorithm = &v 4720 return s 4721 } 4722 4723 // The image format of a code signing platform or profile. 4724 type SigningImageFormat struct { 4725 _ struct{} `type:"structure"` 4726 4727 // The default format of a code signing image. 4728 // 4729 // DefaultFormat is a required field 4730 DefaultFormat *string `locationName:"defaultFormat" type:"string" required:"true" enum:"ImageFormat"` 4731 4732 // The supported formats of a code signing image. 4733 // 4734 // SupportedFormats is a required field 4735 SupportedFormats []*string `locationName:"supportedFormats" type:"list" required:"true"` 4736 } 4737 4738 // String returns the string representation. 4739 // 4740 // API parameter values that are decorated as "sensitive" in the API will not 4741 // be included in the string output. The member name will be present, but the 4742 // value will be replaced with "sensitive". 4743 func (s SigningImageFormat) String() string { 4744 return awsutil.Prettify(s) 4745 } 4746 4747 // GoString returns the string representation. 4748 // 4749 // API parameter values that are decorated as "sensitive" in the API will not 4750 // be included in the string output. The member name will be present, but the 4751 // value will be replaced with "sensitive". 4752 func (s SigningImageFormat) GoString() string { 4753 return s.String() 4754 } 4755 4756 // SetDefaultFormat sets the DefaultFormat field's value. 4757 func (s *SigningImageFormat) SetDefaultFormat(v string) *SigningImageFormat { 4758 s.DefaultFormat = &v 4759 return s 4760 } 4761 4762 // SetSupportedFormats sets the SupportedFormats field's value. 4763 func (s *SigningImageFormat) SetSupportedFormats(v []*string) *SigningImageFormat { 4764 s.SupportedFormats = v 4765 return s 4766 } 4767 4768 // Contains information about a signing job. 4769 type SigningJob struct { 4770 _ struct{} `type:"structure"` 4771 4772 // The date and time that the signing job was created. 4773 CreatedAt *time.Time `locationName:"createdAt" type:"timestamp"` 4774 4775 // Indicates whether the signing job is revoked. 4776 IsRevoked *bool `locationName:"isRevoked" type:"boolean"` 4777 4778 // The ID of the signing job. 4779 JobId *string `locationName:"jobId" type:"string"` 4780 4781 // The AWS account ID of the job invoker. 4782 JobInvoker *string `locationName:"jobInvoker" min:"12" type:"string"` 4783 4784 // The AWS account ID of the job owner. 4785 JobOwner *string `locationName:"jobOwner" min:"12" type:"string"` 4786 4787 // The name of a signing platform. 4788 PlatformDisplayName *string `locationName:"platformDisplayName" type:"string"` 4789 4790 // The unique identifier for a signing platform. 4791 PlatformId *string `locationName:"platformId" type:"string"` 4792 4793 // The name of the signing profile that created a signing job. 4794 ProfileName *string `locationName:"profileName" min:"2" type:"string"` 4795 4796 // The version of the signing profile that created a signing job. 4797 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 4798 4799 // The time when the signature of a signing job expires. 4800 SignatureExpiresAt *time.Time `locationName:"signatureExpiresAt" type:"timestamp"` 4801 4802 // A SignedObject structure that contains information about a signing job's 4803 // signed code image. 4804 SignedObject *SignedObject `locationName:"signedObject" type:"structure"` 4805 4806 // A SigningMaterial object that contains the Amazon Resource Name (ARN) of 4807 // the certificate used for the signing job. 4808 SigningMaterial *SigningMaterial `locationName:"signingMaterial" type:"structure"` 4809 4810 // A Source that contains information about a signing job's code image source. 4811 Source *Source `locationName:"source" type:"structure"` 4812 4813 // The status of the signing job. 4814 Status *string `locationName:"status" type:"string" enum:"SigningStatus"` 4815 } 4816 4817 // String returns the string representation. 4818 // 4819 // API parameter values that are decorated as "sensitive" in the API will not 4820 // be included in the string output. The member name will be present, but the 4821 // value will be replaced with "sensitive". 4822 func (s SigningJob) String() string { 4823 return awsutil.Prettify(s) 4824 } 4825 4826 // GoString returns the string representation. 4827 // 4828 // API parameter values that are decorated as "sensitive" in the API will not 4829 // be included in the string output. The member name will be present, but the 4830 // value will be replaced with "sensitive". 4831 func (s SigningJob) GoString() string { 4832 return s.String() 4833 } 4834 4835 // SetCreatedAt sets the CreatedAt field's value. 4836 func (s *SigningJob) SetCreatedAt(v time.Time) *SigningJob { 4837 s.CreatedAt = &v 4838 return s 4839 } 4840 4841 // SetIsRevoked sets the IsRevoked field's value. 4842 func (s *SigningJob) SetIsRevoked(v bool) *SigningJob { 4843 s.IsRevoked = &v 4844 return s 4845 } 4846 4847 // SetJobId sets the JobId field's value. 4848 func (s *SigningJob) SetJobId(v string) *SigningJob { 4849 s.JobId = &v 4850 return s 4851 } 4852 4853 // SetJobInvoker sets the JobInvoker field's value. 4854 func (s *SigningJob) SetJobInvoker(v string) *SigningJob { 4855 s.JobInvoker = &v 4856 return s 4857 } 4858 4859 // SetJobOwner sets the JobOwner field's value. 4860 func (s *SigningJob) SetJobOwner(v string) *SigningJob { 4861 s.JobOwner = &v 4862 return s 4863 } 4864 4865 // SetPlatformDisplayName sets the PlatformDisplayName field's value. 4866 func (s *SigningJob) SetPlatformDisplayName(v string) *SigningJob { 4867 s.PlatformDisplayName = &v 4868 return s 4869 } 4870 4871 // SetPlatformId sets the PlatformId field's value. 4872 func (s *SigningJob) SetPlatformId(v string) *SigningJob { 4873 s.PlatformId = &v 4874 return s 4875 } 4876 4877 // SetProfileName sets the ProfileName field's value. 4878 func (s *SigningJob) SetProfileName(v string) *SigningJob { 4879 s.ProfileName = &v 4880 return s 4881 } 4882 4883 // SetProfileVersion sets the ProfileVersion field's value. 4884 func (s *SigningJob) SetProfileVersion(v string) *SigningJob { 4885 s.ProfileVersion = &v 4886 return s 4887 } 4888 4889 // SetSignatureExpiresAt sets the SignatureExpiresAt field's value. 4890 func (s *SigningJob) SetSignatureExpiresAt(v time.Time) *SigningJob { 4891 s.SignatureExpiresAt = &v 4892 return s 4893 } 4894 4895 // SetSignedObject sets the SignedObject field's value. 4896 func (s *SigningJob) SetSignedObject(v *SignedObject) *SigningJob { 4897 s.SignedObject = v 4898 return s 4899 } 4900 4901 // SetSigningMaterial sets the SigningMaterial field's value. 4902 func (s *SigningJob) SetSigningMaterial(v *SigningMaterial) *SigningJob { 4903 s.SigningMaterial = v 4904 return s 4905 } 4906 4907 // SetSource sets the Source field's value. 4908 func (s *SigningJob) SetSource(v *Source) *SigningJob { 4909 s.Source = v 4910 return s 4911 } 4912 4913 // SetStatus sets the Status field's value. 4914 func (s *SigningJob) SetStatus(v string) *SigningJob { 4915 s.Status = &v 4916 return s 4917 } 4918 4919 // Revocation information for a signing job. 4920 type SigningJobRevocationRecord struct { 4921 _ struct{} `type:"structure"` 4922 4923 // A caller-supplied reason for revocation. 4924 Reason *string `locationName:"reason" type:"string"` 4925 4926 // The time of revocation. 4927 RevokedAt *time.Time `locationName:"revokedAt" type:"timestamp"` 4928 4929 // The identity of the revoker. 4930 RevokedBy *string `locationName:"revokedBy" type:"string"` 4931 } 4932 4933 // String returns the string representation. 4934 // 4935 // API parameter values that are decorated as "sensitive" in the API will not 4936 // be included in the string output. The member name will be present, but the 4937 // value will be replaced with "sensitive". 4938 func (s SigningJobRevocationRecord) String() string { 4939 return awsutil.Prettify(s) 4940 } 4941 4942 // GoString returns the string representation. 4943 // 4944 // API parameter values that are decorated as "sensitive" in the API will not 4945 // be included in the string output. The member name will be present, but the 4946 // value will be replaced with "sensitive". 4947 func (s SigningJobRevocationRecord) GoString() string { 4948 return s.String() 4949 } 4950 4951 // SetReason sets the Reason field's value. 4952 func (s *SigningJobRevocationRecord) SetReason(v string) *SigningJobRevocationRecord { 4953 s.Reason = &v 4954 return s 4955 } 4956 4957 // SetRevokedAt sets the RevokedAt field's value. 4958 func (s *SigningJobRevocationRecord) SetRevokedAt(v time.Time) *SigningJobRevocationRecord { 4959 s.RevokedAt = &v 4960 return s 4961 } 4962 4963 // SetRevokedBy sets the RevokedBy field's value. 4964 func (s *SigningJobRevocationRecord) SetRevokedBy(v string) *SigningJobRevocationRecord { 4965 s.RevokedBy = &v 4966 return s 4967 } 4968 4969 // The ACM certificate that is used to sign your code. 4970 type SigningMaterial struct { 4971 _ struct{} `type:"structure"` 4972 4973 // The Amazon Resource Name (ARN) of the certificates that is used to sign your 4974 // code. 4975 // 4976 // CertificateArn is a required field 4977 CertificateArn *string `locationName:"certificateArn" type:"string" required:"true"` 4978 } 4979 4980 // String returns the string representation. 4981 // 4982 // API parameter values that are decorated as "sensitive" in the API will not 4983 // be included in the string output. The member name will be present, but the 4984 // value will be replaced with "sensitive". 4985 func (s SigningMaterial) String() string { 4986 return awsutil.Prettify(s) 4987 } 4988 4989 // GoString returns the string representation. 4990 // 4991 // API parameter values that are decorated as "sensitive" in the API will not 4992 // be included in the string output. The member name will be present, but the 4993 // value will be replaced with "sensitive". 4994 func (s SigningMaterial) GoString() string { 4995 return s.String() 4996 } 4997 4998 // Validate inspects the fields of the type to determine if they are valid. 4999 func (s *SigningMaterial) Validate() error { 5000 invalidParams := request.ErrInvalidParams{Context: "SigningMaterial"} 5001 if s.CertificateArn == nil { 5002 invalidParams.Add(request.NewErrParamRequired("CertificateArn")) 5003 } 5004 5005 if invalidParams.Len() > 0 { 5006 return invalidParams 5007 } 5008 return nil 5009 } 5010 5011 // SetCertificateArn sets the CertificateArn field's value. 5012 func (s *SigningMaterial) SetCertificateArn(v string) *SigningMaterial { 5013 s.CertificateArn = &v 5014 return s 5015 } 5016 5017 // Contains information about the signing configurations and parameters that 5018 // are used to perform a code signing job. 5019 type SigningPlatform struct { 5020 _ struct{} `type:"structure"` 5021 5022 // The category of a code signing platform. 5023 Category *string `locationName:"category" type:"string" enum:"Category"` 5024 5025 // The display name of a code signing platform. 5026 DisplayName *string `locationName:"displayName" type:"string"` 5027 5028 // The maximum size (in MB) of code that can be signed by a code signing platform. 5029 MaxSizeInMB *int64 `locationName:"maxSizeInMB" type:"integer"` 5030 5031 // Any partner entities linked to a code signing platform. 5032 Partner *string `locationName:"partner" type:"string"` 5033 5034 // The ID of a code signing; platform. 5035 PlatformId *string `locationName:"platformId" type:"string"` 5036 5037 // Indicates whether revocation is supported for the platform. 5038 RevocationSupported *bool `locationName:"revocationSupported" type:"boolean"` 5039 5040 // The configuration of a code signing platform. This includes the designated 5041 // hash algorithm and encryption algorithm of a signing platform. 5042 SigningConfiguration *SigningConfiguration `locationName:"signingConfiguration" type:"structure"` 5043 5044 // The image format of a code signing platform or profile. 5045 SigningImageFormat *SigningImageFormat `locationName:"signingImageFormat" type:"structure"` 5046 5047 // The types of targets that can be signed by a code signing platform. 5048 Target *string `locationName:"target" type:"string"` 5049 } 5050 5051 // String returns the string representation. 5052 // 5053 // API parameter values that are decorated as "sensitive" in the API will not 5054 // be included in the string output. The member name will be present, but the 5055 // value will be replaced with "sensitive". 5056 func (s SigningPlatform) String() string { 5057 return awsutil.Prettify(s) 5058 } 5059 5060 // GoString returns the string representation. 5061 // 5062 // API parameter values that are decorated as "sensitive" in the API will not 5063 // be included in the string output. The member name will be present, but the 5064 // value will be replaced with "sensitive". 5065 func (s SigningPlatform) GoString() string { 5066 return s.String() 5067 } 5068 5069 // SetCategory sets the Category field's value. 5070 func (s *SigningPlatform) SetCategory(v string) *SigningPlatform { 5071 s.Category = &v 5072 return s 5073 } 5074 5075 // SetDisplayName sets the DisplayName field's value. 5076 func (s *SigningPlatform) SetDisplayName(v string) *SigningPlatform { 5077 s.DisplayName = &v 5078 return s 5079 } 5080 5081 // SetMaxSizeInMB sets the MaxSizeInMB field's value. 5082 func (s *SigningPlatform) SetMaxSizeInMB(v int64) *SigningPlatform { 5083 s.MaxSizeInMB = &v 5084 return s 5085 } 5086 5087 // SetPartner sets the Partner field's value. 5088 func (s *SigningPlatform) SetPartner(v string) *SigningPlatform { 5089 s.Partner = &v 5090 return s 5091 } 5092 5093 // SetPlatformId sets the PlatformId field's value. 5094 func (s *SigningPlatform) SetPlatformId(v string) *SigningPlatform { 5095 s.PlatformId = &v 5096 return s 5097 } 5098 5099 // SetRevocationSupported sets the RevocationSupported field's value. 5100 func (s *SigningPlatform) SetRevocationSupported(v bool) *SigningPlatform { 5101 s.RevocationSupported = &v 5102 return s 5103 } 5104 5105 // SetSigningConfiguration sets the SigningConfiguration field's value. 5106 func (s *SigningPlatform) SetSigningConfiguration(v *SigningConfiguration) *SigningPlatform { 5107 s.SigningConfiguration = v 5108 return s 5109 } 5110 5111 // SetSigningImageFormat sets the SigningImageFormat field's value. 5112 func (s *SigningPlatform) SetSigningImageFormat(v *SigningImageFormat) *SigningPlatform { 5113 s.SigningImageFormat = v 5114 return s 5115 } 5116 5117 // SetTarget sets the Target field's value. 5118 func (s *SigningPlatform) SetTarget(v string) *SigningPlatform { 5119 s.Target = &v 5120 return s 5121 } 5122 5123 // Any overrides that are applied to the signing configuration of a code signing 5124 // platform. 5125 type SigningPlatformOverrides struct { 5126 _ struct{} `type:"structure"` 5127 5128 // A signing configuration that overrides the default encryption or hash algorithm 5129 // of a signing job. 5130 SigningConfiguration *SigningConfigurationOverrides `locationName:"signingConfiguration" type:"structure"` 5131 5132 // A signed image is a JSON object. When overriding the default signing platform 5133 // configuration, a customer can select either of two signing formats, JSONEmbedded 5134 // or JSONDetached. (A third format value, JSON, is reserved for future use.) 5135 // With JSONEmbedded, the signing image has the payload embedded in it. With 5136 // JSONDetached, the payload is not be embedded in the signing image. 5137 SigningImageFormat *string `locationName:"signingImageFormat" type:"string" enum:"ImageFormat"` 5138 } 5139 5140 // String returns the string representation. 5141 // 5142 // API parameter values that are decorated as "sensitive" in the API will not 5143 // be included in the string output. The member name will be present, but the 5144 // value will be replaced with "sensitive". 5145 func (s SigningPlatformOverrides) String() string { 5146 return awsutil.Prettify(s) 5147 } 5148 5149 // GoString returns the string representation. 5150 // 5151 // API parameter values that are decorated as "sensitive" in the API will not 5152 // be included in the string output. The member name will be present, but the 5153 // value will be replaced with "sensitive". 5154 func (s SigningPlatformOverrides) GoString() string { 5155 return s.String() 5156 } 5157 5158 // SetSigningConfiguration sets the SigningConfiguration field's value. 5159 func (s *SigningPlatformOverrides) SetSigningConfiguration(v *SigningConfigurationOverrides) *SigningPlatformOverrides { 5160 s.SigningConfiguration = v 5161 return s 5162 } 5163 5164 // SetSigningImageFormat sets the SigningImageFormat field's value. 5165 func (s *SigningPlatformOverrides) SetSigningImageFormat(v string) *SigningPlatformOverrides { 5166 s.SigningImageFormat = &v 5167 return s 5168 } 5169 5170 // Contains information about the ACM certificates and code signing configuration 5171 // parameters that can be used by a given code signing user. 5172 type SigningProfile struct { 5173 _ struct{} `type:"structure"` 5174 5175 // The Amazon Resource Name (ARN) for the signing profile. 5176 Arn *string `locationName:"arn" type:"string"` 5177 5178 // The name of the signing platform. 5179 PlatformDisplayName *string `locationName:"platformDisplayName" type:"string"` 5180 5181 // The ID of a platform that is available for use by a signing profile. 5182 PlatformId *string `locationName:"platformId" type:"string"` 5183 5184 // The name of the signing profile. 5185 ProfileName *string `locationName:"profileName" min:"2" type:"string"` 5186 5187 // The version of a signing profile. 5188 ProfileVersion *string `locationName:"profileVersion" min:"10" type:"string"` 5189 5190 // The ARN of a signing profile, including the profile version. 5191 ProfileVersionArn *string `locationName:"profileVersionArn" min:"20" type:"string"` 5192 5193 // The validity period for a signing job created using this signing profile. 5194 SignatureValidityPeriod *SignatureValidityPeriod `locationName:"signatureValidityPeriod" type:"structure"` 5195 5196 // The ACM certificate that is available for use by a signing profile. 5197 SigningMaterial *SigningMaterial `locationName:"signingMaterial" type:"structure"` 5198 5199 // The parameters that are available for use by a code signing user. 5200 SigningParameters map[string]*string `locationName:"signingParameters" type:"map"` 5201 5202 // The status of a code signing profile. 5203 Status *string `locationName:"status" type:"string" enum:"SigningProfileStatus"` 5204 5205 // A list of tags associated with the signing profile. 5206 Tags map[string]*string `locationName:"tags" min:"1" type:"map"` 5207 } 5208 5209 // String returns the string representation. 5210 // 5211 // API parameter values that are decorated as "sensitive" in the API will not 5212 // be included in the string output. The member name will be present, but the 5213 // value will be replaced with "sensitive". 5214 func (s SigningProfile) String() string { 5215 return awsutil.Prettify(s) 5216 } 5217 5218 // GoString returns the string representation. 5219 // 5220 // API parameter values that are decorated as "sensitive" in the API will not 5221 // be included in the string output. The member name will be present, but the 5222 // value will be replaced with "sensitive". 5223 func (s SigningProfile) GoString() string { 5224 return s.String() 5225 } 5226 5227 // SetArn sets the Arn field's value. 5228 func (s *SigningProfile) SetArn(v string) *SigningProfile { 5229 s.Arn = &v 5230 return s 5231 } 5232 5233 // SetPlatformDisplayName sets the PlatformDisplayName field's value. 5234 func (s *SigningProfile) SetPlatformDisplayName(v string) *SigningProfile { 5235 s.PlatformDisplayName = &v 5236 return s 5237 } 5238 5239 // SetPlatformId sets the PlatformId field's value. 5240 func (s *SigningProfile) SetPlatformId(v string) *SigningProfile { 5241 s.PlatformId = &v 5242 return s 5243 } 5244 5245 // SetProfileName sets the ProfileName field's value. 5246 func (s *SigningProfile) SetProfileName(v string) *SigningProfile { 5247 s.ProfileName = &v 5248 return s 5249 } 5250 5251 // SetProfileVersion sets the ProfileVersion field's value. 5252 func (s *SigningProfile) SetProfileVersion(v string) *SigningProfile { 5253 s.ProfileVersion = &v 5254 return s 5255 } 5256 5257 // SetProfileVersionArn sets the ProfileVersionArn field's value. 5258 func (s *SigningProfile) SetProfileVersionArn(v string) *SigningProfile { 5259 s.ProfileVersionArn = &v 5260 return s 5261 } 5262 5263 // SetSignatureValidityPeriod sets the SignatureValidityPeriod field's value. 5264 func (s *SigningProfile) SetSignatureValidityPeriod(v *SignatureValidityPeriod) *SigningProfile { 5265 s.SignatureValidityPeriod = v 5266 return s 5267 } 5268 5269 // SetSigningMaterial sets the SigningMaterial field's value. 5270 func (s *SigningProfile) SetSigningMaterial(v *SigningMaterial) *SigningProfile { 5271 s.SigningMaterial = v 5272 return s 5273 } 5274 5275 // SetSigningParameters sets the SigningParameters field's value. 5276 func (s *SigningProfile) SetSigningParameters(v map[string]*string) *SigningProfile { 5277 s.SigningParameters = v 5278 return s 5279 } 5280 5281 // SetStatus sets the Status field's value. 5282 func (s *SigningProfile) SetStatus(v string) *SigningProfile { 5283 s.Status = &v 5284 return s 5285 } 5286 5287 // SetTags sets the Tags field's value. 5288 func (s *SigningProfile) SetTags(v map[string]*string) *SigningProfile { 5289 s.Tags = v 5290 return s 5291 } 5292 5293 // Revocation information for a signing profile. 5294 type SigningProfileRevocationRecord struct { 5295 _ struct{} `type:"structure"` 5296 5297 // The time when revocation becomes effective. 5298 RevocationEffectiveFrom *time.Time `locationName:"revocationEffectiveFrom" type:"timestamp"` 5299 5300 // The time when the signing profile was revoked. 5301 RevokedAt *time.Time `locationName:"revokedAt" type:"timestamp"` 5302 5303 // The identity of the revoker. 5304 RevokedBy *string `locationName:"revokedBy" type:"string"` 5305 } 5306 5307 // String returns the string representation. 5308 // 5309 // API parameter values that are decorated as "sensitive" in the API will not 5310 // be included in the string output. The member name will be present, but the 5311 // value will be replaced with "sensitive". 5312 func (s SigningProfileRevocationRecord) String() string { 5313 return awsutil.Prettify(s) 5314 } 5315 5316 // GoString returns the string representation. 5317 // 5318 // API parameter values that are decorated as "sensitive" in the API will not 5319 // be included in the string output. The member name will be present, but the 5320 // value will be replaced with "sensitive". 5321 func (s SigningProfileRevocationRecord) GoString() string { 5322 return s.String() 5323 } 5324 5325 // SetRevocationEffectiveFrom sets the RevocationEffectiveFrom field's value. 5326 func (s *SigningProfileRevocationRecord) SetRevocationEffectiveFrom(v time.Time) *SigningProfileRevocationRecord { 5327 s.RevocationEffectiveFrom = &v 5328 return s 5329 } 5330 5331 // SetRevokedAt sets the RevokedAt field's value. 5332 func (s *SigningProfileRevocationRecord) SetRevokedAt(v time.Time) *SigningProfileRevocationRecord { 5333 s.RevokedAt = &v 5334 return s 5335 } 5336 5337 // SetRevokedBy sets the RevokedBy field's value. 5338 func (s *SigningProfileRevocationRecord) SetRevokedBy(v string) *SigningProfileRevocationRecord { 5339 s.RevokedBy = &v 5340 return s 5341 } 5342 5343 // An S3Source object that contains information about the S3 bucket where you 5344 // saved your unsigned code. 5345 type Source struct { 5346 _ struct{} `type:"structure"` 5347 5348 // The S3Source object. 5349 S3 *S3Source `locationName:"s3" type:"structure"` 5350 } 5351 5352 // String returns the string representation. 5353 // 5354 // API parameter values that are decorated as "sensitive" in the API will not 5355 // be included in the string output. The member name will be present, but the 5356 // value will be replaced with "sensitive". 5357 func (s Source) String() string { 5358 return awsutil.Prettify(s) 5359 } 5360 5361 // GoString returns the string representation. 5362 // 5363 // API parameter values that are decorated as "sensitive" in the API will not 5364 // be included in the string output. The member name will be present, but the 5365 // value will be replaced with "sensitive". 5366 func (s Source) GoString() string { 5367 return s.String() 5368 } 5369 5370 // Validate inspects the fields of the type to determine if they are valid. 5371 func (s *Source) Validate() error { 5372 invalidParams := request.ErrInvalidParams{Context: "Source"} 5373 if s.S3 != nil { 5374 if err := s.S3.Validate(); err != nil { 5375 invalidParams.AddNested("S3", err.(request.ErrInvalidParams)) 5376 } 5377 } 5378 5379 if invalidParams.Len() > 0 { 5380 return invalidParams 5381 } 5382 return nil 5383 } 5384 5385 // SetS3 sets the S3 field's value. 5386 func (s *Source) SetS3(v *S3Source) *Source { 5387 s.S3 = v 5388 return s 5389 } 5390 5391 type StartSigningJobInput struct { 5392 _ struct{} `type:"structure"` 5393 5394 // String that identifies the signing request. All calls after the first that 5395 // use this token return the same response as the first call. 5396 ClientRequestToken *string `locationName:"clientRequestToken" type:"string" idempotencyToken:"true"` 5397 5398 // The S3 bucket in which to save your signed object. The destination contains 5399 // the name of your bucket and an optional prefix. 5400 // 5401 // Destination is a required field 5402 Destination *Destination `locationName:"destination" type:"structure" required:"true"` 5403 5404 // The name of the signing profile. 5405 // 5406 // ProfileName is a required field 5407 ProfileName *string `locationName:"profileName" min:"2" type:"string" required:"true"` 5408 5409 // The AWS account ID of the signing profile owner. 5410 ProfileOwner *string `locationName:"profileOwner" min:"12" type:"string"` 5411 5412 // The S3 bucket that contains the object to sign or a BLOB that contains your 5413 // raw code. 5414 // 5415 // Source is a required field 5416 Source *Source `locationName:"source" type:"structure" required:"true"` 5417 } 5418 5419 // String returns the string representation. 5420 // 5421 // API parameter values that are decorated as "sensitive" in the API will not 5422 // be included in the string output. The member name will be present, but the 5423 // value will be replaced with "sensitive". 5424 func (s StartSigningJobInput) String() string { 5425 return awsutil.Prettify(s) 5426 } 5427 5428 // GoString returns the string representation. 5429 // 5430 // API parameter values that are decorated as "sensitive" in the API will not 5431 // be included in the string output. The member name will be present, but the 5432 // value will be replaced with "sensitive". 5433 func (s StartSigningJobInput) GoString() string { 5434 return s.String() 5435 } 5436 5437 // Validate inspects the fields of the type to determine if they are valid. 5438 func (s *StartSigningJobInput) Validate() error { 5439 invalidParams := request.ErrInvalidParams{Context: "StartSigningJobInput"} 5440 if s.Destination == nil { 5441 invalidParams.Add(request.NewErrParamRequired("Destination")) 5442 } 5443 if s.ProfileName == nil { 5444 invalidParams.Add(request.NewErrParamRequired("ProfileName")) 5445 } 5446 if s.ProfileName != nil && len(*s.ProfileName) < 2 { 5447 invalidParams.Add(request.NewErrParamMinLen("ProfileName", 2)) 5448 } 5449 if s.ProfileOwner != nil && len(*s.ProfileOwner) < 12 { 5450 invalidParams.Add(request.NewErrParamMinLen("ProfileOwner", 12)) 5451 } 5452 if s.Source == nil { 5453 invalidParams.Add(request.NewErrParamRequired("Source")) 5454 } 5455 if s.Source != nil { 5456 if err := s.Source.Validate(); err != nil { 5457 invalidParams.AddNested("Source", err.(request.ErrInvalidParams)) 5458 } 5459 } 5460 5461 if invalidParams.Len() > 0 { 5462 return invalidParams 5463 } 5464 return nil 5465 } 5466 5467 // SetClientRequestToken sets the ClientRequestToken field's value. 5468 func (s *StartSigningJobInput) SetClientRequestToken(v string) *StartSigningJobInput { 5469 s.ClientRequestToken = &v 5470 return s 5471 } 5472 5473 // SetDestination sets the Destination field's value. 5474 func (s *StartSigningJobInput) SetDestination(v *Destination) *StartSigningJobInput { 5475 s.Destination = v 5476 return s 5477 } 5478 5479 // SetProfileName sets the ProfileName field's value. 5480 func (s *StartSigningJobInput) SetProfileName(v string) *StartSigningJobInput { 5481 s.ProfileName = &v 5482 return s 5483 } 5484 5485 // SetProfileOwner sets the ProfileOwner field's value. 5486 func (s *StartSigningJobInput) SetProfileOwner(v string) *StartSigningJobInput { 5487 s.ProfileOwner = &v 5488 return s 5489 } 5490 5491 // SetSource sets the Source field's value. 5492 func (s *StartSigningJobInput) SetSource(v *Source) *StartSigningJobInput { 5493 s.Source = v 5494 return s 5495 } 5496 5497 type StartSigningJobOutput struct { 5498 _ struct{} `type:"structure"` 5499 5500 // The ID of your signing job. 5501 JobId *string `locationName:"jobId" type:"string"` 5502 5503 // The AWS account ID of the signing job owner. 5504 JobOwner *string `locationName:"jobOwner" min:"12" type:"string"` 5505 } 5506 5507 // String returns the string representation. 5508 // 5509 // API parameter values that are decorated as "sensitive" in the API will not 5510 // be included in the string output. The member name will be present, but the 5511 // value will be replaced with "sensitive". 5512 func (s StartSigningJobOutput) String() string { 5513 return awsutil.Prettify(s) 5514 } 5515 5516 // GoString returns the string representation. 5517 // 5518 // API parameter values that are decorated as "sensitive" in the API will not 5519 // be included in the string output. The member name will be present, but the 5520 // value will be replaced with "sensitive". 5521 func (s StartSigningJobOutput) GoString() string { 5522 return s.String() 5523 } 5524 5525 // SetJobId sets the JobId field's value. 5526 func (s *StartSigningJobOutput) SetJobId(v string) *StartSigningJobOutput { 5527 s.JobId = &v 5528 return s 5529 } 5530 5531 // SetJobOwner sets the JobOwner field's value. 5532 func (s *StartSigningJobOutput) SetJobOwner(v string) *StartSigningJobOutput { 5533 s.JobOwner = &v 5534 return s 5535 } 5536 5537 type TagResourceInput struct { 5538 _ struct{} `type:"structure"` 5539 5540 // The Amazon Resource Name (ARN) for the signing profile. 5541 // 5542 // ResourceArn is a required field 5543 ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` 5544 5545 // One or more tags to be associated with the signing profile. 5546 // 5547 // Tags is a required field 5548 Tags map[string]*string `locationName:"tags" min:"1" type:"map" required:"true"` 5549 } 5550 5551 // String returns the string representation. 5552 // 5553 // API parameter values that are decorated as "sensitive" in the API will not 5554 // be included in the string output. The member name will be present, but the 5555 // value will be replaced with "sensitive". 5556 func (s TagResourceInput) String() string { 5557 return awsutil.Prettify(s) 5558 } 5559 5560 // GoString returns the string representation. 5561 // 5562 // API parameter values that are decorated as "sensitive" in the API will not 5563 // be included in the string output. The member name will be present, but the 5564 // value will be replaced with "sensitive". 5565 func (s TagResourceInput) GoString() string { 5566 return s.String() 5567 } 5568 5569 // Validate inspects the fields of the type to determine if they are valid. 5570 func (s *TagResourceInput) Validate() error { 5571 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 5572 if s.ResourceArn == nil { 5573 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 5574 } 5575 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 5576 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 5577 } 5578 if s.Tags == nil { 5579 invalidParams.Add(request.NewErrParamRequired("Tags")) 5580 } 5581 if s.Tags != nil && len(s.Tags) < 1 { 5582 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 5583 } 5584 5585 if invalidParams.Len() > 0 { 5586 return invalidParams 5587 } 5588 return nil 5589 } 5590 5591 // SetResourceArn sets the ResourceArn field's value. 5592 func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 5593 s.ResourceArn = &v 5594 return s 5595 } 5596 5597 // SetTags sets the Tags field's value. 5598 func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { 5599 s.Tags = v 5600 return s 5601 } 5602 5603 type TagResourceOutput struct { 5604 _ struct{} `type:"structure" nopayload:"true"` 5605 } 5606 5607 // String returns the string representation. 5608 // 5609 // API parameter values that are decorated as "sensitive" in the API will not 5610 // be included in the string output. The member name will be present, but the 5611 // value will be replaced with "sensitive". 5612 func (s TagResourceOutput) String() string { 5613 return awsutil.Prettify(s) 5614 } 5615 5616 // GoString returns the string representation. 5617 // 5618 // API parameter values that are decorated as "sensitive" in the API will not 5619 // be included in the string output. The member name will be present, but the 5620 // value will be replaced with "sensitive". 5621 func (s TagResourceOutput) GoString() string { 5622 return s.String() 5623 } 5624 5625 // The request was denied due to request throttling. 5626 // 5627 // Instead of this error, TooManyRequestsException should be used. 5628 // 5629 // Deprecated: Instead of this error, TooManyRequestsException should be used. 5630 type ThrottlingException struct { 5631 _ struct{} `deprecated:"true" type:"structure"` 5632 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5633 5634 Code_ *string `locationName:"code" type:"string"` 5635 5636 Message_ *string `locationName:"message" type:"string"` 5637 } 5638 5639 // String returns the string representation. 5640 // 5641 // API parameter values that are decorated as "sensitive" in the API will not 5642 // be included in the string output. The member name will be present, but the 5643 // value will be replaced with "sensitive". 5644 func (s ThrottlingException) String() string { 5645 return awsutil.Prettify(s) 5646 } 5647 5648 // GoString returns the string representation. 5649 // 5650 // API parameter values that are decorated as "sensitive" in the API will not 5651 // be included in the string output. The member name will be present, but the 5652 // value will be replaced with "sensitive". 5653 func (s ThrottlingException) GoString() string { 5654 return s.String() 5655 } 5656 5657 func newErrorThrottlingException(v protocol.ResponseMetadata) error { 5658 return &ThrottlingException{ 5659 RespMetadata: v, 5660 } 5661 } 5662 5663 // Code returns the exception type name. 5664 func (s *ThrottlingException) Code() string { 5665 return "ThrottlingException" 5666 } 5667 5668 // Message returns the exception's message. 5669 func (s *ThrottlingException) Message() string { 5670 if s.Message_ != nil { 5671 return *s.Message_ 5672 } 5673 return "" 5674 } 5675 5676 // OrigErr always returns nil, satisfies awserr.Error interface. 5677 func (s *ThrottlingException) OrigErr() error { 5678 return nil 5679 } 5680 5681 func (s *ThrottlingException) Error() string { 5682 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 5683 } 5684 5685 // Status code returns the HTTP status code for the request's response error. 5686 func (s *ThrottlingException) StatusCode() int { 5687 return s.RespMetadata.StatusCode 5688 } 5689 5690 // RequestID returns the service's response RequestID for request. 5691 func (s *ThrottlingException) RequestID() string { 5692 return s.RespMetadata.RequestID 5693 } 5694 5695 // The allowed number of job-signing requests has been exceeded. 5696 // 5697 // This error supersedes the error ThrottlingException. 5698 type TooManyRequestsException struct { 5699 _ struct{} `type:"structure"` 5700 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5701 5702 Code_ *string `locationName:"code" type:"string"` 5703 5704 Message_ *string `locationName:"message" type:"string"` 5705 } 5706 5707 // String returns the string representation. 5708 // 5709 // API parameter values that are decorated as "sensitive" in the API will not 5710 // be included in the string output. The member name will be present, but the 5711 // value will be replaced with "sensitive". 5712 func (s TooManyRequestsException) String() string { 5713 return awsutil.Prettify(s) 5714 } 5715 5716 // GoString returns the string representation. 5717 // 5718 // API parameter values that are decorated as "sensitive" in the API will not 5719 // be included in the string output. The member name will be present, but the 5720 // value will be replaced with "sensitive". 5721 func (s TooManyRequestsException) GoString() string { 5722 return s.String() 5723 } 5724 5725 func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error { 5726 return &TooManyRequestsException{ 5727 RespMetadata: v, 5728 } 5729 } 5730 5731 // Code returns the exception type name. 5732 func (s *TooManyRequestsException) Code() string { 5733 return "TooManyRequestsException" 5734 } 5735 5736 // Message returns the exception's message. 5737 func (s *TooManyRequestsException) Message() string { 5738 if s.Message_ != nil { 5739 return *s.Message_ 5740 } 5741 return "" 5742 } 5743 5744 // OrigErr always returns nil, satisfies awserr.Error interface. 5745 func (s *TooManyRequestsException) OrigErr() error { 5746 return nil 5747 } 5748 5749 func (s *TooManyRequestsException) Error() string { 5750 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 5751 } 5752 5753 // Status code returns the HTTP status code for the request's response error. 5754 func (s *TooManyRequestsException) StatusCode() int { 5755 return s.RespMetadata.StatusCode 5756 } 5757 5758 // RequestID returns the service's response RequestID for request. 5759 func (s *TooManyRequestsException) RequestID() string { 5760 return s.RespMetadata.RequestID 5761 } 5762 5763 type UntagResourceInput struct { 5764 _ struct{} `type:"structure" nopayload:"true"` 5765 5766 // The Amazon Resource Name (ARN) for the signing profile. 5767 // 5768 // ResourceArn is a required field 5769 ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"` 5770 5771 // A list of tag keys to be removed from the signing profile. 5772 // 5773 // TagKeys is a required field 5774 TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` 5775 } 5776 5777 // String returns the string representation. 5778 // 5779 // API parameter values that are decorated as "sensitive" in the API will not 5780 // be included in the string output. The member name will be present, but the 5781 // value will be replaced with "sensitive". 5782 func (s UntagResourceInput) String() string { 5783 return awsutil.Prettify(s) 5784 } 5785 5786 // GoString returns the string representation. 5787 // 5788 // API parameter values that are decorated as "sensitive" in the API will not 5789 // be included in the string output. The member name will be present, but the 5790 // value will be replaced with "sensitive". 5791 func (s UntagResourceInput) GoString() string { 5792 return s.String() 5793 } 5794 5795 // Validate inspects the fields of the type to determine if they are valid. 5796 func (s *UntagResourceInput) Validate() error { 5797 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 5798 if s.ResourceArn == nil { 5799 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 5800 } 5801 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 5802 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 5803 } 5804 if s.TagKeys == nil { 5805 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 5806 } 5807 if s.TagKeys != nil && len(s.TagKeys) < 1 { 5808 invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) 5809 } 5810 5811 if invalidParams.Len() > 0 { 5812 return invalidParams 5813 } 5814 return nil 5815 } 5816 5817 // SetResourceArn sets the ResourceArn field's value. 5818 func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 5819 s.ResourceArn = &v 5820 return s 5821 } 5822 5823 // SetTagKeys sets the TagKeys field's value. 5824 func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 5825 s.TagKeys = v 5826 return s 5827 } 5828 5829 type UntagResourceOutput struct { 5830 _ struct{} `type:"structure" nopayload:"true"` 5831 } 5832 5833 // String returns the string representation. 5834 // 5835 // API parameter values that are decorated as "sensitive" in the API will not 5836 // be included in the string output. The member name will be present, but the 5837 // value will be replaced with "sensitive". 5838 func (s UntagResourceOutput) String() string { 5839 return awsutil.Prettify(s) 5840 } 5841 5842 // GoString returns the string representation. 5843 // 5844 // API parameter values that are decorated as "sensitive" in the API will not 5845 // be included in the string output. The member name will be present, but the 5846 // value will be replaced with "sensitive". 5847 func (s UntagResourceOutput) GoString() string { 5848 return s.String() 5849 } 5850 5851 // You signing certificate could not be validated. 5852 type ValidationException struct { 5853 _ struct{} `type:"structure"` 5854 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 5855 5856 Code_ *string `locationName:"code" type:"string"` 5857 5858 Message_ *string `locationName:"message" type:"string"` 5859 } 5860 5861 // String returns the string representation. 5862 // 5863 // API parameter values that are decorated as "sensitive" in the API will not 5864 // be included in the string output. The member name will be present, but the 5865 // value will be replaced with "sensitive". 5866 func (s ValidationException) String() string { 5867 return awsutil.Prettify(s) 5868 } 5869 5870 // GoString returns the string representation. 5871 // 5872 // API parameter values that are decorated as "sensitive" in the API will not 5873 // be included in the string output. The member name will be present, but the 5874 // value will be replaced with "sensitive". 5875 func (s ValidationException) GoString() string { 5876 return s.String() 5877 } 5878 5879 func newErrorValidationException(v protocol.ResponseMetadata) error { 5880 return &ValidationException{ 5881 RespMetadata: v, 5882 } 5883 } 5884 5885 // Code returns the exception type name. 5886 func (s *ValidationException) Code() string { 5887 return "ValidationException" 5888 } 5889 5890 // Message returns the exception's message. 5891 func (s *ValidationException) Message() string { 5892 if s.Message_ != nil { 5893 return *s.Message_ 5894 } 5895 return "" 5896 } 5897 5898 // OrigErr always returns nil, satisfies awserr.Error interface. 5899 func (s *ValidationException) OrigErr() error { 5900 return nil 5901 } 5902 5903 func (s *ValidationException) Error() string { 5904 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 5905 } 5906 5907 // Status code returns the HTTP status code for the request's response error. 5908 func (s *ValidationException) StatusCode() int { 5909 return s.RespMetadata.StatusCode 5910 } 5911 5912 // RequestID returns the service's response RequestID for request. 5913 func (s *ValidationException) RequestID() string { 5914 return s.RespMetadata.RequestID 5915 } 5916 5917 const ( 5918 // CategoryAwsioT is a Category enum value 5919 CategoryAwsioT = "AWSIoT" 5920 ) 5921 5922 // Category_Values returns all elements of the Category enum 5923 func Category_Values() []string { 5924 return []string{ 5925 CategoryAwsioT, 5926 } 5927 } 5928 5929 const ( 5930 // EncryptionAlgorithmRsa is a EncryptionAlgorithm enum value 5931 EncryptionAlgorithmRsa = "RSA" 5932 5933 // EncryptionAlgorithmEcdsa is a EncryptionAlgorithm enum value 5934 EncryptionAlgorithmEcdsa = "ECDSA" 5935 ) 5936 5937 // EncryptionAlgorithm_Values returns all elements of the EncryptionAlgorithm enum 5938 func EncryptionAlgorithm_Values() []string { 5939 return []string{ 5940 EncryptionAlgorithmRsa, 5941 EncryptionAlgorithmEcdsa, 5942 } 5943 } 5944 5945 const ( 5946 // HashAlgorithmSha1 is a HashAlgorithm enum value 5947 HashAlgorithmSha1 = "SHA1" 5948 5949 // HashAlgorithmSha256 is a HashAlgorithm enum value 5950 HashAlgorithmSha256 = "SHA256" 5951 ) 5952 5953 // HashAlgorithm_Values returns all elements of the HashAlgorithm enum 5954 func HashAlgorithm_Values() []string { 5955 return []string{ 5956 HashAlgorithmSha1, 5957 HashAlgorithmSha256, 5958 } 5959 } 5960 5961 const ( 5962 // ImageFormatJson is a ImageFormat enum value 5963 ImageFormatJson = "JSON" 5964 5965 // ImageFormatJsonembedded is a ImageFormat enum value 5966 ImageFormatJsonembedded = "JSONEmbedded" 5967 5968 // ImageFormatJsondetached is a ImageFormat enum value 5969 ImageFormatJsondetached = "JSONDetached" 5970 ) 5971 5972 // ImageFormat_Values returns all elements of the ImageFormat enum 5973 func ImageFormat_Values() []string { 5974 return []string{ 5975 ImageFormatJson, 5976 ImageFormatJsonembedded, 5977 ImageFormatJsondetached, 5978 } 5979 } 5980 5981 const ( 5982 // SigningProfileStatusActive is a SigningProfileStatus enum value 5983 SigningProfileStatusActive = "Active" 5984 5985 // SigningProfileStatusCanceled is a SigningProfileStatus enum value 5986 SigningProfileStatusCanceled = "Canceled" 5987 5988 // SigningProfileStatusRevoked is a SigningProfileStatus enum value 5989 SigningProfileStatusRevoked = "Revoked" 5990 ) 5991 5992 // SigningProfileStatus_Values returns all elements of the SigningProfileStatus enum 5993 func SigningProfileStatus_Values() []string { 5994 return []string{ 5995 SigningProfileStatusActive, 5996 SigningProfileStatusCanceled, 5997 SigningProfileStatusRevoked, 5998 } 5999 } 6000 6001 const ( 6002 // SigningStatusInProgress is a SigningStatus enum value 6003 SigningStatusInProgress = "InProgress" 6004 6005 // SigningStatusFailed is a SigningStatus enum value 6006 SigningStatusFailed = "Failed" 6007 6008 // SigningStatusSucceeded is a SigningStatus enum value 6009 SigningStatusSucceeded = "Succeeded" 6010 ) 6011 6012 // SigningStatus_Values returns all elements of the SigningStatus enum 6013 func SigningStatus_Values() []string { 6014 return []string{ 6015 SigningStatusInProgress, 6016 SigningStatusFailed, 6017 SigningStatusSucceeded, 6018 } 6019 } 6020 6021 const ( 6022 // ValidityTypeDays is a ValidityType enum value 6023 ValidityTypeDays = "DAYS" 6024 6025 // ValidityTypeMonths is a ValidityType enum value 6026 ValidityTypeMonths = "MONTHS" 6027 6028 // ValidityTypeYears is a ValidityType enum value 6029 ValidityTypeYears = "YEARS" 6030 ) 6031 6032 // ValidityType_Values returns all elements of the ValidityType enum 6033 func ValidityType_Values() []string { 6034 return []string{ 6035 ValidityTypeDays, 6036 ValidityTypeMonths, 6037 ValidityTypeYears, 6038 } 6039 }