github.com/aavshr/aws-sdk-go@v1.41.3/service/chimesdkidentity/api.go (about) 1 // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3 package chimesdkidentity 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 opCreateAppInstance = "CreateAppInstance" 17 18 // CreateAppInstanceRequest generates a "aws/request.Request" representing the 19 // client's request for the CreateAppInstance 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 CreateAppInstance for more information on using the CreateAppInstance 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 CreateAppInstanceRequest method. 34 // req, resp := client.CreateAppInstanceRequest(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/chime-sdk-identity-2021-04-20/CreateAppInstance 42 func (c *ChimeSDKIdentity) CreateAppInstanceRequest(input *CreateAppInstanceInput) (req *request.Request, output *CreateAppInstanceOutput) { 43 op := &request.Operation{ 44 Name: opCreateAppInstance, 45 HTTPMethod: "POST", 46 HTTPPath: "/app-instances", 47 } 48 49 if input == nil { 50 input = &CreateAppInstanceInput{} 51 } 52 53 output = &CreateAppInstanceOutput{} 54 req = c.newRequest(op, input, output) 55 return 56 } 57 58 // CreateAppInstance API operation for Amazon Chime SDK Identity. 59 // 60 // Creates an Amazon Chime SDK messaging AppInstance under an AWS account. Only 61 // SDK messaging customers use this API. CreateAppInstance supports idempotency 62 // behavior as described in the AWS API Standard. 63 // 64 // identity 65 // 66 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 67 // with awserr.Error's Code and Message methods to get detailed information about 68 // the error. 69 // 70 // See the AWS API reference guide for Amazon Chime SDK Identity's 71 // API operation CreateAppInstance for usage and error information. 72 // 73 // Returned Error Types: 74 // * BadRequestException 75 // The input parameters don't match the service's restrictions. 76 // 77 // * ConflictException 78 // The request could not be processed because of conflict in the current state 79 // of the resource. 80 // 81 // * ForbiddenException 82 // The client is permanently forbidden from making the request. 83 // 84 // * ResourceLimitExceededException 85 // The request exceeds the resource limit. 86 // 87 // * ThrottledClientException 88 // The client exceeded its request rate limit. 89 // 90 // * UnauthorizedClientException 91 // The client is not currently authorized to make the request. 92 // 93 // * ServiceUnavailableException 94 // The service is currently unavailable. 95 // 96 // * ServiceFailureException 97 // The service encountered an unexpected error. 98 // 99 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstance 100 func (c *ChimeSDKIdentity) CreateAppInstance(input *CreateAppInstanceInput) (*CreateAppInstanceOutput, error) { 101 req, out := c.CreateAppInstanceRequest(input) 102 return out, req.Send() 103 } 104 105 // CreateAppInstanceWithContext is the same as CreateAppInstance with the addition of 106 // the ability to pass a context and additional request options. 107 // 108 // See CreateAppInstance for details on how to use this API operation. 109 // 110 // The context must be non-nil and will be used for request cancellation. If 111 // the context is nil a panic will occur. In the future the SDK may create 112 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 113 // for more information on using Contexts. 114 func (c *ChimeSDKIdentity) CreateAppInstanceWithContext(ctx aws.Context, input *CreateAppInstanceInput, opts ...request.Option) (*CreateAppInstanceOutput, error) { 115 req, out := c.CreateAppInstanceRequest(input) 116 req.SetContext(ctx) 117 req.ApplyOptions(opts...) 118 return out, req.Send() 119 } 120 121 const opCreateAppInstanceAdmin = "CreateAppInstanceAdmin" 122 123 // CreateAppInstanceAdminRequest generates a "aws/request.Request" representing the 124 // client's request for the CreateAppInstanceAdmin operation. The "output" return 125 // value will be populated with the request's response once the request completes 126 // successfully. 127 // 128 // Use "Send" method on the returned Request to send the API call to the service. 129 // the "output" return value is not valid until after Send returns without error. 130 // 131 // See CreateAppInstanceAdmin for more information on using the CreateAppInstanceAdmin 132 // API call, and error handling. 133 // 134 // This method is useful when you want to inject custom logic or configuration 135 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 136 // 137 // 138 // // Example sending a request using the CreateAppInstanceAdminRequest method. 139 // req, resp := client.CreateAppInstanceAdminRequest(params) 140 // 141 // err := req.Send() 142 // if err == nil { // resp is now filled 143 // fmt.Println(resp) 144 // } 145 // 146 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceAdmin 147 func (c *ChimeSDKIdentity) CreateAppInstanceAdminRequest(input *CreateAppInstanceAdminInput) (req *request.Request, output *CreateAppInstanceAdminOutput) { 148 op := &request.Operation{ 149 Name: opCreateAppInstanceAdmin, 150 HTTPMethod: "POST", 151 HTTPPath: "/app-instances/{appInstanceArn}/admins", 152 } 153 154 if input == nil { 155 input = &CreateAppInstanceAdminInput{} 156 } 157 158 output = &CreateAppInstanceAdminOutput{} 159 req = c.newRequest(op, input, output) 160 return 161 } 162 163 // CreateAppInstanceAdmin API operation for Amazon Chime SDK Identity. 164 // 165 // Promotes an AppInstanceUser to an AppInstanceAdmin. The promoted user can 166 // perform the following actions. 167 // 168 // * ChannelModerator actions across all channels in the AppInstance. 169 // 170 // * DeleteChannelMessage actions. 171 // 172 // Only an AppInstanceUser can be promoted to an AppInstanceAdmin role. 173 // 174 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 175 // with awserr.Error's Code and Message methods to get detailed information about 176 // the error. 177 // 178 // See the AWS API reference guide for Amazon Chime SDK Identity's 179 // API operation CreateAppInstanceAdmin for usage and error information. 180 // 181 // Returned Error Types: 182 // * BadRequestException 183 // The input parameters don't match the service's restrictions. 184 // 185 // * ConflictException 186 // The request could not be processed because of conflict in the current state 187 // of the resource. 188 // 189 // * ForbiddenException 190 // The client is permanently forbidden from making the request. 191 // 192 // * ResourceLimitExceededException 193 // The request exceeds the resource limit. 194 // 195 // * ThrottledClientException 196 // The client exceeded its request rate limit. 197 // 198 // * UnauthorizedClientException 199 // The client is not currently authorized to make the request. 200 // 201 // * ServiceUnavailableException 202 // The service is currently unavailable. 203 // 204 // * ServiceFailureException 205 // The service encountered an unexpected error. 206 // 207 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceAdmin 208 func (c *ChimeSDKIdentity) CreateAppInstanceAdmin(input *CreateAppInstanceAdminInput) (*CreateAppInstanceAdminOutput, error) { 209 req, out := c.CreateAppInstanceAdminRequest(input) 210 return out, req.Send() 211 } 212 213 // CreateAppInstanceAdminWithContext is the same as CreateAppInstanceAdmin with the addition of 214 // the ability to pass a context and additional request options. 215 // 216 // See CreateAppInstanceAdmin for details on how to use this API operation. 217 // 218 // The context must be non-nil and will be used for request cancellation. If 219 // the context is nil a panic will occur. In the future the SDK may create 220 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 221 // for more information on using Contexts. 222 func (c *ChimeSDKIdentity) CreateAppInstanceAdminWithContext(ctx aws.Context, input *CreateAppInstanceAdminInput, opts ...request.Option) (*CreateAppInstanceAdminOutput, error) { 223 req, out := c.CreateAppInstanceAdminRequest(input) 224 req.SetContext(ctx) 225 req.ApplyOptions(opts...) 226 return out, req.Send() 227 } 228 229 const opCreateAppInstanceUser = "CreateAppInstanceUser" 230 231 // CreateAppInstanceUserRequest generates a "aws/request.Request" representing the 232 // client's request for the CreateAppInstanceUser operation. The "output" return 233 // value will be populated with the request's response once the request completes 234 // successfully. 235 // 236 // Use "Send" method on the returned Request to send the API call to the service. 237 // the "output" return value is not valid until after Send returns without error. 238 // 239 // See CreateAppInstanceUser for more information on using the CreateAppInstanceUser 240 // API call, and error handling. 241 // 242 // This method is useful when you want to inject custom logic or configuration 243 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 244 // 245 // 246 // // Example sending a request using the CreateAppInstanceUserRequest method. 247 // req, resp := client.CreateAppInstanceUserRequest(params) 248 // 249 // err := req.Send() 250 // if err == nil { // resp is now filled 251 // fmt.Println(resp) 252 // } 253 // 254 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceUser 255 func (c *ChimeSDKIdentity) CreateAppInstanceUserRequest(input *CreateAppInstanceUserInput) (req *request.Request, output *CreateAppInstanceUserOutput) { 256 op := &request.Operation{ 257 Name: opCreateAppInstanceUser, 258 HTTPMethod: "POST", 259 HTTPPath: "/app-instance-users", 260 } 261 262 if input == nil { 263 input = &CreateAppInstanceUserInput{} 264 } 265 266 output = &CreateAppInstanceUserOutput{} 267 req = c.newRequest(op, input, output) 268 return 269 } 270 271 // CreateAppInstanceUser API operation for Amazon Chime SDK Identity. 272 // 273 // Creates a user under an Amazon Chime AppInstance. The request consists of 274 // a unique appInstanceUserId and Name for that user. 275 // 276 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 277 // with awserr.Error's Code and Message methods to get detailed information about 278 // the error. 279 // 280 // See the AWS API reference guide for Amazon Chime SDK Identity's 281 // API operation CreateAppInstanceUser for usage and error information. 282 // 283 // Returned Error Types: 284 // * BadRequestException 285 // The input parameters don't match the service's restrictions. 286 // 287 // * ConflictException 288 // The request could not be processed because of conflict in the current state 289 // of the resource. 290 // 291 // * ForbiddenException 292 // The client is permanently forbidden from making the request. 293 // 294 // * ResourceLimitExceededException 295 // The request exceeds the resource limit. 296 // 297 // * ThrottledClientException 298 // The client exceeded its request rate limit. 299 // 300 // * UnauthorizedClientException 301 // The client is not currently authorized to make the request. 302 // 303 // * ServiceUnavailableException 304 // The service is currently unavailable. 305 // 306 // * ServiceFailureException 307 // The service encountered an unexpected error. 308 // 309 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/CreateAppInstanceUser 310 func (c *ChimeSDKIdentity) CreateAppInstanceUser(input *CreateAppInstanceUserInput) (*CreateAppInstanceUserOutput, error) { 311 req, out := c.CreateAppInstanceUserRequest(input) 312 return out, req.Send() 313 } 314 315 // CreateAppInstanceUserWithContext is the same as CreateAppInstanceUser with the addition of 316 // the ability to pass a context and additional request options. 317 // 318 // See CreateAppInstanceUser for details on how to use this API operation. 319 // 320 // The context must be non-nil and will be used for request cancellation. If 321 // the context is nil a panic will occur. In the future the SDK may create 322 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 323 // for more information on using Contexts. 324 func (c *ChimeSDKIdentity) CreateAppInstanceUserWithContext(ctx aws.Context, input *CreateAppInstanceUserInput, opts ...request.Option) (*CreateAppInstanceUserOutput, error) { 325 req, out := c.CreateAppInstanceUserRequest(input) 326 req.SetContext(ctx) 327 req.ApplyOptions(opts...) 328 return out, req.Send() 329 } 330 331 const opDeleteAppInstance = "DeleteAppInstance" 332 333 // DeleteAppInstanceRequest generates a "aws/request.Request" representing the 334 // client's request for the DeleteAppInstance operation. The "output" return 335 // value will be populated with the request's response once the request completes 336 // successfully. 337 // 338 // Use "Send" method on the returned Request to send the API call to the service. 339 // the "output" return value is not valid until after Send returns without error. 340 // 341 // See DeleteAppInstance for more information on using the DeleteAppInstance 342 // API call, and error handling. 343 // 344 // This method is useful when you want to inject custom logic or configuration 345 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 346 // 347 // 348 // // Example sending a request using the DeleteAppInstanceRequest method. 349 // req, resp := client.DeleteAppInstanceRequest(params) 350 // 351 // err := req.Send() 352 // if err == nil { // resp is now filled 353 // fmt.Println(resp) 354 // } 355 // 356 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstance 357 func (c *ChimeSDKIdentity) DeleteAppInstanceRequest(input *DeleteAppInstanceInput) (req *request.Request, output *DeleteAppInstanceOutput) { 358 op := &request.Operation{ 359 Name: opDeleteAppInstance, 360 HTTPMethod: "DELETE", 361 HTTPPath: "/app-instances/{appInstanceArn}", 362 } 363 364 if input == nil { 365 input = &DeleteAppInstanceInput{} 366 } 367 368 output = &DeleteAppInstanceOutput{} 369 req = c.newRequest(op, input, output) 370 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 371 return 372 } 373 374 // DeleteAppInstance API operation for Amazon Chime SDK Identity. 375 // 376 // Deletes an AppInstance and all associated data asynchronously. 377 // 378 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 379 // with awserr.Error's Code and Message methods to get detailed information about 380 // the error. 381 // 382 // See the AWS API reference guide for Amazon Chime SDK Identity's 383 // API operation DeleteAppInstance for usage and error information. 384 // 385 // Returned Error Types: 386 // * BadRequestException 387 // The input parameters don't match the service's restrictions. 388 // 389 // * ForbiddenException 390 // The client is permanently forbidden from making the request. 391 // 392 // * ResourceLimitExceededException 393 // The request exceeds the resource limit. 394 // 395 // * ThrottledClientException 396 // The client exceeded its request rate limit. 397 // 398 // * UnauthorizedClientException 399 // The client is not currently authorized to make the request. 400 // 401 // * ServiceUnavailableException 402 // The service is currently unavailable. 403 // 404 // * ServiceFailureException 405 // The service encountered an unexpected error. 406 // 407 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstance 408 func (c *ChimeSDKIdentity) DeleteAppInstance(input *DeleteAppInstanceInput) (*DeleteAppInstanceOutput, error) { 409 req, out := c.DeleteAppInstanceRequest(input) 410 return out, req.Send() 411 } 412 413 // DeleteAppInstanceWithContext is the same as DeleteAppInstance with the addition of 414 // the ability to pass a context and additional request options. 415 // 416 // See DeleteAppInstance for details on how to use this API operation. 417 // 418 // The context must be non-nil and will be used for request cancellation. If 419 // the context is nil a panic will occur. In the future the SDK may create 420 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 421 // for more information on using Contexts. 422 func (c *ChimeSDKIdentity) DeleteAppInstanceWithContext(ctx aws.Context, input *DeleteAppInstanceInput, opts ...request.Option) (*DeleteAppInstanceOutput, error) { 423 req, out := c.DeleteAppInstanceRequest(input) 424 req.SetContext(ctx) 425 req.ApplyOptions(opts...) 426 return out, req.Send() 427 } 428 429 const opDeleteAppInstanceAdmin = "DeleteAppInstanceAdmin" 430 431 // DeleteAppInstanceAdminRequest generates a "aws/request.Request" representing the 432 // client's request for the DeleteAppInstanceAdmin operation. The "output" return 433 // value will be populated with the request's response once the request completes 434 // successfully. 435 // 436 // Use "Send" method on the returned Request to send the API call to the service. 437 // the "output" return value is not valid until after Send returns without error. 438 // 439 // See DeleteAppInstanceAdmin for more information on using the DeleteAppInstanceAdmin 440 // API call, and error handling. 441 // 442 // This method is useful when you want to inject custom logic or configuration 443 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 444 // 445 // 446 // // Example sending a request using the DeleteAppInstanceAdminRequest method. 447 // req, resp := client.DeleteAppInstanceAdminRequest(params) 448 // 449 // err := req.Send() 450 // if err == nil { // resp is now filled 451 // fmt.Println(resp) 452 // } 453 // 454 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceAdmin 455 func (c *ChimeSDKIdentity) DeleteAppInstanceAdminRequest(input *DeleteAppInstanceAdminInput) (req *request.Request, output *DeleteAppInstanceAdminOutput) { 456 op := &request.Operation{ 457 Name: opDeleteAppInstanceAdmin, 458 HTTPMethod: "DELETE", 459 HTTPPath: "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", 460 } 461 462 if input == nil { 463 input = &DeleteAppInstanceAdminInput{} 464 } 465 466 output = &DeleteAppInstanceAdminOutput{} 467 req = c.newRequest(op, input, output) 468 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 469 return 470 } 471 472 // DeleteAppInstanceAdmin API operation for Amazon Chime SDK Identity. 473 // 474 // Demotes an AppInstanceAdmin to an AppInstanceUser. This action does not delete 475 // the user. 476 // 477 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 478 // with awserr.Error's Code and Message methods to get detailed information about 479 // the error. 480 // 481 // See the AWS API reference guide for Amazon Chime SDK Identity's 482 // API operation DeleteAppInstanceAdmin for usage and error information. 483 // 484 // Returned Error Types: 485 // * BadRequestException 486 // The input parameters don't match the service's restrictions. 487 // 488 // * ConflictException 489 // The request could not be processed because of conflict in the current state 490 // of the resource. 491 // 492 // * ForbiddenException 493 // The client is permanently forbidden from making the request. 494 // 495 // * ResourceLimitExceededException 496 // The request exceeds the resource limit. 497 // 498 // * ThrottledClientException 499 // The client exceeded its request rate limit. 500 // 501 // * UnauthorizedClientException 502 // The client is not currently authorized to make the request. 503 // 504 // * ServiceUnavailableException 505 // The service is currently unavailable. 506 // 507 // * ServiceFailureException 508 // The service encountered an unexpected error. 509 // 510 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceAdmin 511 func (c *ChimeSDKIdentity) DeleteAppInstanceAdmin(input *DeleteAppInstanceAdminInput) (*DeleteAppInstanceAdminOutput, error) { 512 req, out := c.DeleteAppInstanceAdminRequest(input) 513 return out, req.Send() 514 } 515 516 // DeleteAppInstanceAdminWithContext is the same as DeleteAppInstanceAdmin with the addition of 517 // the ability to pass a context and additional request options. 518 // 519 // See DeleteAppInstanceAdmin for details on how to use this API operation. 520 // 521 // The context must be non-nil and will be used for request cancellation. If 522 // the context is nil a panic will occur. In the future the SDK may create 523 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 524 // for more information on using Contexts. 525 func (c *ChimeSDKIdentity) DeleteAppInstanceAdminWithContext(ctx aws.Context, input *DeleteAppInstanceAdminInput, opts ...request.Option) (*DeleteAppInstanceAdminOutput, error) { 526 req, out := c.DeleteAppInstanceAdminRequest(input) 527 req.SetContext(ctx) 528 req.ApplyOptions(opts...) 529 return out, req.Send() 530 } 531 532 const opDeleteAppInstanceUser = "DeleteAppInstanceUser" 533 534 // DeleteAppInstanceUserRequest generates a "aws/request.Request" representing the 535 // client's request for the DeleteAppInstanceUser operation. The "output" return 536 // value will be populated with the request's response once the request completes 537 // successfully. 538 // 539 // Use "Send" method on the returned Request to send the API call to the service. 540 // the "output" return value is not valid until after Send returns without error. 541 // 542 // See DeleteAppInstanceUser for more information on using the DeleteAppInstanceUser 543 // API call, and error handling. 544 // 545 // This method is useful when you want to inject custom logic or configuration 546 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 547 // 548 // 549 // // Example sending a request using the DeleteAppInstanceUserRequest method. 550 // req, resp := client.DeleteAppInstanceUserRequest(params) 551 // 552 // err := req.Send() 553 // if err == nil { // resp is now filled 554 // fmt.Println(resp) 555 // } 556 // 557 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceUser 558 func (c *ChimeSDKIdentity) DeleteAppInstanceUserRequest(input *DeleteAppInstanceUserInput) (req *request.Request, output *DeleteAppInstanceUserOutput) { 559 op := &request.Operation{ 560 Name: opDeleteAppInstanceUser, 561 HTTPMethod: "DELETE", 562 HTTPPath: "/app-instance-users/{appInstanceUserArn}", 563 } 564 565 if input == nil { 566 input = &DeleteAppInstanceUserInput{} 567 } 568 569 output = &DeleteAppInstanceUserOutput{} 570 req = c.newRequest(op, input, output) 571 req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler) 572 return 573 } 574 575 // DeleteAppInstanceUser API operation for Amazon Chime SDK Identity. 576 // 577 // Deletes an AppInstanceUser. 578 // 579 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 580 // with awserr.Error's Code and Message methods to get detailed information about 581 // the error. 582 // 583 // See the AWS API reference guide for Amazon Chime SDK Identity's 584 // API operation DeleteAppInstanceUser for usage and error information. 585 // 586 // Returned Error Types: 587 // * BadRequestException 588 // The input parameters don't match the service's restrictions. 589 // 590 // * ConflictException 591 // The request could not be processed because of conflict in the current state 592 // of the resource. 593 // 594 // * ForbiddenException 595 // The client is permanently forbidden from making the request. 596 // 597 // * ResourceLimitExceededException 598 // The request exceeds the resource limit. 599 // 600 // * ThrottledClientException 601 // The client exceeded its request rate limit. 602 // 603 // * UnauthorizedClientException 604 // The client is not currently authorized to make the request. 605 // 606 // * ServiceUnavailableException 607 // The service is currently unavailable. 608 // 609 // * ServiceFailureException 610 // The service encountered an unexpected error. 611 // 612 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DeleteAppInstanceUser 613 func (c *ChimeSDKIdentity) DeleteAppInstanceUser(input *DeleteAppInstanceUserInput) (*DeleteAppInstanceUserOutput, error) { 614 req, out := c.DeleteAppInstanceUserRequest(input) 615 return out, req.Send() 616 } 617 618 // DeleteAppInstanceUserWithContext is the same as DeleteAppInstanceUser with the addition of 619 // the ability to pass a context and additional request options. 620 // 621 // See DeleteAppInstanceUser for details on how to use this API operation. 622 // 623 // The context must be non-nil and will be used for request cancellation. If 624 // the context is nil a panic will occur. In the future the SDK may create 625 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 626 // for more information on using Contexts. 627 func (c *ChimeSDKIdentity) DeleteAppInstanceUserWithContext(ctx aws.Context, input *DeleteAppInstanceUserInput, opts ...request.Option) (*DeleteAppInstanceUserOutput, error) { 628 req, out := c.DeleteAppInstanceUserRequest(input) 629 req.SetContext(ctx) 630 req.ApplyOptions(opts...) 631 return out, req.Send() 632 } 633 634 const opDescribeAppInstance = "DescribeAppInstance" 635 636 // DescribeAppInstanceRequest generates a "aws/request.Request" representing the 637 // client's request for the DescribeAppInstance operation. The "output" return 638 // value will be populated with the request's response once the request completes 639 // successfully. 640 // 641 // Use "Send" method on the returned Request to send the API call to the service. 642 // the "output" return value is not valid until after Send returns without error. 643 // 644 // See DescribeAppInstance for more information on using the DescribeAppInstance 645 // API call, and error handling. 646 // 647 // This method is useful when you want to inject custom logic or configuration 648 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 649 // 650 // 651 // // Example sending a request using the DescribeAppInstanceRequest method. 652 // req, resp := client.DescribeAppInstanceRequest(params) 653 // 654 // err := req.Send() 655 // if err == nil { // resp is now filled 656 // fmt.Println(resp) 657 // } 658 // 659 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstance 660 func (c *ChimeSDKIdentity) DescribeAppInstanceRequest(input *DescribeAppInstanceInput) (req *request.Request, output *DescribeAppInstanceOutput) { 661 op := &request.Operation{ 662 Name: opDescribeAppInstance, 663 HTTPMethod: "GET", 664 HTTPPath: "/app-instances/{appInstanceArn}", 665 } 666 667 if input == nil { 668 input = &DescribeAppInstanceInput{} 669 } 670 671 output = &DescribeAppInstanceOutput{} 672 req = c.newRequest(op, input, output) 673 return 674 } 675 676 // DescribeAppInstance API operation for Amazon Chime SDK Identity. 677 // 678 // Returns the full details of an AppInstance. 679 // 680 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 681 // with awserr.Error's Code and Message methods to get detailed information about 682 // the error. 683 // 684 // See the AWS API reference guide for Amazon Chime SDK Identity's 685 // API operation DescribeAppInstance for usage and error information. 686 // 687 // Returned Error Types: 688 // * BadRequestException 689 // The input parameters don't match the service's restrictions. 690 // 691 // * ForbiddenException 692 // The client is permanently forbidden from making the request. 693 // 694 // * ThrottledClientException 695 // The client exceeded its request rate limit. 696 // 697 // * UnauthorizedClientException 698 // The client is not currently authorized to make the request. 699 // 700 // * ServiceUnavailableException 701 // The service is currently unavailable. 702 // 703 // * ServiceFailureException 704 // The service encountered an unexpected error. 705 // 706 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstance 707 func (c *ChimeSDKIdentity) DescribeAppInstance(input *DescribeAppInstanceInput) (*DescribeAppInstanceOutput, error) { 708 req, out := c.DescribeAppInstanceRequest(input) 709 return out, req.Send() 710 } 711 712 // DescribeAppInstanceWithContext is the same as DescribeAppInstance with the addition of 713 // the ability to pass a context and additional request options. 714 // 715 // See DescribeAppInstance for details on how to use this API operation. 716 // 717 // The context must be non-nil and will be used for request cancellation. If 718 // the context is nil a panic will occur. In the future the SDK may create 719 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 720 // for more information on using Contexts. 721 func (c *ChimeSDKIdentity) DescribeAppInstanceWithContext(ctx aws.Context, input *DescribeAppInstanceInput, opts ...request.Option) (*DescribeAppInstanceOutput, error) { 722 req, out := c.DescribeAppInstanceRequest(input) 723 req.SetContext(ctx) 724 req.ApplyOptions(opts...) 725 return out, req.Send() 726 } 727 728 const opDescribeAppInstanceAdmin = "DescribeAppInstanceAdmin" 729 730 // DescribeAppInstanceAdminRequest generates a "aws/request.Request" representing the 731 // client's request for the DescribeAppInstanceAdmin operation. The "output" return 732 // value will be populated with the request's response once the request completes 733 // successfully. 734 // 735 // Use "Send" method on the returned Request to send the API call to the service. 736 // the "output" return value is not valid until after Send returns without error. 737 // 738 // See DescribeAppInstanceAdmin for more information on using the DescribeAppInstanceAdmin 739 // API call, and error handling. 740 // 741 // This method is useful when you want to inject custom logic or configuration 742 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 743 // 744 // 745 // // Example sending a request using the DescribeAppInstanceAdminRequest method. 746 // req, resp := client.DescribeAppInstanceAdminRequest(params) 747 // 748 // err := req.Send() 749 // if err == nil { // resp is now filled 750 // fmt.Println(resp) 751 // } 752 // 753 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceAdmin 754 func (c *ChimeSDKIdentity) DescribeAppInstanceAdminRequest(input *DescribeAppInstanceAdminInput) (req *request.Request, output *DescribeAppInstanceAdminOutput) { 755 op := &request.Operation{ 756 Name: opDescribeAppInstanceAdmin, 757 HTTPMethod: "GET", 758 HTTPPath: "/app-instances/{appInstanceArn}/admins/{appInstanceAdminArn}", 759 } 760 761 if input == nil { 762 input = &DescribeAppInstanceAdminInput{} 763 } 764 765 output = &DescribeAppInstanceAdminOutput{} 766 req = c.newRequest(op, input, output) 767 return 768 } 769 770 // DescribeAppInstanceAdmin API operation for Amazon Chime SDK Identity. 771 // 772 // Returns the full details of an AppInstanceAdmin. 773 // 774 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 775 // with awserr.Error's Code and Message methods to get detailed information about 776 // the error. 777 // 778 // See the AWS API reference guide for Amazon Chime SDK Identity's 779 // API operation DescribeAppInstanceAdmin for usage and error information. 780 // 781 // Returned Error Types: 782 // * BadRequestException 783 // The input parameters don't match the service's restrictions. 784 // 785 // * ForbiddenException 786 // The client is permanently forbidden from making the request. 787 // 788 // * ThrottledClientException 789 // The client exceeded its request rate limit. 790 // 791 // * UnauthorizedClientException 792 // The client is not currently authorized to make the request. 793 // 794 // * ServiceUnavailableException 795 // The service is currently unavailable. 796 // 797 // * ServiceFailureException 798 // The service encountered an unexpected error. 799 // 800 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceAdmin 801 func (c *ChimeSDKIdentity) DescribeAppInstanceAdmin(input *DescribeAppInstanceAdminInput) (*DescribeAppInstanceAdminOutput, error) { 802 req, out := c.DescribeAppInstanceAdminRequest(input) 803 return out, req.Send() 804 } 805 806 // DescribeAppInstanceAdminWithContext is the same as DescribeAppInstanceAdmin with the addition of 807 // the ability to pass a context and additional request options. 808 // 809 // See DescribeAppInstanceAdmin for details on how to use this API operation. 810 // 811 // The context must be non-nil and will be used for request cancellation. If 812 // the context is nil a panic will occur. In the future the SDK may create 813 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 814 // for more information on using Contexts. 815 func (c *ChimeSDKIdentity) DescribeAppInstanceAdminWithContext(ctx aws.Context, input *DescribeAppInstanceAdminInput, opts ...request.Option) (*DescribeAppInstanceAdminOutput, error) { 816 req, out := c.DescribeAppInstanceAdminRequest(input) 817 req.SetContext(ctx) 818 req.ApplyOptions(opts...) 819 return out, req.Send() 820 } 821 822 const opDescribeAppInstanceUser = "DescribeAppInstanceUser" 823 824 // DescribeAppInstanceUserRequest generates a "aws/request.Request" representing the 825 // client's request for the DescribeAppInstanceUser operation. The "output" return 826 // value will be populated with the request's response once the request completes 827 // successfully. 828 // 829 // Use "Send" method on the returned Request to send the API call to the service. 830 // the "output" return value is not valid until after Send returns without error. 831 // 832 // See DescribeAppInstanceUser for more information on using the DescribeAppInstanceUser 833 // API call, and error handling. 834 // 835 // This method is useful when you want to inject custom logic or configuration 836 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 837 // 838 // 839 // // Example sending a request using the DescribeAppInstanceUserRequest method. 840 // req, resp := client.DescribeAppInstanceUserRequest(params) 841 // 842 // err := req.Send() 843 // if err == nil { // resp is now filled 844 // fmt.Println(resp) 845 // } 846 // 847 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceUser 848 func (c *ChimeSDKIdentity) DescribeAppInstanceUserRequest(input *DescribeAppInstanceUserInput) (req *request.Request, output *DescribeAppInstanceUserOutput) { 849 op := &request.Operation{ 850 Name: opDescribeAppInstanceUser, 851 HTTPMethod: "GET", 852 HTTPPath: "/app-instance-users/{appInstanceUserArn}", 853 } 854 855 if input == nil { 856 input = &DescribeAppInstanceUserInput{} 857 } 858 859 output = &DescribeAppInstanceUserOutput{} 860 req = c.newRequest(op, input, output) 861 return 862 } 863 864 // DescribeAppInstanceUser API operation for Amazon Chime SDK Identity. 865 // 866 // Returns the full details of an AppInstanceUser. 867 // 868 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 869 // with awserr.Error's Code and Message methods to get detailed information about 870 // the error. 871 // 872 // See the AWS API reference guide for Amazon Chime SDK Identity's 873 // API operation DescribeAppInstanceUser for usage and error information. 874 // 875 // Returned Error Types: 876 // * BadRequestException 877 // The input parameters don't match the service's restrictions. 878 // 879 // * ForbiddenException 880 // The client is permanently forbidden from making the request. 881 // 882 // * ThrottledClientException 883 // The client exceeded its request rate limit. 884 // 885 // * UnauthorizedClientException 886 // The client is not currently authorized to make the request. 887 // 888 // * ServiceUnavailableException 889 // The service is currently unavailable. 890 // 891 // * ServiceFailureException 892 // The service encountered an unexpected error. 893 // 894 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/DescribeAppInstanceUser 895 func (c *ChimeSDKIdentity) DescribeAppInstanceUser(input *DescribeAppInstanceUserInput) (*DescribeAppInstanceUserOutput, error) { 896 req, out := c.DescribeAppInstanceUserRequest(input) 897 return out, req.Send() 898 } 899 900 // DescribeAppInstanceUserWithContext is the same as DescribeAppInstanceUser with the addition of 901 // the ability to pass a context and additional request options. 902 // 903 // See DescribeAppInstanceUser for details on how to use this API operation. 904 // 905 // The context must be non-nil and will be used for request cancellation. If 906 // the context is nil a panic will occur. In the future the SDK may create 907 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 908 // for more information on using Contexts. 909 func (c *ChimeSDKIdentity) DescribeAppInstanceUserWithContext(ctx aws.Context, input *DescribeAppInstanceUserInput, opts ...request.Option) (*DescribeAppInstanceUserOutput, error) { 910 req, out := c.DescribeAppInstanceUserRequest(input) 911 req.SetContext(ctx) 912 req.ApplyOptions(opts...) 913 return out, req.Send() 914 } 915 916 const opGetAppInstanceRetentionSettings = "GetAppInstanceRetentionSettings" 917 918 // GetAppInstanceRetentionSettingsRequest generates a "aws/request.Request" representing the 919 // client's request for the GetAppInstanceRetentionSettings operation. The "output" return 920 // value will be populated with the request's response once the request completes 921 // successfully. 922 // 923 // Use "Send" method on the returned Request to send the API call to the service. 924 // the "output" return value is not valid until after Send returns without error. 925 // 926 // See GetAppInstanceRetentionSettings for more information on using the GetAppInstanceRetentionSettings 927 // API call, and error handling. 928 // 929 // This method is useful when you want to inject custom logic or configuration 930 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 931 // 932 // 933 // // Example sending a request using the GetAppInstanceRetentionSettingsRequest method. 934 // req, resp := client.GetAppInstanceRetentionSettingsRequest(params) 935 // 936 // err := req.Send() 937 // if err == nil { // resp is now filled 938 // fmt.Println(resp) 939 // } 940 // 941 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/GetAppInstanceRetentionSettings 942 func (c *ChimeSDKIdentity) GetAppInstanceRetentionSettingsRequest(input *GetAppInstanceRetentionSettingsInput) (req *request.Request, output *GetAppInstanceRetentionSettingsOutput) { 943 op := &request.Operation{ 944 Name: opGetAppInstanceRetentionSettings, 945 HTTPMethod: "GET", 946 HTTPPath: "/app-instances/{appInstanceArn}/retention-settings", 947 } 948 949 if input == nil { 950 input = &GetAppInstanceRetentionSettingsInput{} 951 } 952 953 output = &GetAppInstanceRetentionSettingsOutput{} 954 req = c.newRequest(op, input, output) 955 return 956 } 957 958 // GetAppInstanceRetentionSettings API operation for Amazon Chime SDK Identity. 959 // 960 // Gets the retention settings for an AppInstance. 961 // 962 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 963 // with awserr.Error's Code and Message methods to get detailed information about 964 // the error. 965 // 966 // See the AWS API reference guide for Amazon Chime SDK Identity's 967 // API operation GetAppInstanceRetentionSettings for usage and error information. 968 // 969 // Returned Error Types: 970 // * BadRequestException 971 // The input parameters don't match the service's restrictions. 972 // 973 // * ForbiddenException 974 // The client is permanently forbidden from making the request. 975 // 976 // * ThrottledClientException 977 // The client exceeded its request rate limit. 978 // 979 // * UnauthorizedClientException 980 // The client is not currently authorized to make the request. 981 // 982 // * ServiceUnavailableException 983 // The service is currently unavailable. 984 // 985 // * ServiceFailureException 986 // The service encountered an unexpected error. 987 // 988 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/GetAppInstanceRetentionSettings 989 func (c *ChimeSDKIdentity) GetAppInstanceRetentionSettings(input *GetAppInstanceRetentionSettingsInput) (*GetAppInstanceRetentionSettingsOutput, error) { 990 req, out := c.GetAppInstanceRetentionSettingsRequest(input) 991 return out, req.Send() 992 } 993 994 // GetAppInstanceRetentionSettingsWithContext is the same as GetAppInstanceRetentionSettings with the addition of 995 // the ability to pass a context and additional request options. 996 // 997 // See GetAppInstanceRetentionSettings for details on how to use this API operation. 998 // 999 // The context must be non-nil and will be used for request cancellation. If 1000 // the context is nil a panic will occur. In the future the SDK may create 1001 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1002 // for more information on using Contexts. 1003 func (c *ChimeSDKIdentity) GetAppInstanceRetentionSettingsWithContext(ctx aws.Context, input *GetAppInstanceRetentionSettingsInput, opts ...request.Option) (*GetAppInstanceRetentionSettingsOutput, error) { 1004 req, out := c.GetAppInstanceRetentionSettingsRequest(input) 1005 req.SetContext(ctx) 1006 req.ApplyOptions(opts...) 1007 return out, req.Send() 1008 } 1009 1010 const opListAppInstanceAdmins = "ListAppInstanceAdmins" 1011 1012 // ListAppInstanceAdminsRequest generates a "aws/request.Request" representing the 1013 // client's request for the ListAppInstanceAdmins operation. The "output" return 1014 // value will be populated with the request's response once the request completes 1015 // successfully. 1016 // 1017 // Use "Send" method on the returned Request to send the API call to the service. 1018 // the "output" return value is not valid until after Send returns without error. 1019 // 1020 // See ListAppInstanceAdmins for more information on using the ListAppInstanceAdmins 1021 // API call, and error handling. 1022 // 1023 // This method is useful when you want to inject custom logic or configuration 1024 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1025 // 1026 // 1027 // // Example sending a request using the ListAppInstanceAdminsRequest method. 1028 // req, resp := client.ListAppInstanceAdminsRequest(params) 1029 // 1030 // err := req.Send() 1031 // if err == nil { // resp is now filled 1032 // fmt.Println(resp) 1033 // } 1034 // 1035 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceAdmins 1036 func (c *ChimeSDKIdentity) ListAppInstanceAdminsRequest(input *ListAppInstanceAdminsInput) (req *request.Request, output *ListAppInstanceAdminsOutput) { 1037 op := &request.Operation{ 1038 Name: opListAppInstanceAdmins, 1039 HTTPMethod: "GET", 1040 HTTPPath: "/app-instances/{appInstanceArn}/admins", 1041 Paginator: &request.Paginator{ 1042 InputTokens: []string{"NextToken"}, 1043 OutputTokens: []string{"NextToken"}, 1044 LimitToken: "MaxResults", 1045 TruncationToken: "", 1046 }, 1047 } 1048 1049 if input == nil { 1050 input = &ListAppInstanceAdminsInput{} 1051 } 1052 1053 output = &ListAppInstanceAdminsOutput{} 1054 req = c.newRequest(op, input, output) 1055 return 1056 } 1057 1058 // ListAppInstanceAdmins API operation for Amazon Chime SDK Identity. 1059 // 1060 // Returns a list of the administrators in the AppInstance. 1061 // 1062 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1063 // with awserr.Error's Code and Message methods to get detailed information about 1064 // the error. 1065 // 1066 // See the AWS API reference guide for Amazon Chime SDK Identity's 1067 // API operation ListAppInstanceAdmins for usage and error information. 1068 // 1069 // Returned Error Types: 1070 // * BadRequestException 1071 // The input parameters don't match the service's restrictions. 1072 // 1073 // * ForbiddenException 1074 // The client is permanently forbidden from making the request. 1075 // 1076 // * ResourceLimitExceededException 1077 // The request exceeds the resource limit. 1078 // 1079 // * ThrottledClientException 1080 // The client exceeded its request rate limit. 1081 // 1082 // * UnauthorizedClientException 1083 // The client is not currently authorized to make the request. 1084 // 1085 // * ServiceUnavailableException 1086 // The service is currently unavailable. 1087 // 1088 // * ServiceFailureException 1089 // The service encountered an unexpected error. 1090 // 1091 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceAdmins 1092 func (c *ChimeSDKIdentity) ListAppInstanceAdmins(input *ListAppInstanceAdminsInput) (*ListAppInstanceAdminsOutput, error) { 1093 req, out := c.ListAppInstanceAdminsRequest(input) 1094 return out, req.Send() 1095 } 1096 1097 // ListAppInstanceAdminsWithContext is the same as ListAppInstanceAdmins with the addition of 1098 // the ability to pass a context and additional request options. 1099 // 1100 // See ListAppInstanceAdmins for details on how to use this API operation. 1101 // 1102 // The context must be non-nil and will be used for request cancellation. If 1103 // the context is nil a panic will occur. In the future the SDK may create 1104 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1105 // for more information on using Contexts. 1106 func (c *ChimeSDKIdentity) ListAppInstanceAdminsWithContext(ctx aws.Context, input *ListAppInstanceAdminsInput, opts ...request.Option) (*ListAppInstanceAdminsOutput, error) { 1107 req, out := c.ListAppInstanceAdminsRequest(input) 1108 req.SetContext(ctx) 1109 req.ApplyOptions(opts...) 1110 return out, req.Send() 1111 } 1112 1113 // ListAppInstanceAdminsPages iterates over the pages of a ListAppInstanceAdmins operation, 1114 // calling the "fn" function with the response data for each page. To stop 1115 // iterating, return false from the fn function. 1116 // 1117 // See ListAppInstanceAdmins method for more information on how to use this operation. 1118 // 1119 // Note: This operation can generate multiple requests to a service. 1120 // 1121 // // Example iterating over at most 3 pages of a ListAppInstanceAdmins operation. 1122 // pageNum := 0 1123 // err := client.ListAppInstanceAdminsPages(params, 1124 // func(page *chimesdkidentity.ListAppInstanceAdminsOutput, lastPage bool) bool { 1125 // pageNum++ 1126 // fmt.Println(page) 1127 // return pageNum <= 3 1128 // }) 1129 // 1130 func (c *ChimeSDKIdentity) ListAppInstanceAdminsPages(input *ListAppInstanceAdminsInput, fn func(*ListAppInstanceAdminsOutput, bool) bool) error { 1131 return c.ListAppInstanceAdminsPagesWithContext(aws.BackgroundContext(), input, fn) 1132 } 1133 1134 // ListAppInstanceAdminsPagesWithContext same as ListAppInstanceAdminsPages except 1135 // it takes a Context and allows setting request options on the pages. 1136 // 1137 // The context must be non-nil and will be used for request cancellation. If 1138 // the context is nil a panic will occur. In the future the SDK may create 1139 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1140 // for more information on using Contexts. 1141 func (c *ChimeSDKIdentity) ListAppInstanceAdminsPagesWithContext(ctx aws.Context, input *ListAppInstanceAdminsInput, fn func(*ListAppInstanceAdminsOutput, bool) bool, opts ...request.Option) error { 1142 p := request.Pagination{ 1143 NewRequest: func() (*request.Request, error) { 1144 var inCpy *ListAppInstanceAdminsInput 1145 if input != nil { 1146 tmp := *input 1147 inCpy = &tmp 1148 } 1149 req, _ := c.ListAppInstanceAdminsRequest(inCpy) 1150 req.SetContext(ctx) 1151 req.ApplyOptions(opts...) 1152 return req, nil 1153 }, 1154 } 1155 1156 for p.Next() { 1157 if !fn(p.Page().(*ListAppInstanceAdminsOutput), !p.HasNextPage()) { 1158 break 1159 } 1160 } 1161 1162 return p.Err() 1163 } 1164 1165 const opListAppInstanceUsers = "ListAppInstanceUsers" 1166 1167 // ListAppInstanceUsersRequest generates a "aws/request.Request" representing the 1168 // client's request for the ListAppInstanceUsers operation. The "output" return 1169 // value will be populated with the request's response once the request completes 1170 // successfully. 1171 // 1172 // Use "Send" method on the returned Request to send the API call to the service. 1173 // the "output" return value is not valid until after Send returns without error. 1174 // 1175 // See ListAppInstanceUsers for more information on using the ListAppInstanceUsers 1176 // API call, and error handling. 1177 // 1178 // This method is useful when you want to inject custom logic or configuration 1179 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1180 // 1181 // 1182 // // Example sending a request using the ListAppInstanceUsersRequest method. 1183 // req, resp := client.ListAppInstanceUsersRequest(params) 1184 // 1185 // err := req.Send() 1186 // if err == nil { // resp is now filled 1187 // fmt.Println(resp) 1188 // } 1189 // 1190 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUsers 1191 func (c *ChimeSDKIdentity) ListAppInstanceUsersRequest(input *ListAppInstanceUsersInput) (req *request.Request, output *ListAppInstanceUsersOutput) { 1192 op := &request.Operation{ 1193 Name: opListAppInstanceUsers, 1194 HTTPMethod: "GET", 1195 HTTPPath: "/app-instance-users", 1196 Paginator: &request.Paginator{ 1197 InputTokens: []string{"NextToken"}, 1198 OutputTokens: []string{"NextToken"}, 1199 LimitToken: "MaxResults", 1200 TruncationToken: "", 1201 }, 1202 } 1203 1204 if input == nil { 1205 input = &ListAppInstanceUsersInput{} 1206 } 1207 1208 output = &ListAppInstanceUsersOutput{} 1209 req = c.newRequest(op, input, output) 1210 return 1211 } 1212 1213 // ListAppInstanceUsers API operation for Amazon Chime SDK Identity. 1214 // 1215 // List all AppInstanceUsers created under a single AppInstance. 1216 // 1217 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1218 // with awserr.Error's Code and Message methods to get detailed information about 1219 // the error. 1220 // 1221 // See the AWS API reference guide for Amazon Chime SDK Identity's 1222 // API operation ListAppInstanceUsers for usage and error information. 1223 // 1224 // Returned Error Types: 1225 // * BadRequestException 1226 // The input parameters don't match the service's restrictions. 1227 // 1228 // * ForbiddenException 1229 // The client is permanently forbidden from making the request. 1230 // 1231 // * ThrottledClientException 1232 // The client exceeded its request rate limit. 1233 // 1234 // * UnauthorizedClientException 1235 // The client is not currently authorized to make the request. 1236 // 1237 // * ServiceUnavailableException 1238 // The service is currently unavailable. 1239 // 1240 // * ServiceFailureException 1241 // The service encountered an unexpected error. 1242 // 1243 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstanceUsers 1244 func (c *ChimeSDKIdentity) ListAppInstanceUsers(input *ListAppInstanceUsersInput) (*ListAppInstanceUsersOutput, error) { 1245 req, out := c.ListAppInstanceUsersRequest(input) 1246 return out, req.Send() 1247 } 1248 1249 // ListAppInstanceUsersWithContext is the same as ListAppInstanceUsers with the addition of 1250 // the ability to pass a context and additional request options. 1251 // 1252 // See ListAppInstanceUsers for details on how to use this API operation. 1253 // 1254 // The context must be non-nil and will be used for request cancellation. If 1255 // the context is nil a panic will occur. In the future the SDK may create 1256 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1257 // for more information on using Contexts. 1258 func (c *ChimeSDKIdentity) ListAppInstanceUsersWithContext(ctx aws.Context, input *ListAppInstanceUsersInput, opts ...request.Option) (*ListAppInstanceUsersOutput, error) { 1259 req, out := c.ListAppInstanceUsersRequest(input) 1260 req.SetContext(ctx) 1261 req.ApplyOptions(opts...) 1262 return out, req.Send() 1263 } 1264 1265 // ListAppInstanceUsersPages iterates over the pages of a ListAppInstanceUsers operation, 1266 // calling the "fn" function with the response data for each page. To stop 1267 // iterating, return false from the fn function. 1268 // 1269 // See ListAppInstanceUsers method for more information on how to use this operation. 1270 // 1271 // Note: This operation can generate multiple requests to a service. 1272 // 1273 // // Example iterating over at most 3 pages of a ListAppInstanceUsers operation. 1274 // pageNum := 0 1275 // err := client.ListAppInstanceUsersPages(params, 1276 // func(page *chimesdkidentity.ListAppInstanceUsersOutput, lastPage bool) bool { 1277 // pageNum++ 1278 // fmt.Println(page) 1279 // return pageNum <= 3 1280 // }) 1281 // 1282 func (c *ChimeSDKIdentity) ListAppInstanceUsersPages(input *ListAppInstanceUsersInput, fn func(*ListAppInstanceUsersOutput, bool) bool) error { 1283 return c.ListAppInstanceUsersPagesWithContext(aws.BackgroundContext(), input, fn) 1284 } 1285 1286 // ListAppInstanceUsersPagesWithContext same as ListAppInstanceUsersPages except 1287 // it takes a Context and allows setting request options on the pages. 1288 // 1289 // The context must be non-nil and will be used for request cancellation. If 1290 // the context is nil a panic will occur. In the future the SDK may create 1291 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1292 // for more information on using Contexts. 1293 func (c *ChimeSDKIdentity) ListAppInstanceUsersPagesWithContext(ctx aws.Context, input *ListAppInstanceUsersInput, fn func(*ListAppInstanceUsersOutput, bool) bool, opts ...request.Option) error { 1294 p := request.Pagination{ 1295 NewRequest: func() (*request.Request, error) { 1296 var inCpy *ListAppInstanceUsersInput 1297 if input != nil { 1298 tmp := *input 1299 inCpy = &tmp 1300 } 1301 req, _ := c.ListAppInstanceUsersRequest(inCpy) 1302 req.SetContext(ctx) 1303 req.ApplyOptions(opts...) 1304 return req, nil 1305 }, 1306 } 1307 1308 for p.Next() { 1309 if !fn(p.Page().(*ListAppInstanceUsersOutput), !p.HasNextPage()) { 1310 break 1311 } 1312 } 1313 1314 return p.Err() 1315 } 1316 1317 const opListAppInstances = "ListAppInstances" 1318 1319 // ListAppInstancesRequest generates a "aws/request.Request" representing the 1320 // client's request for the ListAppInstances operation. The "output" return 1321 // value will be populated with the request's response once the request completes 1322 // successfully. 1323 // 1324 // Use "Send" method on the returned Request to send the API call to the service. 1325 // the "output" return value is not valid until after Send returns without error. 1326 // 1327 // See ListAppInstances for more information on using the ListAppInstances 1328 // API call, and error handling. 1329 // 1330 // This method is useful when you want to inject custom logic or configuration 1331 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1332 // 1333 // 1334 // // Example sending a request using the ListAppInstancesRequest method. 1335 // req, resp := client.ListAppInstancesRequest(params) 1336 // 1337 // err := req.Send() 1338 // if err == nil { // resp is now filled 1339 // fmt.Println(resp) 1340 // } 1341 // 1342 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstances 1343 func (c *ChimeSDKIdentity) ListAppInstancesRequest(input *ListAppInstancesInput) (req *request.Request, output *ListAppInstancesOutput) { 1344 op := &request.Operation{ 1345 Name: opListAppInstances, 1346 HTTPMethod: "GET", 1347 HTTPPath: "/app-instances", 1348 Paginator: &request.Paginator{ 1349 InputTokens: []string{"NextToken"}, 1350 OutputTokens: []string{"NextToken"}, 1351 LimitToken: "MaxResults", 1352 TruncationToken: "", 1353 }, 1354 } 1355 1356 if input == nil { 1357 input = &ListAppInstancesInput{} 1358 } 1359 1360 output = &ListAppInstancesOutput{} 1361 req = c.newRequest(op, input, output) 1362 return 1363 } 1364 1365 // ListAppInstances API operation for Amazon Chime SDK Identity. 1366 // 1367 // Lists all Amazon Chime AppInstances created under a single AWS account. 1368 // 1369 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1370 // with awserr.Error's Code and Message methods to get detailed information about 1371 // the error. 1372 // 1373 // See the AWS API reference guide for Amazon Chime SDK Identity's 1374 // API operation ListAppInstances for usage and error information. 1375 // 1376 // Returned Error Types: 1377 // * BadRequestException 1378 // The input parameters don't match the service's restrictions. 1379 // 1380 // * ForbiddenException 1381 // The client is permanently forbidden from making the request. 1382 // 1383 // * ThrottledClientException 1384 // The client exceeded its request rate limit. 1385 // 1386 // * UnauthorizedClientException 1387 // The client is not currently authorized to make the request. 1388 // 1389 // * ServiceUnavailableException 1390 // The service is currently unavailable. 1391 // 1392 // * ServiceFailureException 1393 // The service encountered an unexpected error. 1394 // 1395 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/ListAppInstances 1396 func (c *ChimeSDKIdentity) ListAppInstances(input *ListAppInstancesInput) (*ListAppInstancesOutput, error) { 1397 req, out := c.ListAppInstancesRequest(input) 1398 return out, req.Send() 1399 } 1400 1401 // ListAppInstancesWithContext is the same as ListAppInstances with the addition of 1402 // the ability to pass a context and additional request options. 1403 // 1404 // See ListAppInstances for details on how to use this API operation. 1405 // 1406 // The context must be non-nil and will be used for request cancellation. If 1407 // the context is nil a panic will occur. In the future the SDK may create 1408 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1409 // for more information on using Contexts. 1410 func (c *ChimeSDKIdentity) ListAppInstancesWithContext(ctx aws.Context, input *ListAppInstancesInput, opts ...request.Option) (*ListAppInstancesOutput, error) { 1411 req, out := c.ListAppInstancesRequest(input) 1412 req.SetContext(ctx) 1413 req.ApplyOptions(opts...) 1414 return out, req.Send() 1415 } 1416 1417 // ListAppInstancesPages iterates over the pages of a ListAppInstances operation, 1418 // calling the "fn" function with the response data for each page. To stop 1419 // iterating, return false from the fn function. 1420 // 1421 // See ListAppInstances method for more information on how to use this operation. 1422 // 1423 // Note: This operation can generate multiple requests to a service. 1424 // 1425 // // Example iterating over at most 3 pages of a ListAppInstances operation. 1426 // pageNum := 0 1427 // err := client.ListAppInstancesPages(params, 1428 // func(page *chimesdkidentity.ListAppInstancesOutput, lastPage bool) bool { 1429 // pageNum++ 1430 // fmt.Println(page) 1431 // return pageNum <= 3 1432 // }) 1433 // 1434 func (c *ChimeSDKIdentity) ListAppInstancesPages(input *ListAppInstancesInput, fn func(*ListAppInstancesOutput, bool) bool) error { 1435 return c.ListAppInstancesPagesWithContext(aws.BackgroundContext(), input, fn) 1436 } 1437 1438 // ListAppInstancesPagesWithContext same as ListAppInstancesPages except 1439 // it takes a Context and allows setting request options on the pages. 1440 // 1441 // The context must be non-nil and will be used for request cancellation. If 1442 // the context is nil a panic will occur. In the future the SDK may create 1443 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1444 // for more information on using Contexts. 1445 func (c *ChimeSDKIdentity) ListAppInstancesPagesWithContext(ctx aws.Context, input *ListAppInstancesInput, fn func(*ListAppInstancesOutput, bool) bool, opts ...request.Option) error { 1446 p := request.Pagination{ 1447 NewRequest: func() (*request.Request, error) { 1448 var inCpy *ListAppInstancesInput 1449 if input != nil { 1450 tmp := *input 1451 inCpy = &tmp 1452 } 1453 req, _ := c.ListAppInstancesRequest(inCpy) 1454 req.SetContext(ctx) 1455 req.ApplyOptions(opts...) 1456 return req, nil 1457 }, 1458 } 1459 1460 for p.Next() { 1461 if !fn(p.Page().(*ListAppInstancesOutput), !p.HasNextPage()) { 1462 break 1463 } 1464 } 1465 1466 return p.Err() 1467 } 1468 1469 const opPutAppInstanceRetentionSettings = "PutAppInstanceRetentionSettings" 1470 1471 // PutAppInstanceRetentionSettingsRequest generates a "aws/request.Request" representing the 1472 // client's request for the PutAppInstanceRetentionSettings operation. The "output" return 1473 // value will be populated with the request's response once the request completes 1474 // successfully. 1475 // 1476 // Use "Send" method on the returned Request to send the API call to the service. 1477 // the "output" return value is not valid until after Send returns without error. 1478 // 1479 // See PutAppInstanceRetentionSettings for more information on using the PutAppInstanceRetentionSettings 1480 // API call, and error handling. 1481 // 1482 // This method is useful when you want to inject custom logic or configuration 1483 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1484 // 1485 // 1486 // // Example sending a request using the PutAppInstanceRetentionSettingsRequest method. 1487 // req, resp := client.PutAppInstanceRetentionSettingsRequest(params) 1488 // 1489 // err := req.Send() 1490 // if err == nil { // resp is now filled 1491 // fmt.Println(resp) 1492 // } 1493 // 1494 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/PutAppInstanceRetentionSettings 1495 func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettingsRequest(input *PutAppInstanceRetentionSettingsInput) (req *request.Request, output *PutAppInstanceRetentionSettingsOutput) { 1496 op := &request.Operation{ 1497 Name: opPutAppInstanceRetentionSettings, 1498 HTTPMethod: "PUT", 1499 HTTPPath: "/app-instances/{appInstanceArn}/retention-settings", 1500 } 1501 1502 if input == nil { 1503 input = &PutAppInstanceRetentionSettingsInput{} 1504 } 1505 1506 output = &PutAppInstanceRetentionSettingsOutput{} 1507 req = c.newRequest(op, input, output) 1508 return 1509 } 1510 1511 // PutAppInstanceRetentionSettings API operation for Amazon Chime SDK Identity. 1512 // 1513 // Sets the amount of time in days that a given AppInstance retains data. 1514 // 1515 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1516 // with awserr.Error's Code and Message methods to get detailed information about 1517 // the error. 1518 // 1519 // See the AWS API reference guide for Amazon Chime SDK Identity's 1520 // API operation PutAppInstanceRetentionSettings for usage and error information. 1521 // 1522 // Returned Error Types: 1523 // * BadRequestException 1524 // The input parameters don't match the service's restrictions. 1525 // 1526 // * ForbiddenException 1527 // The client is permanently forbidden from making the request. 1528 // 1529 // * ThrottledClientException 1530 // The client exceeded its request rate limit. 1531 // 1532 // * UnauthorizedClientException 1533 // The client is not currently authorized to make the request. 1534 // 1535 // * ServiceUnavailableException 1536 // The service is currently unavailable. 1537 // 1538 // * ServiceFailureException 1539 // The service encountered an unexpected error. 1540 // 1541 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/PutAppInstanceRetentionSettings 1542 func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettings(input *PutAppInstanceRetentionSettingsInput) (*PutAppInstanceRetentionSettingsOutput, error) { 1543 req, out := c.PutAppInstanceRetentionSettingsRequest(input) 1544 return out, req.Send() 1545 } 1546 1547 // PutAppInstanceRetentionSettingsWithContext is the same as PutAppInstanceRetentionSettings with the addition of 1548 // the ability to pass a context and additional request options. 1549 // 1550 // See PutAppInstanceRetentionSettings for details on how to use this API operation. 1551 // 1552 // The context must be non-nil and will be used for request cancellation. If 1553 // the context is nil a panic will occur. In the future the SDK may create 1554 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1555 // for more information on using Contexts. 1556 func (c *ChimeSDKIdentity) PutAppInstanceRetentionSettingsWithContext(ctx aws.Context, input *PutAppInstanceRetentionSettingsInput, opts ...request.Option) (*PutAppInstanceRetentionSettingsOutput, error) { 1557 req, out := c.PutAppInstanceRetentionSettingsRequest(input) 1558 req.SetContext(ctx) 1559 req.ApplyOptions(opts...) 1560 return out, req.Send() 1561 } 1562 1563 const opUpdateAppInstance = "UpdateAppInstance" 1564 1565 // UpdateAppInstanceRequest generates a "aws/request.Request" representing the 1566 // client's request for the UpdateAppInstance operation. The "output" return 1567 // value will be populated with the request's response once the request completes 1568 // successfully. 1569 // 1570 // Use "Send" method on the returned Request to send the API call to the service. 1571 // the "output" return value is not valid until after Send returns without error. 1572 // 1573 // See UpdateAppInstance for more information on using the UpdateAppInstance 1574 // API call, and error handling. 1575 // 1576 // This method is useful when you want to inject custom logic or configuration 1577 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1578 // 1579 // 1580 // // Example sending a request using the UpdateAppInstanceRequest method. 1581 // req, resp := client.UpdateAppInstanceRequest(params) 1582 // 1583 // err := req.Send() 1584 // if err == nil { // resp is now filled 1585 // fmt.Println(resp) 1586 // } 1587 // 1588 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstance 1589 func (c *ChimeSDKIdentity) UpdateAppInstanceRequest(input *UpdateAppInstanceInput) (req *request.Request, output *UpdateAppInstanceOutput) { 1590 op := &request.Operation{ 1591 Name: opUpdateAppInstance, 1592 HTTPMethod: "PUT", 1593 HTTPPath: "/app-instances/{appInstanceArn}", 1594 } 1595 1596 if input == nil { 1597 input = &UpdateAppInstanceInput{} 1598 } 1599 1600 output = &UpdateAppInstanceOutput{} 1601 req = c.newRequest(op, input, output) 1602 return 1603 } 1604 1605 // UpdateAppInstance API operation for Amazon Chime SDK Identity. 1606 // 1607 // Updates AppInstance metadata. 1608 // 1609 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1610 // with awserr.Error's Code and Message methods to get detailed information about 1611 // the error. 1612 // 1613 // See the AWS API reference guide for Amazon Chime SDK Identity's 1614 // API operation UpdateAppInstance for usage and error information. 1615 // 1616 // Returned Error Types: 1617 // * BadRequestException 1618 // The input parameters don't match the service's restrictions. 1619 // 1620 // * ConflictException 1621 // The request could not be processed because of conflict in the current state 1622 // of the resource. 1623 // 1624 // * ForbiddenException 1625 // The client is permanently forbidden from making the request. 1626 // 1627 // * ThrottledClientException 1628 // The client exceeded its request rate limit. 1629 // 1630 // * UnauthorizedClientException 1631 // The client is not currently authorized to make the request. 1632 // 1633 // * ServiceUnavailableException 1634 // The service is currently unavailable. 1635 // 1636 // * ServiceFailureException 1637 // The service encountered an unexpected error. 1638 // 1639 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstance 1640 func (c *ChimeSDKIdentity) UpdateAppInstance(input *UpdateAppInstanceInput) (*UpdateAppInstanceOutput, error) { 1641 req, out := c.UpdateAppInstanceRequest(input) 1642 return out, req.Send() 1643 } 1644 1645 // UpdateAppInstanceWithContext is the same as UpdateAppInstance with the addition of 1646 // the ability to pass a context and additional request options. 1647 // 1648 // See UpdateAppInstance for details on how to use this API operation. 1649 // 1650 // The context must be non-nil and will be used for request cancellation. If 1651 // the context is nil a panic will occur. In the future the SDK may create 1652 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1653 // for more information on using Contexts. 1654 func (c *ChimeSDKIdentity) UpdateAppInstanceWithContext(ctx aws.Context, input *UpdateAppInstanceInput, opts ...request.Option) (*UpdateAppInstanceOutput, error) { 1655 req, out := c.UpdateAppInstanceRequest(input) 1656 req.SetContext(ctx) 1657 req.ApplyOptions(opts...) 1658 return out, req.Send() 1659 } 1660 1661 const opUpdateAppInstanceUser = "UpdateAppInstanceUser" 1662 1663 // UpdateAppInstanceUserRequest generates a "aws/request.Request" representing the 1664 // client's request for the UpdateAppInstanceUser operation. The "output" return 1665 // value will be populated with the request's response once the request completes 1666 // successfully. 1667 // 1668 // Use "Send" method on the returned Request to send the API call to the service. 1669 // the "output" return value is not valid until after Send returns without error. 1670 // 1671 // See UpdateAppInstanceUser for more information on using the UpdateAppInstanceUser 1672 // API call, and error handling. 1673 // 1674 // This method is useful when you want to inject custom logic or configuration 1675 // into the SDK's request lifecycle. Such as custom headers, or retry logic. 1676 // 1677 // 1678 // // Example sending a request using the UpdateAppInstanceUserRequest method. 1679 // req, resp := client.UpdateAppInstanceUserRequest(params) 1680 // 1681 // err := req.Send() 1682 // if err == nil { // resp is now filled 1683 // fmt.Println(resp) 1684 // } 1685 // 1686 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser 1687 func (c *ChimeSDKIdentity) UpdateAppInstanceUserRequest(input *UpdateAppInstanceUserInput) (req *request.Request, output *UpdateAppInstanceUserOutput) { 1688 op := &request.Operation{ 1689 Name: opUpdateAppInstanceUser, 1690 HTTPMethod: "PUT", 1691 HTTPPath: "/app-instance-users/{appInstanceUserArn}", 1692 } 1693 1694 if input == nil { 1695 input = &UpdateAppInstanceUserInput{} 1696 } 1697 1698 output = &UpdateAppInstanceUserOutput{} 1699 req = c.newRequest(op, input, output) 1700 return 1701 } 1702 1703 // UpdateAppInstanceUser API operation for Amazon Chime SDK Identity. 1704 // 1705 // Updates the details of an AppInstanceUser. You can update names and metadata. 1706 // 1707 // Returns awserr.Error for service API and SDK errors. Use runtime type assertions 1708 // with awserr.Error's Code and Message methods to get detailed information about 1709 // the error. 1710 // 1711 // See the AWS API reference guide for Amazon Chime SDK Identity's 1712 // API operation UpdateAppInstanceUser for usage and error information. 1713 // 1714 // Returned Error Types: 1715 // * BadRequestException 1716 // The input parameters don't match the service's restrictions. 1717 // 1718 // * ConflictException 1719 // The request could not be processed because of conflict in the current state 1720 // of the resource. 1721 // 1722 // * ForbiddenException 1723 // The client is permanently forbidden from making the request. 1724 // 1725 // * ResourceLimitExceededException 1726 // The request exceeds the resource limit. 1727 // 1728 // * ThrottledClientException 1729 // The client exceeded its request rate limit. 1730 // 1731 // * UnauthorizedClientException 1732 // The client is not currently authorized to make the request. 1733 // 1734 // * ServiceUnavailableException 1735 // The service is currently unavailable. 1736 // 1737 // * ServiceFailureException 1738 // The service encountered an unexpected error. 1739 // 1740 // See also, https://docs.aws.amazon.com/goto/WebAPI/chime-sdk-identity-2021-04-20/UpdateAppInstanceUser 1741 func (c *ChimeSDKIdentity) UpdateAppInstanceUser(input *UpdateAppInstanceUserInput) (*UpdateAppInstanceUserOutput, error) { 1742 req, out := c.UpdateAppInstanceUserRequest(input) 1743 return out, req.Send() 1744 } 1745 1746 // UpdateAppInstanceUserWithContext is the same as UpdateAppInstanceUser with the addition of 1747 // the ability to pass a context and additional request options. 1748 // 1749 // See UpdateAppInstanceUser for details on how to use this API operation. 1750 // 1751 // The context must be non-nil and will be used for request cancellation. If 1752 // the context is nil a panic will occur. In the future the SDK may create 1753 // sub-contexts for http.Requests. See https://golang.org/pkg/context/ 1754 // for more information on using Contexts. 1755 func (c *ChimeSDKIdentity) UpdateAppInstanceUserWithContext(ctx aws.Context, input *UpdateAppInstanceUserInput, opts ...request.Option) (*UpdateAppInstanceUserOutput, error) { 1756 req, out := c.UpdateAppInstanceUserRequest(input) 1757 req.SetContext(ctx) 1758 req.ApplyOptions(opts...) 1759 return out, req.Send() 1760 } 1761 1762 // The details of an AppInstance, an instance of an Amazon Chime SDK messaging 1763 // application. 1764 type AppInstance struct { 1765 _ struct{} `type:"structure"` 1766 1767 // The ARN of the messaging instance. 1768 AppInstanceArn *string `min:"5" type:"string"` 1769 1770 // The time at which an AppInstance was created. In epoch milliseconds. 1771 CreatedTimestamp *time.Time `type:"timestamp"` 1772 1773 // The time an AppInstance was last updated. In epoch milliseconds. 1774 LastUpdatedTimestamp *time.Time `type:"timestamp"` 1775 1776 // The metadata of an AppInstance. 1777 // 1778 // Metadata is a sensitive parameter and its value will be 1779 // replaced with "sensitive" in string returned by AppInstance's 1780 // String and GoString methods. 1781 Metadata *string `type:"string" sensitive:"true"` 1782 1783 // The name of an AppInstance. 1784 // 1785 // Name is a sensitive parameter and its value will be 1786 // replaced with "sensitive" in string returned by AppInstance's 1787 // String and GoString methods. 1788 Name *string `min:"1" type:"string" sensitive:"true"` 1789 } 1790 1791 // String returns the string representation. 1792 // 1793 // API parameter values that are decorated as "sensitive" in the API will not 1794 // be included in the string output. The member name will be present, but the 1795 // value will be replaced with "sensitive". 1796 func (s AppInstance) String() string { 1797 return awsutil.Prettify(s) 1798 } 1799 1800 // GoString 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 AppInstance) GoString() string { 1806 return s.String() 1807 } 1808 1809 // SetAppInstanceArn sets the AppInstanceArn field's value. 1810 func (s *AppInstance) SetAppInstanceArn(v string) *AppInstance { 1811 s.AppInstanceArn = &v 1812 return s 1813 } 1814 1815 // SetCreatedTimestamp sets the CreatedTimestamp field's value. 1816 func (s *AppInstance) SetCreatedTimestamp(v time.Time) *AppInstance { 1817 s.CreatedTimestamp = &v 1818 return s 1819 } 1820 1821 // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. 1822 func (s *AppInstance) SetLastUpdatedTimestamp(v time.Time) *AppInstance { 1823 s.LastUpdatedTimestamp = &v 1824 return s 1825 } 1826 1827 // SetMetadata sets the Metadata field's value. 1828 func (s *AppInstance) SetMetadata(v string) *AppInstance { 1829 s.Metadata = &v 1830 return s 1831 } 1832 1833 // SetName sets the Name field's value. 1834 func (s *AppInstance) SetName(v string) *AppInstance { 1835 s.Name = &v 1836 return s 1837 } 1838 1839 // The details of an AppInstanceAdmin. 1840 type AppInstanceAdmin struct { 1841 _ struct{} `type:"structure"` 1842 1843 // The AppInstanceAdmin data. 1844 Admin *Identity `type:"structure"` 1845 1846 // The ARN of the AppInstance for which the user is an administrator. 1847 AppInstanceArn *string `min:"5" type:"string"` 1848 1849 // The time at which an administrator was created. 1850 CreatedTimestamp *time.Time `type:"timestamp"` 1851 } 1852 1853 // String returns the string representation. 1854 // 1855 // API parameter values that are decorated as "sensitive" in the API will not 1856 // be included in the string output. The member name will be present, but the 1857 // value will be replaced with "sensitive". 1858 func (s AppInstanceAdmin) String() string { 1859 return awsutil.Prettify(s) 1860 } 1861 1862 // GoString returns the string representation. 1863 // 1864 // API parameter values that are decorated as "sensitive" in the API will not 1865 // be included in the string output. The member name will be present, but the 1866 // value will be replaced with "sensitive". 1867 func (s AppInstanceAdmin) GoString() string { 1868 return s.String() 1869 } 1870 1871 // SetAdmin sets the Admin field's value. 1872 func (s *AppInstanceAdmin) SetAdmin(v *Identity) *AppInstanceAdmin { 1873 s.Admin = v 1874 return s 1875 } 1876 1877 // SetAppInstanceArn sets the AppInstanceArn field's value. 1878 func (s *AppInstanceAdmin) SetAppInstanceArn(v string) *AppInstanceAdmin { 1879 s.AppInstanceArn = &v 1880 return s 1881 } 1882 1883 // SetCreatedTimestamp sets the CreatedTimestamp field's value. 1884 func (s *AppInstanceAdmin) SetCreatedTimestamp(v time.Time) *AppInstanceAdmin { 1885 s.CreatedTimestamp = &v 1886 return s 1887 } 1888 1889 // Summary of the details of an AppInstanceAdmin. 1890 type AppInstanceAdminSummary struct { 1891 _ struct{} `type:"structure"` 1892 1893 // The details of the AppInstanceAdmin. 1894 Admin *Identity `type:"structure"` 1895 } 1896 1897 // String returns the string representation. 1898 // 1899 // API parameter values that are decorated as "sensitive" in the API will not 1900 // be included in the string output. The member name will be present, but the 1901 // value will be replaced with "sensitive". 1902 func (s AppInstanceAdminSummary) String() string { 1903 return awsutil.Prettify(s) 1904 } 1905 1906 // GoString returns the string representation. 1907 // 1908 // API parameter values that are decorated as "sensitive" in the API will not 1909 // be included in the string output. The member name will be present, but the 1910 // value will be replaced with "sensitive". 1911 func (s AppInstanceAdminSummary) GoString() string { 1912 return s.String() 1913 } 1914 1915 // SetAdmin sets the Admin field's value. 1916 func (s *AppInstanceAdminSummary) SetAdmin(v *Identity) *AppInstanceAdminSummary { 1917 s.Admin = v 1918 return s 1919 } 1920 1921 // The details of the data-retention settings for an AppInstance. 1922 type AppInstanceRetentionSettings struct { 1923 _ struct{} `type:"structure"` 1924 1925 // The length of time in days to retain the messages in a channel. 1926 ChannelRetentionSettings *ChannelRetentionSettings `type:"structure"` 1927 } 1928 1929 // String returns the string representation. 1930 // 1931 // API parameter values that are decorated as "sensitive" in the API will not 1932 // be included in the string output. The member name will be present, but the 1933 // value will be replaced with "sensitive". 1934 func (s AppInstanceRetentionSettings) String() string { 1935 return awsutil.Prettify(s) 1936 } 1937 1938 // GoString returns the string representation. 1939 // 1940 // API parameter values that are decorated as "sensitive" in the API will not 1941 // be included in the string output. The member name will be present, but the 1942 // value will be replaced with "sensitive". 1943 func (s AppInstanceRetentionSettings) GoString() string { 1944 return s.String() 1945 } 1946 1947 // Validate inspects the fields of the type to determine if they are valid. 1948 func (s *AppInstanceRetentionSettings) Validate() error { 1949 invalidParams := request.ErrInvalidParams{Context: "AppInstanceRetentionSettings"} 1950 if s.ChannelRetentionSettings != nil { 1951 if err := s.ChannelRetentionSettings.Validate(); err != nil { 1952 invalidParams.AddNested("ChannelRetentionSettings", err.(request.ErrInvalidParams)) 1953 } 1954 } 1955 1956 if invalidParams.Len() > 0 { 1957 return invalidParams 1958 } 1959 return nil 1960 } 1961 1962 // SetChannelRetentionSettings sets the ChannelRetentionSettings field's value. 1963 func (s *AppInstanceRetentionSettings) SetChannelRetentionSettings(v *ChannelRetentionSettings) *AppInstanceRetentionSettings { 1964 s.ChannelRetentionSettings = v 1965 return s 1966 } 1967 1968 // Summary of the data for an AppInstance. 1969 type AppInstanceSummary struct { 1970 _ struct{} `type:"structure"` 1971 1972 // The AppInstance ARN. 1973 AppInstanceArn *string `min:"5" type:"string"` 1974 1975 // The metadata of the AppInstance. 1976 // 1977 // Metadata is a sensitive parameter and its value will be 1978 // replaced with "sensitive" in string returned by AppInstanceSummary's 1979 // String and GoString methods. 1980 Metadata *string `type:"string" sensitive:"true"` 1981 1982 // The name of the AppInstance. 1983 // 1984 // Name is a sensitive parameter and its value will be 1985 // replaced with "sensitive" in string returned by AppInstanceSummary's 1986 // String and GoString methods. 1987 Name *string `min:"1" type:"string" sensitive:"true"` 1988 } 1989 1990 // String returns the string representation. 1991 // 1992 // API parameter values that are decorated as "sensitive" in the API will not 1993 // be included in the string output. The member name will be present, but the 1994 // value will be replaced with "sensitive". 1995 func (s AppInstanceSummary) String() string { 1996 return awsutil.Prettify(s) 1997 } 1998 1999 // GoString returns the string representation. 2000 // 2001 // API parameter values that are decorated as "sensitive" in the API will not 2002 // be included in the string output. The member name will be present, but the 2003 // value will be replaced with "sensitive". 2004 func (s AppInstanceSummary) GoString() string { 2005 return s.String() 2006 } 2007 2008 // SetAppInstanceArn sets the AppInstanceArn field's value. 2009 func (s *AppInstanceSummary) SetAppInstanceArn(v string) *AppInstanceSummary { 2010 s.AppInstanceArn = &v 2011 return s 2012 } 2013 2014 // SetMetadata sets the Metadata field's value. 2015 func (s *AppInstanceSummary) SetMetadata(v string) *AppInstanceSummary { 2016 s.Metadata = &v 2017 return s 2018 } 2019 2020 // SetName sets the Name field's value. 2021 func (s *AppInstanceSummary) SetName(v string) *AppInstanceSummary { 2022 s.Name = &v 2023 return s 2024 } 2025 2026 // The details of an AppInstanceUser. 2027 type AppInstanceUser struct { 2028 _ struct{} `type:"structure"` 2029 2030 // The ARN of the AppInstanceUser. 2031 AppInstanceUserArn *string `min:"5" type:"string"` 2032 2033 // The time at which the AppInstanceUser was created. 2034 CreatedTimestamp *time.Time `type:"timestamp"` 2035 2036 // The time at which the AppInstanceUser was last updated. 2037 LastUpdatedTimestamp *time.Time `type:"timestamp"` 2038 2039 // The metadata of the AppInstanceUser. 2040 // 2041 // Metadata is a sensitive parameter and its value will be 2042 // replaced with "sensitive" in string returned by AppInstanceUser's 2043 // String and GoString methods. 2044 Metadata *string `type:"string" sensitive:"true"` 2045 2046 // The name of the AppInstanceUser. 2047 // 2048 // Name is a sensitive parameter and its value will be 2049 // replaced with "sensitive" in string returned by AppInstanceUser's 2050 // String and GoString methods. 2051 Name *string `min:"1" type:"string" sensitive:"true"` 2052 } 2053 2054 // String returns the string representation. 2055 // 2056 // API parameter values that are decorated as "sensitive" in the API will not 2057 // be included in the string output. The member name will be present, but the 2058 // value will be replaced with "sensitive". 2059 func (s AppInstanceUser) String() string { 2060 return awsutil.Prettify(s) 2061 } 2062 2063 // GoString returns the string representation. 2064 // 2065 // API parameter values that are decorated as "sensitive" in the API will not 2066 // be included in the string output. The member name will be present, but the 2067 // value will be replaced with "sensitive". 2068 func (s AppInstanceUser) GoString() string { 2069 return s.String() 2070 } 2071 2072 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 2073 func (s *AppInstanceUser) SetAppInstanceUserArn(v string) *AppInstanceUser { 2074 s.AppInstanceUserArn = &v 2075 return s 2076 } 2077 2078 // SetCreatedTimestamp sets the CreatedTimestamp field's value. 2079 func (s *AppInstanceUser) SetCreatedTimestamp(v time.Time) *AppInstanceUser { 2080 s.CreatedTimestamp = &v 2081 return s 2082 } 2083 2084 // SetLastUpdatedTimestamp sets the LastUpdatedTimestamp field's value. 2085 func (s *AppInstanceUser) SetLastUpdatedTimestamp(v time.Time) *AppInstanceUser { 2086 s.LastUpdatedTimestamp = &v 2087 return s 2088 } 2089 2090 // SetMetadata sets the Metadata field's value. 2091 func (s *AppInstanceUser) SetMetadata(v string) *AppInstanceUser { 2092 s.Metadata = &v 2093 return s 2094 } 2095 2096 // SetName sets the Name field's value. 2097 func (s *AppInstanceUser) SetName(v string) *AppInstanceUser { 2098 s.Name = &v 2099 return s 2100 } 2101 2102 // Summary of the details of an AppInstanceUser. 2103 type AppInstanceUserSummary struct { 2104 _ struct{} `type:"structure"` 2105 2106 // The ARN of the AppInstanceUser. 2107 AppInstanceUserArn *string `min:"5" type:"string"` 2108 2109 // The metadata of the AppInstanceUser. 2110 // 2111 // Metadata is a sensitive parameter and its value will be 2112 // replaced with "sensitive" in string returned by AppInstanceUserSummary's 2113 // String and GoString methods. 2114 Metadata *string `type:"string" sensitive:"true"` 2115 2116 // The name of an AppInstanceUser. 2117 // 2118 // Name is a sensitive parameter and its value will be 2119 // replaced with "sensitive" in string returned by AppInstanceUserSummary's 2120 // String and GoString methods. 2121 Name *string `min:"1" type:"string" sensitive:"true"` 2122 } 2123 2124 // String returns the string representation. 2125 // 2126 // API parameter values that are decorated as "sensitive" in the API will not 2127 // be included in the string output. The member name will be present, but the 2128 // value will be replaced with "sensitive". 2129 func (s AppInstanceUserSummary) String() string { 2130 return awsutil.Prettify(s) 2131 } 2132 2133 // GoString returns the string representation. 2134 // 2135 // API parameter values that are decorated as "sensitive" in the API will not 2136 // be included in the string output. The member name will be present, but the 2137 // value will be replaced with "sensitive". 2138 func (s AppInstanceUserSummary) GoString() string { 2139 return s.String() 2140 } 2141 2142 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 2143 func (s *AppInstanceUserSummary) SetAppInstanceUserArn(v string) *AppInstanceUserSummary { 2144 s.AppInstanceUserArn = &v 2145 return s 2146 } 2147 2148 // SetMetadata sets the Metadata field's value. 2149 func (s *AppInstanceUserSummary) SetMetadata(v string) *AppInstanceUserSummary { 2150 s.Metadata = &v 2151 return s 2152 } 2153 2154 // SetName sets the Name field's value. 2155 func (s *AppInstanceUserSummary) SetName(v string) *AppInstanceUserSummary { 2156 s.Name = &v 2157 return s 2158 } 2159 2160 // The input parameters don't match the service's restrictions. 2161 type BadRequestException struct { 2162 _ struct{} `type:"structure"` 2163 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2164 2165 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 2166 2167 Message_ *string `locationName:"Message" type:"string"` 2168 } 2169 2170 // String returns the string representation. 2171 // 2172 // API parameter values that are decorated as "sensitive" in the API will not 2173 // be included in the string output. The member name will be present, but the 2174 // value will be replaced with "sensitive". 2175 func (s BadRequestException) String() string { 2176 return awsutil.Prettify(s) 2177 } 2178 2179 // GoString returns the string representation. 2180 // 2181 // API parameter values that are decorated as "sensitive" in the API will not 2182 // be included in the string output. The member name will be present, but the 2183 // value will be replaced with "sensitive". 2184 func (s BadRequestException) GoString() string { 2185 return s.String() 2186 } 2187 2188 func newErrorBadRequestException(v protocol.ResponseMetadata) error { 2189 return &BadRequestException{ 2190 RespMetadata: v, 2191 } 2192 } 2193 2194 // Code returns the exception type name. 2195 func (s *BadRequestException) Code() string { 2196 return "BadRequestException" 2197 } 2198 2199 // Message returns the exception's message. 2200 func (s *BadRequestException) Message() string { 2201 if s.Message_ != nil { 2202 return *s.Message_ 2203 } 2204 return "" 2205 } 2206 2207 // OrigErr always returns nil, satisfies awserr.Error interface. 2208 func (s *BadRequestException) OrigErr() error { 2209 return nil 2210 } 2211 2212 func (s *BadRequestException) Error() string { 2213 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 2214 } 2215 2216 // Status code returns the HTTP status code for the request's response error. 2217 func (s *BadRequestException) StatusCode() int { 2218 return s.RespMetadata.StatusCode 2219 } 2220 2221 // RequestID returns the service's response RequestID for request. 2222 func (s *BadRequestException) RequestID() string { 2223 return s.RespMetadata.RequestID 2224 } 2225 2226 // The details of the retention settings for a channel. 2227 type ChannelRetentionSettings struct { 2228 _ struct{} `type:"structure"` 2229 2230 // The time in days to retain the messages in a channel. 2231 RetentionDays *int64 `min:"1" type:"integer"` 2232 } 2233 2234 // String returns the string representation. 2235 // 2236 // API parameter values that are decorated as "sensitive" in the API will not 2237 // be included in the string output. The member name will be present, but the 2238 // value will be replaced with "sensitive". 2239 func (s ChannelRetentionSettings) String() string { 2240 return awsutil.Prettify(s) 2241 } 2242 2243 // GoString returns the string representation. 2244 // 2245 // API parameter values that are decorated as "sensitive" in the API will not 2246 // be included in the string output. The member name will be present, but the 2247 // value will be replaced with "sensitive". 2248 func (s ChannelRetentionSettings) GoString() string { 2249 return s.String() 2250 } 2251 2252 // Validate inspects the fields of the type to determine if they are valid. 2253 func (s *ChannelRetentionSettings) Validate() error { 2254 invalidParams := request.ErrInvalidParams{Context: "ChannelRetentionSettings"} 2255 if s.RetentionDays != nil && *s.RetentionDays < 1 { 2256 invalidParams.Add(request.NewErrParamMinValue("RetentionDays", 1)) 2257 } 2258 2259 if invalidParams.Len() > 0 { 2260 return invalidParams 2261 } 2262 return nil 2263 } 2264 2265 // SetRetentionDays sets the RetentionDays field's value. 2266 func (s *ChannelRetentionSettings) SetRetentionDays(v int64) *ChannelRetentionSettings { 2267 s.RetentionDays = &v 2268 return s 2269 } 2270 2271 // The request could not be processed because of conflict in the current state 2272 // of the resource. 2273 type ConflictException struct { 2274 _ struct{} `type:"structure"` 2275 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 2276 2277 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 2278 2279 Message_ *string `locationName:"Message" type:"string"` 2280 } 2281 2282 // String returns the string representation. 2283 // 2284 // API parameter values that are decorated as "sensitive" in the API will not 2285 // be included in the string output. The member name will be present, but the 2286 // value will be replaced with "sensitive". 2287 func (s ConflictException) String() string { 2288 return awsutil.Prettify(s) 2289 } 2290 2291 // GoString returns the string representation. 2292 // 2293 // API parameter values that are decorated as "sensitive" in the API will not 2294 // be included in the string output. The member name will be present, but the 2295 // value will be replaced with "sensitive". 2296 func (s ConflictException) GoString() string { 2297 return s.String() 2298 } 2299 2300 func newErrorConflictException(v protocol.ResponseMetadata) error { 2301 return &ConflictException{ 2302 RespMetadata: v, 2303 } 2304 } 2305 2306 // Code returns the exception type name. 2307 func (s *ConflictException) Code() string { 2308 return "ConflictException" 2309 } 2310 2311 // Message returns the exception's message. 2312 func (s *ConflictException) Message() string { 2313 if s.Message_ != nil { 2314 return *s.Message_ 2315 } 2316 return "" 2317 } 2318 2319 // OrigErr always returns nil, satisfies awserr.Error interface. 2320 func (s *ConflictException) OrigErr() error { 2321 return nil 2322 } 2323 2324 func (s *ConflictException) Error() string { 2325 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 2326 } 2327 2328 // Status code returns the HTTP status code for the request's response error. 2329 func (s *ConflictException) StatusCode() int { 2330 return s.RespMetadata.StatusCode 2331 } 2332 2333 // RequestID returns the service's response RequestID for request. 2334 func (s *ConflictException) RequestID() string { 2335 return s.RespMetadata.RequestID 2336 } 2337 2338 type CreateAppInstanceAdminInput struct { 2339 _ struct{} `type:"structure"` 2340 2341 // The ARN of the administrator of the current AppInstance. 2342 // 2343 // AppInstanceAdminArn is a required field 2344 AppInstanceAdminArn *string `min:"5" type:"string" required:"true"` 2345 2346 // The ARN of the AppInstance. 2347 // 2348 // AppInstanceArn is a required field 2349 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 2350 } 2351 2352 // String returns the string representation. 2353 // 2354 // API parameter values that are decorated as "sensitive" in the API will not 2355 // be included in the string output. The member name will be present, but the 2356 // value will be replaced with "sensitive". 2357 func (s CreateAppInstanceAdminInput) String() string { 2358 return awsutil.Prettify(s) 2359 } 2360 2361 // GoString returns the string representation. 2362 // 2363 // API parameter values that are decorated as "sensitive" in the API will not 2364 // be included in the string output. The member name will be present, but the 2365 // value will be replaced with "sensitive". 2366 func (s CreateAppInstanceAdminInput) GoString() string { 2367 return s.String() 2368 } 2369 2370 // Validate inspects the fields of the type to determine if they are valid. 2371 func (s *CreateAppInstanceAdminInput) Validate() error { 2372 invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceAdminInput"} 2373 if s.AppInstanceAdminArn == nil { 2374 invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) 2375 } 2376 if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { 2377 invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) 2378 } 2379 if s.AppInstanceArn == nil { 2380 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 2381 } 2382 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 2383 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 2384 } 2385 2386 if invalidParams.Len() > 0 { 2387 return invalidParams 2388 } 2389 return nil 2390 } 2391 2392 // SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. 2393 func (s *CreateAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *CreateAppInstanceAdminInput { 2394 s.AppInstanceAdminArn = &v 2395 return s 2396 } 2397 2398 // SetAppInstanceArn sets the AppInstanceArn field's value. 2399 func (s *CreateAppInstanceAdminInput) SetAppInstanceArn(v string) *CreateAppInstanceAdminInput { 2400 s.AppInstanceArn = &v 2401 return s 2402 } 2403 2404 type CreateAppInstanceAdminOutput struct { 2405 _ struct{} `type:"structure"` 2406 2407 // The name and ARN of the admin for the AppInstance. 2408 AppInstanceAdmin *Identity `type:"structure"` 2409 2410 // The ARN of the of the admin for the AppInstance. 2411 AppInstanceArn *string `min:"5" type:"string"` 2412 } 2413 2414 // String returns the string representation. 2415 // 2416 // API parameter values that are decorated as "sensitive" in the API will not 2417 // be included in the string output. The member name will be present, but the 2418 // value will be replaced with "sensitive". 2419 func (s CreateAppInstanceAdminOutput) String() string { 2420 return awsutil.Prettify(s) 2421 } 2422 2423 // GoString returns the string representation. 2424 // 2425 // API parameter values that are decorated as "sensitive" in the API will not 2426 // be included in the string output. The member name will be present, but the 2427 // value will be replaced with "sensitive". 2428 func (s CreateAppInstanceAdminOutput) GoString() string { 2429 return s.String() 2430 } 2431 2432 // SetAppInstanceAdmin sets the AppInstanceAdmin field's value. 2433 func (s *CreateAppInstanceAdminOutput) SetAppInstanceAdmin(v *Identity) *CreateAppInstanceAdminOutput { 2434 s.AppInstanceAdmin = v 2435 return s 2436 } 2437 2438 // SetAppInstanceArn sets the AppInstanceArn field's value. 2439 func (s *CreateAppInstanceAdminOutput) SetAppInstanceArn(v string) *CreateAppInstanceAdminOutput { 2440 s.AppInstanceArn = &v 2441 return s 2442 } 2443 2444 type CreateAppInstanceInput struct { 2445 _ struct{} `type:"structure"` 2446 2447 // The ClientRequestToken of the AppInstance. 2448 // 2449 // ClientRequestToken is a sensitive parameter and its value will be 2450 // replaced with "sensitive" in string returned by CreateAppInstanceInput's 2451 // String and GoString methods. 2452 ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` 2453 2454 // The metadata of the AppInstance. Limited to a 1KB string in UTF-8. 2455 // 2456 // Metadata is a sensitive parameter and its value will be 2457 // replaced with "sensitive" in string returned by CreateAppInstanceInput's 2458 // String and GoString methods. 2459 Metadata *string `type:"string" sensitive:"true"` 2460 2461 // The name of the AppInstance. 2462 // 2463 // Name is a sensitive parameter and its value will be 2464 // replaced with "sensitive" in string returned by CreateAppInstanceInput's 2465 // String and GoString methods. 2466 // 2467 // Name is a required field 2468 Name *string `min:"1" type:"string" required:"true" sensitive:"true"` 2469 2470 // Tags assigned to the AppInstanceUser. 2471 Tags []*Tag `min:"1" type:"list"` 2472 } 2473 2474 // String returns the string representation. 2475 // 2476 // API parameter values that are decorated as "sensitive" in the API will not 2477 // be included in the string output. The member name will be present, but the 2478 // value will be replaced with "sensitive". 2479 func (s CreateAppInstanceInput) String() string { 2480 return awsutil.Prettify(s) 2481 } 2482 2483 // GoString returns the string representation. 2484 // 2485 // API parameter values that are decorated as "sensitive" in the API will not 2486 // be included in the string output. The member name will be present, but the 2487 // value will be replaced with "sensitive". 2488 func (s CreateAppInstanceInput) GoString() string { 2489 return s.String() 2490 } 2491 2492 // Validate inspects the fields of the type to determine if they are valid. 2493 func (s *CreateAppInstanceInput) Validate() error { 2494 invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceInput"} 2495 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { 2496 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) 2497 } 2498 if s.Name == nil { 2499 invalidParams.Add(request.NewErrParamRequired("Name")) 2500 } 2501 if s.Name != nil && len(*s.Name) < 1 { 2502 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 2503 } 2504 if s.Tags != nil && len(s.Tags) < 1 { 2505 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 2506 } 2507 if s.Tags != nil { 2508 for i, v := range s.Tags { 2509 if v == nil { 2510 continue 2511 } 2512 if err := v.Validate(); err != nil { 2513 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 2514 } 2515 } 2516 } 2517 2518 if invalidParams.Len() > 0 { 2519 return invalidParams 2520 } 2521 return nil 2522 } 2523 2524 // SetClientRequestToken sets the ClientRequestToken field's value. 2525 func (s *CreateAppInstanceInput) SetClientRequestToken(v string) *CreateAppInstanceInput { 2526 s.ClientRequestToken = &v 2527 return s 2528 } 2529 2530 // SetMetadata sets the Metadata field's value. 2531 func (s *CreateAppInstanceInput) SetMetadata(v string) *CreateAppInstanceInput { 2532 s.Metadata = &v 2533 return s 2534 } 2535 2536 // SetName sets the Name field's value. 2537 func (s *CreateAppInstanceInput) SetName(v string) *CreateAppInstanceInput { 2538 s.Name = &v 2539 return s 2540 } 2541 2542 // SetTags sets the Tags field's value. 2543 func (s *CreateAppInstanceInput) SetTags(v []*Tag) *CreateAppInstanceInput { 2544 s.Tags = v 2545 return s 2546 } 2547 2548 type CreateAppInstanceOutput struct { 2549 _ struct{} `type:"structure"` 2550 2551 // The Amazon Resource Number (ARN) of the AppInstance. 2552 AppInstanceArn *string `min:"5" type:"string"` 2553 } 2554 2555 // String returns the string representation. 2556 // 2557 // API parameter values that are decorated as "sensitive" in the API will not 2558 // be included in the string output. The member name will be present, but the 2559 // value will be replaced with "sensitive". 2560 func (s CreateAppInstanceOutput) String() string { 2561 return awsutil.Prettify(s) 2562 } 2563 2564 // GoString returns the string representation. 2565 // 2566 // API parameter values that are decorated as "sensitive" in the API will not 2567 // be included in the string output. The member name will be present, but the 2568 // value will be replaced with "sensitive". 2569 func (s CreateAppInstanceOutput) GoString() string { 2570 return s.String() 2571 } 2572 2573 // SetAppInstanceArn sets the AppInstanceArn field's value. 2574 func (s *CreateAppInstanceOutput) SetAppInstanceArn(v string) *CreateAppInstanceOutput { 2575 s.AppInstanceArn = &v 2576 return s 2577 } 2578 2579 type CreateAppInstanceUserInput struct { 2580 _ struct{} `type:"structure"` 2581 2582 // The ARN of the AppInstance request. 2583 // 2584 // AppInstanceArn is a required field 2585 AppInstanceArn *string `min:"5" type:"string" required:"true"` 2586 2587 // The user ID of the AppInstance. 2588 // 2589 // AppInstanceUserId is a sensitive parameter and its value will be 2590 // replaced with "sensitive" in string returned by CreateAppInstanceUserInput's 2591 // String and GoString methods. 2592 // 2593 // AppInstanceUserId is a required field 2594 AppInstanceUserId *string `min:"1" type:"string" required:"true" sensitive:"true"` 2595 2596 // The token assigned to the user requesting an AppInstance. 2597 // 2598 // ClientRequestToken is a sensitive parameter and its value will be 2599 // replaced with "sensitive" in string returned by CreateAppInstanceUserInput's 2600 // String and GoString methods. 2601 ClientRequestToken *string `min:"2" type:"string" idempotencyToken:"true" sensitive:"true"` 2602 2603 // The request's metadata. Limited to a 1KB string in UTF-8. 2604 // 2605 // Metadata is a sensitive parameter and its value will be 2606 // replaced with "sensitive" in string returned by CreateAppInstanceUserInput's 2607 // String and GoString methods. 2608 Metadata *string `type:"string" sensitive:"true"` 2609 2610 // The user's name. 2611 // 2612 // Name is a sensitive parameter and its value will be 2613 // replaced with "sensitive" in string returned by CreateAppInstanceUserInput's 2614 // String and GoString methods. 2615 // 2616 // Name is a required field 2617 Name *string `min:"1" type:"string" required:"true" sensitive:"true"` 2618 2619 // Tags assigned to the AppInstanceUser. 2620 Tags []*Tag `min:"1" type:"list"` 2621 } 2622 2623 // String returns the string representation. 2624 // 2625 // API parameter values that are decorated as "sensitive" in the API will not 2626 // be included in the string output. The member name will be present, but the 2627 // value will be replaced with "sensitive". 2628 func (s CreateAppInstanceUserInput) String() string { 2629 return awsutil.Prettify(s) 2630 } 2631 2632 // GoString returns the string representation. 2633 // 2634 // API parameter values that are decorated as "sensitive" in the API will not 2635 // be included in the string output. The member name will be present, but the 2636 // value will be replaced with "sensitive". 2637 func (s CreateAppInstanceUserInput) GoString() string { 2638 return s.String() 2639 } 2640 2641 // Validate inspects the fields of the type to determine if they are valid. 2642 func (s *CreateAppInstanceUserInput) Validate() error { 2643 invalidParams := request.ErrInvalidParams{Context: "CreateAppInstanceUserInput"} 2644 if s.AppInstanceArn == nil { 2645 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 2646 } 2647 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 2648 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 2649 } 2650 if s.AppInstanceUserId == nil { 2651 invalidParams.Add(request.NewErrParamRequired("AppInstanceUserId")) 2652 } 2653 if s.AppInstanceUserId != nil && len(*s.AppInstanceUserId) < 1 { 2654 invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserId", 1)) 2655 } 2656 if s.ClientRequestToken != nil && len(*s.ClientRequestToken) < 2 { 2657 invalidParams.Add(request.NewErrParamMinLen("ClientRequestToken", 2)) 2658 } 2659 if s.Name == nil { 2660 invalidParams.Add(request.NewErrParamRequired("Name")) 2661 } 2662 if s.Name != nil && len(*s.Name) < 1 { 2663 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 2664 } 2665 if s.Tags != nil && len(s.Tags) < 1 { 2666 invalidParams.Add(request.NewErrParamMinLen("Tags", 1)) 2667 } 2668 if s.Tags != nil { 2669 for i, v := range s.Tags { 2670 if v == nil { 2671 continue 2672 } 2673 if err := v.Validate(); err != nil { 2674 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Tags", i), err.(request.ErrInvalidParams)) 2675 } 2676 } 2677 } 2678 2679 if invalidParams.Len() > 0 { 2680 return invalidParams 2681 } 2682 return nil 2683 } 2684 2685 // SetAppInstanceArn sets the AppInstanceArn field's value. 2686 func (s *CreateAppInstanceUserInput) SetAppInstanceArn(v string) *CreateAppInstanceUserInput { 2687 s.AppInstanceArn = &v 2688 return s 2689 } 2690 2691 // SetAppInstanceUserId sets the AppInstanceUserId field's value. 2692 func (s *CreateAppInstanceUserInput) SetAppInstanceUserId(v string) *CreateAppInstanceUserInput { 2693 s.AppInstanceUserId = &v 2694 return s 2695 } 2696 2697 // SetClientRequestToken sets the ClientRequestToken field's value. 2698 func (s *CreateAppInstanceUserInput) SetClientRequestToken(v string) *CreateAppInstanceUserInput { 2699 s.ClientRequestToken = &v 2700 return s 2701 } 2702 2703 // SetMetadata sets the Metadata field's value. 2704 func (s *CreateAppInstanceUserInput) SetMetadata(v string) *CreateAppInstanceUserInput { 2705 s.Metadata = &v 2706 return s 2707 } 2708 2709 // SetName sets the Name field's value. 2710 func (s *CreateAppInstanceUserInput) SetName(v string) *CreateAppInstanceUserInput { 2711 s.Name = &v 2712 return s 2713 } 2714 2715 // SetTags sets the Tags field's value. 2716 func (s *CreateAppInstanceUserInput) SetTags(v []*Tag) *CreateAppInstanceUserInput { 2717 s.Tags = v 2718 return s 2719 } 2720 2721 type CreateAppInstanceUserOutput struct { 2722 _ struct{} `type:"structure"` 2723 2724 // The user's ARN. 2725 AppInstanceUserArn *string `min:"5" type:"string"` 2726 } 2727 2728 // String returns the string representation. 2729 // 2730 // API parameter values that are decorated as "sensitive" in the API will not 2731 // be included in the string output. The member name will be present, but the 2732 // value will be replaced with "sensitive". 2733 func (s CreateAppInstanceUserOutput) String() string { 2734 return awsutil.Prettify(s) 2735 } 2736 2737 // GoString returns the string representation. 2738 // 2739 // API parameter values that are decorated as "sensitive" in the API will not 2740 // be included in the string output. The member name will be present, but the 2741 // value will be replaced with "sensitive". 2742 func (s CreateAppInstanceUserOutput) GoString() string { 2743 return s.String() 2744 } 2745 2746 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 2747 func (s *CreateAppInstanceUserOutput) SetAppInstanceUserArn(v string) *CreateAppInstanceUserOutput { 2748 s.AppInstanceUserArn = &v 2749 return s 2750 } 2751 2752 type DeleteAppInstanceAdminInput struct { 2753 _ struct{} `type:"structure" nopayload:"true"` 2754 2755 // The ARN of the AppInstance's administrator. 2756 // 2757 // AppInstanceAdminArn is a required field 2758 AppInstanceAdminArn *string `location:"uri" locationName:"appInstanceAdminArn" min:"5" type:"string" required:"true"` 2759 2760 // The ARN of the AppInstance. 2761 // 2762 // AppInstanceArn is a required field 2763 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 2764 } 2765 2766 // String returns the string representation. 2767 // 2768 // API parameter values that are decorated as "sensitive" in the API will not 2769 // be included in the string output. The member name will be present, but the 2770 // value will be replaced with "sensitive". 2771 func (s DeleteAppInstanceAdminInput) String() string { 2772 return awsutil.Prettify(s) 2773 } 2774 2775 // GoString returns the string representation. 2776 // 2777 // API parameter values that are decorated as "sensitive" in the API will not 2778 // be included in the string output. The member name will be present, but the 2779 // value will be replaced with "sensitive". 2780 func (s DeleteAppInstanceAdminInput) GoString() string { 2781 return s.String() 2782 } 2783 2784 // Validate inspects the fields of the type to determine if they are valid. 2785 func (s *DeleteAppInstanceAdminInput) Validate() error { 2786 invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceAdminInput"} 2787 if s.AppInstanceAdminArn == nil { 2788 invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) 2789 } 2790 if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { 2791 invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) 2792 } 2793 if s.AppInstanceArn == nil { 2794 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 2795 } 2796 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 2797 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 2798 } 2799 2800 if invalidParams.Len() > 0 { 2801 return invalidParams 2802 } 2803 return nil 2804 } 2805 2806 // SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. 2807 func (s *DeleteAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *DeleteAppInstanceAdminInput { 2808 s.AppInstanceAdminArn = &v 2809 return s 2810 } 2811 2812 // SetAppInstanceArn sets the AppInstanceArn field's value. 2813 func (s *DeleteAppInstanceAdminInput) SetAppInstanceArn(v string) *DeleteAppInstanceAdminInput { 2814 s.AppInstanceArn = &v 2815 return s 2816 } 2817 2818 type DeleteAppInstanceAdminOutput struct { 2819 _ struct{} `type:"structure" nopayload:"true"` 2820 } 2821 2822 // String returns the string representation. 2823 // 2824 // API parameter values that are decorated as "sensitive" in the API will not 2825 // be included in the string output. The member name will be present, but the 2826 // value will be replaced with "sensitive". 2827 func (s DeleteAppInstanceAdminOutput) String() string { 2828 return awsutil.Prettify(s) 2829 } 2830 2831 // GoString returns the string representation. 2832 // 2833 // API parameter values that are decorated as "sensitive" in the API will not 2834 // be included in the string output. The member name will be present, but the 2835 // value will be replaced with "sensitive". 2836 func (s DeleteAppInstanceAdminOutput) GoString() string { 2837 return s.String() 2838 } 2839 2840 type DeleteAppInstanceInput struct { 2841 _ struct{} `type:"structure" nopayload:"true"` 2842 2843 // The ARN of the AppInstance. 2844 // 2845 // AppInstanceArn is a required field 2846 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 2847 } 2848 2849 // String returns the string representation. 2850 // 2851 // API parameter values that are decorated as "sensitive" in the API will not 2852 // be included in the string output. The member name will be present, but the 2853 // value will be replaced with "sensitive". 2854 func (s DeleteAppInstanceInput) String() string { 2855 return awsutil.Prettify(s) 2856 } 2857 2858 // GoString returns the string representation. 2859 // 2860 // API parameter values that are decorated as "sensitive" in the API will not 2861 // be included in the string output. The member name will be present, but the 2862 // value will be replaced with "sensitive". 2863 func (s DeleteAppInstanceInput) GoString() string { 2864 return s.String() 2865 } 2866 2867 // Validate inspects the fields of the type to determine if they are valid. 2868 func (s *DeleteAppInstanceInput) Validate() error { 2869 invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceInput"} 2870 if s.AppInstanceArn == nil { 2871 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 2872 } 2873 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 2874 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 2875 } 2876 2877 if invalidParams.Len() > 0 { 2878 return invalidParams 2879 } 2880 return nil 2881 } 2882 2883 // SetAppInstanceArn sets the AppInstanceArn field's value. 2884 func (s *DeleteAppInstanceInput) SetAppInstanceArn(v string) *DeleteAppInstanceInput { 2885 s.AppInstanceArn = &v 2886 return s 2887 } 2888 2889 type DeleteAppInstanceOutput struct { 2890 _ struct{} `type:"structure" nopayload:"true"` 2891 } 2892 2893 // String returns the string representation. 2894 // 2895 // API parameter values that are decorated as "sensitive" in the API will not 2896 // be included in the string output. The member name will be present, but the 2897 // value will be replaced with "sensitive". 2898 func (s DeleteAppInstanceOutput) String() string { 2899 return awsutil.Prettify(s) 2900 } 2901 2902 // GoString returns the string representation. 2903 // 2904 // API parameter values that are decorated as "sensitive" in the API will not 2905 // be included in the string output. The member name will be present, but the 2906 // value will be replaced with "sensitive". 2907 func (s DeleteAppInstanceOutput) GoString() string { 2908 return s.String() 2909 } 2910 2911 type DeleteAppInstanceUserInput struct { 2912 _ struct{} `type:"structure" nopayload:"true"` 2913 2914 // The ARN of the user request being deleted. 2915 // 2916 // AppInstanceUserArn is a required field 2917 AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" 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 DeleteAppInstanceUserInput) 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 DeleteAppInstanceUserInput) 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 *DeleteAppInstanceUserInput) Validate() error { 2940 invalidParams := request.ErrInvalidParams{Context: "DeleteAppInstanceUserInput"} 2941 if s.AppInstanceUserArn == nil { 2942 invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) 2943 } 2944 if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { 2945 invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) 2946 } 2947 2948 if invalidParams.Len() > 0 { 2949 return invalidParams 2950 } 2951 return nil 2952 } 2953 2954 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 2955 func (s *DeleteAppInstanceUserInput) SetAppInstanceUserArn(v string) *DeleteAppInstanceUserInput { 2956 s.AppInstanceUserArn = &v 2957 return s 2958 } 2959 2960 type DeleteAppInstanceUserOutput struct { 2961 _ struct{} `type:"structure" nopayload:"true"` 2962 } 2963 2964 // String returns the string representation. 2965 // 2966 // API parameter values that are decorated as "sensitive" in the API will not 2967 // be included in the string output. The member name will be present, but the 2968 // value will be replaced with "sensitive". 2969 func (s DeleteAppInstanceUserOutput) String() string { 2970 return awsutil.Prettify(s) 2971 } 2972 2973 // GoString returns the string representation. 2974 // 2975 // API parameter values that are decorated as "sensitive" in the API will not 2976 // be included in the string output. The member name will be present, but the 2977 // value will be replaced with "sensitive". 2978 func (s DeleteAppInstanceUserOutput) GoString() string { 2979 return s.String() 2980 } 2981 2982 type DescribeAppInstanceAdminInput struct { 2983 _ struct{} `type:"structure" nopayload:"true"` 2984 2985 // The ARN of the AppInstanceAdmin. 2986 // 2987 // AppInstanceAdminArn is a required field 2988 AppInstanceAdminArn *string `location:"uri" locationName:"appInstanceAdminArn" min:"5" type:"string" required:"true"` 2989 2990 // The ARN of the AppInstance. 2991 // 2992 // AppInstanceArn is a required field 2993 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 2994 } 2995 2996 // String returns the string representation. 2997 // 2998 // API parameter values that are decorated as "sensitive" in the API will not 2999 // be included in the string output. The member name will be present, but the 3000 // value will be replaced with "sensitive". 3001 func (s DescribeAppInstanceAdminInput) String() string { 3002 return awsutil.Prettify(s) 3003 } 3004 3005 // GoString returns the string representation. 3006 // 3007 // API parameter values that are decorated as "sensitive" in the API will not 3008 // be included in the string output. The member name will be present, but the 3009 // value will be replaced with "sensitive". 3010 func (s DescribeAppInstanceAdminInput) GoString() string { 3011 return s.String() 3012 } 3013 3014 // Validate inspects the fields of the type to determine if they are valid. 3015 func (s *DescribeAppInstanceAdminInput) Validate() error { 3016 invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceAdminInput"} 3017 if s.AppInstanceAdminArn == nil { 3018 invalidParams.Add(request.NewErrParamRequired("AppInstanceAdminArn")) 3019 } 3020 if s.AppInstanceAdminArn != nil && len(*s.AppInstanceAdminArn) < 5 { 3021 invalidParams.Add(request.NewErrParamMinLen("AppInstanceAdminArn", 5)) 3022 } 3023 if s.AppInstanceArn == nil { 3024 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 3025 } 3026 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 3027 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 3028 } 3029 3030 if invalidParams.Len() > 0 { 3031 return invalidParams 3032 } 3033 return nil 3034 } 3035 3036 // SetAppInstanceAdminArn sets the AppInstanceAdminArn field's value. 3037 func (s *DescribeAppInstanceAdminInput) SetAppInstanceAdminArn(v string) *DescribeAppInstanceAdminInput { 3038 s.AppInstanceAdminArn = &v 3039 return s 3040 } 3041 3042 // SetAppInstanceArn sets the AppInstanceArn field's value. 3043 func (s *DescribeAppInstanceAdminInput) SetAppInstanceArn(v string) *DescribeAppInstanceAdminInput { 3044 s.AppInstanceArn = &v 3045 return s 3046 } 3047 3048 type DescribeAppInstanceAdminOutput struct { 3049 _ struct{} `type:"structure"` 3050 3051 // The ARN and name of the AppInstanceUser, the ARN of the AppInstance, and 3052 // the created and last-updated timestamps. All timestamps use epoch milliseconds. 3053 AppInstanceAdmin *AppInstanceAdmin `type:"structure"` 3054 } 3055 3056 // String returns the string representation. 3057 // 3058 // API parameter values that are decorated as "sensitive" in the API will not 3059 // be included in the string output. The member name will be present, but the 3060 // value will be replaced with "sensitive". 3061 func (s DescribeAppInstanceAdminOutput) String() string { 3062 return awsutil.Prettify(s) 3063 } 3064 3065 // GoString returns the string representation. 3066 // 3067 // API parameter values that are decorated as "sensitive" in the API will not 3068 // be included in the string output. The member name will be present, but the 3069 // value will be replaced with "sensitive". 3070 func (s DescribeAppInstanceAdminOutput) GoString() string { 3071 return s.String() 3072 } 3073 3074 // SetAppInstanceAdmin sets the AppInstanceAdmin field's value. 3075 func (s *DescribeAppInstanceAdminOutput) SetAppInstanceAdmin(v *AppInstanceAdmin) *DescribeAppInstanceAdminOutput { 3076 s.AppInstanceAdmin = v 3077 return s 3078 } 3079 3080 type DescribeAppInstanceInput struct { 3081 _ struct{} `type:"structure" nopayload:"true"` 3082 3083 // The ARN of the AppInstance. 3084 // 3085 // AppInstanceArn is a required field 3086 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 3087 } 3088 3089 // String returns the string representation. 3090 // 3091 // API parameter values that are decorated as "sensitive" in the API will not 3092 // be included in the string output. The member name will be present, but the 3093 // value will be replaced with "sensitive". 3094 func (s DescribeAppInstanceInput) String() string { 3095 return awsutil.Prettify(s) 3096 } 3097 3098 // GoString returns the string representation. 3099 // 3100 // API parameter values that are decorated as "sensitive" in the API will not 3101 // be included in the string output. The member name will be present, but the 3102 // value will be replaced with "sensitive". 3103 func (s DescribeAppInstanceInput) GoString() string { 3104 return s.String() 3105 } 3106 3107 // Validate inspects the fields of the type to determine if they are valid. 3108 func (s *DescribeAppInstanceInput) Validate() error { 3109 invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceInput"} 3110 if s.AppInstanceArn == nil { 3111 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 3112 } 3113 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 3114 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 3115 } 3116 3117 if invalidParams.Len() > 0 { 3118 return invalidParams 3119 } 3120 return nil 3121 } 3122 3123 // SetAppInstanceArn sets the AppInstanceArn field's value. 3124 func (s *DescribeAppInstanceInput) SetAppInstanceArn(v string) *DescribeAppInstanceInput { 3125 s.AppInstanceArn = &v 3126 return s 3127 } 3128 3129 type DescribeAppInstanceOutput struct { 3130 _ struct{} `type:"structure"` 3131 3132 // The ARN, metadata, created and last-updated timestamps, and the name of the 3133 // AppInstance. All timestamps use epoch milliseconds. 3134 AppInstance *AppInstance `type:"structure"` 3135 } 3136 3137 // String returns the string representation. 3138 // 3139 // API parameter values that are decorated as "sensitive" in the API will not 3140 // be included in the string output. The member name will be present, but the 3141 // value will be replaced with "sensitive". 3142 func (s DescribeAppInstanceOutput) String() string { 3143 return awsutil.Prettify(s) 3144 } 3145 3146 // GoString returns the string representation. 3147 // 3148 // API parameter values that are decorated as "sensitive" in the API will not 3149 // be included in the string output. The member name will be present, but the 3150 // value will be replaced with "sensitive". 3151 func (s DescribeAppInstanceOutput) GoString() string { 3152 return s.String() 3153 } 3154 3155 // SetAppInstance sets the AppInstance field's value. 3156 func (s *DescribeAppInstanceOutput) SetAppInstance(v *AppInstance) *DescribeAppInstanceOutput { 3157 s.AppInstance = v 3158 return s 3159 } 3160 3161 type DescribeAppInstanceUserInput struct { 3162 _ struct{} `type:"structure" nopayload:"true"` 3163 3164 // The ARN of the AppInstanceUser. 3165 // 3166 // AppInstanceUserArn is a required field 3167 AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` 3168 } 3169 3170 // String returns the string representation. 3171 // 3172 // API parameter values that are decorated as "sensitive" in the API will not 3173 // be included in the string output. The member name will be present, but the 3174 // value will be replaced with "sensitive". 3175 func (s DescribeAppInstanceUserInput) String() string { 3176 return awsutil.Prettify(s) 3177 } 3178 3179 // GoString returns the string representation. 3180 // 3181 // API parameter values that are decorated as "sensitive" in the API will not 3182 // be included in the string output. The member name will be present, but the 3183 // value will be replaced with "sensitive". 3184 func (s DescribeAppInstanceUserInput) GoString() string { 3185 return s.String() 3186 } 3187 3188 // Validate inspects the fields of the type to determine if they are valid. 3189 func (s *DescribeAppInstanceUserInput) Validate() error { 3190 invalidParams := request.ErrInvalidParams{Context: "DescribeAppInstanceUserInput"} 3191 if s.AppInstanceUserArn == nil { 3192 invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) 3193 } 3194 if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { 3195 invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) 3196 } 3197 3198 if invalidParams.Len() > 0 { 3199 return invalidParams 3200 } 3201 return nil 3202 } 3203 3204 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 3205 func (s *DescribeAppInstanceUserInput) SetAppInstanceUserArn(v string) *DescribeAppInstanceUserInput { 3206 s.AppInstanceUserArn = &v 3207 return s 3208 } 3209 3210 type DescribeAppInstanceUserOutput struct { 3211 _ struct{} `type:"structure"` 3212 3213 // The name of the AppInstanceUser. 3214 AppInstanceUser *AppInstanceUser `type:"structure"` 3215 } 3216 3217 // String returns the string representation. 3218 // 3219 // API parameter values that are decorated as "sensitive" in the API will not 3220 // be included in the string output. The member name will be present, but the 3221 // value will be replaced with "sensitive". 3222 func (s DescribeAppInstanceUserOutput) String() string { 3223 return awsutil.Prettify(s) 3224 } 3225 3226 // GoString returns the string representation. 3227 // 3228 // API parameter values that are decorated as "sensitive" in the API will not 3229 // be included in the string output. The member name will be present, but the 3230 // value will be replaced with "sensitive". 3231 func (s DescribeAppInstanceUserOutput) GoString() string { 3232 return s.String() 3233 } 3234 3235 // SetAppInstanceUser sets the AppInstanceUser field's value. 3236 func (s *DescribeAppInstanceUserOutput) SetAppInstanceUser(v *AppInstanceUser) *DescribeAppInstanceUserOutput { 3237 s.AppInstanceUser = v 3238 return s 3239 } 3240 3241 // The client is permanently forbidden from making the request. 3242 type ForbiddenException struct { 3243 _ struct{} `type:"structure"` 3244 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3245 3246 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 3247 3248 Message_ *string `locationName:"Message" type:"string"` 3249 } 3250 3251 // String returns the string representation. 3252 // 3253 // API parameter values that are decorated as "sensitive" in the API will not 3254 // be included in the string output. The member name will be present, but the 3255 // value will be replaced with "sensitive". 3256 func (s ForbiddenException) String() string { 3257 return awsutil.Prettify(s) 3258 } 3259 3260 // GoString returns the string representation. 3261 // 3262 // API parameter values that are decorated as "sensitive" in the API will not 3263 // be included in the string output. The member name will be present, but the 3264 // value will be replaced with "sensitive". 3265 func (s ForbiddenException) GoString() string { 3266 return s.String() 3267 } 3268 3269 func newErrorForbiddenException(v protocol.ResponseMetadata) error { 3270 return &ForbiddenException{ 3271 RespMetadata: v, 3272 } 3273 } 3274 3275 // Code returns the exception type name. 3276 func (s *ForbiddenException) Code() string { 3277 return "ForbiddenException" 3278 } 3279 3280 // Message returns the exception's message. 3281 func (s *ForbiddenException) Message() string { 3282 if s.Message_ != nil { 3283 return *s.Message_ 3284 } 3285 return "" 3286 } 3287 3288 // OrigErr always returns nil, satisfies awserr.Error interface. 3289 func (s *ForbiddenException) OrigErr() error { 3290 return nil 3291 } 3292 3293 func (s *ForbiddenException) Error() string { 3294 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 3295 } 3296 3297 // Status code returns the HTTP status code for the request's response error. 3298 func (s *ForbiddenException) StatusCode() int { 3299 return s.RespMetadata.StatusCode 3300 } 3301 3302 // RequestID returns the service's response RequestID for request. 3303 func (s *ForbiddenException) RequestID() string { 3304 return s.RespMetadata.RequestID 3305 } 3306 3307 type GetAppInstanceRetentionSettingsInput struct { 3308 _ struct{} `type:"structure" nopayload:"true"` 3309 3310 // The ARN of the AppInstance. 3311 // 3312 // AppInstanceArn is a required field 3313 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 3314 } 3315 3316 // String returns the string representation. 3317 // 3318 // API parameter values that are decorated as "sensitive" in the API will not 3319 // be included in the string output. The member name will be present, but the 3320 // value will be replaced with "sensitive". 3321 func (s GetAppInstanceRetentionSettingsInput) String() string { 3322 return awsutil.Prettify(s) 3323 } 3324 3325 // GoString returns the string representation. 3326 // 3327 // API parameter values that are decorated as "sensitive" in the API will not 3328 // be included in the string output. The member name will be present, but the 3329 // value will be replaced with "sensitive". 3330 func (s GetAppInstanceRetentionSettingsInput) GoString() string { 3331 return s.String() 3332 } 3333 3334 // Validate inspects the fields of the type to determine if they are valid. 3335 func (s *GetAppInstanceRetentionSettingsInput) Validate() error { 3336 invalidParams := request.ErrInvalidParams{Context: "GetAppInstanceRetentionSettingsInput"} 3337 if s.AppInstanceArn == nil { 3338 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 3339 } 3340 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 3341 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 3342 } 3343 3344 if invalidParams.Len() > 0 { 3345 return invalidParams 3346 } 3347 return nil 3348 } 3349 3350 // SetAppInstanceArn sets the AppInstanceArn field's value. 3351 func (s *GetAppInstanceRetentionSettingsInput) SetAppInstanceArn(v string) *GetAppInstanceRetentionSettingsInput { 3352 s.AppInstanceArn = &v 3353 return s 3354 } 3355 3356 type GetAppInstanceRetentionSettingsOutput struct { 3357 _ struct{} `type:"structure"` 3358 3359 // The retention settings for the AppInstance. 3360 AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure"` 3361 3362 // The timestamp representing the time at which the specified items are retained, 3363 // in Epoch Seconds. 3364 InitiateDeletionTimestamp *time.Time `type:"timestamp"` 3365 } 3366 3367 // String returns the string representation. 3368 // 3369 // API parameter values that are decorated as "sensitive" in the API will not 3370 // be included in the string output. The member name will be present, but the 3371 // value will be replaced with "sensitive". 3372 func (s GetAppInstanceRetentionSettingsOutput) String() string { 3373 return awsutil.Prettify(s) 3374 } 3375 3376 // GoString returns the string representation. 3377 // 3378 // API parameter values that are decorated as "sensitive" in the API will not 3379 // be included in the string output. The member name will be present, but the 3380 // value will be replaced with "sensitive". 3381 func (s GetAppInstanceRetentionSettingsOutput) GoString() string { 3382 return s.String() 3383 } 3384 3385 // SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. 3386 func (s *GetAppInstanceRetentionSettingsOutput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *GetAppInstanceRetentionSettingsOutput { 3387 s.AppInstanceRetentionSettings = v 3388 return s 3389 } 3390 3391 // SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. 3392 func (s *GetAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *GetAppInstanceRetentionSettingsOutput { 3393 s.InitiateDeletionTimestamp = &v 3394 return s 3395 } 3396 3397 // The details of a user. 3398 type Identity struct { 3399 _ struct{} `type:"structure"` 3400 3401 // The ARN in an Identity. 3402 Arn *string `min:"5" type:"string"` 3403 3404 // The name in an Identity. 3405 // 3406 // Name is a sensitive parameter and its value will be 3407 // replaced with "sensitive" in string returned by Identity's 3408 // String and GoString methods. 3409 Name *string `type:"string" sensitive:"true"` 3410 } 3411 3412 // String returns the string representation. 3413 // 3414 // API parameter values that are decorated as "sensitive" in the API will not 3415 // be included in the string output. The member name will be present, but the 3416 // value will be replaced with "sensitive". 3417 func (s Identity) String() string { 3418 return awsutil.Prettify(s) 3419 } 3420 3421 // GoString returns the string representation. 3422 // 3423 // API parameter values that are decorated as "sensitive" in the API will not 3424 // be included in the string output. The member name will be present, but the 3425 // value will be replaced with "sensitive". 3426 func (s Identity) GoString() string { 3427 return s.String() 3428 } 3429 3430 // SetArn sets the Arn field's value. 3431 func (s *Identity) SetArn(v string) *Identity { 3432 s.Arn = &v 3433 return s 3434 } 3435 3436 // SetName sets the Name field's value. 3437 func (s *Identity) SetName(v string) *Identity { 3438 s.Name = &v 3439 return s 3440 } 3441 3442 type ListAppInstanceAdminsInput struct { 3443 _ struct{} `type:"structure" nopayload:"true"` 3444 3445 // The ARN of the AppInstance. 3446 // 3447 // AppInstanceArn is a required field 3448 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 3449 3450 // The maximum number of administrators that you want to return. 3451 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 3452 3453 // The token returned from previous API requests until the number of administrators 3454 // is reached. 3455 // 3456 // NextToken is a sensitive parameter and its value will be 3457 // replaced with "sensitive" in string returned by ListAppInstanceAdminsInput's 3458 // String and GoString methods. 3459 NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` 3460 } 3461 3462 // String returns the string representation. 3463 // 3464 // API parameter values that are decorated as "sensitive" in the API will not 3465 // be included in the string output. The member name will be present, but the 3466 // value will be replaced with "sensitive". 3467 func (s ListAppInstanceAdminsInput) String() string { 3468 return awsutil.Prettify(s) 3469 } 3470 3471 // GoString returns the string representation. 3472 // 3473 // API parameter values that are decorated as "sensitive" in the API will not 3474 // be included in the string output. The member name will be present, but the 3475 // value will be replaced with "sensitive". 3476 func (s ListAppInstanceAdminsInput) GoString() string { 3477 return s.String() 3478 } 3479 3480 // Validate inspects the fields of the type to determine if they are valid. 3481 func (s *ListAppInstanceAdminsInput) Validate() error { 3482 invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceAdminsInput"} 3483 if s.AppInstanceArn == nil { 3484 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 3485 } 3486 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 3487 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 3488 } 3489 if s.MaxResults != nil && *s.MaxResults < 1 { 3490 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3491 } 3492 3493 if invalidParams.Len() > 0 { 3494 return invalidParams 3495 } 3496 return nil 3497 } 3498 3499 // SetAppInstanceArn sets the AppInstanceArn field's value. 3500 func (s *ListAppInstanceAdminsInput) SetAppInstanceArn(v string) *ListAppInstanceAdminsInput { 3501 s.AppInstanceArn = &v 3502 return s 3503 } 3504 3505 // SetMaxResults sets the MaxResults field's value. 3506 func (s *ListAppInstanceAdminsInput) SetMaxResults(v int64) *ListAppInstanceAdminsInput { 3507 s.MaxResults = &v 3508 return s 3509 } 3510 3511 // SetNextToken sets the NextToken field's value. 3512 func (s *ListAppInstanceAdminsInput) SetNextToken(v string) *ListAppInstanceAdminsInput { 3513 s.NextToken = &v 3514 return s 3515 } 3516 3517 type ListAppInstanceAdminsOutput struct { 3518 _ struct{} `type:"structure"` 3519 3520 // The information for each administrator. 3521 AppInstanceAdmins []*AppInstanceAdminSummary `type:"list"` 3522 3523 // The ARN of the AppInstance. 3524 AppInstanceArn *string `min:"5" type:"string"` 3525 3526 // The token returned from previous API requests until the number of administrators 3527 // is reached. 3528 // 3529 // NextToken is a sensitive parameter and its value will be 3530 // replaced with "sensitive" in string returned by ListAppInstanceAdminsOutput's 3531 // String and GoString methods. 3532 NextToken *string `type:"string" sensitive:"true"` 3533 } 3534 3535 // String returns the string representation. 3536 // 3537 // API parameter values that are decorated as "sensitive" in the API will not 3538 // be included in the string output. The member name will be present, but the 3539 // value will be replaced with "sensitive". 3540 func (s ListAppInstanceAdminsOutput) String() string { 3541 return awsutil.Prettify(s) 3542 } 3543 3544 // GoString returns the string representation. 3545 // 3546 // API parameter values that are decorated as "sensitive" in the API will not 3547 // be included in the string output. The member name will be present, but the 3548 // value will be replaced with "sensitive". 3549 func (s ListAppInstanceAdminsOutput) GoString() string { 3550 return s.String() 3551 } 3552 3553 // SetAppInstanceAdmins sets the AppInstanceAdmins field's value. 3554 func (s *ListAppInstanceAdminsOutput) SetAppInstanceAdmins(v []*AppInstanceAdminSummary) *ListAppInstanceAdminsOutput { 3555 s.AppInstanceAdmins = v 3556 return s 3557 } 3558 3559 // SetAppInstanceArn sets the AppInstanceArn field's value. 3560 func (s *ListAppInstanceAdminsOutput) SetAppInstanceArn(v string) *ListAppInstanceAdminsOutput { 3561 s.AppInstanceArn = &v 3562 return s 3563 } 3564 3565 // SetNextToken sets the NextToken field's value. 3566 func (s *ListAppInstanceAdminsOutput) SetNextToken(v string) *ListAppInstanceAdminsOutput { 3567 s.NextToken = &v 3568 return s 3569 } 3570 3571 type ListAppInstanceUsersInput struct { 3572 _ struct{} `type:"structure" nopayload:"true"` 3573 3574 // The ARN of the AppInstance. 3575 // 3576 // AppInstanceArn is a required field 3577 AppInstanceArn *string `location:"querystring" locationName:"app-instance-arn" min:"5" type:"string" required:"true"` 3578 3579 // The maximum number of requests that you want returned. 3580 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 3581 3582 // The token passed by previous API calls until all requested users are returned. 3583 // 3584 // NextToken is a sensitive parameter and its value will be 3585 // replaced with "sensitive" in string returned by ListAppInstanceUsersInput's 3586 // String and GoString methods. 3587 NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` 3588 } 3589 3590 // String returns the string representation. 3591 // 3592 // API parameter values that are decorated as "sensitive" in the API will not 3593 // be included in the string output. The member name will be present, but the 3594 // value will be replaced with "sensitive". 3595 func (s ListAppInstanceUsersInput) String() string { 3596 return awsutil.Prettify(s) 3597 } 3598 3599 // GoString returns the string representation. 3600 // 3601 // API parameter values that are decorated as "sensitive" in the API will not 3602 // be included in the string output. The member name will be present, but the 3603 // value will be replaced with "sensitive". 3604 func (s ListAppInstanceUsersInput) GoString() string { 3605 return s.String() 3606 } 3607 3608 // Validate inspects the fields of the type to determine if they are valid. 3609 func (s *ListAppInstanceUsersInput) Validate() error { 3610 invalidParams := request.ErrInvalidParams{Context: "ListAppInstanceUsersInput"} 3611 if s.AppInstanceArn == nil { 3612 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 3613 } 3614 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 3615 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 3616 } 3617 if s.MaxResults != nil && *s.MaxResults < 1 { 3618 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3619 } 3620 3621 if invalidParams.Len() > 0 { 3622 return invalidParams 3623 } 3624 return nil 3625 } 3626 3627 // SetAppInstanceArn sets the AppInstanceArn field's value. 3628 func (s *ListAppInstanceUsersInput) SetAppInstanceArn(v string) *ListAppInstanceUsersInput { 3629 s.AppInstanceArn = &v 3630 return s 3631 } 3632 3633 // SetMaxResults sets the MaxResults field's value. 3634 func (s *ListAppInstanceUsersInput) SetMaxResults(v int64) *ListAppInstanceUsersInput { 3635 s.MaxResults = &v 3636 return s 3637 } 3638 3639 // SetNextToken sets the NextToken field's value. 3640 func (s *ListAppInstanceUsersInput) SetNextToken(v string) *ListAppInstanceUsersInput { 3641 s.NextToken = &v 3642 return s 3643 } 3644 3645 type ListAppInstanceUsersOutput struct { 3646 _ struct{} `type:"structure"` 3647 3648 // The ARN of the AppInstance. 3649 AppInstanceArn *string `min:"5" type:"string"` 3650 3651 // The information for each requested AppInstanceUser. 3652 AppInstanceUsers []*AppInstanceUserSummary `type:"list"` 3653 3654 // The token passed by previous API calls until all requested users are returned. 3655 // 3656 // NextToken is a sensitive parameter and its value will be 3657 // replaced with "sensitive" in string returned by ListAppInstanceUsersOutput's 3658 // String and GoString methods. 3659 NextToken *string `type:"string" sensitive:"true"` 3660 } 3661 3662 // String returns the string representation. 3663 // 3664 // API parameter values that are decorated as "sensitive" in the API will not 3665 // be included in the string output. The member name will be present, but the 3666 // value will be replaced with "sensitive". 3667 func (s ListAppInstanceUsersOutput) String() string { 3668 return awsutil.Prettify(s) 3669 } 3670 3671 // GoString returns the string representation. 3672 // 3673 // API parameter values that are decorated as "sensitive" in the API will not 3674 // be included in the string output. The member name will be present, but the 3675 // value will be replaced with "sensitive". 3676 func (s ListAppInstanceUsersOutput) GoString() string { 3677 return s.String() 3678 } 3679 3680 // SetAppInstanceArn sets the AppInstanceArn field's value. 3681 func (s *ListAppInstanceUsersOutput) SetAppInstanceArn(v string) *ListAppInstanceUsersOutput { 3682 s.AppInstanceArn = &v 3683 return s 3684 } 3685 3686 // SetAppInstanceUsers sets the AppInstanceUsers field's value. 3687 func (s *ListAppInstanceUsersOutput) SetAppInstanceUsers(v []*AppInstanceUserSummary) *ListAppInstanceUsersOutput { 3688 s.AppInstanceUsers = v 3689 return s 3690 } 3691 3692 // SetNextToken sets the NextToken field's value. 3693 func (s *ListAppInstanceUsersOutput) SetNextToken(v string) *ListAppInstanceUsersOutput { 3694 s.NextToken = &v 3695 return s 3696 } 3697 3698 type ListAppInstancesInput struct { 3699 _ struct{} `type:"structure" nopayload:"true"` 3700 3701 // The maximum number of AppInstances that you want to return. 3702 MaxResults *int64 `location:"querystring" locationName:"max-results" min:"1" type:"integer"` 3703 3704 // The token passed by previous API requests until you reach the maximum number 3705 // of AppInstances. 3706 // 3707 // NextToken is a sensitive parameter and its value will be 3708 // replaced with "sensitive" in string returned by ListAppInstancesInput's 3709 // String and GoString methods. 3710 NextToken *string `location:"querystring" locationName:"next-token" type:"string" sensitive:"true"` 3711 } 3712 3713 // String returns the string representation. 3714 // 3715 // API parameter values that are decorated as "sensitive" in the API will not 3716 // be included in the string output. The member name will be present, but the 3717 // value will be replaced with "sensitive". 3718 func (s ListAppInstancesInput) String() string { 3719 return awsutil.Prettify(s) 3720 } 3721 3722 // GoString returns the string representation. 3723 // 3724 // API parameter values that are decorated as "sensitive" in the API will not 3725 // be included in the string output. The member name will be present, but the 3726 // value will be replaced with "sensitive". 3727 func (s ListAppInstancesInput) GoString() string { 3728 return s.String() 3729 } 3730 3731 // Validate inspects the fields of the type to determine if they are valid. 3732 func (s *ListAppInstancesInput) Validate() error { 3733 invalidParams := request.ErrInvalidParams{Context: "ListAppInstancesInput"} 3734 if s.MaxResults != nil && *s.MaxResults < 1 { 3735 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 3736 } 3737 3738 if invalidParams.Len() > 0 { 3739 return invalidParams 3740 } 3741 return nil 3742 } 3743 3744 // SetMaxResults sets the MaxResults field's value. 3745 func (s *ListAppInstancesInput) SetMaxResults(v int64) *ListAppInstancesInput { 3746 s.MaxResults = &v 3747 return s 3748 } 3749 3750 // SetNextToken sets the NextToken field's value. 3751 func (s *ListAppInstancesInput) SetNextToken(v string) *ListAppInstancesInput { 3752 s.NextToken = &v 3753 return s 3754 } 3755 3756 type ListAppInstancesOutput struct { 3757 _ struct{} `type:"structure"` 3758 3759 // The information for each AppInstance. 3760 AppInstances []*AppInstanceSummary `type:"list"` 3761 3762 // The token passed by previous API requests until the maximum number of AppInstances 3763 // is reached. 3764 // 3765 // NextToken is a sensitive parameter and its value will be 3766 // replaced with "sensitive" in string returned by ListAppInstancesOutput's 3767 // String and GoString methods. 3768 NextToken *string `type:"string" sensitive:"true"` 3769 } 3770 3771 // String returns the string representation. 3772 // 3773 // API parameter values that are decorated as "sensitive" in the API will not 3774 // be included in the string output. The member name will be present, but the 3775 // value will be replaced with "sensitive". 3776 func (s ListAppInstancesOutput) String() string { 3777 return awsutil.Prettify(s) 3778 } 3779 3780 // GoString returns the string representation. 3781 // 3782 // API parameter values that are decorated as "sensitive" in the API will not 3783 // be included in the string output. The member name will be present, but the 3784 // value will be replaced with "sensitive". 3785 func (s ListAppInstancesOutput) GoString() string { 3786 return s.String() 3787 } 3788 3789 // SetAppInstances sets the AppInstances field's value. 3790 func (s *ListAppInstancesOutput) SetAppInstances(v []*AppInstanceSummary) *ListAppInstancesOutput { 3791 s.AppInstances = v 3792 return s 3793 } 3794 3795 // SetNextToken sets the NextToken field's value. 3796 func (s *ListAppInstancesOutput) SetNextToken(v string) *ListAppInstancesOutput { 3797 s.NextToken = &v 3798 return s 3799 } 3800 3801 type PutAppInstanceRetentionSettingsInput struct { 3802 _ struct{} `type:"structure"` 3803 3804 // The ARN of the AppInstance. 3805 // 3806 // AppInstanceArn is a required field 3807 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 3808 3809 // The time in days to retain data. Data type: number. 3810 // 3811 // AppInstanceRetentionSettings is a required field 3812 AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure" required:"true"` 3813 } 3814 3815 // String returns the string representation. 3816 // 3817 // API parameter values that are decorated as "sensitive" in the API will not 3818 // be included in the string output. The member name will be present, but the 3819 // value will be replaced with "sensitive". 3820 func (s PutAppInstanceRetentionSettingsInput) String() string { 3821 return awsutil.Prettify(s) 3822 } 3823 3824 // GoString returns the string representation. 3825 // 3826 // API parameter values that are decorated as "sensitive" in the API will not 3827 // be included in the string output. The member name will be present, but the 3828 // value will be replaced with "sensitive". 3829 func (s PutAppInstanceRetentionSettingsInput) GoString() string { 3830 return s.String() 3831 } 3832 3833 // Validate inspects the fields of the type to determine if they are valid. 3834 func (s *PutAppInstanceRetentionSettingsInput) Validate() error { 3835 invalidParams := request.ErrInvalidParams{Context: "PutAppInstanceRetentionSettingsInput"} 3836 if s.AppInstanceArn == nil { 3837 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 3838 } 3839 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 3840 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 3841 } 3842 if s.AppInstanceRetentionSettings == nil { 3843 invalidParams.Add(request.NewErrParamRequired("AppInstanceRetentionSettings")) 3844 } 3845 if s.AppInstanceRetentionSettings != nil { 3846 if err := s.AppInstanceRetentionSettings.Validate(); err != nil { 3847 invalidParams.AddNested("AppInstanceRetentionSettings", err.(request.ErrInvalidParams)) 3848 } 3849 } 3850 3851 if invalidParams.Len() > 0 { 3852 return invalidParams 3853 } 3854 return nil 3855 } 3856 3857 // SetAppInstanceArn sets the AppInstanceArn field's value. 3858 func (s *PutAppInstanceRetentionSettingsInput) SetAppInstanceArn(v string) *PutAppInstanceRetentionSettingsInput { 3859 s.AppInstanceArn = &v 3860 return s 3861 } 3862 3863 // SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. 3864 func (s *PutAppInstanceRetentionSettingsInput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *PutAppInstanceRetentionSettingsInput { 3865 s.AppInstanceRetentionSettings = v 3866 return s 3867 } 3868 3869 type PutAppInstanceRetentionSettingsOutput struct { 3870 _ struct{} `type:"structure"` 3871 3872 // The time in days to retain data. Data type: number. 3873 AppInstanceRetentionSettings *AppInstanceRetentionSettings `type:"structure"` 3874 3875 // The time at which the API deletes data. 3876 InitiateDeletionTimestamp *time.Time `type:"timestamp"` 3877 } 3878 3879 // String returns the string representation. 3880 // 3881 // API parameter values that are decorated as "sensitive" in the API will not 3882 // be included in the string output. The member name will be present, but the 3883 // value will be replaced with "sensitive". 3884 func (s PutAppInstanceRetentionSettingsOutput) String() string { 3885 return awsutil.Prettify(s) 3886 } 3887 3888 // GoString returns the string representation. 3889 // 3890 // API parameter values that are decorated as "sensitive" in the API will not 3891 // be included in the string output. The member name will be present, but the 3892 // value will be replaced with "sensitive". 3893 func (s PutAppInstanceRetentionSettingsOutput) GoString() string { 3894 return s.String() 3895 } 3896 3897 // SetAppInstanceRetentionSettings sets the AppInstanceRetentionSettings field's value. 3898 func (s *PutAppInstanceRetentionSettingsOutput) SetAppInstanceRetentionSettings(v *AppInstanceRetentionSettings) *PutAppInstanceRetentionSettingsOutput { 3899 s.AppInstanceRetentionSettings = v 3900 return s 3901 } 3902 3903 // SetInitiateDeletionTimestamp sets the InitiateDeletionTimestamp field's value. 3904 func (s *PutAppInstanceRetentionSettingsOutput) SetInitiateDeletionTimestamp(v time.Time) *PutAppInstanceRetentionSettingsOutput { 3905 s.InitiateDeletionTimestamp = &v 3906 return s 3907 } 3908 3909 // The request exceeds the resource limit. 3910 type ResourceLimitExceededException struct { 3911 _ struct{} `type:"structure"` 3912 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3913 3914 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 3915 3916 Message_ *string `locationName:"Message" type:"string"` 3917 } 3918 3919 // String returns the string representation. 3920 // 3921 // API parameter values that are decorated as "sensitive" in the API will not 3922 // be included in the string output. The member name will be present, but the 3923 // value will be replaced with "sensitive". 3924 func (s ResourceLimitExceededException) String() string { 3925 return awsutil.Prettify(s) 3926 } 3927 3928 // GoString returns the string representation. 3929 // 3930 // API parameter values that are decorated as "sensitive" in the API will not 3931 // be included in the string output. The member name will be present, but the 3932 // value will be replaced with "sensitive". 3933 func (s ResourceLimitExceededException) GoString() string { 3934 return s.String() 3935 } 3936 3937 func newErrorResourceLimitExceededException(v protocol.ResponseMetadata) error { 3938 return &ResourceLimitExceededException{ 3939 RespMetadata: v, 3940 } 3941 } 3942 3943 // Code returns the exception type name. 3944 func (s *ResourceLimitExceededException) Code() string { 3945 return "ResourceLimitExceededException" 3946 } 3947 3948 // Message returns the exception's message. 3949 func (s *ResourceLimitExceededException) Message() string { 3950 if s.Message_ != nil { 3951 return *s.Message_ 3952 } 3953 return "" 3954 } 3955 3956 // OrigErr always returns nil, satisfies awserr.Error interface. 3957 func (s *ResourceLimitExceededException) OrigErr() error { 3958 return nil 3959 } 3960 3961 func (s *ResourceLimitExceededException) Error() string { 3962 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 3963 } 3964 3965 // Status code returns the HTTP status code for the request's response error. 3966 func (s *ResourceLimitExceededException) StatusCode() int { 3967 return s.RespMetadata.StatusCode 3968 } 3969 3970 // RequestID returns the service's response RequestID for request. 3971 func (s *ResourceLimitExceededException) RequestID() string { 3972 return s.RespMetadata.RequestID 3973 } 3974 3975 // The service encountered an unexpected error. 3976 type ServiceFailureException struct { 3977 _ struct{} `type:"structure"` 3978 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 3979 3980 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 3981 3982 Message_ *string `locationName:"Message" type:"string"` 3983 } 3984 3985 // String returns the string representation. 3986 // 3987 // API parameter values that are decorated as "sensitive" in the API will not 3988 // be included in the string output. The member name will be present, but the 3989 // value will be replaced with "sensitive". 3990 func (s ServiceFailureException) String() string { 3991 return awsutil.Prettify(s) 3992 } 3993 3994 // GoString returns the string representation. 3995 // 3996 // API parameter values that are decorated as "sensitive" in the API will not 3997 // be included in the string output. The member name will be present, but the 3998 // value will be replaced with "sensitive". 3999 func (s ServiceFailureException) GoString() string { 4000 return s.String() 4001 } 4002 4003 func newErrorServiceFailureException(v protocol.ResponseMetadata) error { 4004 return &ServiceFailureException{ 4005 RespMetadata: v, 4006 } 4007 } 4008 4009 // Code returns the exception type name. 4010 func (s *ServiceFailureException) Code() string { 4011 return "ServiceFailureException" 4012 } 4013 4014 // Message returns the exception's message. 4015 func (s *ServiceFailureException) Message() string { 4016 if s.Message_ != nil { 4017 return *s.Message_ 4018 } 4019 return "" 4020 } 4021 4022 // OrigErr always returns nil, satisfies awserr.Error interface. 4023 func (s *ServiceFailureException) OrigErr() error { 4024 return nil 4025 } 4026 4027 func (s *ServiceFailureException) Error() string { 4028 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 4029 } 4030 4031 // Status code returns the HTTP status code for the request's response error. 4032 func (s *ServiceFailureException) StatusCode() int { 4033 return s.RespMetadata.StatusCode 4034 } 4035 4036 // RequestID returns the service's response RequestID for request. 4037 func (s *ServiceFailureException) RequestID() string { 4038 return s.RespMetadata.RequestID 4039 } 4040 4041 // The service is currently unavailable. 4042 type ServiceUnavailableException struct { 4043 _ struct{} `type:"structure"` 4044 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4045 4046 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 4047 4048 Message_ *string `locationName:"Message" type:"string"` 4049 } 4050 4051 // String returns the string representation. 4052 // 4053 // API parameter values that are decorated as "sensitive" in the API will not 4054 // be included in the string output. The member name will be present, but the 4055 // value will be replaced with "sensitive". 4056 func (s ServiceUnavailableException) String() string { 4057 return awsutil.Prettify(s) 4058 } 4059 4060 // GoString returns the string representation. 4061 // 4062 // API parameter values that are decorated as "sensitive" in the API will not 4063 // be included in the string output. The member name will be present, but the 4064 // value will be replaced with "sensitive". 4065 func (s ServiceUnavailableException) GoString() string { 4066 return s.String() 4067 } 4068 4069 func newErrorServiceUnavailableException(v protocol.ResponseMetadata) error { 4070 return &ServiceUnavailableException{ 4071 RespMetadata: v, 4072 } 4073 } 4074 4075 // Code returns the exception type name. 4076 func (s *ServiceUnavailableException) Code() string { 4077 return "ServiceUnavailableException" 4078 } 4079 4080 // Message returns the exception's message. 4081 func (s *ServiceUnavailableException) Message() string { 4082 if s.Message_ != nil { 4083 return *s.Message_ 4084 } 4085 return "" 4086 } 4087 4088 // OrigErr always returns nil, satisfies awserr.Error interface. 4089 func (s *ServiceUnavailableException) OrigErr() error { 4090 return nil 4091 } 4092 4093 func (s *ServiceUnavailableException) Error() string { 4094 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 4095 } 4096 4097 // Status code returns the HTTP status code for the request's response error. 4098 func (s *ServiceUnavailableException) StatusCode() int { 4099 return s.RespMetadata.StatusCode 4100 } 4101 4102 // RequestID returns the service's response RequestID for request. 4103 func (s *ServiceUnavailableException) RequestID() string { 4104 return s.RespMetadata.RequestID 4105 } 4106 4107 // Describes a tag applied to a resource. 4108 type Tag struct { 4109 _ struct{} `type:"structure"` 4110 4111 // The key of the tag. 4112 // 4113 // Key is a sensitive parameter and its value will be 4114 // replaced with "sensitive" in string returned by Tag's 4115 // String and GoString methods. 4116 // 4117 // Key is a required field 4118 Key *string `min:"1" type:"string" required:"true" sensitive:"true"` 4119 4120 // The value of the tag. 4121 // 4122 // Value is a sensitive parameter and its value will be 4123 // replaced with "sensitive" in string returned by Tag's 4124 // String and GoString methods. 4125 // 4126 // Value is a required field 4127 Value *string `min:"1" type:"string" required:"true" sensitive:"true"` 4128 } 4129 4130 // String returns the string representation. 4131 // 4132 // API parameter values that are decorated as "sensitive" in the API will not 4133 // be included in the string output. The member name will be present, but the 4134 // value will be replaced with "sensitive". 4135 func (s Tag) String() string { 4136 return awsutil.Prettify(s) 4137 } 4138 4139 // GoString returns the string representation. 4140 // 4141 // API parameter values that are decorated as "sensitive" in the API will not 4142 // be included in the string output. The member name will be present, but the 4143 // value will be replaced with "sensitive". 4144 func (s Tag) GoString() string { 4145 return s.String() 4146 } 4147 4148 // Validate inspects the fields of the type to determine if they are valid. 4149 func (s *Tag) Validate() error { 4150 invalidParams := request.ErrInvalidParams{Context: "Tag"} 4151 if s.Key == nil { 4152 invalidParams.Add(request.NewErrParamRequired("Key")) 4153 } 4154 if s.Key != nil && len(*s.Key) < 1 { 4155 invalidParams.Add(request.NewErrParamMinLen("Key", 1)) 4156 } 4157 if s.Value == nil { 4158 invalidParams.Add(request.NewErrParamRequired("Value")) 4159 } 4160 if s.Value != nil && len(*s.Value) < 1 { 4161 invalidParams.Add(request.NewErrParamMinLen("Value", 1)) 4162 } 4163 4164 if invalidParams.Len() > 0 { 4165 return invalidParams 4166 } 4167 return nil 4168 } 4169 4170 // SetKey sets the Key field's value. 4171 func (s *Tag) SetKey(v string) *Tag { 4172 s.Key = &v 4173 return s 4174 } 4175 4176 // SetValue sets the Value field's value. 4177 func (s *Tag) SetValue(v string) *Tag { 4178 s.Value = &v 4179 return s 4180 } 4181 4182 // The client exceeded its request rate limit. 4183 type ThrottledClientException struct { 4184 _ struct{} `type:"structure"` 4185 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4186 4187 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 4188 4189 Message_ *string `locationName:"Message" type:"string"` 4190 } 4191 4192 // String returns the string representation. 4193 // 4194 // API parameter values that are decorated as "sensitive" in the API will not 4195 // be included in the string output. The member name will be present, but the 4196 // value will be replaced with "sensitive". 4197 func (s ThrottledClientException) String() string { 4198 return awsutil.Prettify(s) 4199 } 4200 4201 // GoString returns the string representation. 4202 // 4203 // API parameter values that are decorated as "sensitive" in the API will not 4204 // be included in the string output. The member name will be present, but the 4205 // value will be replaced with "sensitive". 4206 func (s ThrottledClientException) GoString() string { 4207 return s.String() 4208 } 4209 4210 func newErrorThrottledClientException(v protocol.ResponseMetadata) error { 4211 return &ThrottledClientException{ 4212 RespMetadata: v, 4213 } 4214 } 4215 4216 // Code returns the exception type name. 4217 func (s *ThrottledClientException) Code() string { 4218 return "ThrottledClientException" 4219 } 4220 4221 // Message returns the exception's message. 4222 func (s *ThrottledClientException) Message() string { 4223 if s.Message_ != nil { 4224 return *s.Message_ 4225 } 4226 return "" 4227 } 4228 4229 // OrigErr always returns nil, satisfies awserr.Error interface. 4230 func (s *ThrottledClientException) OrigErr() error { 4231 return nil 4232 } 4233 4234 func (s *ThrottledClientException) Error() string { 4235 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 4236 } 4237 4238 // Status code returns the HTTP status code for the request's response error. 4239 func (s *ThrottledClientException) StatusCode() int { 4240 return s.RespMetadata.StatusCode 4241 } 4242 4243 // RequestID returns the service's response RequestID for request. 4244 func (s *ThrottledClientException) RequestID() string { 4245 return s.RespMetadata.RequestID 4246 } 4247 4248 // The client is not currently authorized to make the request. 4249 type UnauthorizedClientException struct { 4250 _ struct{} `type:"structure"` 4251 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 4252 4253 Code_ *string `locationName:"Code" type:"string" enum:"ErrorCode"` 4254 4255 Message_ *string `locationName:"Message" type:"string"` 4256 } 4257 4258 // String returns the string representation. 4259 // 4260 // API parameter values that are decorated as "sensitive" in the API will not 4261 // be included in the string output. The member name will be present, but the 4262 // value will be replaced with "sensitive". 4263 func (s UnauthorizedClientException) String() string { 4264 return awsutil.Prettify(s) 4265 } 4266 4267 // GoString returns the string representation. 4268 // 4269 // API parameter values that are decorated as "sensitive" in the API will not 4270 // be included in the string output. The member name will be present, but the 4271 // value will be replaced with "sensitive". 4272 func (s UnauthorizedClientException) GoString() string { 4273 return s.String() 4274 } 4275 4276 func newErrorUnauthorizedClientException(v protocol.ResponseMetadata) error { 4277 return &UnauthorizedClientException{ 4278 RespMetadata: v, 4279 } 4280 } 4281 4282 // Code returns the exception type name. 4283 func (s *UnauthorizedClientException) Code() string { 4284 return "UnauthorizedClientException" 4285 } 4286 4287 // Message returns the exception's message. 4288 func (s *UnauthorizedClientException) Message() string { 4289 if s.Message_ != nil { 4290 return *s.Message_ 4291 } 4292 return "" 4293 } 4294 4295 // OrigErr always returns nil, satisfies awserr.Error interface. 4296 func (s *UnauthorizedClientException) OrigErr() error { 4297 return nil 4298 } 4299 4300 func (s *UnauthorizedClientException) Error() string { 4301 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 4302 } 4303 4304 // Status code returns the HTTP status code for the request's response error. 4305 func (s *UnauthorizedClientException) StatusCode() int { 4306 return s.RespMetadata.StatusCode 4307 } 4308 4309 // RequestID returns the service's response RequestID for request. 4310 func (s *UnauthorizedClientException) RequestID() string { 4311 return s.RespMetadata.RequestID 4312 } 4313 4314 type UpdateAppInstanceInput struct { 4315 _ struct{} `type:"structure"` 4316 4317 // The ARN of the AppInstance. 4318 // 4319 // AppInstanceArn is a required field 4320 AppInstanceArn *string `location:"uri" locationName:"appInstanceArn" min:"5" type:"string" required:"true"` 4321 4322 // The metadata that you want to change. 4323 // 4324 // Metadata is a sensitive parameter and its value will be 4325 // replaced with "sensitive" in string returned by UpdateAppInstanceInput's 4326 // String and GoString methods. 4327 // 4328 // Metadata is a required field 4329 Metadata *string `type:"string" required:"true" sensitive:"true"` 4330 4331 // The name that you want to change. 4332 // 4333 // Name is a sensitive parameter and its value will be 4334 // replaced with "sensitive" in string returned by UpdateAppInstanceInput's 4335 // String and GoString methods. 4336 // 4337 // Name is a required field 4338 Name *string `min:"1" type:"string" required:"true" sensitive:"true"` 4339 } 4340 4341 // String returns the string representation. 4342 // 4343 // API parameter values that are decorated as "sensitive" in the API will not 4344 // be included in the string output. The member name will be present, but the 4345 // value will be replaced with "sensitive". 4346 func (s UpdateAppInstanceInput) String() string { 4347 return awsutil.Prettify(s) 4348 } 4349 4350 // GoString returns the string representation. 4351 // 4352 // API parameter values that are decorated as "sensitive" in the API will not 4353 // be included in the string output. The member name will be present, but the 4354 // value will be replaced with "sensitive". 4355 func (s UpdateAppInstanceInput) GoString() string { 4356 return s.String() 4357 } 4358 4359 // Validate inspects the fields of the type to determine if they are valid. 4360 func (s *UpdateAppInstanceInput) Validate() error { 4361 invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceInput"} 4362 if s.AppInstanceArn == nil { 4363 invalidParams.Add(request.NewErrParamRequired("AppInstanceArn")) 4364 } 4365 if s.AppInstanceArn != nil && len(*s.AppInstanceArn) < 5 { 4366 invalidParams.Add(request.NewErrParamMinLen("AppInstanceArn", 5)) 4367 } 4368 if s.Metadata == nil { 4369 invalidParams.Add(request.NewErrParamRequired("Metadata")) 4370 } 4371 if s.Name == nil { 4372 invalidParams.Add(request.NewErrParamRequired("Name")) 4373 } 4374 if s.Name != nil && len(*s.Name) < 1 { 4375 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 4376 } 4377 4378 if invalidParams.Len() > 0 { 4379 return invalidParams 4380 } 4381 return nil 4382 } 4383 4384 // SetAppInstanceArn sets the AppInstanceArn field's value. 4385 func (s *UpdateAppInstanceInput) SetAppInstanceArn(v string) *UpdateAppInstanceInput { 4386 s.AppInstanceArn = &v 4387 return s 4388 } 4389 4390 // SetMetadata sets the Metadata field's value. 4391 func (s *UpdateAppInstanceInput) SetMetadata(v string) *UpdateAppInstanceInput { 4392 s.Metadata = &v 4393 return s 4394 } 4395 4396 // SetName sets the Name field's value. 4397 func (s *UpdateAppInstanceInput) SetName(v string) *UpdateAppInstanceInput { 4398 s.Name = &v 4399 return s 4400 } 4401 4402 type UpdateAppInstanceOutput struct { 4403 _ struct{} `type:"structure"` 4404 4405 // The ARN of the AppInstance. 4406 AppInstanceArn *string `min:"5" type:"string"` 4407 } 4408 4409 // String returns the string representation. 4410 // 4411 // API parameter values that are decorated as "sensitive" in the API will not 4412 // be included in the string output. The member name will be present, but the 4413 // value will be replaced with "sensitive". 4414 func (s UpdateAppInstanceOutput) String() string { 4415 return awsutil.Prettify(s) 4416 } 4417 4418 // GoString returns the string representation. 4419 // 4420 // API parameter values that are decorated as "sensitive" in the API will not 4421 // be included in the string output. The member name will be present, but the 4422 // value will be replaced with "sensitive". 4423 func (s UpdateAppInstanceOutput) GoString() string { 4424 return s.String() 4425 } 4426 4427 // SetAppInstanceArn sets the AppInstanceArn field's value. 4428 func (s *UpdateAppInstanceOutput) SetAppInstanceArn(v string) *UpdateAppInstanceOutput { 4429 s.AppInstanceArn = &v 4430 return s 4431 } 4432 4433 type UpdateAppInstanceUserInput struct { 4434 _ struct{} `type:"structure"` 4435 4436 // The ARN of the AppInstanceUser. 4437 // 4438 // AppInstanceUserArn is a required field 4439 AppInstanceUserArn *string `location:"uri" locationName:"appInstanceUserArn" min:"5" type:"string" required:"true"` 4440 4441 // The metadata of the AppInstanceUser. 4442 // 4443 // Metadata is a sensitive parameter and its value will be 4444 // replaced with "sensitive" in string returned by UpdateAppInstanceUserInput's 4445 // String and GoString methods. 4446 // 4447 // Metadata is a required field 4448 Metadata *string `type:"string" required:"true" sensitive:"true"` 4449 4450 // The name of the AppInstanceUser. 4451 // 4452 // Name is a sensitive parameter and its value will be 4453 // replaced with "sensitive" in string returned by UpdateAppInstanceUserInput's 4454 // String and GoString methods. 4455 // 4456 // Name is a required field 4457 Name *string `min:"1" type:"string" required:"true" sensitive:"true"` 4458 } 4459 4460 // String returns the string representation. 4461 // 4462 // API parameter values that are decorated as "sensitive" in the API will not 4463 // be included in the string output. The member name will be present, but the 4464 // value will be replaced with "sensitive". 4465 func (s UpdateAppInstanceUserInput) String() string { 4466 return awsutil.Prettify(s) 4467 } 4468 4469 // GoString returns the string representation. 4470 // 4471 // API parameter values that are decorated as "sensitive" in the API will not 4472 // be included in the string output. The member name will be present, but the 4473 // value will be replaced with "sensitive". 4474 func (s UpdateAppInstanceUserInput) GoString() string { 4475 return s.String() 4476 } 4477 4478 // Validate inspects the fields of the type to determine if they are valid. 4479 func (s *UpdateAppInstanceUserInput) Validate() error { 4480 invalidParams := request.ErrInvalidParams{Context: "UpdateAppInstanceUserInput"} 4481 if s.AppInstanceUserArn == nil { 4482 invalidParams.Add(request.NewErrParamRequired("AppInstanceUserArn")) 4483 } 4484 if s.AppInstanceUserArn != nil && len(*s.AppInstanceUserArn) < 5 { 4485 invalidParams.Add(request.NewErrParamMinLen("AppInstanceUserArn", 5)) 4486 } 4487 if s.Metadata == nil { 4488 invalidParams.Add(request.NewErrParamRequired("Metadata")) 4489 } 4490 if s.Name == nil { 4491 invalidParams.Add(request.NewErrParamRequired("Name")) 4492 } 4493 if s.Name != nil && len(*s.Name) < 1 { 4494 invalidParams.Add(request.NewErrParamMinLen("Name", 1)) 4495 } 4496 4497 if invalidParams.Len() > 0 { 4498 return invalidParams 4499 } 4500 return nil 4501 } 4502 4503 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 4504 func (s *UpdateAppInstanceUserInput) SetAppInstanceUserArn(v string) *UpdateAppInstanceUserInput { 4505 s.AppInstanceUserArn = &v 4506 return s 4507 } 4508 4509 // SetMetadata sets the Metadata field's value. 4510 func (s *UpdateAppInstanceUserInput) SetMetadata(v string) *UpdateAppInstanceUserInput { 4511 s.Metadata = &v 4512 return s 4513 } 4514 4515 // SetName sets the Name field's value. 4516 func (s *UpdateAppInstanceUserInput) SetName(v string) *UpdateAppInstanceUserInput { 4517 s.Name = &v 4518 return s 4519 } 4520 4521 type UpdateAppInstanceUserOutput struct { 4522 _ struct{} `type:"structure"` 4523 4524 // The ARN of the AppInstanceUser. 4525 AppInstanceUserArn *string `min:"5" type:"string"` 4526 } 4527 4528 // String returns the string representation. 4529 // 4530 // API parameter values that are decorated as "sensitive" in the API will not 4531 // be included in the string output. The member name will be present, but the 4532 // value will be replaced with "sensitive". 4533 func (s UpdateAppInstanceUserOutput) String() string { 4534 return awsutil.Prettify(s) 4535 } 4536 4537 // GoString returns the string representation. 4538 // 4539 // API parameter values that are decorated as "sensitive" in the API will not 4540 // be included in the string output. The member name will be present, but the 4541 // value will be replaced with "sensitive". 4542 func (s UpdateAppInstanceUserOutput) GoString() string { 4543 return s.String() 4544 } 4545 4546 // SetAppInstanceUserArn sets the AppInstanceUserArn field's value. 4547 func (s *UpdateAppInstanceUserOutput) SetAppInstanceUserArn(v string) *UpdateAppInstanceUserOutput { 4548 s.AppInstanceUserArn = &v 4549 return s 4550 } 4551 4552 const ( 4553 // ErrorCodeBadRequest is a ErrorCode enum value 4554 ErrorCodeBadRequest = "BadRequest" 4555 4556 // ErrorCodeConflict is a ErrorCode enum value 4557 ErrorCodeConflict = "Conflict" 4558 4559 // ErrorCodeForbidden is a ErrorCode enum value 4560 ErrorCodeForbidden = "Forbidden" 4561 4562 // ErrorCodeNotFound is a ErrorCode enum value 4563 ErrorCodeNotFound = "NotFound" 4564 4565 // ErrorCodePreconditionFailed is a ErrorCode enum value 4566 ErrorCodePreconditionFailed = "PreconditionFailed" 4567 4568 // ErrorCodeResourceLimitExceeded is a ErrorCode enum value 4569 ErrorCodeResourceLimitExceeded = "ResourceLimitExceeded" 4570 4571 // ErrorCodeServiceFailure is a ErrorCode enum value 4572 ErrorCodeServiceFailure = "ServiceFailure" 4573 4574 // ErrorCodeAccessDenied is a ErrorCode enum value 4575 ErrorCodeAccessDenied = "AccessDenied" 4576 4577 // ErrorCodeServiceUnavailable is a ErrorCode enum value 4578 ErrorCodeServiceUnavailable = "ServiceUnavailable" 4579 4580 // ErrorCodeThrottled is a ErrorCode enum value 4581 ErrorCodeThrottled = "Throttled" 4582 4583 // ErrorCodeThrottling is a ErrorCode enum value 4584 ErrorCodeThrottling = "Throttling" 4585 4586 // ErrorCodeUnauthorized is a ErrorCode enum value 4587 ErrorCodeUnauthorized = "Unauthorized" 4588 4589 // ErrorCodeUnprocessable is a ErrorCode enum value 4590 ErrorCodeUnprocessable = "Unprocessable" 4591 4592 // ErrorCodeVoiceConnectorGroupAssociationsExist is a ErrorCode enum value 4593 ErrorCodeVoiceConnectorGroupAssociationsExist = "VoiceConnectorGroupAssociationsExist" 4594 4595 // ErrorCodePhoneNumberAssociationsExist is a ErrorCode enum value 4596 ErrorCodePhoneNumberAssociationsExist = "PhoneNumberAssociationsExist" 4597 ) 4598 4599 // ErrorCode_Values returns all elements of the ErrorCode enum 4600 func ErrorCode_Values() []string { 4601 return []string{ 4602 ErrorCodeBadRequest, 4603 ErrorCodeConflict, 4604 ErrorCodeForbidden, 4605 ErrorCodeNotFound, 4606 ErrorCodePreconditionFailed, 4607 ErrorCodeResourceLimitExceeded, 4608 ErrorCodeServiceFailure, 4609 ErrorCodeAccessDenied, 4610 ErrorCodeServiceUnavailable, 4611 ErrorCodeThrottled, 4612 ErrorCodeThrottling, 4613 ErrorCodeUnauthorized, 4614 ErrorCodeUnprocessable, 4615 ErrorCodeVoiceConnectorGroupAssociationsExist, 4616 ErrorCodePhoneNumberAssociationsExist, 4617 } 4618 }