1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT. 2 3package identitystore 4 5import ( 6 "fmt" 7 8 "github.com/aws/aws-sdk-go/aws" 9 "github.com/aws/aws-sdk-go/aws/awsutil" 10 "github.com/aws/aws-sdk-go/aws/request" 11 "github.com/aws/aws-sdk-go/private/protocol" 12) 13 14const opDescribeGroup = "DescribeGroup" 15 16// DescribeGroupRequest generates a "aws/request.Request" representing the 17// client's request for the DescribeGroup operation. The "output" return 18// value will be populated with the request's response once the request completes 19// successfully. 20// 21// Use "Send" method on the returned Request to send the API call to the service. 22// the "output" return value is not valid until after Send returns without error. 23// 24// See DescribeGroup for more information on using the DescribeGroup 25// API call, and error handling. 26// 27// This method is useful when you want to inject custom logic or configuration 28// into the SDK's request lifecycle. Such as custom headers, or retry logic. 29// 30// 31// // Example sending a request using the DescribeGroupRequest method. 32// req, resp := client.DescribeGroupRequest(params) 33// 34// err := req.Send() 35// if err == nil { // resp is now filled 36// fmt.Println(resp) 37// } 38// 39// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroup 40func (c *IdentityStore) DescribeGroupRequest(input *DescribeGroupInput) (req *request.Request, output *DescribeGroupOutput) { 41 op := &request.Operation{ 42 Name: opDescribeGroup, 43 HTTPMethod: "POST", 44 HTTPPath: "/", 45 } 46 47 if input == nil { 48 input = &DescribeGroupInput{} 49 } 50 51 output = &DescribeGroupOutput{} 52 req = c.newRequest(op, input, output) 53 return 54} 55 56// DescribeGroup API operation for AWS SSO Identity Store. 57// 58// Retrieves the group metadata and attributes from GroupId in an identity store. 59// 60// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 61// with awserr.Error's Code and Message methods to get detailed information about 62// the error. 63// 64// See the AWS API reference guide for AWS SSO Identity Store's 65// API operation DescribeGroup for usage and error information. 66// 67// Returned Error Types: 68// * ResourceNotFoundException 69// Indicates that a requested resource is not found. 70// 71// * ValidationException 72// The request failed because it contains a syntax error. 73// 74// * AccessDeniedException 75// You do not have sufficient access to perform this action. 76// 77// * ThrottlingException 78// Indicates that the principal has crossed the throttling limits of the API 79// operations. 80// 81// * InternalServerException 82// The request processing has failed because of an unknown error, exception 83// or failure with an internal server. 84// 85// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeGroup 86func (c *IdentityStore) DescribeGroup(input *DescribeGroupInput) (*DescribeGroupOutput, error) { 87 req, out := c.DescribeGroupRequest(input) 88 return out, req.Send() 89} 90 91// DescribeGroupWithContext is the same as DescribeGroup with the addition of 92// the ability to pass a context and additional request options. 93// 94// See DescribeGroup for details on how to use this API operation. 95// 96// The context must be non-nil and will be used for request cancellation. If 97// the context is nil a panic will occur. In the future the SDK may create 98// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 99// for more information on using Contexts. 100func (c *IdentityStore) DescribeGroupWithContext(ctx aws.Context, input *DescribeGroupInput, opts ...request.Option) (*DescribeGroupOutput, error) { 101 req, out := c.DescribeGroupRequest(input) 102 req.SetContext(ctx) 103 req.ApplyOptions(opts...) 104 return out, req.Send() 105} 106 107const opDescribeUser = "DescribeUser" 108 109// DescribeUserRequest generates a "aws/request.Request" representing the 110// client's request for the DescribeUser operation. The "output" return 111// value will be populated with the request's response once the request completes 112// successfully. 113// 114// Use "Send" method on the returned Request to send the API call to the service. 115// the "output" return value is not valid until after Send returns without error. 116// 117// See DescribeUser for more information on using the DescribeUser 118// API call, and error handling. 119// 120// This method is useful when you want to inject custom logic or configuration 121// into the SDK's request lifecycle. Such as custom headers, or retry logic. 122// 123// 124// // Example sending a request using the DescribeUserRequest method. 125// req, resp := client.DescribeUserRequest(params) 126// 127// err := req.Send() 128// if err == nil { // resp is now filled 129// fmt.Println(resp) 130// } 131// 132// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeUser 133func (c *IdentityStore) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserOutput) { 134 op := &request.Operation{ 135 Name: opDescribeUser, 136 HTTPMethod: "POST", 137 HTTPPath: "/", 138 } 139 140 if input == nil { 141 input = &DescribeUserInput{} 142 } 143 144 output = &DescribeUserOutput{} 145 req = c.newRequest(op, input, output) 146 return 147} 148 149// DescribeUser API operation for AWS SSO Identity Store. 150// 151// Retrieves the user metadata and attributes from UserId in an identity store. 152// 153// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 154// with awserr.Error's Code and Message methods to get detailed information about 155// the error. 156// 157// See the AWS API reference guide for AWS SSO Identity Store's 158// API operation DescribeUser for usage and error information. 159// 160// Returned Error Types: 161// * ResourceNotFoundException 162// Indicates that a requested resource is not found. 163// 164// * ValidationException 165// The request failed because it contains a syntax error. 166// 167// * AccessDeniedException 168// You do not have sufficient access to perform this action. 169// 170// * ThrottlingException 171// Indicates that the principal has crossed the throttling limits of the API 172// operations. 173// 174// * InternalServerException 175// The request processing has failed because of an unknown error, exception 176// or failure with an internal server. 177// 178// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/DescribeUser 179func (c *IdentityStore) DescribeUser(input *DescribeUserInput) (*DescribeUserOutput, error) { 180 req, out := c.DescribeUserRequest(input) 181 return out, req.Send() 182} 183 184// DescribeUserWithContext is the same as DescribeUser with the addition of 185// the ability to pass a context and additional request options. 186// 187// See DescribeUser for details on how to use this API operation. 188// 189// The context must be non-nil and will be used for request cancellation. If 190// the context is nil a panic will occur. In the future the SDK may create 191// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 192// for more information on using Contexts. 193func (c *IdentityStore) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserOutput, error) { 194 req, out := c.DescribeUserRequest(input) 195 req.SetContext(ctx) 196 req.ApplyOptions(opts...) 197 return out, req.Send() 198} 199 200const opListGroups = "ListGroups" 201 202// ListGroupsRequest generates a "aws/request.Request" representing the 203// client's request for the ListGroups operation. The "output" return 204// value will be populated with the request's response once the request completes 205// successfully. 206// 207// Use "Send" method on the returned Request to send the API call to the service. 208// the "output" return value is not valid until after Send returns without error. 209// 210// See ListGroups for more information on using the ListGroups 211// API call, and error handling. 212// 213// This method is useful when you want to inject custom logic or configuration 214// into the SDK's request lifecycle. Such as custom headers, or retry logic. 215// 216// 217// // Example sending a request using the ListGroupsRequest method. 218// req, resp := client.ListGroupsRequest(params) 219// 220// err := req.Send() 221// if err == nil { // resp is now filled 222// fmt.Println(resp) 223// } 224// 225// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroups 226func (c *IdentityStore) ListGroupsRequest(input *ListGroupsInput) (req *request.Request, output *ListGroupsOutput) { 227 op := &request.Operation{ 228 Name: opListGroups, 229 HTTPMethod: "POST", 230 HTTPPath: "/", 231 Paginator: &request.Paginator{ 232 InputTokens: []string{"NextToken"}, 233 OutputTokens: []string{"NextToken"}, 234 LimitToken: "MaxResults", 235 TruncationToken: "", 236 }, 237 } 238 239 if input == nil { 240 input = &ListGroupsInput{} 241 } 242 243 output = &ListGroupsOutput{} 244 req = c.newRequest(op, input, output) 245 return 246} 247 248// ListGroups API operation for AWS SSO Identity Store. 249// 250// Lists the attribute name and value of the group that you specified in the 251// search. We only support DisplayName as a valid filter attribute path currently, 252// and filter is required. This API returns minimum attributes, including GroupId 253// and group DisplayName in the response. 254// 255// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 256// with awserr.Error's Code and Message methods to get detailed information about 257// the error. 258// 259// See the AWS API reference guide for AWS SSO Identity Store's 260// API operation ListGroups for usage and error information. 261// 262// Returned Error Types: 263// * ValidationException 264// The request failed because it contains a syntax error. 265// 266// * AccessDeniedException 267// You do not have sufficient access to perform this action. 268// 269// * ResourceNotFoundException 270// Indicates that a requested resource is not found. 271// 272// * ThrottlingException 273// Indicates that the principal has crossed the throttling limits of the API 274// operations. 275// 276// * InternalServerException 277// The request processing has failed because of an unknown error, exception 278// or failure with an internal server. 279// 280// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListGroups 281func (c *IdentityStore) ListGroups(input *ListGroupsInput) (*ListGroupsOutput, error) { 282 req, out := c.ListGroupsRequest(input) 283 return out, req.Send() 284} 285 286// ListGroupsWithContext is the same as ListGroups with the addition of 287// the ability to pass a context and additional request options. 288// 289// See ListGroups for details on how to use this API operation. 290// 291// The context must be non-nil and will be used for request cancellation. If 292// the context is nil a panic will occur. In the future the SDK may create 293// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 294// for more information on using Contexts. 295func (c *IdentityStore) ListGroupsWithContext(ctx aws.Context, input *ListGroupsInput, opts ...request.Option) (*ListGroupsOutput, error) { 296 req, out := c.ListGroupsRequest(input) 297 req.SetContext(ctx) 298 req.ApplyOptions(opts...) 299 return out, req.Send() 300} 301 302// ListGroupsPages iterates over the pages of a ListGroups operation, 303// calling the "fn" function with the response data for each page. To stop 304// iterating, return false from the fn function. 305// 306// See ListGroups method for more information on how to use this operation. 307// 308// Note: This operation can generate multiple requests to a service. 309// 310// // Example iterating over at most 3 pages of a ListGroups operation. 311// pageNum := 0 312// err := client.ListGroupsPages(params, 313// func(page *identitystore.ListGroupsOutput, lastPage bool) bool { 314// pageNum++ 315// fmt.Println(page) 316// return pageNum <= 3 317// }) 318// 319func (c *IdentityStore) ListGroupsPages(input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool) error { 320 return c.ListGroupsPagesWithContext(aws.BackgroundContext(), input, fn) 321} 322 323// ListGroupsPagesWithContext same as ListGroupsPages except 324// it takes a Context and allows setting request options on the pages. 325// 326// The context must be non-nil and will be used for request cancellation. If 327// the context is nil a panic will occur. In the future the SDK may create 328// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 329// for more information on using Contexts. 330func (c *IdentityStore) ListGroupsPagesWithContext(ctx aws.Context, input *ListGroupsInput, fn func(*ListGroupsOutput, bool) bool, opts ...request.Option) error { 331 p := request.Pagination{ 332 NewRequest: func() (*request.Request, error) { 333 var inCpy *ListGroupsInput 334 if input != nil { 335 tmp := *input 336 inCpy = &tmp 337 } 338 req, _ := c.ListGroupsRequest(inCpy) 339 req.SetContext(ctx) 340 req.ApplyOptions(opts...) 341 return req, nil 342 }, 343 } 344 345 for p.Next() { 346 if !fn(p.Page().(*ListGroupsOutput), !p.HasNextPage()) { 347 break 348 } 349 } 350 351 return p.Err() 352} 353 354const opListUsers = "ListUsers" 355 356// ListUsersRequest generates a "aws/request.Request" representing the 357// client's request for the ListUsers operation. The "output" return 358// value will be populated with the request's response once the request completes 359// successfully. 360// 361// Use "Send" method on the returned Request to send the API call to the service. 362// the "output" return value is not valid until after Send returns without error. 363// 364// See ListUsers for more information on using the ListUsers 365// API call, and error handling. 366// 367// This method is useful when you want to inject custom logic or configuration 368// into the SDK's request lifecycle. Such as custom headers, or retry logic. 369// 370// 371// // Example sending a request using the ListUsersRequest method. 372// req, resp := client.ListUsersRequest(params) 373// 374// err := req.Send() 375// if err == nil { // resp is now filled 376// fmt.Println(resp) 377// } 378// 379// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListUsers 380func (c *IdentityStore) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersOutput) { 381 op := &request.Operation{ 382 Name: opListUsers, 383 HTTPMethod: "POST", 384 HTTPPath: "/", 385 Paginator: &request.Paginator{ 386 InputTokens: []string{"NextToken"}, 387 OutputTokens: []string{"NextToken"}, 388 LimitToken: "MaxResults", 389 TruncationToken: "", 390 }, 391 } 392 393 if input == nil { 394 input = &ListUsersInput{} 395 } 396 397 output = &ListUsersOutput{} 398 req = c.newRequest(op, input, output) 399 return 400} 401 402// ListUsers API operation for AWS SSO Identity Store. 403// 404// Lists the attribute name and value of the user that you specified in the 405// search. We only support UserName as a valid filter attribute path currently, 406// and filter is required. This API returns minimum attributes, including UserId 407// and UserName in the response. 408// 409// Returns awserr.Error for service API and SDK errors. Use runtime type assertions 410// with awserr.Error's Code and Message methods to get detailed information about 411// the error. 412// 413// See the AWS API reference guide for AWS SSO Identity Store's 414// API operation ListUsers for usage and error information. 415// 416// Returned Error Types: 417// * ValidationException 418// The request failed because it contains a syntax error. 419// 420// * AccessDeniedException 421// You do not have sufficient access to perform this action. 422// 423// * ResourceNotFoundException 424// Indicates that a requested resource is not found. 425// 426// * ThrottlingException 427// Indicates that the principal has crossed the throttling limits of the API 428// operations. 429// 430// * InternalServerException 431// The request processing has failed because of an unknown error, exception 432// or failure with an internal server. 433// 434// See also, https://docs.aws.amazon.com/goto/WebAPI/identitystore-2020-06-15/ListUsers 435func (c *IdentityStore) ListUsers(input *ListUsersInput) (*ListUsersOutput, error) { 436 req, out := c.ListUsersRequest(input) 437 return out, req.Send() 438} 439 440// ListUsersWithContext is the same as ListUsers with the addition of 441// the ability to pass a context and additional request options. 442// 443// See ListUsers for details on how to use this API operation. 444// 445// The context must be non-nil and will be used for request cancellation. If 446// the context is nil a panic will occur. In the future the SDK may create 447// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 448// for more information on using Contexts. 449func (c *IdentityStore) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersOutput, error) { 450 req, out := c.ListUsersRequest(input) 451 req.SetContext(ctx) 452 req.ApplyOptions(opts...) 453 return out, req.Send() 454} 455 456// ListUsersPages iterates over the pages of a ListUsers operation, 457// calling the "fn" function with the response data for each page. To stop 458// iterating, return false from the fn function. 459// 460// See ListUsers method for more information on how to use this operation. 461// 462// Note: This operation can generate multiple requests to a service. 463// 464// // Example iterating over at most 3 pages of a ListUsers operation. 465// pageNum := 0 466// err := client.ListUsersPages(params, 467// func(page *identitystore.ListUsersOutput, lastPage bool) bool { 468// pageNum++ 469// fmt.Println(page) 470// return pageNum <= 3 471// }) 472// 473func (c *IdentityStore) ListUsersPages(input *ListUsersInput, fn func(*ListUsersOutput, bool) bool) error { 474 return c.ListUsersPagesWithContext(aws.BackgroundContext(), input, fn) 475} 476 477// ListUsersPagesWithContext same as ListUsersPages except 478// it takes a Context and allows setting request options on the pages. 479// 480// The context must be non-nil and will be used for request cancellation. If 481// the context is nil a panic will occur. In the future the SDK may create 482// sub-contexts for http.Requests. See https://golang.org/pkg/context/ 483// for more information on using Contexts. 484func (c *IdentityStore) ListUsersPagesWithContext(ctx aws.Context, input *ListUsersInput, fn func(*ListUsersOutput, bool) bool, opts ...request.Option) error { 485 p := request.Pagination{ 486 NewRequest: func() (*request.Request, error) { 487 var inCpy *ListUsersInput 488 if input != nil { 489 tmp := *input 490 inCpy = &tmp 491 } 492 req, _ := c.ListUsersRequest(inCpy) 493 req.SetContext(ctx) 494 req.ApplyOptions(opts...) 495 return req, nil 496 }, 497 } 498 499 for p.Next() { 500 if !fn(p.Page().(*ListUsersOutput), !p.HasNextPage()) { 501 break 502 } 503 } 504 505 return p.Err() 506} 507 508// You do not have sufficient access to perform this action. 509type AccessDeniedException struct { 510 _ struct{} `type:"structure"` 511 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 512 513 Message_ *string `locationName:"Message" min:"1" type:"string"` 514 515 // The identifier for each request. This value is a globally unique ID that 516 // is generated by the Identity Store service for each sent request, and is 517 // then returned inside the exception if the request fails. 518 RequestId *string `type:"string"` 519} 520 521// String returns the string representation 522func (s AccessDeniedException) String() string { 523 return awsutil.Prettify(s) 524} 525 526// GoString returns the string representation 527func (s AccessDeniedException) GoString() string { 528 return s.String() 529} 530 531func newErrorAccessDeniedException(v protocol.ResponseMetadata) error { 532 return &AccessDeniedException{ 533 RespMetadata: v, 534 } 535} 536 537// Code returns the exception type name. 538func (s *AccessDeniedException) Code() string { 539 return "AccessDeniedException" 540} 541 542// Message returns the exception's message. 543func (s *AccessDeniedException) Message() string { 544 if s.Message_ != nil { 545 return *s.Message_ 546 } 547 return "" 548} 549 550// OrigErr always returns nil, satisfies awserr.Error interface. 551func (s *AccessDeniedException) OrigErr() error { 552 return nil 553} 554 555func (s *AccessDeniedException) Error() string { 556 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 557} 558 559// Status code returns the HTTP status code for the request's response error. 560func (s *AccessDeniedException) StatusCode() int { 561 return s.RespMetadata.StatusCode 562} 563 564// RequestID returns the service's response RequestID for request. 565func (s *AccessDeniedException) RequestID() string { 566 return s.RespMetadata.RequestID 567} 568 569type DescribeGroupInput struct { 570 _ struct{} `type:"structure"` 571 572 // The identifier for a group in the identity store. 573 // 574 // GroupId is a required field 575 GroupId *string `min:"1" type:"string" required:"true"` 576 577 // The globally unique identifier for the identity store, such as d-1234567890. 578 // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated 579 // string which contains number and lower case letters. This value is generated 580 // at the time that a new identity store is created. 581 // 582 // IdentityStoreId is a required field 583 IdentityStoreId *string `min:"1" type:"string" required:"true"` 584} 585 586// String returns the string representation 587func (s DescribeGroupInput) String() string { 588 return awsutil.Prettify(s) 589} 590 591// GoString returns the string representation 592func (s DescribeGroupInput) GoString() string { 593 return s.String() 594} 595 596// Validate inspects the fields of the type to determine if they are valid. 597func (s *DescribeGroupInput) Validate() error { 598 invalidParams := request.ErrInvalidParams{Context: "DescribeGroupInput"} 599 if s.GroupId == nil { 600 invalidParams.Add(request.NewErrParamRequired("GroupId")) 601 } 602 if s.GroupId != nil && len(*s.GroupId) < 1 { 603 invalidParams.Add(request.NewErrParamMinLen("GroupId", 1)) 604 } 605 if s.IdentityStoreId == nil { 606 invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) 607 } 608 if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { 609 invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) 610 } 611 612 if invalidParams.Len() > 0 { 613 return invalidParams 614 } 615 return nil 616} 617 618// SetGroupId sets the GroupId field's value. 619func (s *DescribeGroupInput) SetGroupId(v string) *DescribeGroupInput { 620 s.GroupId = &v 621 return s 622} 623 624// SetIdentityStoreId sets the IdentityStoreId field's value. 625func (s *DescribeGroupInput) SetIdentityStoreId(v string) *DescribeGroupInput { 626 s.IdentityStoreId = &v 627 return s 628} 629 630type DescribeGroupOutput struct { 631 _ struct{} `type:"structure"` 632 633 // Contains the group’s display name value. The length limit is 1024 characters. 634 // This value can consist of letters, accented characters, symbols, numbers, 635 // punctuation, tab, new line, carriage return, space and non breaking space 636 // in this attribute. The characters “<>;:%” are excluded. This value is 637 // specified at the time the group is created and stored as an attribute of 638 // the group object in the identity store. 639 // 640 // DisplayName is a required field 641 DisplayName *string `min:"1" type:"string" required:"true"` 642 643 // The identifier for a group in the identity store. 644 // 645 // GroupId is a required field 646 GroupId *string `min:"1" type:"string" required:"true"` 647} 648 649// String returns the string representation 650func (s DescribeGroupOutput) String() string { 651 return awsutil.Prettify(s) 652} 653 654// GoString returns the string representation 655func (s DescribeGroupOutput) GoString() string { 656 return s.String() 657} 658 659// SetDisplayName sets the DisplayName field's value. 660func (s *DescribeGroupOutput) SetDisplayName(v string) *DescribeGroupOutput { 661 s.DisplayName = &v 662 return s 663} 664 665// SetGroupId sets the GroupId field's value. 666func (s *DescribeGroupOutput) SetGroupId(v string) *DescribeGroupOutput { 667 s.GroupId = &v 668 return s 669} 670 671type DescribeUserInput struct { 672 _ struct{} `type:"structure"` 673 674 // The globally unique identifier for the identity store, such as d-1234567890. 675 // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated 676 // string which contains number and lower case letters. This value is generated 677 // at the time that a new identity store is created. 678 // 679 // IdentityStoreId is a required field 680 IdentityStoreId *string `min:"1" type:"string" required:"true"` 681 682 // The identifier for a user in the identity store. 683 // 684 // UserId is a required field 685 UserId *string `min:"1" type:"string" required:"true"` 686} 687 688// String returns the string representation 689func (s DescribeUserInput) String() string { 690 return awsutil.Prettify(s) 691} 692 693// GoString returns the string representation 694func (s DescribeUserInput) GoString() string { 695 return s.String() 696} 697 698// Validate inspects the fields of the type to determine if they are valid. 699func (s *DescribeUserInput) Validate() error { 700 invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"} 701 if s.IdentityStoreId == nil { 702 invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) 703 } 704 if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { 705 invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) 706 } 707 if s.UserId == nil { 708 invalidParams.Add(request.NewErrParamRequired("UserId")) 709 } 710 if s.UserId != nil && len(*s.UserId) < 1 { 711 invalidParams.Add(request.NewErrParamMinLen("UserId", 1)) 712 } 713 714 if invalidParams.Len() > 0 { 715 return invalidParams 716 } 717 return nil 718} 719 720// SetIdentityStoreId sets the IdentityStoreId field's value. 721func (s *DescribeUserInput) SetIdentityStoreId(v string) *DescribeUserInput { 722 s.IdentityStoreId = &v 723 return s 724} 725 726// SetUserId sets the UserId field's value. 727func (s *DescribeUserInput) SetUserId(v string) *DescribeUserInput { 728 s.UserId = &v 729 return s 730} 731 732type DescribeUserOutput struct { 733 _ struct{} `type:"structure"` 734 735 // The identifier for a user in the identity store. 736 // 737 // UserId is a required field 738 UserId *string `min:"1" type:"string" required:"true"` 739 740 // Contains the user’s username value. The length limit is 128 characters. 741 // This value can consist of letters, accented characters, symbols, numbers 742 // and punctuation. The characters “<>;:%” are excluded. This value is specified 743 // at the time the user is created and stored as an attribute of the user object 744 // in the identity store. 745 // 746 // UserName is a required field 747 UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` 748} 749 750// String returns the string representation 751func (s DescribeUserOutput) String() string { 752 return awsutil.Prettify(s) 753} 754 755// GoString returns the string representation 756func (s DescribeUserOutput) GoString() string { 757 return s.String() 758} 759 760// SetUserId sets the UserId field's value. 761func (s *DescribeUserOutput) SetUserId(v string) *DescribeUserOutput { 762 s.UserId = &v 763 return s 764} 765 766// SetUserName sets the UserName field's value. 767func (s *DescribeUserOutput) SetUserName(v string) *DescribeUserOutput { 768 s.UserName = &v 769 return s 770} 771 772// A query filter used by ListUsers and ListGroup. This filter object provides 773// the attribute name and attribute value to search users or groups. 774type Filter struct { 775 _ struct{} `type:"structure"` 776 777 // The attribute path used to specify which attribute name to search. Length 778 // limit is 255 characters. For example, UserName is a valid attribute path 779 // for the ListUsers API, and DisplayName is a valid attribute path for the 780 // ListGroups API. 781 // 782 // AttributePath is a required field 783 AttributePath *string `min:"1" type:"string" required:"true"` 784 785 // Represents the data for an attribute. Each attribute value is described as 786 // a name-value pair. 787 // 788 // AttributeValue is a required field 789 AttributeValue *string `min:"1" type:"string" required:"true" sensitive:"true"` 790} 791 792// String returns the string representation 793func (s Filter) String() string { 794 return awsutil.Prettify(s) 795} 796 797// GoString returns the string representation 798func (s Filter) GoString() string { 799 return s.String() 800} 801 802// Validate inspects the fields of the type to determine if they are valid. 803func (s *Filter) Validate() error { 804 invalidParams := request.ErrInvalidParams{Context: "Filter"} 805 if s.AttributePath == nil { 806 invalidParams.Add(request.NewErrParamRequired("AttributePath")) 807 } 808 if s.AttributePath != nil && len(*s.AttributePath) < 1 { 809 invalidParams.Add(request.NewErrParamMinLen("AttributePath", 1)) 810 } 811 if s.AttributeValue == nil { 812 invalidParams.Add(request.NewErrParamRequired("AttributeValue")) 813 } 814 if s.AttributeValue != nil && len(*s.AttributeValue) < 1 { 815 invalidParams.Add(request.NewErrParamMinLen("AttributeValue", 1)) 816 } 817 818 if invalidParams.Len() > 0 { 819 return invalidParams 820 } 821 return nil 822} 823 824// SetAttributePath sets the AttributePath field's value. 825func (s *Filter) SetAttributePath(v string) *Filter { 826 s.AttributePath = &v 827 return s 828} 829 830// SetAttributeValue sets the AttributeValue field's value. 831func (s *Filter) SetAttributeValue(v string) *Filter { 832 s.AttributeValue = &v 833 return s 834} 835 836// A group object, which contains a specified group’s metadata and attributes. 837type Group struct { 838 _ struct{} `type:"structure"` 839 840 // Contains the group’s display name value. The length limit is 1024 characters. 841 // This value can consist of letters, accented characters, symbols, numbers, 842 // punctuation, tab, new line, carriage return, space and non breaking space 843 // in this attribute. The characters “<>;:%” are excluded. This value is 844 // specified at the time the group is created and stored as an attribute of 845 // the group object in the identity store. 846 // 847 // DisplayName is a required field 848 DisplayName *string `min:"1" type:"string" required:"true"` 849 850 // The identifier for a group in the identity store. 851 // 852 // GroupId is a required field 853 GroupId *string `min:"1" type:"string" required:"true"` 854} 855 856// String returns the string representation 857func (s Group) String() string { 858 return awsutil.Prettify(s) 859} 860 861// GoString returns the string representation 862func (s Group) GoString() string { 863 return s.String() 864} 865 866// SetDisplayName sets the DisplayName field's value. 867func (s *Group) SetDisplayName(v string) *Group { 868 s.DisplayName = &v 869 return s 870} 871 872// SetGroupId sets the GroupId field's value. 873func (s *Group) SetGroupId(v string) *Group { 874 s.GroupId = &v 875 return s 876} 877 878// The request processing has failed because of an unknown error, exception 879// or failure with an internal server. 880type InternalServerException struct { 881 _ struct{} `type:"structure"` 882 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 883 884 Message_ *string `locationName:"Message" min:"1" type:"string"` 885 886 // The identifier for each request. This value is a globally unique ID that 887 // is generated by the Identity Store service for each sent request, and is 888 // then returned inside the exception if the request fails. 889 RequestId *string `type:"string"` 890} 891 892// String returns the string representation 893func (s InternalServerException) String() string { 894 return awsutil.Prettify(s) 895} 896 897// GoString returns the string representation 898func (s InternalServerException) GoString() string { 899 return s.String() 900} 901 902func newErrorInternalServerException(v protocol.ResponseMetadata) error { 903 return &InternalServerException{ 904 RespMetadata: v, 905 } 906} 907 908// Code returns the exception type name. 909func (s *InternalServerException) Code() string { 910 return "InternalServerException" 911} 912 913// Message returns the exception's message. 914func (s *InternalServerException) Message() string { 915 if s.Message_ != nil { 916 return *s.Message_ 917 } 918 return "" 919} 920 921// OrigErr always returns nil, satisfies awserr.Error interface. 922func (s *InternalServerException) OrigErr() error { 923 return nil 924} 925 926func (s *InternalServerException) Error() string { 927 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 928} 929 930// Status code returns the HTTP status code for the request's response error. 931func (s *InternalServerException) StatusCode() int { 932 return s.RespMetadata.StatusCode 933} 934 935// RequestID returns the service's response RequestID for request. 936func (s *InternalServerException) RequestID() string { 937 return s.RespMetadata.RequestID 938} 939 940type ListGroupsInput struct { 941 _ struct{} `type:"structure"` 942 943 // A list of Filter objects, which is used in the ListUsers and ListGroups request. 944 Filters []*Filter `type:"list"` 945 946 // The globally unique identifier for the identity store, such as d-1234567890. 947 // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated 948 // string which contains number and lower case letters. This value is generated 949 // at the time that a new identity store is created. 950 // 951 // IdentityStoreId is a required field 952 IdentityStoreId *string `min:"1" type:"string" required:"true"` 953 954 // The maximum number of results to be returned per request, which is used in 955 // the ListUsers and ListGroups request to specify how many results to return 956 // in one page. The length limit is 50 characters. 957 MaxResults *int64 `min:"1" type:"integer"` 958 959 // The pagination token used for the ListUsers and ListGroups APIs. This value 960 // is generated by the identity store service and is returned in the API response 961 // if the total results are more than the size of one page, and when this token 962 // is used in the API request to search for the next page. 963 NextToken *string `min:"1" type:"string"` 964} 965 966// String returns the string representation 967func (s ListGroupsInput) String() string { 968 return awsutil.Prettify(s) 969} 970 971// GoString returns the string representation 972func (s ListGroupsInput) GoString() string { 973 return s.String() 974} 975 976// Validate inspects the fields of the type to determine if they are valid. 977func (s *ListGroupsInput) Validate() error { 978 invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"} 979 if s.IdentityStoreId == nil { 980 invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) 981 } 982 if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { 983 invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) 984 } 985 if s.MaxResults != nil && *s.MaxResults < 1 { 986 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 987 } 988 if s.NextToken != nil && len(*s.NextToken) < 1 { 989 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 990 } 991 if s.Filters != nil { 992 for i, v := range s.Filters { 993 if v == nil { 994 continue 995 } 996 if err := v.Validate(); err != nil { 997 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) 998 } 999 } 1000 } 1001 1002 if invalidParams.Len() > 0 { 1003 return invalidParams 1004 } 1005 return nil 1006} 1007 1008// SetFilters sets the Filters field's value. 1009func (s *ListGroupsInput) SetFilters(v []*Filter) *ListGroupsInput { 1010 s.Filters = v 1011 return s 1012} 1013 1014// SetIdentityStoreId sets the IdentityStoreId field's value. 1015func (s *ListGroupsInput) SetIdentityStoreId(v string) *ListGroupsInput { 1016 s.IdentityStoreId = &v 1017 return s 1018} 1019 1020// SetMaxResults sets the MaxResults field's value. 1021func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput { 1022 s.MaxResults = &v 1023 return s 1024} 1025 1026// SetNextToken sets the NextToken field's value. 1027func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput { 1028 s.NextToken = &v 1029 return s 1030} 1031 1032type ListGroupsOutput struct { 1033 _ struct{} `type:"structure"` 1034 1035 // A list of Group objects in the identity store. 1036 // 1037 // Groups is a required field 1038 Groups []*Group `type:"list" required:"true"` 1039 1040 // The pagination token used for the ListUsers and ListGroups APIs. This value 1041 // is generated by the identity store service and is returned in the API response 1042 // if the total results are more than the size of one page, and when this token 1043 // is used in the API request to search for the next page. 1044 NextToken *string `min:"1" type:"string"` 1045} 1046 1047// String returns the string representation 1048func (s ListGroupsOutput) String() string { 1049 return awsutil.Prettify(s) 1050} 1051 1052// GoString returns the string representation 1053func (s ListGroupsOutput) GoString() string { 1054 return s.String() 1055} 1056 1057// SetGroups sets the Groups field's value. 1058func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput { 1059 s.Groups = v 1060 return s 1061} 1062 1063// SetNextToken sets the NextToken field's value. 1064func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput { 1065 s.NextToken = &v 1066 return s 1067} 1068 1069type ListUsersInput struct { 1070 _ struct{} `type:"structure"` 1071 1072 // A list of Filter objects, which is used in the ListUsers and ListGroups request. 1073 Filters []*Filter `type:"list"` 1074 1075 // The globally unique identifier for the identity store, such as d-1234567890. 1076 // In this example, d- is a fixed prefix, and 1234567890 is a randomly generated 1077 // string which contains number and lower case letters. This value is generated 1078 // at the time that a new identity store is created. 1079 // 1080 // IdentityStoreId is a required field 1081 IdentityStoreId *string `min:"1" type:"string" required:"true"` 1082 1083 // The maximum number of results to be returned per request, which is used in 1084 // the ListUsers and ListGroups request to specify how many results to return 1085 // in one page. The length limit is 50 characters. 1086 MaxResults *int64 `min:"1" type:"integer"` 1087 1088 // The pagination token used for the ListUsers and ListGroups APIs. This value 1089 // is generated by the identity store service and is returned in the API response 1090 // if the total results are more than the size of one page, and when this token 1091 // is used in the API request to search for the next page. 1092 NextToken *string `min:"1" type:"string"` 1093} 1094 1095// String returns the string representation 1096func (s ListUsersInput) String() string { 1097 return awsutil.Prettify(s) 1098} 1099 1100// GoString returns the string representation 1101func (s ListUsersInput) GoString() string { 1102 return s.String() 1103} 1104 1105// Validate inspects the fields of the type to determine if they are valid. 1106func (s *ListUsersInput) Validate() error { 1107 invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"} 1108 if s.IdentityStoreId == nil { 1109 invalidParams.Add(request.NewErrParamRequired("IdentityStoreId")) 1110 } 1111 if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 { 1112 invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1)) 1113 } 1114 if s.MaxResults != nil && *s.MaxResults < 1 { 1115 invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1)) 1116 } 1117 if s.NextToken != nil && len(*s.NextToken) < 1 { 1118 invalidParams.Add(request.NewErrParamMinLen("NextToken", 1)) 1119 } 1120 if s.Filters != nil { 1121 for i, v := range s.Filters { 1122 if v == nil { 1123 continue 1124 } 1125 if err := v.Validate(); err != nil { 1126 invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams)) 1127 } 1128 } 1129 } 1130 1131 if invalidParams.Len() > 0 { 1132 return invalidParams 1133 } 1134 return nil 1135} 1136 1137// SetFilters sets the Filters field's value. 1138func (s *ListUsersInput) SetFilters(v []*Filter) *ListUsersInput { 1139 s.Filters = v 1140 return s 1141} 1142 1143// SetIdentityStoreId sets the IdentityStoreId field's value. 1144func (s *ListUsersInput) SetIdentityStoreId(v string) *ListUsersInput { 1145 s.IdentityStoreId = &v 1146 return s 1147} 1148 1149// SetMaxResults sets the MaxResults field's value. 1150func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput { 1151 s.MaxResults = &v 1152 return s 1153} 1154 1155// SetNextToken sets the NextToken field's value. 1156func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput { 1157 s.NextToken = &v 1158 return s 1159} 1160 1161type ListUsersOutput struct { 1162 _ struct{} `type:"structure"` 1163 1164 // The pagination token used for the ListUsers and ListGroups APIs. This value 1165 // is generated by the identity store service and is returned in the API response 1166 // if the total results are more than the size of one page, and when this token 1167 // is used in the API request to search for the next page. 1168 NextToken *string `min:"1" type:"string"` 1169 1170 // A list of User objects in the identity store. 1171 // 1172 // Users is a required field 1173 Users []*User `type:"list" required:"true"` 1174} 1175 1176// String returns the string representation 1177func (s ListUsersOutput) String() string { 1178 return awsutil.Prettify(s) 1179} 1180 1181// GoString returns the string representation 1182func (s ListUsersOutput) GoString() string { 1183 return s.String() 1184} 1185 1186// SetNextToken sets the NextToken field's value. 1187func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput { 1188 s.NextToken = &v 1189 return s 1190} 1191 1192// SetUsers sets the Users field's value. 1193func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput { 1194 s.Users = v 1195 return s 1196} 1197 1198// Indicates that a requested resource is not found. 1199type ResourceNotFoundException struct { 1200 _ struct{} `type:"structure"` 1201 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1202 1203 Message_ *string `locationName:"Message" min:"1" type:"string"` 1204 1205 // The identifier for each request. This value is a globally unique ID that 1206 // is generated by the Identity Store service for each sent request, and is 1207 // then returned inside the exception if the request fails. 1208 RequestId *string `type:"string"` 1209 1210 // The identifier for a resource in the identity store, which can be used as 1211 // UserId or GroupId. The format for ResourceId is either UUID or 1234567890-UUID, 1212 // where UUID is a randomly generated value for each resource when it is created 1213 // and 1234567890 represents the IdentityStoreId string value. In the case that 1214 // the identity store is migrated from a legacy SSO identity store, the ResourceId 1215 // for that identity store will be in the format of UUID. Otherwise, it will 1216 // be in the 1234567890-UUID format. 1217 ResourceId *string `min:"1" type:"string"` 1218 1219 // The type of resource in the Identity Store service, which is an enum object. 1220 // Valid values include USER, GROUP, and IDENTITY_STORE. 1221 ResourceType *string `type:"string" enum:"ResourceType"` 1222} 1223 1224// String returns the string representation 1225func (s ResourceNotFoundException) String() string { 1226 return awsutil.Prettify(s) 1227} 1228 1229// GoString returns the string representation 1230func (s ResourceNotFoundException) GoString() string { 1231 return s.String() 1232} 1233 1234func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error { 1235 return &ResourceNotFoundException{ 1236 RespMetadata: v, 1237 } 1238} 1239 1240// Code returns the exception type name. 1241func (s *ResourceNotFoundException) Code() string { 1242 return "ResourceNotFoundException" 1243} 1244 1245// Message returns the exception's message. 1246func (s *ResourceNotFoundException) Message() string { 1247 if s.Message_ != nil { 1248 return *s.Message_ 1249 } 1250 return "" 1251} 1252 1253// OrigErr always returns nil, satisfies awserr.Error interface. 1254func (s *ResourceNotFoundException) OrigErr() error { 1255 return nil 1256} 1257 1258func (s *ResourceNotFoundException) Error() string { 1259 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 1260} 1261 1262// Status code returns the HTTP status code for the request's response error. 1263func (s *ResourceNotFoundException) StatusCode() int { 1264 return s.RespMetadata.StatusCode 1265} 1266 1267// RequestID returns the service's response RequestID for request. 1268func (s *ResourceNotFoundException) RequestID() string { 1269 return s.RespMetadata.RequestID 1270} 1271 1272// Indicates that the principal has crossed the throttling limits of the API 1273// operations. 1274type ThrottlingException struct { 1275 _ struct{} `type:"structure"` 1276 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1277 1278 Message_ *string `locationName:"Message" min:"1" type:"string"` 1279 1280 // The identifier for each request. This value is a globally unique ID that 1281 // is generated by the Identity Store service for each sent request, and is 1282 // then returned inside the exception if the request fails. 1283 RequestId *string `type:"string"` 1284} 1285 1286// String returns the string representation 1287func (s ThrottlingException) String() string { 1288 return awsutil.Prettify(s) 1289} 1290 1291// GoString returns the string representation 1292func (s ThrottlingException) GoString() string { 1293 return s.String() 1294} 1295 1296func newErrorThrottlingException(v protocol.ResponseMetadata) error { 1297 return &ThrottlingException{ 1298 RespMetadata: v, 1299 } 1300} 1301 1302// Code returns the exception type name. 1303func (s *ThrottlingException) Code() string { 1304 return "ThrottlingException" 1305} 1306 1307// Message returns the exception's message. 1308func (s *ThrottlingException) Message() string { 1309 if s.Message_ != nil { 1310 return *s.Message_ 1311 } 1312 return "" 1313} 1314 1315// OrigErr always returns nil, satisfies awserr.Error interface. 1316func (s *ThrottlingException) OrigErr() error { 1317 return nil 1318} 1319 1320func (s *ThrottlingException) Error() string { 1321 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 1322} 1323 1324// Status code returns the HTTP status code for the request's response error. 1325func (s *ThrottlingException) StatusCode() int { 1326 return s.RespMetadata.StatusCode 1327} 1328 1329// RequestID returns the service's response RequestID for request. 1330func (s *ThrottlingException) RequestID() string { 1331 return s.RespMetadata.RequestID 1332} 1333 1334// A user object, which contains a specified user’s metadata and attributes. 1335type User struct { 1336 _ struct{} `type:"structure"` 1337 1338 // The identifier for a user in the identity store. 1339 // 1340 // UserId is a required field 1341 UserId *string `min:"1" type:"string" required:"true"` 1342 1343 // Contains the user’s username value. The length limit is 128 characters. 1344 // This value can consist of letters, accented characters, symbols, numbers 1345 // and punctuation. The characters “<>;:%” are excluded. This value is specified 1346 // at the time the user is created and stored as an attribute of the user object 1347 // in the identity store. 1348 // 1349 // UserName is a required field 1350 UserName *string `min:"1" type:"string" required:"true" sensitive:"true"` 1351} 1352 1353// String returns the string representation 1354func (s User) String() string { 1355 return awsutil.Prettify(s) 1356} 1357 1358// GoString returns the string representation 1359func (s User) GoString() string { 1360 return s.String() 1361} 1362 1363// SetUserId sets the UserId field's value. 1364func (s *User) SetUserId(v string) *User { 1365 s.UserId = &v 1366 return s 1367} 1368 1369// SetUserName sets the UserName field's value. 1370func (s *User) SetUserName(v string) *User { 1371 s.UserName = &v 1372 return s 1373} 1374 1375// The request failed because it contains a syntax error. 1376type ValidationException struct { 1377 _ struct{} `type:"structure"` 1378 RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"` 1379 1380 Message_ *string `locationName:"Message" min:"1" type:"string"` 1381 1382 // The identifier for each request. This value is a globally unique ID that 1383 // is generated by the Identity Store service for each sent request, and is 1384 // then returned inside the exception if the request fails. 1385 RequestId *string `type:"string"` 1386} 1387 1388// String returns the string representation 1389func (s ValidationException) String() string { 1390 return awsutil.Prettify(s) 1391} 1392 1393// GoString returns the string representation 1394func (s ValidationException) GoString() string { 1395 return s.String() 1396} 1397 1398func newErrorValidationException(v protocol.ResponseMetadata) error { 1399 return &ValidationException{ 1400 RespMetadata: v, 1401 } 1402} 1403 1404// Code returns the exception type name. 1405func (s *ValidationException) Code() string { 1406 return "ValidationException" 1407} 1408 1409// Message returns the exception's message. 1410func (s *ValidationException) Message() string { 1411 if s.Message_ != nil { 1412 return *s.Message_ 1413 } 1414 return "" 1415} 1416 1417// OrigErr always returns nil, satisfies awserr.Error interface. 1418func (s *ValidationException) OrigErr() error { 1419 return nil 1420} 1421 1422func (s *ValidationException) Error() string { 1423 return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String()) 1424} 1425 1426// Status code returns the HTTP status code for the request's response error. 1427func (s *ValidationException) StatusCode() int { 1428 return s.RespMetadata.StatusCode 1429} 1430 1431// RequestID returns the service's response RequestID for request. 1432func (s *ValidationException) RequestID() string { 1433 return s.RespMetadata.RequestID 1434} 1435 1436const ( 1437 // ResourceTypeGroup is a ResourceType enum value 1438 ResourceTypeGroup = "GROUP" 1439 1440 // ResourceTypeUser is a ResourceType enum value 1441 ResourceTypeUser = "USER" 1442 1443 // ResourceTypeIdentityStore is a ResourceType enum value 1444 ResourceTypeIdentityStore = "IDENTITY_STORE" 1445) 1446 1447// ResourceType_Values returns all elements of the ResourceType enum 1448func ResourceType_Values() []string { 1449 return []string{ 1450 ResourceTypeGroup, 1451 ResourceTypeUser, 1452 ResourceTypeIdentityStore, 1453 } 1454} 1455