github.com/aavshr/aws-sdk-go@v1.41.3/service/outposts/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package outposts 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 opCreateOrder = "CreateOrder" 17 18 // CreateOrderRequest generates a "aws/request.Request" representing the 19 // client's request for the CreateOrder 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 CreateOrder for more information on using the CreateOrder 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 CreateOrderRequest method. 34 // req, resp := client.CreateOrderRequest(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/outposts-2019-12-03/CreateOrder 42 func (c *Outposts) CreateOrderRequest(input *CreateOrderInput) (req *request.Request, output *CreateOrderOutput) { 43 op := &request.Operation{ 44 Name: opCreateOrder, 45 HTTPMethod: "POST", 46 HTTPPath: "/orders", 47 } 48 49 if input == nil { 50 input = &CreateOrderInput{} 51 } 52 53 output = &CreateOrderOutput{} 54 req = c.newRequest(op, input, output) 55 return 56 } 57 58 // CreateOrder API operation for AWS Outposts. 59 // 60 // Creates an order for an Outpost. 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 Outposts's 67 // API operation CreateOrder for usage and error information. 68 // 69 // Returned Error Types: 70 // * ValidationException 71 // A parameter is not valid. 72 // 73 // * ConflictException 74 // Updating or deleting this resource can cause an inconsistent state. 75 // 76 // * AccessDeniedException 77 // You do not have permission to perform this operation. 78 // 79 // * NotFoundException 80 // The specified request is not valid. 81 // 82 // * InternalServerException 83 // An internal error has occurred. 84 // 85 // * ServiceQuotaExceededException 86 // You have exceeded a service quota. 87 // 88 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOrder 89 func (c *Outposts) CreateOrder(input *CreateOrderInput) (*CreateOrderOutput, error) { 90 req, out := c.CreateOrderRequest(input) 91 return out, req.Send() 92 } 93 94 // CreateOrderWithContext is the same as CreateOrder with the addition of 95 // the ability to pass a context and additional request options. 96 // 97 // See CreateOrder for details on how to use this API operation. 98 // 99 // The context must be non-nil and will be used for request cancellation. If 100 // the context is nil a panic will occur. In the future the SDK may create 101 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 102 // for more information on using Contexts. 103 func (c *Outposts) CreateOrderWithContext(ctx aws.Context, input *CreateOrderInput, opts ...request.Option) (*CreateOrderOutput, error) { 104 req, out := c.CreateOrderRequest(input) 105 req.SetContext(ctx) 106 req.ApplyOptions(opts...) 107 return out, req.Send() 108 } 109 110 const opCreateOutpost = "CreateOutpost" 111 112 // CreateOutpostRequest generates a "aws/request.Request" representing the 113 // client's request for the CreateOutpost operation. The "output" return 114 // value will be populated with the request's response once the request completes 115 // successfully. 116 // 117 // Use "Send" method on the returned Request to send the API call to the service. 118 // the "output" return value is not valid until after Send returns without error. 119 // 120 // See CreateOutpost for more information on using the CreateOutpost 121 // API call, and error handling. 122 // 123 // This method is useful when you want to inject custom logic or configuration 124 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 125 // 126 // 127 // // Example sending a request using the CreateOutpostRequest method. 128 // req, resp := client.CreateOutpostRequest(params) 129 // 130 // err := req.Send() 131 // if err == nil { // resp is now filled 132 // fmt.Println(resp) 133 // } 134 // 135 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOutpost 136 func (c *Outposts) CreateOutpostRequest(input *CreateOutpostInput) (req *request.Request, output *CreateOutpostOutput) { 137 op := &request.Operation{ 138 Name: opCreateOutpost, 139 HTTPMethod: "POST", 140 HTTPPath: "/outposts", 141 } 142 143 if input == nil { 144 input = &CreateOutpostInput{} 145 } 146 147 output = &CreateOutpostOutput{} 148 req = c.newRequest(op, input, output) 149 return 150 } 151 152 // CreateOutpost API operation for AWS Outposts. 153 // 154 // Creates an Outpost. 155 // 156 // You can specify AvailabilityZone or AvailabilityZoneId. 157 // 158 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 159 // with awserr.Error's Code and Message methods to get detailed information about 160 // the error. 161 // 162 // See the AWS API reference guide for AWS Outposts's 163 // API operation CreateOutpost for usage and error information. 164 // 165 // Returned Error Types: 166 // * ValidationException 167 // A parameter is not valid. 168 // 169 // * ConflictException 170 // Updating or deleting this resource can cause an inconsistent state. 171 // 172 // * NotFoundException 173 // The specified request is not valid. 174 // 175 // * AccessDeniedException 176 // You do not have permission to perform this operation. 177 // 178 // * InternalServerException 179 // An internal error has occurred. 180 // 181 // * ServiceQuotaExceededException 182 // You have exceeded a service quota. 183 // 184 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/CreateOutpost 185 func (c *Outposts) CreateOutpost(input *CreateOutpostInput) (*CreateOutpostOutput, error) { 186 req, out := c.CreateOutpostRequest(input) 187 return out, req.Send() 188 } 189 190 // CreateOutpostWithContext is the same as CreateOutpost with the addition of 191 // the ability to pass a context and additional request options. 192 // 193 // See CreateOutpost for details on how to use this API operation. 194 // 195 // The context must be non-nil and will be used for request cancellation. If 196 // the context is nil a panic will occur. In the future the SDK may create 197 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 198 // for more information on using Contexts. 199 func (c *Outposts) CreateOutpostWithContext(ctx aws.Context, input *CreateOutpostInput, opts ...request.Option) (*CreateOutpostOutput, error) { 200 req, out := c.CreateOutpostRequest(input) 201 req.SetContext(ctx) 202 req.ApplyOptions(opts...) 203 return out, req.Send() 204 } 205 206 const opDeleteOutpost = "DeleteOutpost" 207 208 // DeleteOutpostRequest generates a "aws/request.Request" representing the 209 // client's request for the DeleteOutpost operation. The "output" return 210 // value will be populated with the request's response once the request completes 211 // successfully. 212 // 213 // Use "Send" method on the returned Request to send the API call to the service. 214 // the "output" return value is not valid until after Send returns without error. 215 // 216 // See DeleteOutpost for more information on using the DeleteOutpost 217 // API call, and error handling. 218 // 219 // This method is useful when you want to inject custom logic or configuration 220 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 221 // 222 // 223 // // Example sending a request using the DeleteOutpostRequest method. 224 // req, resp := client.DeleteOutpostRequest(params) 225 // 226 // err := req.Send() 227 // if err == nil { // resp is now filled 228 // fmt.Println(resp) 229 // } 230 // 231 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/DeleteOutpost 232 func (c *Outposts) DeleteOutpostRequest(input *DeleteOutpostInput) (req *request.Request, output *DeleteOutpostOutput) { 233 op := &request.Operation{ 234 Name: opDeleteOutpost, 235 HTTPMethod: "DELETE", 236 HTTPPath: "/outposts/{OutpostId}", 237 } 238 239 if input == nil { 240 input = &DeleteOutpostInput{} 241 } 242 243 output = &DeleteOutpostOutput{} 244 req = c.newRequest(op, input, output) 245 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 246 return 247 } 248 249 // DeleteOutpost API operation for AWS Outposts. 250 // 251 // Deletes the Outpost. 252 // 253 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 254 // with awserr.Error's Code and Message methods to get detailed information about 255 // the error. 256 // 257 // See the AWS API reference guide for AWS Outposts's 258 // API operation DeleteOutpost for usage and error information. 259 // 260 // Returned Error Types: 261 // * ValidationException 262 // A parameter is not valid. 263 // 264 // * ConflictException 265 // Updating or deleting this resource can cause an inconsistent state. 266 // 267 // * NotFoundException 268 // The specified request is not valid. 269 // 270 // * AccessDeniedException 271 // You do not have permission to perform this operation. 272 // 273 // * InternalServerException 274 // An internal error has occurred. 275 // 276 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/DeleteOutpost 277 func (c *Outposts) DeleteOutpost(input *DeleteOutpostInput) (*DeleteOutpostOutput, error) { 278 req, out := c.DeleteOutpostRequest(input) 279 return out, req.Send() 280 } 281 282 // DeleteOutpostWithContext is the same as DeleteOutpost with the addition of 283 // the ability to pass a context and additional request options. 284 // 285 // See DeleteOutpost for details on how to use this API operation. 286 // 287 // The context must be non-nil and will be used for request cancellation. If 288 // the context is nil a panic will occur. In the future the SDK may create 289 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 290 // for more information on using Contexts. 291 func (c *Outposts) DeleteOutpostWithContext(ctx aws.Context, input *DeleteOutpostInput, opts ...request.Option) (*DeleteOutpostOutput, error) { 292 req, out := c.DeleteOutpostRequest(input) 293 req.SetContext(ctx) 294 req.ApplyOptions(opts...) 295 return out, req.Send() 296 } 297 298 const opDeleteSite = "DeleteSite" 299 300 // DeleteSiteRequest generates a "aws/request.Request" representing the 301 // client's request for the DeleteSite operation. The "output" return 302 // value will be populated with the request's response once the request completes 303 // successfully. 304 // 305 // Use "Send" method on the returned Request to send the API call to the service. 306 // the "output" return value is not valid until after Send returns without error. 307 // 308 // See DeleteSite for more information on using the DeleteSite 309 // API call, and error handling. 310 // 311 // This method is useful when you want to inject custom logic or configuration 312 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 313 // 314 // 315 // // Example sending a request using the DeleteSiteRequest method. 316 // req, resp := client.DeleteSiteRequest(params) 317 // 318 // err := req.Send() 319 // if err == nil { // resp is now filled 320 // fmt.Println(resp) 321 // } 322 // 323 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/DeleteSite 324 func (c *Outposts) DeleteSiteRequest(input *DeleteSiteInput) (req *request.Request, output *DeleteSiteOutput) { 325 op := &request.Operation{ 326 Name: opDeleteSite, 327 HTTPMethod: "DELETE", 328 HTTPPath: "/sites/{SiteId}", 329 } 330 331 if input == nil { 332 input = &DeleteSiteInput{} 333 } 334 335 output = &DeleteSiteOutput{} 336 req = c.newRequest(op, input, output) 337 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 338 return 339 } 340 341 // DeleteSite API operation for AWS Outposts. 342 // 343 // Deletes the site. 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 Outposts's 350 // API operation DeleteSite for usage and error information. 351 // 352 // Returned Error Types: 353 // * ValidationException 354 // A parameter is not valid. 355 // 356 // * ConflictException 357 // Updating or deleting this resource can cause an inconsistent state. 358 // 359 // * NotFoundException 360 // The specified request is not valid. 361 // 362 // * AccessDeniedException 363 // You do not have permission to perform this operation. 364 // 365 // * InternalServerException 366 // An internal error has occurred. 367 // 368 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/DeleteSite 369 func (c *Outposts) DeleteSite(input *DeleteSiteInput) (*DeleteSiteOutput, error) { 370 req, out := c.DeleteSiteRequest(input) 371 return out, req.Send() 372 } 373 374 // DeleteSiteWithContext is the same as DeleteSite with the addition of 375 // the ability to pass a context and additional request options. 376 // 377 // See DeleteSite for details on how to use this API operation. 378 // 379 // The context must be non-nil and will be used for request cancellation. If 380 // the context is nil a panic will occur. In the future the SDK may create 381 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 382 // for more information on using Contexts. 383 func (c *Outposts) DeleteSiteWithContext(ctx aws.Context, input *DeleteSiteInput, opts ...request.Option) (*DeleteSiteOutput, error) { 384 req, out := c.DeleteSiteRequest(input) 385 req.SetContext(ctx) 386 req.ApplyOptions(opts...) 387 return out, req.Send() 388 } 389 390 const opGetOutpost = "GetOutpost" 391 392 // GetOutpostRequest generates a "aws/request.Request" representing the 393 // client's request for the GetOutpost operation. The "output" return 394 // value will be populated with the request's response once the request completes 395 // successfully. 396 // 397 // Use "Send" method on the returned Request to send the API call to the service. 398 // the "output" return value is not valid until after Send returns without error. 399 // 400 // See GetOutpost for more information on using the GetOutpost 401 // API call, and error handling. 402 // 403 // This method is useful when you want to inject custom logic or configuration 404 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 405 // 406 // 407 // // Example sending a request using the GetOutpostRequest method. 408 // req, resp := client.GetOutpostRequest(params) 409 // 410 // err := req.Send() 411 // if err == nil { // resp is now filled 412 // fmt.Println(resp) 413 // } 414 // 415 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost 416 func (c *Outposts) GetOutpostRequest(input *GetOutpostInput) (req *request.Request, output *GetOutpostOutput) { 417 op := &request.Operation{ 418 Name: opGetOutpost, 419 HTTPMethod: "GET", 420 HTTPPath: "/outposts/{OutpostId}", 421 } 422 423 if input == nil { 424 input = &GetOutpostInput{} 425 } 426 427 output = &GetOutpostOutput{} 428 req = c.newRequest(op, input, output) 429 return 430 } 431 432 // GetOutpost API operation for AWS Outposts. 433 // 434 // Gets information about the specified Outpost. 435 // 436 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 437 // with awserr.Error's Code and Message methods to get detailed information about 438 // the error. 439 // 440 // See the AWS API reference guide for AWS Outposts's 441 // API operation GetOutpost for usage and error information. 442 // 443 // Returned Error Types: 444 // * ValidationException 445 // A parameter is not valid. 446 // 447 // * NotFoundException 448 // The specified request is not valid. 449 // 450 // * AccessDeniedException 451 // You do not have permission to perform this operation. 452 // 453 // * InternalServerException 454 // An internal error has occurred. 455 // 456 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpost 457 func (c *Outposts) GetOutpost(input *GetOutpostInput) (*GetOutpostOutput, error) { 458 req, out := c.GetOutpostRequest(input) 459 return out, req.Send() 460 } 461 462 // GetOutpostWithContext is the same as GetOutpost with the addition of 463 // the ability to pass a context and additional request options. 464 // 465 // See GetOutpost for details on how to use this API operation. 466 // 467 // The context must be non-nil and will be used for request cancellation. If 468 // the context is nil a panic will occur. In the future the SDK may create 469 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 470 // for more information on using Contexts. 471 func (c *Outposts) GetOutpostWithContext(ctx aws.Context, input *GetOutpostInput, opts ...request.Option) (*GetOutpostOutput, error) { 472 req, out := c.GetOutpostRequest(input) 473 req.SetContext(ctx) 474 req.ApplyOptions(opts...) 475 return out, req.Send() 476 } 477 478 const opGetOutpostInstanceTypes = "GetOutpostInstanceTypes" 479 480 // GetOutpostInstanceTypesRequest generates a "aws/request.Request" representing the 481 // client's request for the GetOutpostInstanceTypes operation. The "output" return 482 // value will be populated with the request's response once the request completes 483 // successfully. 484 // 485 // Use "Send" method on the returned Request to send the API call to the service. 486 // the "output" return value is not valid until after Send returns without error. 487 // 488 // See GetOutpostInstanceTypes for more information on using the GetOutpostInstanceTypes 489 // API call, and error handling. 490 // 491 // This method is useful when you want to inject custom logic or configuration 492 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 493 // 494 // 495 // // Example sending a request using the GetOutpostInstanceTypesRequest method. 496 // req, resp := client.GetOutpostInstanceTypesRequest(params) 497 // 498 // err := req.Send() 499 // if err == nil { // resp is now filled 500 // fmt.Println(resp) 501 // } 502 // 503 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes 504 func (c *Outposts) GetOutpostInstanceTypesRequest(input *GetOutpostInstanceTypesInput) (req *request.Request, output *GetOutpostInstanceTypesOutput) { 505 op := &request.Operation{ 506 Name: opGetOutpostInstanceTypes, 507 HTTPMethod: "GET", 508 HTTPPath: "/outposts/{OutpostId}/instanceTypes", 509 } 510 511 if input == nil { 512 input = &GetOutpostInstanceTypesInput{} 513 } 514 515 output = &GetOutpostInstanceTypesOutput{} 516 req = c.newRequest(op, input, output) 517 return 518 } 519 520 // GetOutpostInstanceTypes API operation for AWS Outposts. 521 // 522 // Lists the instance types for the specified Outpost. 523 // 524 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 525 // with awserr.Error's Code and Message methods to get detailed information about 526 // the error. 527 // 528 // See the AWS API reference guide for AWS Outposts's 529 // API operation GetOutpostInstanceTypes for usage and error information. 530 // 531 // Returned Error Types: 532 // * ValidationException 533 // A parameter is not valid. 534 // 535 // * NotFoundException 536 // The specified request is not valid. 537 // 538 // * AccessDeniedException 539 // You do not have permission to perform this operation. 540 // 541 // * InternalServerException 542 // An internal error has occurred. 543 // 544 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/GetOutpostInstanceTypes 545 func (c *Outposts) GetOutpostInstanceTypes(input *GetOutpostInstanceTypesInput) (*GetOutpostInstanceTypesOutput, error) { 546 req, out := c.GetOutpostInstanceTypesRequest(input) 547 return out, req.Send() 548 } 549 550 // GetOutpostInstanceTypesWithContext is the same as GetOutpostInstanceTypes with the addition of 551 // the ability to pass a context and additional request options. 552 // 553 // See GetOutpostInstanceTypes for details on how to use this API operation. 554 // 555 // The context must be non-nil and will be used for request cancellation. If 556 // the context is nil a panic will occur. In the future the SDK may create 557 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 558 // for more information on using Contexts. 559 func (c *Outposts) GetOutpostInstanceTypesWithContext(ctx aws.Context, input *GetOutpostInstanceTypesInput, opts ...request.Option) (*GetOutpostInstanceTypesOutput, error) { 560 req, out := c.GetOutpostInstanceTypesRequest(input) 561 req.SetContext(ctx) 562 req.ApplyOptions(opts...) 563 return out, req.Send() 564 } 565 566 const opListOutposts = "ListOutposts" 567 568 // ListOutpostsRequest generates a "aws/request.Request" representing the 569 // client's request for the ListOutposts operation. The "output" return 570 // value will be populated with the request's response once the request completes 571 // successfully. 572 // 573 // Use "Send" method on the returned Request to send the API call to the service. 574 // the "output" return value is not valid until after Send returns without error. 575 // 576 // See ListOutposts for more information on using the ListOutposts 577 // API call, and error handling. 578 // 579 // This method is useful when you want to inject custom logic or configuration 580 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 581 // 582 // 583 // // Example sending a request using the ListOutpostsRequest method. 584 // req, resp := client.ListOutpostsRequest(params) 585 // 586 // err := req.Send() 587 // if err == nil { // resp is now filled 588 // fmt.Println(resp) 589 // } 590 // 591 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts 592 func (c *Outposts) ListOutpostsRequest(input *ListOutpostsInput) (req *request.Request, output *ListOutpostsOutput) { 593 op := &request.Operation{ 594 Name: opListOutposts, 595 HTTPMethod: "GET", 596 HTTPPath: "/outposts", 597 Paginator: &request.Paginator{ 598 InputTokens: []string{"NextToken"}, 599 OutputTokens: []string{"NextToken"}, 600 LimitToken: "MaxResults", 601 TruncationToken: "", 602 }, 603 } 604 605 if input == nil { 606 input = &ListOutpostsInput{} 607 } 608 609 output = &ListOutpostsOutput{} 610 req = c.newRequest(op, input, output) 611 return 612 } 613 614 // ListOutposts API operation for AWS Outposts. 615 // 616 // Create a list of the Outposts for your AWS account. Add filters to your request 617 // to return a more specific list of results. Use filters to match an Outpost 618 // lifecycle status, Availibility Zone (us-east-1a), and AZ ID (use1-az1). 619 // 620 // If you specify multiple filters, the filters are joined with an AND, and 621 // the request returns only results that match all of the specified filters. 622 // 623 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 624 // with awserr.Error's Code and Message methods to get detailed information about 625 // the error. 626 // 627 // See the AWS API reference guide for AWS Outposts's 628 // API operation ListOutposts for usage and error information. 629 // 630 // Returned Error Types: 631 // * ValidationException 632 // A parameter is not valid. 633 // 634 // * AccessDeniedException 635 // You do not have permission to perform this operation. 636 // 637 // * InternalServerException 638 // An internal error has occurred. 639 // 640 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListOutposts 641 func (c *Outposts) ListOutposts(input *ListOutpostsInput) (*ListOutpostsOutput, error) { 642 req, out := c.ListOutpostsRequest(input) 643 return out, req.Send() 644 } 645 646 // ListOutpostsWithContext is the same as ListOutposts with the addition of 647 // the ability to pass a context and additional request options. 648 // 649 // See ListOutposts for details on how to use this API operation. 650 // 651 // The context must be non-nil and will be used for request cancellation. If 652 // the context is nil a panic will occur. In the future the SDK may create 653 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 654 // for more information on using Contexts. 655 func (c *Outposts) ListOutpostsWithContext(ctx aws.Context, input *ListOutpostsInput, opts ...request.Option) (*ListOutpostsOutput, error) { 656 req, out := c.ListOutpostsRequest(input) 657 req.SetContext(ctx) 658 req.ApplyOptions(opts...) 659 return out, req.Send() 660 } 661 662 // ListOutpostsPages iterates over the pages of a ListOutposts operation, 663 // calling the "fn" function with the response data for each page. To stop 664 // iterating, return false from the fn function. 665 // 666 // See ListOutposts method for more information on how to use this operation. 667 // 668 // Note: This operation can generate multiple requests to a service. 669 // 670 // // Example iterating over at most 3 pages of a ListOutposts operation. 671 // pageNum := 0 672 // err := client.ListOutpostsPages(params, 673 // func(page *outposts.ListOutpostsOutput, lastPage bool) bool { 674 // pageNum++ 675 // fmt.Println(page) 676 // return pageNum <= 3 677 // }) 678 // 679 func (c *Outposts) ListOutpostsPages(input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool) error { 680 return c.ListOutpostsPagesWithContext(aws.BackgroundContext(), input, fn) 681 } 682 683 // ListOutpostsPagesWithContext same as ListOutpostsPages except 684 // it takes a Context and allows setting request options on the pages. 685 // 686 // The context must be non-nil and will be used for request cancellation. If 687 // the context is nil a panic will occur. In the future the SDK may create 688 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 689 // for more information on using Contexts. 690 func (c *Outposts) ListOutpostsPagesWithContext(ctx aws.Context, input *ListOutpostsInput, fn func(*ListOutpostsOutput, bool) bool, opts ...request.Option) error { 691 p := request.Pagination{ 692 NewRequest: func() (*request.Request, error) { 693 var inCpy *ListOutpostsInput 694 if input != nil { 695 tmp := *input 696 inCpy = &tmp 697 } 698 req, _ := c.ListOutpostsRequest(inCpy) 699 req.SetContext(ctx) 700 req.ApplyOptions(opts...) 701 return req, nil 702 }, 703 } 704 705 for p.Next() { 706 if !fn(p.Page().(*ListOutpostsOutput), !p.HasNextPage()) { 707 break 708 } 709 } 710 711 return p.Err() 712 } 713 714 const opListSites = "ListSites" 715 716 // ListSitesRequest generates a "aws/request.Request" representing the 717 // client's request for the ListSites operation. The "output" return 718 // value will be populated with the request's response once the request completes 719 // successfully. 720 // 721 // Use "Send" method on the returned Request to send the API call to the service. 722 // the "output" return value is not valid until after Send returns without error. 723 // 724 // See ListSites for more information on using the ListSites 725 // API call, and error handling. 726 // 727 // This method is useful when you want to inject custom logic or configuration 728 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 729 // 730 // 731 // // Example sending a request using the ListSitesRequest method. 732 // req, resp := client.ListSitesRequest(params) 733 // 734 // err := req.Send() 735 // if err == nil { // resp is now filled 736 // fmt.Println(resp) 737 // } 738 // 739 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites 740 func (c *Outposts) ListSitesRequest(input *ListSitesInput) (req *request.Request, output *ListSitesOutput) { 741 op := &request.Operation{ 742 Name: opListSites, 743 HTTPMethod: "GET", 744 HTTPPath: "/sites", 745 Paginator: &request.Paginator{ 746 InputTokens: []string{"NextToken"}, 747 OutputTokens: []string{"NextToken"}, 748 LimitToken: "MaxResults", 749 TruncationToken: "", 750 }, 751 } 752 753 if input == nil { 754 input = &ListSitesInput{} 755 } 756 757 output = &ListSitesOutput{} 758 req = c.newRequest(op, input, output) 759 return 760 } 761 762 // ListSites API operation for AWS Outposts. 763 // 764 // Lists the sites for the specified AWS account. 765 // 766 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 767 // with awserr.Error's Code and Message methods to get detailed information about 768 // the error. 769 // 770 // See the AWS API reference guide for AWS Outposts's 771 // API operation ListSites for usage and error information. 772 // 773 // Returned Error Types: 774 // * ValidationException 775 // A parameter is not valid. 776 // 777 // * AccessDeniedException 778 // You do not have permission to perform this operation. 779 // 780 // * InternalServerException 781 // An internal error has occurred. 782 // 783 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListSites 784 func (c *Outposts) ListSites(input *ListSitesInput) (*ListSitesOutput, error) { 785 req, out := c.ListSitesRequest(input) 786 return out, req.Send() 787 } 788 789 // ListSitesWithContext is the same as ListSites with the addition of 790 // the ability to pass a context and additional request options. 791 // 792 // See ListSites for details on how to use this API operation. 793 // 794 // The context must be non-nil and will be used for request cancellation. If 795 // the context is nil a panic will occur. In the future the SDK may create 796 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 797 // for more information on using Contexts. 798 func (c *Outposts) ListSitesWithContext(ctx aws.Context, input *ListSitesInput, opts ...request.Option) (*ListSitesOutput, error) { 799 req, out := c.ListSitesRequest(input) 800 req.SetContext(ctx) 801 req.ApplyOptions(opts...) 802 return out, req.Send() 803 } 804 805 // ListSitesPages iterates over the pages of a ListSites operation, 806 // calling the "fn" function with the response data for each page. To stop 807 // iterating, return false from the fn function. 808 // 809 // See ListSites method for more information on how to use this operation. 810 // 811 // Note: This operation can generate multiple requests to a service. 812 // 813 // // Example iterating over at most 3 pages of a ListSites operation. 814 // pageNum := 0 815 // err := client.ListSitesPages(params, 816 // func(page *outposts.ListSitesOutput, lastPage bool) bool { 817 // pageNum++ 818 // fmt.Println(page) 819 // return pageNum <= 3 820 // }) 821 // 822 func (c *Outposts) ListSitesPages(input *ListSitesInput, fn func(*ListSitesOutput, bool) bool) error { 823 return c.ListSitesPagesWithContext(aws.BackgroundContext(), input, fn) 824 } 825 826 // ListSitesPagesWithContext same as ListSitesPages except 827 // it takes a Context and allows setting request options on the pages. 828 // 829 // The context must be non-nil and will be used for request cancellation. If 830 // the context is nil a panic will occur. In the future the SDK may create 831 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 832 // for more information on using Contexts. 833 func (c *Outposts) ListSitesPagesWithContext(ctx aws.Context, input *ListSitesInput, fn func(*ListSitesOutput, bool) bool, opts ...request.Option) error { 834 p := request.Pagination{ 835 NewRequest: func() (*request.Request, error) { 836 var inCpy *ListSitesInput 837 if input != nil { 838 tmp := *input 839 inCpy = &tmp 840 } 841 req, _ := c.ListSitesRequest(inCpy) 842 req.SetContext(ctx) 843 req.ApplyOptions(opts...) 844 return req, nil 845 }, 846 } 847 848 for p.Next() { 849 if !fn(p.Page().(*ListSitesOutput), !p.HasNextPage()) { 850 break 851 } 852 } 853 854 return p.Err() 855 } 856 857 const opListTagsForResource = "ListTagsForResource" 858 859 // ListTagsForResourceRequest generates a "aws/request.Request" representing the 860 // client's request for the ListTagsForResource operation. The "output" return 861 // value will be populated with the request's response once the request completes 862 // successfully. 863 // 864 // Use "Send" method on the returned Request to send the API call to the service. 865 // the "output" return value is not valid until after Send returns without error. 866 // 867 // See ListTagsForResource for more information on using the ListTagsForResource 868 // API call, and error handling. 869 // 870 // This method is useful when you want to inject custom logic or configuration 871 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 872 // 873 // 874 // // Example sending a request using the ListTagsForResourceRequest method. 875 // req, resp := client.ListTagsForResourceRequest(params) 876 // 877 // err := req.Send() 878 // if err == nil { // resp is now filled 879 // fmt.Println(resp) 880 // } 881 // 882 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResource 883 func (c *Outposts) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) { 884 op := &request.Operation{ 885 Name: opListTagsForResource, 886 HTTPMethod: "GET", 887 HTTPPath: "/tags/{ResourceArn}", 888 } 889 890 if input == nil { 891 input = &ListTagsForResourceInput{} 892 } 893 894 output = &ListTagsForResourceOutput{} 895 req = c.newRequest(op, input, output) 896 return 897 } 898 899 // ListTagsForResource API operation for AWS Outposts. 900 // 901 // Lists the tags for the specified resource. 902 // 903 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 904 // with awserr.Error's Code and Message methods to get detailed information about 905 // the error. 906 // 907 // See the AWS API reference guide for AWS Outposts's 908 // API operation ListTagsForResource for usage and error information. 909 // 910 // Returned Error Types: 911 // * InternalServerException 912 // An internal error has occurred. 913 // 914 // * ValidationException 915 // A parameter is not valid. 916 // 917 // * NotFoundException 918 // The specified request is not valid. 919 // 920 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/ListTagsForResource 921 func (c *Outposts) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) { 922 req, out := c.ListTagsForResourceRequest(input) 923 return out, req.Send() 924 } 925 926 // ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of 927 // the ability to pass a context and additional request options. 928 // 929 // See ListTagsForResource for details on how to use this API operation. 930 // 931 // The context must be non-nil and will be used for request cancellation. If 932 // the context is nil a panic will occur. In the future the SDK may create 933 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 934 // for more information on using Contexts. 935 func (c *Outposts) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) { 936 req, out := c.ListTagsForResourceRequest(input) 937 req.SetContext(ctx) 938 req.ApplyOptions(opts...) 939 return out, req.Send() 940 } 941 942 const opTagResource = "TagResource" 943 944 // TagResourceRequest generates a "aws/request.Request" representing the 945 // client's request for the TagResource operation. The "output" return 946 // value will be populated with the request's response once the request completes 947 // successfully. 948 // 949 // Use "Send" method on the returned Request to send the API call to the service. 950 // the "output" return value is not valid until after Send returns without error. 951 // 952 // See TagResource for more information on using the TagResource 953 // API call, and error handling. 954 // 955 // This method is useful when you want to inject custom logic or configuration 956 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 957 // 958 // 959 // // Example sending a request using the TagResourceRequest method. 960 // req, resp := client.TagResourceRequest(params) 961 // 962 // err := req.Send() 963 // if err == nil { // resp is now filled 964 // fmt.Println(resp) 965 // } 966 // 967 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResource 968 func (c *Outposts) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) { 969 op := &request.Operation{ 970 Name: opTagResource, 971 HTTPMethod: "POST", 972 HTTPPath: "/tags/{ResourceArn}", 973 } 974 975 if input == nil { 976 input = &TagResourceInput{} 977 } 978 979 output = &TagResourceOutput{} 980 req = c.newRequest(op, input, output) 981 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 982 return 983 } 984 985 // TagResource API operation for AWS Outposts. 986 // 987 // Adds tags to the specified resource. 988 // 989 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 990 // with awserr.Error's Code and Message methods to get detailed information about 991 // the error. 992 // 993 // See the AWS API reference guide for AWS Outposts's 994 // API operation TagResource for usage and error information. 995 // 996 // Returned Error Types: 997 // * InternalServerException 998 // An internal error has occurred. 999 // 1000 // * ValidationException 1001 // A parameter is not valid. 1002 // 1003 // * NotFoundException 1004 // The specified request is not valid. 1005 // 1006 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/TagResource 1007 func (c *Outposts) TagResource(input *TagResourceInput) (*TagResourceOutput, error) { 1008 req, out := c.TagResourceRequest(input) 1009 return out, req.Send() 1010 } 1011 1012 // TagResourceWithContext is the same as TagResource with the addition of 1013 // the ability to pass a context and additional request options. 1014 // 1015 // See TagResource for details on how to use this API operation. 1016 // 1017 // The context must be non-nil and will be used for request cancellation. If 1018 // the context is nil a panic will occur. In the future the SDK may create 1019 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1020 // for more information on using Contexts. 1021 func (c *Outposts) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) { 1022 req, out := c.TagResourceRequest(input) 1023 req.SetContext(ctx) 1024 req.ApplyOptions(opts...) 1025 return out, req.Send() 1026 } 1027 1028 const opUntagResource = "UntagResource" 1029 1030 // UntagResourceRequest generates a "aws/request.Request" representing the 1031 // client's request for the UntagResource operation. The "output" return 1032 // value will be populated with the request's response once the request completes 1033 // successfully. 1034 // 1035 // Use "Send" method on the returned Request to send the API call to the service. 1036 // the "output" return value is not valid until after Send returns without error. 1037 // 1038 // See UntagResource for more information on using the UntagResource 1039 // API call, and error handling. 1040 // 1041 // This method is useful when you want to inject custom logic or configuration 1042 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1043 // 1044 // 1045 // // Example sending a request using the UntagResourceRequest method. 1046 // req, resp := client.UntagResourceRequest(params) 1047 // 1048 // err := req.Send() 1049 // if err == nil { // resp is now filled 1050 // fmt.Println(resp) 1051 // } 1052 // 1053 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResource 1054 func (c *Outposts) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) { 1055 op := &request.Operation{ 1056 Name: opUntagResource, 1057 HTTPMethod: "DELETE", 1058 HTTPPath: "/tags/{ResourceArn}", 1059 } 1060 1061 if input == nil { 1062 input = &UntagResourceInput{} 1063 } 1064 1065 output = &UntagResourceOutput{} 1066 req = c.newRequest(op, input, output) 1067 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 1068 return 1069 } 1070 1071 // UntagResource API operation for AWS Outposts. 1072 // 1073 // Removes tags from the specified resource. 1074 // 1075 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1076 // with awserr.Error's Code and Message methods to get detailed information about 1077 // the error. 1078 // 1079 // See the AWS API reference guide for AWS Outposts's 1080 // API operation UntagResource for usage and error information. 1081 // 1082 // Returned Error Types: 1083 // * InternalServerException 1084 // An internal error has occurred. 1085 // 1086 // * ValidationException 1087 // A parameter is not valid. 1088 // 1089 // * NotFoundException 1090 // The specified request is not valid. 1091 // 1092 // See also, https://docs.aws.amazon.com/goto/WebAPI/outposts-2019-12-03/UntagResource 1093 func (c *Outposts) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) { 1094 req, out := c.UntagResourceRequest(input) 1095 return out, req.Send() 1096 } 1097 1098 // UntagResourceWithContext is the same as UntagResource with the addition of 1099 // the ability to pass a context and additional request options. 1100 // 1101 // See UntagResource for details on how to use this API operation. 1102 // 1103 // The context must be non-nil and will be used for request cancellation. If 1104 // the context is nil a panic will occur. In the future the SDK may create 1105 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1106 // for more information on using Contexts. 1107 func (c *Outposts) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) { 1108 req, out := c.UntagResourceRequest(input) 1109 req.SetContext(ctx) 1110 req.ApplyOptions(opts...) 1111 return out, req.Send() 1112 } 1113 1114 // You do not have permission to perform this operation. 1115 type AccessDeniedException struct { 1116 _ struct{} `type:"structure"` 1117 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1118 1119 Message_ *string `locationName:"Message" min:"1" type:"string"` 1120 } 1121 1122 // String returns the string representation. 1123 // 1124 // API parameter values that are decorated as "sensitive" in the API will not 1125 // be included in the string output. The member name will be present, but the 1126 // value will be replaced with "sensitive". 1127 func (s AccessDeniedException) String() string { 1128 return awsutil.Prettify(s) 1129 } 1130 1131 // GoString returns the string representation. 1132 // 1133 // API parameter values that are decorated as "sensitive" in the API will not 1134 // be included in the string output. The member name will be present, but the 1135 // value will be replaced with "sensitive". 1136 func (s AccessDeniedException) GoString() string { 1137 return s.String() 1138 } 1139 1140 func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 1141 return &AccessDeniedException{ 1142 RespMetadata: v, 1143 } 1144 } 1145 1146 // Code returns the exception type name. 1147 func (s *AccessDeniedException) Code() string { 1148 return "AccessDeniedException" 1149 } 1150 1151 // Message returns the exception's message. 1152 func (s *AccessDeniedException) Message() string { 1153 if s.Message_ != nil { 1154 return *s.Message_ 1155 } 1156 return "" 1157 } 1158 1159 // OrigErr always returns nil, satisfies awserr.Error interface. 1160 func (s *AccessDeniedException) OrigErr() error { 1161 return nil 1162 } 1163 1164 func (s *AccessDeniedException) Error() string { 1165 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 1166 } 1167 1168 // Status code returns the HTTP status code for the request's response error. 1169 func (s *AccessDeniedException) StatusCode() int { 1170 return s.RespMetadata.StatusCode 1171 } 1172 1173 // RequestID returns the service's response RequestID for request. 1174 func (s *AccessDeniedException) RequestID() string { 1175 return s.RespMetadata.RequestID 1176 } 1177 1178 // Updating or deleting this resource can cause an inconsistent state. 1179 type ConflictException struct { 1180 _ struct{} `type:"structure"` 1181 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1182 1183 Message_ *string `locationName:"Message" min:"1" type:"string"` 1184 1185 // The ID of the resource causing the conflict. 1186 ResourceId *string `min:"1" type:"string"` 1187 1188 // The type of the resource causing the conflict. 1189 ResourceType *string `type:"string" enum:"ResourceType"` 1190 } 1191 1192 // String returns the string representation. 1193 // 1194 // API parameter values that are decorated as "sensitive" in the API will not 1195 // be included in the string output. The member name will be present, but the 1196 // value will be replaced with "sensitive". 1197 func (s ConflictException) String() string { 1198 return awsutil.Prettify(s) 1199 } 1200 1201 // GoString returns the string representation. 1202 // 1203 // API parameter values that are decorated as "sensitive" in the API will not 1204 // be included in the string output. The member name will be present, but the 1205 // value will be replaced with "sensitive". 1206 func (s ConflictException) GoString() string { 1207 return s.String() 1208 } 1209 1210 func newErrorConflictException(v protocol.ResponseMetadata) error { 1211 return &ConflictException{ 1212 RespMetadata: v, 1213 } 1214 } 1215 1216 // Code returns the exception type name. 1217 func (s *ConflictException) Code() string { 1218 return "ConflictException" 1219 } 1220 1221 // Message returns the exception's message. 1222 func (s *ConflictException) Message() string { 1223 if s.Message_ != nil { 1224 return *s.Message_ 1225 } 1226 return "" 1227 } 1228 1229 // OrigErr always returns nil, satisfies awserr.Error interface. 1230 func (s *ConflictException) OrigErr() error { 1231 return nil 1232 } 1233 1234 func (s *ConflictException) Error() string { 1235 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 1236 } 1237 1238 // Status code returns the HTTP status code for the request's response error. 1239 func (s *ConflictException) StatusCode() int { 1240 return s.RespMetadata.StatusCode 1241 } 1242 1243 // RequestID returns the service's response RequestID for request. 1244 func (s *ConflictException) RequestID() string { 1245 return s.RespMetadata.RequestID 1246 } 1247 1248 type CreateOrderInput struct { 1249 _ struct{} `type:"structure"` 1250 1251 // The line items that make up the order. 1252 // 1253 // LineItems is a required field 1254 LineItems []*LineItemRequest `min:"1" type:"list" required:"true"` 1255 1256 // The ID or the Amazon Resource Name (ARN) of the Outpost. 1257 // 1258 // OutpostIdentifier is a required field 1259 OutpostIdentifier *string `min:"1" type:"string" required:"true"` 1260 1261 // The payment option for the order. 1262 // 1263 // PaymentOption is a required field 1264 PaymentOption *string `type:"string" required:"true" enum:"PaymentOption"` 1265 1266 // The payment terms for the order. 1267 PaymentTerm *string `type:"string" enum:"PaymentTerm"` 1268 } 1269 1270 // String returns the string representation. 1271 // 1272 // API parameter values that are decorated as "sensitive" in the API will not 1273 // be included in the string output. The member name will be present, but the 1274 // value will be replaced with "sensitive". 1275 func (s CreateOrderInput) String() string { 1276 return awsutil.Prettify(s) 1277 } 1278 1279 // GoString returns the string representation. 1280 // 1281 // API parameter values that are decorated as "sensitive" in the API will not 1282 // be included in the string output. The member name will be present, but the 1283 // value will be replaced with "sensitive". 1284 func (s CreateOrderInput) GoString() string { 1285 return s.String() 1286 } 1287 1288 // Validate inspects the fields of the type to determine if they are valid. 1289 func (s *CreateOrderInput) Validate() error { 1290 invalidParams := request.ErrInvalidParams{Context: "CreateOrderInput"} 1291 if s.LineItems == nil { 1292 invalidParams.Add(request.NewErrParamRequired("LineItems")) 1293 } 1294 if s.LineItems != nil && len(s.LineItems) < 1 { 1295 invalidParams.Add(request.NewErrParamMinLen("LineItems", 1)) 1296 } 1297 if s.OutpostIdentifier == nil { 1298 invalidParams.Add(request.NewErrParamRequired("OutpostIdentifier")) 1299 } 1300 if s.OutpostIdentifier != nil && len(*s.OutpostIdentifier) < 1 { 1301 invalidParams.Add(request.NewErrParamMinLen("OutpostIdentifier", 1)) 1302 } 1303 if s.PaymentOption == nil { 1304 invalidParams.Add(request.NewErrParamRequired("PaymentOption")) 1305 } 1306 if s.LineItems != nil { 1307 for i, v := range s.LineItems { 1308 if v == nil { 1309 continue 1310 } 1311 if err := v.Validate(); err != nil { 1312 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "LineItems", i), err.(request.ErrInvalidParams)) 1313 } 1314 } 1315 } 1316 1317 if invalidParams.Len() > 0 { 1318 return invalidParams 1319 } 1320 return nil 1321 } 1322 1323 // SetLineItems sets the LineItems field's value. 1324 func (s *CreateOrderInput) SetLineItems(v []*LineItemRequest) *CreateOrderInput { 1325 s.LineItems = v 1326 return s 1327 } 1328 1329 // SetOutpostIdentifier sets the OutpostIdentifier field's value. 1330 func (s *CreateOrderInput) SetOutpostIdentifier(v string) *CreateOrderInput { 1331 s.OutpostIdentifier = &v 1332 return s 1333 } 1334 1335 // SetPaymentOption sets the PaymentOption field's value. 1336 func (s *CreateOrderInput) SetPaymentOption(v string) *CreateOrderInput { 1337 s.PaymentOption = &v 1338 return s 1339 } 1340 1341 // SetPaymentTerm sets the PaymentTerm field's value. 1342 func (s *CreateOrderInput) SetPaymentTerm(v string) *CreateOrderInput { 1343 s.PaymentTerm = &v 1344 return s 1345 } 1346 1347 type CreateOrderOutput struct { 1348 _ struct{} `type:"structure"` 1349 1350 // Information about this order. 1351 Order *Order `type:"structure"` 1352 } 1353 1354 // String returns the string representation. 1355 // 1356 // API parameter values that are decorated as "sensitive" in the API will not 1357 // be included in the string output. The member name will be present, but the 1358 // value will be replaced with "sensitive". 1359 func (s CreateOrderOutput) String() string { 1360 return awsutil.Prettify(s) 1361 } 1362 1363 // GoString returns the string representation. 1364 // 1365 // API parameter values that are decorated as "sensitive" in the API will not 1366 // be included in the string output. The member name will be present, but the 1367 // value will be replaced with "sensitive". 1368 func (s CreateOrderOutput) GoString() string { 1369 return s.String() 1370 } 1371 1372 // SetOrder sets the Order field's value. 1373 func (s *CreateOrderOutput) SetOrder(v *Order) *CreateOrderOutput { 1374 s.Order = v 1375 return s 1376 } 1377 1378 type CreateOutpostInput struct { 1379 _ struct{} `type:"structure"` 1380 1381 // The Availability Zone. 1382 AvailabilityZone *string `min:"1" type:"string"` 1383 1384 // The ID of the Availability Zone. 1385 AvailabilityZoneId *string `min:"1" type:"string"` 1386 1387 // The description of the Outpost. 1388 Description *string `type:"string"` 1389 1390 // The name of the Outpost. 1391 // 1392 // Name is a required field 1393 Name *string `min:"1" type:"string" required:"true"` 1394 1395 // The ID of the site. 1396 // 1397 // SiteId is a required field 1398 SiteId *string `min:"1" type:"string" required:"true"` 1399 1400 // The tags to apply to the Outpost. 1401 Tags map[string]*string `min:"1" type:"map"` 1402 } 1403 1404 // String returns the string representation. 1405 // 1406 // API parameter values that are decorated as "sensitive" in the API will not 1407 // be included in the string output. The member name will be present, but the 1408 // value will be replaced with "sensitive". 1409 func (s CreateOutpostInput) String() string { 1410 return awsutil.Prettify(s) 1411 } 1412 1413 // GoString returns the string representation. 1414 // 1415 // API parameter values that are decorated as "sensitive" in the API will not 1416 // be included in the string output. The member name will be present, but the 1417 // value will be replaced with "sensitive". 1418 func (s CreateOutpostInput) GoString() string { 1419 return s.String() 1420 } 1421 1422 // Validate inspects the fields of the type to determine if they are valid. 1423 func (s *CreateOutpostInput) Validate() error { 1424 invalidParams := request.ErrInvalidParams{Context: "CreateOutpostInput"} 1425 if s.AvailabilityZone != nil && len(*s.AvailabilityZone) < 1 { 1426 invalidParams.Add(request.NewErrParamMinLen("AvailabilityZone", 1)) 1427 } 1428 if s.AvailabilityZoneId != nil && len(*s.AvailabilityZoneId) < 1 { 1429 invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneId", 1)) 1430 } 1431 if s.Name == nil { 1432 invalidParams.Add(request.NewErrParamRequired("Name")) 1433 } 1434 if s.Name != nil && len(*s.Name) < 1 { 1435 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 1436 } 1437 if s.SiteId == nil { 1438 invalidParams.Add(request.NewErrParamRequired("SiteId")) 1439 } 1440 if s.SiteId != nil && len(*s.SiteId) < 1 { 1441 invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) 1442 } 1443 if s.Tags != nil && len(s.Tags) < 1 { 1444 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 1445 } 1446 1447 if invalidParams.Len() > 0 { 1448 return invalidParams 1449 } 1450 return nil 1451 } 1452 1453 // SetAvailabilityZone sets the AvailabilityZone field's value. 1454 func (s *CreateOutpostInput) SetAvailabilityZone(v string) *CreateOutpostInput { 1455 s.AvailabilityZone = &v 1456 return s 1457 } 1458 1459 // SetAvailabilityZoneId sets the AvailabilityZoneId field's value. 1460 func (s *CreateOutpostInput) SetAvailabilityZoneId(v string) *CreateOutpostInput { 1461 s.AvailabilityZoneId = &v 1462 return s 1463 } 1464 1465 // SetDescription sets the Description field's value. 1466 func (s *CreateOutpostInput) SetDescription(v string) *CreateOutpostInput { 1467 s.Description = &v 1468 return s 1469 } 1470 1471 // SetName sets the Name field's value. 1472 func (s *CreateOutpostInput) SetName(v string) *CreateOutpostInput { 1473 s.Name = &v 1474 return s 1475 } 1476 1477 // SetSiteId sets the SiteId field's value. 1478 func (s *CreateOutpostInput) SetSiteId(v string) *CreateOutpostInput { 1479 s.SiteId = &v 1480 return s 1481 } 1482 1483 // SetTags sets the Tags field's value. 1484 func (s *CreateOutpostInput) SetTags(v map[string]*string) *CreateOutpostInput { 1485 s.Tags = v 1486 return s 1487 } 1488 1489 type CreateOutpostOutput struct { 1490 _ struct{} `type:"structure"` 1491 1492 // Information about an Outpost. 1493 Outpost *Outpost `type:"structure"` 1494 } 1495 1496 // String returns the string representation. 1497 // 1498 // API parameter values that are decorated as "sensitive" in the API will not 1499 // be included in the string output. The member name will be present, but the 1500 // value will be replaced with "sensitive". 1501 func (s CreateOutpostOutput) String() string { 1502 return awsutil.Prettify(s) 1503 } 1504 1505 // GoString returns the string representation. 1506 // 1507 // API parameter values that are decorated as "sensitive" in the API will not 1508 // be included in the string output. The member name will be present, but the 1509 // value will be replaced with "sensitive". 1510 func (s CreateOutpostOutput) GoString() string { 1511 return s.String() 1512 } 1513 1514 // SetOutpost sets the Outpost field's value. 1515 func (s *CreateOutpostOutput) SetOutpost(v *Outpost) *CreateOutpostOutput { 1516 s.Outpost = v 1517 return s 1518 } 1519 1520 type DeleteOutpostInput struct { 1521 _ struct{} `type:"structure" nopayload:"true"` 1522 1523 // The ID of the Outpost. 1524 // 1525 // OutpostId is a required field 1526 OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"` 1527 } 1528 1529 // String returns the string representation. 1530 // 1531 // API parameter values that are decorated as "sensitive" in the API will not 1532 // be included in the string output. The member name will be present, but the 1533 // value will be replaced with "sensitive". 1534 func (s DeleteOutpostInput) String() string { 1535 return awsutil.Prettify(s) 1536 } 1537 1538 // GoString returns the string representation. 1539 // 1540 // API parameter values that are decorated as "sensitive" in the API will not 1541 // be included in the string output. The member name will be present, but the 1542 // value will be replaced with "sensitive". 1543 func (s DeleteOutpostInput) GoString() string { 1544 return s.String() 1545 } 1546 1547 // Validate inspects the fields of the type to determine if they are valid. 1548 func (s *DeleteOutpostInput) Validate() error { 1549 invalidParams := request.ErrInvalidParams{Context: "DeleteOutpostInput"} 1550 if s.OutpostId == nil { 1551 invalidParams.Add(request.NewErrParamRequired("OutpostId")) 1552 } 1553 if s.OutpostId != nil && len(*s.OutpostId) < 1 { 1554 invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) 1555 } 1556 1557 if invalidParams.Len() > 0 { 1558 return invalidParams 1559 } 1560 return nil 1561 } 1562 1563 // SetOutpostId sets the OutpostId field's value. 1564 func (s *DeleteOutpostInput) SetOutpostId(v string) *DeleteOutpostInput { 1565 s.OutpostId = &v 1566 return s 1567 } 1568 1569 type DeleteOutpostOutput struct { 1570 _ struct{} `type:"structure" nopayload:"true"` 1571 } 1572 1573 // String returns the string representation. 1574 // 1575 // API parameter values that are decorated as "sensitive" in the API will not 1576 // be included in the string output. The member name will be present, but the 1577 // value will be replaced with "sensitive". 1578 func (s DeleteOutpostOutput) String() string { 1579 return awsutil.Prettify(s) 1580 } 1581 1582 // GoString returns the string representation. 1583 // 1584 // API parameter values that are decorated as "sensitive" in the API will not 1585 // be included in the string output. The member name will be present, but the 1586 // value will be replaced with "sensitive". 1587 func (s DeleteOutpostOutput) GoString() string { 1588 return s.String() 1589 } 1590 1591 type DeleteSiteInput struct { 1592 _ struct{} `type:"structure" nopayload:"true"` 1593 1594 // The ID of the site. 1595 // 1596 // SiteId is a required field 1597 SiteId *string `location:"uri" locationName:"SiteId" min:"1" type:"string" required:"true"` 1598 } 1599 1600 // String returns the string representation. 1601 // 1602 // API parameter values that are decorated as "sensitive" in the API will not 1603 // be included in the string output. The member name will be present, but the 1604 // value will be replaced with "sensitive". 1605 func (s DeleteSiteInput) String() string { 1606 return awsutil.Prettify(s) 1607 } 1608 1609 // GoString returns the string representation. 1610 // 1611 // API parameter values that are decorated as "sensitive" in the API will not 1612 // be included in the string output. The member name will be present, but the 1613 // value will be replaced with "sensitive". 1614 func (s DeleteSiteInput) GoString() string { 1615 return s.String() 1616 } 1617 1618 // Validate inspects the fields of the type to determine if they are valid. 1619 func (s *DeleteSiteInput) Validate() error { 1620 invalidParams := request.ErrInvalidParams{Context: "DeleteSiteInput"} 1621 if s.SiteId == nil { 1622 invalidParams.Add(request.NewErrParamRequired("SiteId")) 1623 } 1624 if s.SiteId != nil && len(*s.SiteId) < 1 { 1625 invalidParams.Add(request.NewErrParamMinLen("SiteId", 1)) 1626 } 1627 1628 if invalidParams.Len() > 0 { 1629 return invalidParams 1630 } 1631 return nil 1632 } 1633 1634 // SetSiteId sets the SiteId field's value. 1635 func (s *DeleteSiteInput) SetSiteId(v string) *DeleteSiteInput { 1636 s.SiteId = &v 1637 return s 1638 } 1639 1640 type DeleteSiteOutput struct { 1641 _ struct{} `type:"structure" nopayload:"true"` 1642 } 1643 1644 // String returns the string representation. 1645 // 1646 // API parameter values that are decorated as "sensitive" in the API will not 1647 // be included in the string output. The member name will be present, but the 1648 // value will be replaced with "sensitive". 1649 func (s DeleteSiteOutput) String() string { 1650 return awsutil.Prettify(s) 1651 } 1652 1653 // GoString returns the string representation. 1654 // 1655 // API parameter values that are decorated as "sensitive" in the API will not 1656 // be included in the string output. The member name will be present, but the 1657 // value will be replaced with "sensitive". 1658 func (s DeleteSiteOutput) GoString() string { 1659 return s.String() 1660 } 1661 1662 type GetOutpostInput struct { 1663 _ struct{} `type:"structure" nopayload:"true"` 1664 1665 // The ID of the Outpost. 1666 // 1667 // OutpostId is a required field 1668 OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"` 1669 } 1670 1671 // String returns the string representation. 1672 // 1673 // API parameter values that are decorated as "sensitive" in the API will not 1674 // be included in the string output. The member name will be present, but the 1675 // value will be replaced with "sensitive". 1676 func (s GetOutpostInput) String() string { 1677 return awsutil.Prettify(s) 1678 } 1679 1680 // GoString returns the string representation. 1681 // 1682 // API parameter values that are decorated as "sensitive" in the API will not 1683 // be included in the string output. The member name will be present, but the 1684 // value will be replaced with "sensitive". 1685 func (s GetOutpostInput) GoString() string { 1686 return s.String() 1687 } 1688 1689 // Validate inspects the fields of the type to determine if they are valid. 1690 func (s *GetOutpostInput) Validate() error { 1691 invalidParams := request.ErrInvalidParams{Context: "GetOutpostInput"} 1692 if s.OutpostId == nil { 1693 invalidParams.Add(request.NewErrParamRequired("OutpostId")) 1694 } 1695 if s.OutpostId != nil && len(*s.OutpostId) < 1 { 1696 invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) 1697 } 1698 1699 if invalidParams.Len() > 0 { 1700 return invalidParams 1701 } 1702 return nil 1703 } 1704 1705 // SetOutpostId sets the OutpostId field's value. 1706 func (s *GetOutpostInput) SetOutpostId(v string) *GetOutpostInput { 1707 s.OutpostId = &v 1708 return s 1709 } 1710 1711 type GetOutpostInstanceTypesInput struct { 1712 _ struct{} `type:"structure" nopayload:"true"` 1713 1714 // The maximum page size. 1715 MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` 1716 1717 // The pagination token. 1718 NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` 1719 1720 // The ID of the Outpost. 1721 // 1722 // OutpostId is a required field 1723 OutpostId *string `location:"uri" locationName:"OutpostId" min:"1" type:"string" required:"true"` 1724 } 1725 1726 // String returns the string representation. 1727 // 1728 // API parameter values that are decorated as "sensitive" in the API will not 1729 // be included in the string output. The member name will be present, but the 1730 // value will be replaced with "sensitive". 1731 func (s GetOutpostInstanceTypesInput) String() string { 1732 return awsutil.Prettify(s) 1733 } 1734 1735 // GoString returns the string representation. 1736 // 1737 // API parameter values that are decorated as "sensitive" in the API will not 1738 // be included in the string output. The member name will be present, but the 1739 // value will be replaced with "sensitive". 1740 func (s GetOutpostInstanceTypesInput) GoString() string { 1741 return s.String() 1742 } 1743 1744 // Validate inspects the fields of the type to determine if they are valid. 1745 func (s *GetOutpostInstanceTypesInput) Validate() error { 1746 invalidParams := request.ErrInvalidParams{Context: "GetOutpostInstanceTypesInput"} 1747 if s.MaxResults != nil && *s.MaxResults < 1 { 1748 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 1749 } 1750 if s.NextToken != nil && len(*s.NextToken) < 1 { 1751 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 1752 } 1753 if s.OutpostId == nil { 1754 invalidParams.Add(request.NewErrParamRequired("OutpostId")) 1755 } 1756 if s.OutpostId != nil && len(*s.OutpostId) < 1 { 1757 invalidParams.Add(request.NewErrParamMinLen("OutpostId", 1)) 1758 } 1759 1760 if invalidParams.Len() > 0 { 1761 return invalidParams 1762 } 1763 return nil 1764 } 1765 1766 // SetMaxResults sets the MaxResults field's value. 1767 func (s *GetOutpostInstanceTypesInput) SetMaxResults(v int64) *GetOutpostInstanceTypesInput { 1768 s.MaxResults = &v 1769 return s 1770 } 1771 1772 // SetNextToken sets the NextToken field's value. 1773 func (s *GetOutpostInstanceTypesInput) SetNextToken(v string) *GetOutpostInstanceTypesInput { 1774 s.NextToken = &v 1775 return s 1776 } 1777 1778 // SetOutpostId sets the OutpostId field's value. 1779 func (s *GetOutpostInstanceTypesInput) SetOutpostId(v string) *GetOutpostInstanceTypesInput { 1780 s.OutpostId = &v 1781 return s 1782 } 1783 1784 type GetOutpostInstanceTypesOutput struct { 1785 _ struct{} `type:"structure"` 1786 1787 // Information about the instance types. 1788 InstanceTypes []*InstanceTypeItem `type:"list"` 1789 1790 // The pagination token. 1791 NextToken *string `min:"1" type:"string"` 1792 1793 // The Amazon Resource Name (ARN) of the Outpost. 1794 OutpostArn *string `min:"1" type:"string"` 1795 1796 // The ID of the Outpost. 1797 OutpostId *string `min:"1" type:"string"` 1798 } 1799 1800 // String returns the string representation. 1801 // 1802 // API parameter values that are decorated as "sensitive" in the API will not 1803 // be included in the string output. The member name will be present, but the 1804 // value will be replaced with "sensitive". 1805 func (s GetOutpostInstanceTypesOutput) String() string { 1806 return awsutil.Prettify(s) 1807 } 1808 1809 // GoString returns the string representation. 1810 // 1811 // API parameter values that are decorated as "sensitive" in the API will not 1812 // be included in the string output. The member name will be present, but the 1813 // value will be replaced with "sensitive". 1814 func (s GetOutpostInstanceTypesOutput) GoString() string { 1815 return s.String() 1816 } 1817 1818 // SetInstanceTypes sets the InstanceTypes field's value. 1819 func (s *GetOutpostInstanceTypesOutput) SetInstanceTypes(v []*InstanceTypeItem) *GetOutpostInstanceTypesOutput { 1820 s.InstanceTypes = v 1821 return s 1822 } 1823 1824 // SetNextToken sets the NextToken field's value. 1825 func (s *GetOutpostInstanceTypesOutput) SetNextToken(v string) *GetOutpostInstanceTypesOutput { 1826 s.NextToken = &v 1827 return s 1828 } 1829 1830 // SetOutpostArn sets the OutpostArn field's value. 1831 func (s *GetOutpostInstanceTypesOutput) SetOutpostArn(v string) *GetOutpostInstanceTypesOutput { 1832 s.OutpostArn = &v 1833 return s 1834 } 1835 1836 // SetOutpostId sets the OutpostId field's value. 1837 func (s *GetOutpostInstanceTypesOutput) SetOutpostId(v string) *GetOutpostInstanceTypesOutput { 1838 s.OutpostId = &v 1839 return s 1840 } 1841 1842 type GetOutpostOutput struct { 1843 _ struct{} `type:"structure"` 1844 1845 // Information about an Outpost. 1846 Outpost *Outpost `type:"structure"` 1847 } 1848 1849 // String returns the string representation. 1850 // 1851 // API parameter values that are decorated as "sensitive" in the API will not 1852 // be included in the string output. The member name will be present, but the 1853 // value will be replaced with "sensitive". 1854 func (s GetOutpostOutput) String() string { 1855 return awsutil.Prettify(s) 1856 } 1857 1858 // GoString returns the string representation. 1859 // 1860 // API parameter values that are decorated as "sensitive" in the API will not 1861 // be included in the string output. The member name will be present, but the 1862 // value will be replaced with "sensitive". 1863 func (s GetOutpostOutput) GoString() string { 1864 return s.String() 1865 } 1866 1867 // SetOutpost sets the Outpost field's value. 1868 func (s *GetOutpostOutput) SetOutpost(v *Outpost) *GetOutpostOutput { 1869 s.Outpost = v 1870 return s 1871 } 1872 1873 // Information about an instance type. 1874 type InstanceTypeItem struct { 1875 _ struct{} `type:"structure"` 1876 1877 // The instance type. 1878 InstanceType *string `type:"string"` 1879 } 1880 1881 // String returns the string representation. 1882 // 1883 // API parameter values that are decorated as "sensitive" in the API will not 1884 // be included in the string output. The member name will be present, but the 1885 // value will be replaced with "sensitive". 1886 func (s InstanceTypeItem) String() string { 1887 return awsutil.Prettify(s) 1888 } 1889 1890 // GoString returns the string representation. 1891 // 1892 // API parameter values that are decorated as "sensitive" in the API will not 1893 // be included in the string output. The member name will be present, but the 1894 // value will be replaced with "sensitive". 1895 func (s InstanceTypeItem) GoString() string { 1896 return s.String() 1897 } 1898 1899 // SetInstanceType sets the InstanceType field's value. 1900 func (s *InstanceTypeItem) SetInstanceType(v string) *InstanceTypeItem { 1901 s.InstanceType = &v 1902 return s 1903 } 1904 1905 // An internal error has occurred. 1906 type InternalServerException struct { 1907 _ struct{} `type:"structure"` 1908 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1909 1910 Message_ *string `locationName:"Message" min:"1" type:"string"` 1911 } 1912 1913 // String returns the string representation. 1914 // 1915 // API parameter values that are decorated as "sensitive" in the API will not 1916 // be included in the string output. The member name will be present, but the 1917 // value will be replaced with "sensitive". 1918 func (s InternalServerException) String() string { 1919 return awsutil.Prettify(s) 1920 } 1921 1922 // GoString returns the string representation. 1923 // 1924 // API parameter values that are decorated as "sensitive" in the API will not 1925 // be included in the string output. The member name will be present, but the 1926 // value will be replaced with "sensitive". 1927 func (s InternalServerException) GoString() string { 1928 return s.String() 1929 } 1930 1931 func newErrorInternalServerException(v protocol.ResponseMetadata) error { 1932 return &InternalServerException{ 1933 RespMetadata: v, 1934 } 1935 } 1936 1937 // Code returns the exception type name. 1938 func (s *InternalServerException) Code() string { 1939 return "InternalServerException" 1940 } 1941 1942 // Message returns the exception's message. 1943 func (s *InternalServerException) Message() string { 1944 if s.Message_ != nil { 1945 return *s.Message_ 1946 } 1947 return "" 1948 } 1949 1950 // OrigErr always returns nil, satisfies awserr.Error interface. 1951 func (s *InternalServerException) OrigErr() error { 1952 return nil 1953 } 1954 1955 func (s *InternalServerException) Error() string { 1956 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 1957 } 1958 1959 // Status code returns the HTTP status code for the request's response error. 1960 func (s *InternalServerException) StatusCode() int { 1961 return s.RespMetadata.StatusCode 1962 } 1963 1964 // RequestID returns the service's response RequestID for request. 1965 func (s *InternalServerException) RequestID() string { 1966 return s.RespMetadata.RequestID 1967 } 1968 1969 // Information about a line item. 1970 type LineItem struct { 1971 _ struct{} `type:"structure"` 1972 1973 // The ID of the catalog item. 1974 CatalogItemId *string `min:"1" type:"string"` 1975 1976 // The ID of the line item. 1977 LineItemId *string `type:"string"` 1978 1979 // The quantity of the line item. 1980 Quantity *int64 `min:"1" type:"integer"` 1981 1982 // The status of the line item. 1983 Status *string `min:"1" type:"string"` 1984 } 1985 1986 // String returns the string representation. 1987 // 1988 // API parameter values that are decorated as "sensitive" in the API will not 1989 // be included in the string output. The member name will be present, but the 1990 // value will be replaced with "sensitive". 1991 func (s LineItem) String() string { 1992 return awsutil.Prettify(s) 1993 } 1994 1995 // GoString returns the string representation. 1996 // 1997 // API parameter values that are decorated as "sensitive" in the API will not 1998 // be included in the string output. The member name will be present, but the 1999 // value will be replaced with "sensitive". 2000 func (s LineItem) GoString() string { 2001 return s.String() 2002 } 2003 2004 // SetCatalogItemId sets the CatalogItemId field's value. 2005 func (s *LineItem) SetCatalogItemId(v string) *LineItem { 2006 s.CatalogItemId = &v 2007 return s 2008 } 2009 2010 // SetLineItemId sets the LineItemId field's value. 2011 func (s *LineItem) SetLineItemId(v string) *LineItem { 2012 s.LineItemId = &v 2013 return s 2014 } 2015 2016 // SetQuantity sets the Quantity field's value. 2017 func (s *LineItem) SetQuantity(v int64) *LineItem { 2018 s.Quantity = &v 2019 return s 2020 } 2021 2022 // SetStatus sets the Status field's value. 2023 func (s *LineItem) SetStatus(v string) *LineItem { 2024 s.Status = &v 2025 return s 2026 } 2027 2028 // Information about a line item request. 2029 type LineItemRequest struct { 2030 _ struct{} `type:"structure"` 2031 2032 // The ID of the catalog item. 2033 CatalogItemId *string `min:"1" type:"string"` 2034 2035 // The quantity of a line item request. 2036 Quantity *int64 `min:"1" type:"integer"` 2037 } 2038 2039 // String returns the string representation. 2040 // 2041 // API parameter values that are decorated as "sensitive" in the API will not 2042 // be included in the string output. The member name will be present, but the 2043 // value will be replaced with "sensitive". 2044 func (s LineItemRequest) String() string { 2045 return awsutil.Prettify(s) 2046 } 2047 2048 // GoString returns the string representation. 2049 // 2050 // API parameter values that are decorated as "sensitive" in the API will not 2051 // be included in the string output. The member name will be present, but the 2052 // value will be replaced with "sensitive". 2053 func (s LineItemRequest) GoString() string { 2054 return s.String() 2055 } 2056 2057 // Validate inspects the fields of the type to determine if they are valid. 2058 func (s *LineItemRequest) Validate() error { 2059 invalidParams := request.ErrInvalidParams{Context: "LineItemRequest"} 2060 if s.CatalogItemId != nil && len(*s.CatalogItemId) < 1 { 2061 invalidParams.Add(request.NewErrParamMinLen("CatalogItemId", 1)) 2062 } 2063 if s.Quantity != nil && *s.Quantity < 1 { 2064 invalidParams.Add(request.NewErrParamMinValue("Quantity", 1)) 2065 } 2066 2067 if invalidParams.Len() > 0 { 2068 return invalidParams 2069 } 2070 return nil 2071 } 2072 2073 // SetCatalogItemId sets the CatalogItemId field's value. 2074 func (s *LineItemRequest) SetCatalogItemId(v string) *LineItemRequest { 2075 s.CatalogItemId = &v 2076 return s 2077 } 2078 2079 // SetQuantity sets the Quantity field's value. 2080 func (s *LineItemRequest) SetQuantity(v int64) *LineItemRequest { 2081 s.Quantity = &v 2082 return s 2083 } 2084 2085 type ListOutpostsInput struct { 2086 _ struct{} `type:"structure" nopayload:"true"` 2087 2088 // A filter for the Availibility Zone (us-east-1a) of the Outpost. 2089 // 2090 // Filter values are case sensitive. If you specify multiple values for a filter, 2091 // the values are joined with an OR, and the request returns all results that 2092 // match any of the specified values. 2093 AvailabilityZoneFilter []*string `location:"querystring" locationName:"AvailabilityZoneFilter" min:"1" type:"list"` 2094 2095 // A filter for the AZ IDs (use1-az1) of the Outpost. 2096 // 2097 // Filter values are case sensitive. If you specify multiple values for a filter, 2098 // the values are joined with an OR, and the request returns all results that 2099 // match any of the specified values. 2100 AvailabilityZoneIdFilter []*string `location:"querystring" locationName:"AvailabilityZoneIdFilter" min:"1" type:"list"` 2101 2102 // A filter for the lifecycle status of the Outpost. 2103 // 2104 // Filter values are case sensitive. If you specify multiple values for a filter, 2105 // the values are joined with an OR, and the request returns all results that 2106 // match any of the specified values. 2107 LifeCycleStatusFilter []*string `location:"querystring" locationName:"LifeCycleStatusFilter" min:"1" type:"list"` 2108 2109 // The maximum page size. 2110 MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` 2111 2112 // The pagination token. 2113 NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` 2114 } 2115 2116 // String returns the string representation. 2117 // 2118 // API parameter values that are decorated as "sensitive" in the API will not 2119 // be included in the string output. The member name will be present, but the 2120 // value will be replaced with "sensitive". 2121 func (s ListOutpostsInput) String() string { 2122 return awsutil.Prettify(s) 2123 } 2124 2125 // GoString returns the string representation. 2126 // 2127 // API parameter values that are decorated as "sensitive" in the API will not 2128 // be included in the string output. The member name will be present, but the 2129 // value will be replaced with "sensitive". 2130 func (s ListOutpostsInput) GoString() string { 2131 return s.String() 2132 } 2133 2134 // Validate inspects the fields of the type to determine if they are valid. 2135 func (s *ListOutpostsInput) Validate() error { 2136 invalidParams := request.ErrInvalidParams{Context: "ListOutpostsInput"} 2137 if s.AvailabilityZoneFilter != nil && len(s.AvailabilityZoneFilter) < 1 { 2138 invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneFilter", 1)) 2139 } 2140 if s.AvailabilityZoneIdFilter != nil && len(s.AvailabilityZoneIdFilter) < 1 { 2141 invalidParams.Add(request.NewErrParamMinLen("AvailabilityZoneIdFilter", 1)) 2142 } 2143 if s.LifeCycleStatusFilter != nil && len(s.LifeCycleStatusFilter) < 1 { 2144 invalidParams.Add(request.NewErrParamMinLen("LifeCycleStatusFilter", 1)) 2145 } 2146 if s.MaxResults != nil && *s.MaxResults < 1 { 2147 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 2148 } 2149 if s.NextToken != nil && len(*s.NextToken) < 1 { 2150 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 2151 } 2152 2153 if invalidParams.Len() > 0 { 2154 return invalidParams 2155 } 2156 return nil 2157 } 2158 2159 // SetAvailabilityZoneFilter sets the AvailabilityZoneFilter field's value. 2160 func (s *ListOutpostsInput) SetAvailabilityZoneFilter(v []*string) *ListOutpostsInput { 2161 s.AvailabilityZoneFilter = v 2162 return s 2163 } 2164 2165 // SetAvailabilityZoneIdFilter sets the AvailabilityZoneIdFilter field's value. 2166 func (s *ListOutpostsInput) SetAvailabilityZoneIdFilter(v []*string) *ListOutpostsInput { 2167 s.AvailabilityZoneIdFilter = v 2168 return s 2169 } 2170 2171 // SetLifeCycleStatusFilter sets the LifeCycleStatusFilter field's value. 2172 func (s *ListOutpostsInput) SetLifeCycleStatusFilter(v []*string) *ListOutpostsInput { 2173 s.LifeCycleStatusFilter = v 2174 return s 2175 } 2176 2177 // SetMaxResults sets the MaxResults field's value. 2178 func (s *ListOutpostsInput) SetMaxResults(v int64) *ListOutpostsInput { 2179 s.MaxResults = &v 2180 return s 2181 } 2182 2183 // SetNextToken sets the NextToken field's value. 2184 func (s *ListOutpostsInput) SetNextToken(v string) *ListOutpostsInput { 2185 s.NextToken = &v 2186 return s 2187 } 2188 2189 type ListOutpostsOutput struct { 2190 _ struct{} `type:"structure"` 2191 2192 // The pagination token. 2193 NextToken *string `min:"1" type:"string"` 2194 2195 // Information about the Outposts. 2196 Outposts []*Outpost `type:"list"` 2197 } 2198 2199 // String returns the string representation. 2200 // 2201 // API parameter values that are decorated as "sensitive" in the API will not 2202 // be included in the string output. The member name will be present, but the 2203 // value will be replaced with "sensitive". 2204 func (s ListOutpostsOutput) String() string { 2205 return awsutil.Prettify(s) 2206 } 2207 2208 // GoString returns the string representation. 2209 // 2210 // API parameter values that are decorated as "sensitive" in the API will not 2211 // be included in the string output. The member name will be present, but the 2212 // value will be replaced with "sensitive". 2213 func (s ListOutpostsOutput) GoString() string { 2214 return s.String() 2215 } 2216 2217 // SetNextToken sets the NextToken field's value. 2218 func (s *ListOutpostsOutput) SetNextToken(v string) *ListOutpostsOutput { 2219 s.NextToken = &v 2220 return s 2221 } 2222 2223 // SetOutposts sets the Outposts field's value. 2224 func (s *ListOutpostsOutput) SetOutposts(v []*Outpost) *ListOutpostsOutput { 2225 s.Outposts = v 2226 return s 2227 } 2228 2229 type ListSitesInput struct { 2230 _ struct{} `type:"structure" nopayload:"true"` 2231 2232 // The maximum page size. 2233 MaxResults *int64 `location:"querystring" locationName:"MaxResults" min:"1" type:"integer"` 2234 2235 // The pagination token. 2236 NextToken *string `location:"querystring" locationName:"NextToken" min:"1" type:"string"` 2237 } 2238 2239 // String returns the string representation. 2240 // 2241 // API parameter values that are decorated as "sensitive" in the API will not 2242 // be included in the string output. The member name will be present, but the 2243 // value will be replaced with "sensitive". 2244 func (s ListSitesInput) String() string { 2245 return awsutil.Prettify(s) 2246 } 2247 2248 // GoString returns the string representation. 2249 // 2250 // API parameter values that are decorated as "sensitive" in the API will not 2251 // be included in the string output. The member name will be present, but the 2252 // value will be replaced with "sensitive". 2253 func (s ListSitesInput) GoString() string { 2254 return s.String() 2255 } 2256 2257 // Validate inspects the fields of the type to determine if they are valid. 2258 func (s *ListSitesInput) Validate() error { 2259 invalidParams := request.ErrInvalidParams{Context: "ListSitesInput"} 2260 if s.MaxResults != nil && *s.MaxResults < 1 { 2261 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 2262 } 2263 if s.NextToken != nil && len(*s.NextToken) < 1 { 2264 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 2265 } 2266 2267 if invalidParams.Len() > 0 { 2268 return invalidParams 2269 } 2270 return nil 2271 } 2272 2273 // SetMaxResults sets the MaxResults field's value. 2274 func (s *ListSitesInput) SetMaxResults(v int64) *ListSitesInput { 2275 s.MaxResults = &v 2276 return s 2277 } 2278 2279 // SetNextToken sets the NextToken field's value. 2280 func (s *ListSitesInput) SetNextToken(v string) *ListSitesInput { 2281 s.NextToken = &v 2282 return s 2283 } 2284 2285 type ListSitesOutput struct { 2286 _ struct{} `type:"structure"` 2287 2288 // The pagination token. 2289 NextToken *string `min:"1" type:"string"` 2290 2291 // Information about the sites. 2292 Sites []*Site `type:"list"` 2293 } 2294 2295 // String returns the string representation. 2296 // 2297 // API parameter values that are decorated as "sensitive" in the API will not 2298 // be included in the string output. The member name will be present, but the 2299 // value will be replaced with "sensitive". 2300 func (s ListSitesOutput) String() string { 2301 return awsutil.Prettify(s) 2302 } 2303 2304 // GoString returns the string representation. 2305 // 2306 // API parameter values that are decorated as "sensitive" in the API will not 2307 // be included in the string output. The member name will be present, but the 2308 // value will be replaced with "sensitive". 2309 func (s ListSitesOutput) GoString() string { 2310 return s.String() 2311 } 2312 2313 // SetNextToken sets the NextToken field's value. 2314 func (s *ListSitesOutput) SetNextToken(v string) *ListSitesOutput { 2315 s.NextToken = &v 2316 return s 2317 } 2318 2319 // SetSites sets the Sites field's value. 2320 func (s *ListSitesOutput) SetSites(v []*Site) *ListSitesOutput { 2321 s.Sites = v 2322 return s 2323 } 2324 2325 type ListTagsForResourceInput struct { 2326 _ struct{} `type:"structure" nopayload:"true"` 2327 2328 // The Amazon Resource Name (ARN) of the resource. 2329 // 2330 // ResourceArn is a required field 2331 ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` 2332 } 2333 2334 // String returns the string representation. 2335 // 2336 // API parameter values that are decorated as "sensitive" in the API will not 2337 // be included in the string output. The member name will be present, but the 2338 // value will be replaced with "sensitive". 2339 func (s ListTagsForResourceInput) String() string { 2340 return awsutil.Prettify(s) 2341 } 2342 2343 // GoString returns the string representation. 2344 // 2345 // API parameter values that are decorated as "sensitive" in the API will not 2346 // be included in the string output. The member name will be present, but the 2347 // value will be replaced with "sensitive". 2348 func (s ListTagsForResourceInput) GoString() string { 2349 return s.String() 2350 } 2351 2352 // Validate inspects the fields of the type to determine if they are valid. 2353 func (s *ListTagsForResourceInput) Validate() error { 2354 invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"} 2355 if s.ResourceArn == nil { 2356 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 2357 } 2358 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 2359 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 2360 } 2361 2362 if invalidParams.Len() > 0 { 2363 return invalidParams 2364 } 2365 return nil 2366 } 2367 2368 // SetResourceArn sets the ResourceArn field's value. 2369 func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput { 2370 s.ResourceArn = &v 2371 return s 2372 } 2373 2374 type ListTagsForResourceOutput struct { 2375 _ struct{} `type:"structure"` 2376 2377 // The resource tags. 2378 Tags map[string]*string `min:"1" type:"map"` 2379 } 2380 2381 // String returns the string representation. 2382 // 2383 // API parameter values that are decorated as "sensitive" in the API will not 2384 // be included in the string output. The member name will be present, but the 2385 // value will be replaced with "sensitive". 2386 func (s ListTagsForResourceOutput) String() string { 2387 return awsutil.Prettify(s) 2388 } 2389 2390 // GoString returns the string representation. 2391 // 2392 // API parameter values that are decorated as "sensitive" in the API will not 2393 // be included in the string output. The member name will be present, but the 2394 // value will be replaced with "sensitive". 2395 func (s ListTagsForResourceOutput) GoString() string { 2396 return s.String() 2397 } 2398 2399 // SetTags sets the Tags field's value. 2400 func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput { 2401 s.Tags = v 2402 return s 2403 } 2404 2405 // The specified request is not valid. 2406 type NotFoundException struct { 2407 _ struct{} `type:"structure"` 2408 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2409 2410 Message_ *string `locationName:"Message" min:"1" type:"string"` 2411 } 2412 2413 // String returns the string representation. 2414 // 2415 // API parameter values that are decorated as "sensitive" in the API will not 2416 // be included in the string output. The member name will be present, but the 2417 // value will be replaced with "sensitive". 2418 func (s NotFoundException) String() string { 2419 return awsutil.Prettify(s) 2420 } 2421 2422 // GoString returns the string representation. 2423 // 2424 // API parameter values that are decorated as "sensitive" in the API will not 2425 // be included in the string output. The member name will be present, but the 2426 // value will be replaced with "sensitive". 2427 func (s NotFoundException) GoString() string { 2428 return s.String() 2429 } 2430 2431 func newErrorNotFoundException(v protocol.ResponseMetadata) error { 2432 return &NotFoundException{ 2433 RespMetadata: v, 2434 } 2435 } 2436 2437 // Code returns the exception type name. 2438 func (s *NotFoundException) Code() string { 2439 return "NotFoundException" 2440 } 2441 2442 // Message returns the exception's message. 2443 func (s *NotFoundException) Message() string { 2444 if s.Message_ != nil { 2445 return *s.Message_ 2446 } 2447 return "" 2448 } 2449 2450 // OrigErr always returns nil, satisfies awserr.Error interface. 2451 func (s *NotFoundException) OrigErr() error { 2452 return nil 2453 } 2454 2455 func (s *NotFoundException) Error() string { 2456 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2457 } 2458 2459 // Status code returns the HTTP status code for the request's response error. 2460 func (s *NotFoundException) StatusCode() int { 2461 return s.RespMetadata.StatusCode 2462 } 2463 2464 // RequestID returns the service's response RequestID for request. 2465 func (s *NotFoundException) RequestID() string { 2466 return s.RespMetadata.RequestID 2467 } 2468 2469 // Information about an order. 2470 type Order struct { 2471 _ struct{} `type:"structure"` 2472 2473 // The line items for the order 2474 LineItems []*LineItem `type:"list"` 2475 2476 // The fulfillment date of the order. 2477 OrderFulfilledDate *time.Time `type:"timestamp"` 2478 2479 // The ID of the order. 2480 OrderId *string `min:"1" type:"string"` 2481 2482 // The submission date for the order. 2483 OrderSubmissionDate *time.Time `type:"timestamp"` 2484 2485 // The ID of the Outpost. 2486 OutpostId *string `min:"1" type:"string"` 2487 2488 // The payment option for the order. 2489 PaymentOption *string `type:"string" enum:"PaymentOption"` 2490 2491 // The status of the order 2492 Status *string `type:"string" enum:"OrderStatus"` 2493 } 2494 2495 // String returns the string representation. 2496 // 2497 // API parameter values that are decorated as "sensitive" in the API will not 2498 // be included in the string output. The member name will be present, but the 2499 // value will be replaced with "sensitive". 2500 func (s Order) String() string { 2501 return awsutil.Prettify(s) 2502 } 2503 2504 // GoString returns the string representation. 2505 // 2506 // API parameter values that are decorated as "sensitive" in the API will not 2507 // be included in the string output. The member name will be present, but the 2508 // value will be replaced with "sensitive". 2509 func (s Order) GoString() string { 2510 return s.String() 2511 } 2512 2513 // SetLineItems sets the LineItems field's value. 2514 func (s *Order) SetLineItems(v []*LineItem) *Order { 2515 s.LineItems = v 2516 return s 2517 } 2518 2519 // SetOrderFulfilledDate sets the OrderFulfilledDate field's value. 2520 func (s *Order) SetOrderFulfilledDate(v time.Time) *Order { 2521 s.OrderFulfilledDate = &v 2522 return s 2523 } 2524 2525 // SetOrderId sets the OrderId field's value. 2526 func (s *Order) SetOrderId(v string) *Order { 2527 s.OrderId = &v 2528 return s 2529 } 2530 2531 // SetOrderSubmissionDate sets the OrderSubmissionDate field's value. 2532 func (s *Order) SetOrderSubmissionDate(v time.Time) *Order { 2533 s.OrderSubmissionDate = &v 2534 return s 2535 } 2536 2537 // SetOutpostId sets the OutpostId field's value. 2538 func (s *Order) SetOutpostId(v string) *Order { 2539 s.OutpostId = &v 2540 return s 2541 } 2542 2543 // SetPaymentOption sets the PaymentOption field's value. 2544 func (s *Order) SetPaymentOption(v string) *Order { 2545 s.PaymentOption = &v 2546 return s 2547 } 2548 2549 // SetStatus sets the Status field's value. 2550 func (s *Order) SetStatus(v string) *Order { 2551 s.Status = &v 2552 return s 2553 } 2554 2555 // Information about an Outpost. 2556 type Outpost struct { 2557 _ struct{} `type:"structure"` 2558 2559 // The Availability Zone. 2560 AvailabilityZone *string `min:"1" type:"string"` 2561 2562 // The ID of the Availability Zone. 2563 AvailabilityZoneId *string `min:"1" type:"string"` 2564 2565 // The description of the Outpost. 2566 Description *string `type:"string"` 2567 2568 // The life cycle status. 2569 LifeCycleStatus *string `min:"1" type:"string"` 2570 2571 // The name of the Outpost. 2572 Name *string `min:"1" type:"string"` 2573 2574 // The Amazon Resource Name (ARN) of the Outpost. 2575 OutpostArn *string `min:"1" type:"string"` 2576 2577 // The ID of the Outpost. 2578 OutpostId *string `min:"1" type:"string"` 2579 2580 // The AWS account ID of the Outpost owner. 2581 OwnerId *string `min:"12" type:"string"` 2582 2583 // The Amazon Resource Name (ARN) of the site. 2584 SiteArn *string `min:"1" type:"string"` 2585 2586 // The ID of the site. 2587 SiteId *string `min:"1" type:"string"` 2588 2589 // The Outpost tags. 2590 Tags map[string]*string `min:"1" type:"map"` 2591 } 2592 2593 // String returns the string representation. 2594 // 2595 // API parameter values that are decorated as "sensitive" in the API will not 2596 // be included in the string output. The member name will be present, but the 2597 // value will be replaced with "sensitive". 2598 func (s Outpost) String() string { 2599 return awsutil.Prettify(s) 2600 } 2601 2602 // GoString returns the string representation. 2603 // 2604 // API parameter values that are decorated as "sensitive" in the API will not 2605 // be included in the string output. The member name will be present, but the 2606 // value will be replaced with "sensitive". 2607 func (s Outpost) GoString() string { 2608 return s.String() 2609 } 2610 2611 // SetAvailabilityZone sets the AvailabilityZone field's value. 2612 func (s *Outpost) SetAvailabilityZone(v string) *Outpost { 2613 s.AvailabilityZone = &v 2614 return s 2615 } 2616 2617 // SetAvailabilityZoneId sets the AvailabilityZoneId field's value. 2618 func (s *Outpost) SetAvailabilityZoneId(v string) *Outpost { 2619 s.AvailabilityZoneId = &v 2620 return s 2621 } 2622 2623 // SetDescription sets the Description field's value. 2624 func (s *Outpost) SetDescription(v string) *Outpost { 2625 s.Description = &v 2626 return s 2627 } 2628 2629 // SetLifeCycleStatus sets the LifeCycleStatus field's value. 2630 func (s *Outpost) SetLifeCycleStatus(v string) *Outpost { 2631 s.LifeCycleStatus = &v 2632 return s 2633 } 2634 2635 // SetName sets the Name field's value. 2636 func (s *Outpost) SetName(v string) *Outpost { 2637 s.Name = &v 2638 return s 2639 } 2640 2641 // SetOutpostArn sets the OutpostArn field's value. 2642 func (s *Outpost) SetOutpostArn(v string) *Outpost { 2643 s.OutpostArn = &v 2644 return s 2645 } 2646 2647 // SetOutpostId sets the OutpostId field's value. 2648 func (s *Outpost) SetOutpostId(v string) *Outpost { 2649 s.OutpostId = &v 2650 return s 2651 } 2652 2653 // SetOwnerId sets the OwnerId field's value. 2654 func (s *Outpost) SetOwnerId(v string) *Outpost { 2655 s.OwnerId = &v 2656 return s 2657 } 2658 2659 // SetSiteArn sets the SiteArn field's value. 2660 func (s *Outpost) SetSiteArn(v string) *Outpost { 2661 s.SiteArn = &v 2662 return s 2663 } 2664 2665 // SetSiteId sets the SiteId field's value. 2666 func (s *Outpost) SetSiteId(v string) *Outpost { 2667 s.SiteId = &v 2668 return s 2669 } 2670 2671 // SetTags sets the Tags field's value. 2672 func (s *Outpost) SetTags(v map[string]*string) *Outpost { 2673 s.Tags = v 2674 return s 2675 } 2676 2677 // You have exceeded a service quota. 2678 type ServiceQuotaExceededException struct { 2679 _ struct{} `type:"structure"` 2680 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2681 2682 Message_ *string `locationName:"Message" min:"1" type:"string"` 2683 } 2684 2685 // String returns the string representation. 2686 // 2687 // API parameter values that are decorated as "sensitive" in the API will not 2688 // be included in the string output. The member name will be present, but the 2689 // value will be replaced with "sensitive". 2690 func (s ServiceQuotaExceededException) String() string { 2691 return awsutil.Prettify(s) 2692 } 2693 2694 // GoString returns the string representation. 2695 // 2696 // API parameter values that are decorated as "sensitive" in the API will not 2697 // be included in the string output. The member name will be present, but the 2698 // value will be replaced with "sensitive". 2699 func (s ServiceQuotaExceededException) GoString() string { 2700 return s.String() 2701 } 2702 2703 func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error { 2704 return &ServiceQuotaExceededException{ 2705 RespMetadata: v, 2706 } 2707 } 2708 2709 // Code returns the exception type name. 2710 func (s *ServiceQuotaExceededException) Code() string { 2711 return "ServiceQuotaExceededException" 2712 } 2713 2714 // Message returns the exception's message. 2715 func (s *ServiceQuotaExceededException) Message() string { 2716 if s.Message_ != nil { 2717 return *s.Message_ 2718 } 2719 return "" 2720 } 2721 2722 // OrigErr always returns nil, satisfies awserr.Error interface. 2723 func (s *ServiceQuotaExceededException) OrigErr() error { 2724 return nil 2725 } 2726 2727 func (s *ServiceQuotaExceededException) Error() string { 2728 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 2729 } 2730 2731 // Status code returns the HTTP status code for the request's response error. 2732 func (s *ServiceQuotaExceededException) StatusCode() int { 2733 return s.RespMetadata.StatusCode 2734 } 2735 2736 // RequestID returns the service's response RequestID for request. 2737 func (s *ServiceQuotaExceededException) RequestID() string { 2738 return s.RespMetadata.RequestID 2739 } 2740 2741 // Information about a site. 2742 type Site struct { 2743 _ struct{} `type:"structure"` 2744 2745 // The ID of the AWS account. 2746 AccountId *string `min:"12" type:"string"` 2747 2748 // The description of the site. 2749 Description *string `min:"1" type:"string"` 2750 2751 // The name of the site. 2752 Name *string `min:"1" type:"string"` 2753 2754 // The Amazon Resource Name (ARN) of the site. 2755 SiteArn *string `min:"1" type:"string"` 2756 2757 // The ID of the site. 2758 SiteId *string `min:"1" type:"string"` 2759 2760 // The site tags. 2761 Tags map[string]*string `min:"1" type:"map"` 2762 } 2763 2764 // String returns the string representation. 2765 // 2766 // API parameter values that are decorated as "sensitive" in the API will not 2767 // be included in the string output. The member name will be present, but the 2768 // value will be replaced with "sensitive". 2769 func (s Site) String() string { 2770 return awsutil.Prettify(s) 2771 } 2772 2773 // GoString returns the string representation. 2774 // 2775 // API parameter values that are decorated as "sensitive" in the API will not 2776 // be included in the string output. The member name will be present, but the 2777 // value will be replaced with "sensitive". 2778 func (s Site) GoString() string { 2779 return s.String() 2780 } 2781 2782 // SetAccountId sets the AccountId field's value. 2783 func (s *Site) SetAccountId(v string) *Site { 2784 s.AccountId = &v 2785 return s 2786 } 2787 2788 // SetDescription sets the Description field's value. 2789 func (s *Site) SetDescription(v string) *Site { 2790 s.Description = &v 2791 return s 2792 } 2793 2794 // SetName sets the Name field's value. 2795 func (s *Site) SetName(v string) *Site { 2796 s.Name = &v 2797 return s 2798 } 2799 2800 // SetSiteArn sets the SiteArn field's value. 2801 func (s *Site) SetSiteArn(v string) *Site { 2802 s.SiteArn = &v 2803 return s 2804 } 2805 2806 // SetSiteId sets the SiteId field's value. 2807 func (s *Site) SetSiteId(v string) *Site { 2808 s.SiteId = &v 2809 return s 2810 } 2811 2812 // SetTags sets the Tags field's value. 2813 func (s *Site) SetTags(v map[string]*string) *Site { 2814 s.Tags = v 2815 return s 2816 } 2817 2818 type TagResourceInput struct { 2819 _ struct{} `type:"structure"` 2820 2821 // The Amazon Resource Name (ARN) of the resource. 2822 // 2823 // ResourceArn is a required field 2824 ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` 2825 2826 // The tags to add to the resource. 2827 // 2828 // Tags is a required field 2829 Tags map[string]*string `min:"1" type:"map" required:"true"` 2830 } 2831 2832 // String returns the string representation. 2833 // 2834 // API parameter values that are decorated as "sensitive" in the API will not 2835 // be included in the string output. The member name will be present, but the 2836 // value will be replaced with "sensitive". 2837 func (s TagResourceInput) String() string { 2838 return awsutil.Prettify(s) 2839 } 2840 2841 // GoString returns the string representation. 2842 // 2843 // API parameter values that are decorated as "sensitive" in the API will not 2844 // be included in the string output. The member name will be present, but the 2845 // value will be replaced with "sensitive". 2846 func (s TagResourceInput) GoString() string { 2847 return s.String() 2848 } 2849 2850 // Validate inspects the fields of the type to determine if they are valid. 2851 func (s *TagResourceInput) Validate() error { 2852 invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"} 2853 if s.ResourceArn == nil { 2854 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 2855 } 2856 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 2857 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 2858 } 2859 if s.Tags == nil { 2860 invalidParams.Add(request.NewErrParamRequired("Tags")) 2861 } 2862 if s.Tags != nil && len(s.Tags) < 1 { 2863 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 2864 } 2865 2866 if invalidParams.Len() > 0 { 2867 return invalidParams 2868 } 2869 return nil 2870 } 2871 2872 // SetResourceArn sets the ResourceArn field's value. 2873 func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput { 2874 s.ResourceArn = &v 2875 return s 2876 } 2877 2878 // SetTags sets the Tags field's value. 2879 func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput { 2880 s.Tags = v 2881 return s 2882 } 2883 2884 type TagResourceOutput struct { 2885 _ struct{} `type:"structure" nopayload:"true"` 2886 } 2887 2888 // String returns the string representation. 2889 // 2890 // API parameter values that are decorated as "sensitive" in the API will not 2891 // be included in the string output. The member name will be present, but the 2892 // value will be replaced with "sensitive". 2893 func (s TagResourceOutput) String() string { 2894 return awsutil.Prettify(s) 2895 } 2896 2897 // GoString returns the string representation. 2898 // 2899 // API parameter values that are decorated as "sensitive" in the API will not 2900 // be included in the string output. The member name will be present, but the 2901 // value will be replaced with "sensitive". 2902 func (s TagResourceOutput) GoString() string { 2903 return s.String() 2904 } 2905 2906 type UntagResourceInput struct { 2907 _ struct{} `type:"structure" nopayload:"true"` 2908 2909 // The Amazon Resource Name (ARN) of the resource. 2910 // 2911 // ResourceArn is a required field 2912 ResourceArn *string `location:"uri" locationName:"ResourceArn" type:"string" required:"true"` 2913 2914 // The tag keys. 2915 // 2916 // TagKeys is a required field 2917 TagKeys []*string `location:"querystring" locationName:"tagKeys" min:"1" type:"list" required:"true"` 2918 } 2919 2920 // String returns the string representation. 2921 // 2922 // API parameter values that are decorated as "sensitive" in the API will not 2923 // be included in the string output. The member name will be present, but the 2924 // value will be replaced with "sensitive". 2925 func (s UntagResourceInput) String() string { 2926 return awsutil.Prettify(s) 2927 } 2928 2929 // GoString returns the string representation. 2930 // 2931 // API parameter values that are decorated as "sensitive" in the API will not 2932 // be included in the string output. The member name will be present, but the 2933 // value will be replaced with "sensitive". 2934 func (s UntagResourceInput) GoString() string { 2935 return s.String() 2936 } 2937 2938 // Validate inspects the fields of the type to determine if they are valid. 2939 func (s *UntagResourceInput) Validate() error { 2940 invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"} 2941 if s.ResourceArn == nil { 2942 invalidParams.Add(request.NewErrParamRequired("ResourceArn")) 2943 } 2944 if s.ResourceArn != nil && len(*s.ResourceArn) < 1 { 2945 invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1)) 2946 } 2947 if s.TagKeys == nil { 2948 invalidParams.Add(request.NewErrParamRequired("TagKeys")) 2949 } 2950 if s.TagKeys != nil && len(s.TagKeys) < 1 { 2951 invalidParams.Add(request.NewErrParamMinLen("TagKeys", 1)) 2952 } 2953 2954 if invalidParams.Len() > 0 { 2955 return invalidParams 2956 } 2957 return nil 2958 } 2959 2960 // SetResourceArn sets the ResourceArn field's value. 2961 func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput { 2962 s.ResourceArn = &v 2963 return s 2964 } 2965 2966 // SetTagKeys sets the TagKeys field's value. 2967 func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput { 2968 s.TagKeys = v 2969 return s 2970 } 2971 2972 type UntagResourceOutput struct { 2973 _ struct{} `type:"structure" nopayload:"true"` 2974 } 2975 2976 // String returns the string representation. 2977 // 2978 // API parameter values that are decorated as "sensitive" in the API will not 2979 // be included in the string output. The member name will be present, but the 2980 // value will be replaced with "sensitive". 2981 func (s UntagResourceOutput) String() string { 2982 return awsutil.Prettify(s) 2983 } 2984 2985 // GoString returns the string representation. 2986 // 2987 // API parameter values that are decorated as "sensitive" in the API will not 2988 // be included in the string output. The member name will be present, but the 2989 // value will be replaced with "sensitive". 2990 func (s UntagResourceOutput) GoString() string { 2991 return s.String() 2992 } 2993 2994 // A parameter is not valid. 2995 type ValidationException struct { 2996 _ struct{} `type:"structure"` 2997 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2998 2999 Message_ *string `locationName:"Message" min:"1" type:"string"` 3000 } 3001 3002 // String returns the string representation. 3003 // 3004 // API parameter values that are decorated as "sensitive" in the API will not 3005 // be included in the string output. The member name will be present, but the 3006 // value will be replaced with "sensitive". 3007 func (s ValidationException) String() string { 3008 return awsutil.Prettify(s) 3009 } 3010 3011 // GoString returns the string representation. 3012 // 3013 // API parameter values that are decorated as "sensitive" in the API will not 3014 // be included in the string output. The member name will be present, but the 3015 // value will be replaced with "sensitive". 3016 func (s ValidationException) GoString() string { 3017 return s.String() 3018 } 3019 3020 func newErrorValidationException(v protocol.ResponseMetadata) error { 3021 return &ValidationException{ 3022 RespMetadata: v, 3023 } 3024 } 3025 3026 // Code returns the exception type name. 3027 func (s *ValidationException) Code() string { 3028 return "ValidationException" 3029 } 3030 3031 // Message returns the exception's message. 3032 func (s *ValidationException) Message() string { 3033 if s.Message_ != nil { 3034 return *s.Message_ 3035 } 3036 return "" 3037 } 3038 3039 // OrigErr always returns nil, satisfies awserr.Error interface. 3040 func (s *ValidationException) OrigErr() error { 3041 return nil 3042 } 3043 3044 func (s *ValidationException) Error() string { 3045 return fmt.Sprintf("%s: %s", s.Code(), s.Message()) 3046 } 3047 3048 // Status code returns the HTTP status code for the request's response error. 3049 func (s *ValidationException) StatusCode() int { 3050 return s.RespMetadata.StatusCode 3051 } 3052 3053 // RequestID returns the service's response RequestID for request. 3054 func (s *ValidationException) RequestID() string { 3055 return s.RespMetadata.RequestID 3056 } 3057 3058 const ( 3059 // OrderStatusReceived is a OrderStatus enum value 3060 OrderStatusReceived = "RECEIVED" 3061 3062 // OrderStatusPending is a OrderStatus enum value 3063 OrderStatusPending = "PENDING" 3064 3065 // OrderStatusProcessing is a OrderStatus enum value 3066 OrderStatusProcessing = "PROCESSING" 3067 3068 // OrderStatusInstalling is a OrderStatus enum value 3069 OrderStatusInstalling = "INSTALLING" 3070 3071 // OrderStatusFulfilled is a OrderStatus enum value 3072 OrderStatusFulfilled = "FULFILLED" 3073 3074 // OrderStatusCancelled is a OrderStatus enum value 3075 OrderStatusCancelled = "CANCELLED" 3076 ) 3077 3078 // OrderStatus_Values returns all elements of the OrderStatus enum 3079 func OrderStatus_Values() []string { 3080 return []string{ 3081 OrderStatusReceived, 3082 OrderStatusPending, 3083 OrderStatusProcessing, 3084 OrderStatusInstalling, 3085 OrderStatusFulfilled, 3086 OrderStatusCancelled, 3087 } 3088 } 3089 3090 const ( 3091 // PaymentOptionAllUpfront is a PaymentOption enum value 3092 PaymentOptionAllUpfront = "ALL_UPFRONT" 3093 3094 // PaymentOptionNoUpfront is a PaymentOption enum value 3095 PaymentOptionNoUpfront = "NO_UPFRONT" 3096 3097 // PaymentOptionPartialUpfront is a PaymentOption enum value 3098 PaymentOptionPartialUpfront = "PARTIAL_UPFRONT" 3099 ) 3100 3101 // PaymentOption_Values returns all elements of the PaymentOption enum 3102 func PaymentOption_Values() []string { 3103 return []string{ 3104 PaymentOptionAllUpfront, 3105 PaymentOptionNoUpfront, 3106 PaymentOptionPartialUpfront, 3107 } 3108 } 3109 3110 const ( 3111 // PaymentTermThreeYears is a PaymentTerm enum value 3112 PaymentTermThreeYears = "THREE_YEARS" 3113 ) 3114 3115 // PaymentTerm_Values returns all elements of the PaymentTerm enum 3116 func PaymentTerm_Values() []string { 3117 return []string{ 3118 PaymentTermThreeYears, 3119 } 3120 } 3121 3122 const ( 3123 // ResourceTypeOutpost is a ResourceType enum value 3124 ResourceTypeOutpost = "OUTPOST" 3125 ) 3126 3127 // ResourceType_Values returns all elements of the ResourceType enum 3128 func ResourceType_Values() []string { 3129 return []string{ 3130 ResourceTypeOutpost, 3131 } 3132 }