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 that 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 1,024 characters.
634	// This value can consist of letters, accented characters, symbols, numbers,
635	// punctuation, tab, new line, carriage return, space, and nonbreaking space
636	// in this attribute. The characters <>;:% are excluded. This value is specified
637	// at the time that the group is created and stored as an attribute of the group
638	// 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 that 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 user name 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 that is used to specify which attribute name to search.
778	// Length limit is 255 characters. For example, UserName is a valid attribute
779	// path for the ListUsers API, and DisplayName is a valid attribute path for
780	// the 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 1,024 characters.
841	// This value can consist of letters, accented characters, symbols, numbers,
842	// punctuation, tab, new line, carriage return, space, and nonbreaking space
843	// in this attribute. The characters <>;:% are excluded. This value is specified
844	// at the time the group is created and stored as an attribute of the group
845	// 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 that 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. This parameter
955	// is used in the ListUsers and ListGroups request to specify how many results
956	// to return 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 API operations.
960	// This value is generated by the identity store service. It is returned in
961	// the API response if the total results are more than the size of one page.
962	// This token is also returned when it is used in the API request to search
963	// for the next page.
964	NextToken *string `min:"1" type:"string"`
965}
966
967// String returns the string representation
968func (s ListGroupsInput) String() string {
969	return awsutil.Prettify(s)
970}
971
972// GoString returns the string representation
973func (s ListGroupsInput) GoString() string {
974	return s.String()
975}
976
977// Validate inspects the fields of the type to determine if they are valid.
978func (s *ListGroupsInput) Validate() error {
979	invalidParams := request.ErrInvalidParams{Context: "ListGroupsInput"}
980	if s.IdentityStoreId == nil {
981		invalidParams.Add(request.NewErrParamRequired("IdentityStoreId"))
982	}
983	if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 {
984		invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1))
985	}
986	if s.MaxResults != nil && *s.MaxResults < 1 {
987		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
988	}
989	if s.NextToken != nil && len(*s.NextToken) < 1 {
990		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
991	}
992	if s.Filters != nil {
993		for i, v := range s.Filters {
994			if v == nil {
995				continue
996			}
997			if err := v.Validate(); err != nil {
998				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
999			}
1000		}
1001	}
1002
1003	if invalidParams.Len() > 0 {
1004		return invalidParams
1005	}
1006	return nil
1007}
1008
1009// SetFilters sets the Filters field's value.
1010func (s *ListGroupsInput) SetFilters(v []*Filter) *ListGroupsInput {
1011	s.Filters = v
1012	return s
1013}
1014
1015// SetIdentityStoreId sets the IdentityStoreId field's value.
1016func (s *ListGroupsInput) SetIdentityStoreId(v string) *ListGroupsInput {
1017	s.IdentityStoreId = &v
1018	return s
1019}
1020
1021// SetMaxResults sets the MaxResults field's value.
1022func (s *ListGroupsInput) SetMaxResults(v int64) *ListGroupsInput {
1023	s.MaxResults = &v
1024	return s
1025}
1026
1027// SetNextToken sets the NextToken field's value.
1028func (s *ListGroupsInput) SetNextToken(v string) *ListGroupsInput {
1029	s.NextToken = &v
1030	return s
1031}
1032
1033type ListGroupsOutput struct {
1034	_ struct{} `type:"structure"`
1035
1036	// A list of Group objects in the identity store.
1037	//
1038	// Groups is a required field
1039	Groups []*Group `type:"list" required:"true"`
1040
1041	// The pagination token used for the ListUsers and ListGroups API operations.
1042	// This value is generated by the identity store service. It is returned in
1043	// the API response if the total results are more than the size of one page.
1044	// This token is also returned when it1 is used in the API request to search
1045	// for the next page.
1046	NextToken *string `min:"1" type:"string"`
1047}
1048
1049// String returns the string representation
1050func (s ListGroupsOutput) String() string {
1051	return awsutil.Prettify(s)
1052}
1053
1054// GoString returns the string representation
1055func (s ListGroupsOutput) GoString() string {
1056	return s.String()
1057}
1058
1059// SetGroups sets the Groups field's value.
1060func (s *ListGroupsOutput) SetGroups(v []*Group) *ListGroupsOutput {
1061	s.Groups = v
1062	return s
1063}
1064
1065// SetNextToken sets the NextToken field's value.
1066func (s *ListGroupsOutput) SetNextToken(v string) *ListGroupsOutput {
1067	s.NextToken = &v
1068	return s
1069}
1070
1071type ListUsersInput struct {
1072	_ struct{} `type:"structure"`
1073
1074	// A list of Filter objects, which is used in the ListUsers and ListGroups request.
1075	Filters []*Filter `type:"list"`
1076
1077	// The globally unique identifier for the identity store, such as d-1234567890.
1078	// In this example, d- is a fixed prefix, and 1234567890 is a randomly generated
1079	// string that contains number and lower case letters. This value is generated
1080	// at the time that a new identity store is created.
1081	//
1082	// IdentityStoreId is a required field
1083	IdentityStoreId *string `min:"1" type:"string" required:"true"`
1084
1085	// The maximum number of results to be returned per request. This parameter
1086	// is used in the ListUsers and ListGroups request to specify how many results
1087	// to return in one page. The length limit is 50 characters.
1088	MaxResults *int64 `min:"1" type:"integer"`
1089
1090	// The pagination token used for the ListUsers and ListGroups API operations.
1091	// This value is generated by the identity store service. It is returned in
1092	// the API response if the total results are more than the size of one page.
1093	// This token is also returned when it is used in the API request to search
1094	// for the next page.
1095	NextToken *string `min:"1" type:"string"`
1096}
1097
1098// String returns the string representation
1099func (s ListUsersInput) String() string {
1100	return awsutil.Prettify(s)
1101}
1102
1103// GoString returns the string representation
1104func (s ListUsersInput) GoString() string {
1105	return s.String()
1106}
1107
1108// Validate inspects the fields of the type to determine if they are valid.
1109func (s *ListUsersInput) Validate() error {
1110	invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"}
1111	if s.IdentityStoreId == nil {
1112		invalidParams.Add(request.NewErrParamRequired("IdentityStoreId"))
1113	}
1114	if s.IdentityStoreId != nil && len(*s.IdentityStoreId) < 1 {
1115		invalidParams.Add(request.NewErrParamMinLen("IdentityStoreId", 1))
1116	}
1117	if s.MaxResults != nil && *s.MaxResults < 1 {
1118		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
1119	}
1120	if s.NextToken != nil && len(*s.NextToken) < 1 {
1121		invalidParams.Add(request.NewErrParamMinLen("NextToken", 1))
1122	}
1123	if s.Filters != nil {
1124		for i, v := range s.Filters {
1125			if v == nil {
1126				continue
1127			}
1128			if err := v.Validate(); err != nil {
1129				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
1130			}
1131		}
1132	}
1133
1134	if invalidParams.Len() > 0 {
1135		return invalidParams
1136	}
1137	return nil
1138}
1139
1140// SetFilters sets the Filters field's value.
1141func (s *ListUsersInput) SetFilters(v []*Filter) *ListUsersInput {
1142	s.Filters = v
1143	return s
1144}
1145
1146// SetIdentityStoreId sets the IdentityStoreId field's value.
1147func (s *ListUsersInput) SetIdentityStoreId(v string) *ListUsersInput {
1148	s.IdentityStoreId = &v
1149	return s
1150}
1151
1152// SetMaxResults sets the MaxResults field's value.
1153func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput {
1154	s.MaxResults = &v
1155	return s
1156}
1157
1158// SetNextToken sets the NextToken field's value.
1159func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput {
1160	s.NextToken = &v
1161	return s
1162}
1163
1164type ListUsersOutput struct {
1165	_ struct{} `type:"structure"`
1166
1167	// The pagination token used for the ListUsers and ListGroups API operations.
1168	// This value is generated by the identity store service. It is returned in
1169	// the API response if the total results are more than the size of one page.
1170	// This token is also returned when it is used in the API request to search
1171	// for the next page.
1172	NextToken *string `min:"1" type:"string"`
1173
1174	// A list of User objects in the identity store.
1175	//
1176	// Users is a required field
1177	Users []*User `type:"list" required:"true"`
1178}
1179
1180// String returns the string representation
1181func (s ListUsersOutput) String() string {
1182	return awsutil.Prettify(s)
1183}
1184
1185// GoString returns the string representation
1186func (s ListUsersOutput) GoString() string {
1187	return s.String()
1188}
1189
1190// SetNextToken sets the NextToken field's value.
1191func (s *ListUsersOutput) SetNextToken(v string) *ListUsersOutput {
1192	s.NextToken = &v
1193	return s
1194}
1195
1196// SetUsers sets the Users field's value.
1197func (s *ListUsersOutput) SetUsers(v []*User) *ListUsersOutput {
1198	s.Users = v
1199	return s
1200}
1201
1202// Indicates that a requested resource is not found.
1203type ResourceNotFoundException struct {
1204	_            struct{}                  `type:"structure"`
1205	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1206
1207	Message_ *string `locationName:"Message" min:"1" type:"string"`
1208
1209	// The identifier for each request. This value is a globally unique ID that
1210	// is generated by the Identity Store service for each sent request, and is
1211	// then returned inside the exception if the request fails.
1212	RequestId *string `type:"string"`
1213
1214	// The identifier for a resource in the identity store, which can be used as
1215	// UserId or GroupId. The format for ResourceId is either UUID or 1234567890-UUID,
1216	// where UUID is a randomly generated value for each resource when it is created
1217	// and 1234567890 represents the IdentityStoreId string value. In the case that
1218	// the identity store is migrated from a legacy SSO identity store, the ResourceId
1219	// for that identity store will be in the format of UUID. Otherwise, it will
1220	// be in the 1234567890-UUID format.
1221	ResourceId *string `min:"1" type:"string"`
1222
1223	// The type of resource in the Identity Store service, which is an enum object.
1224	// Valid values include USER, GROUP, and IDENTITY_STORE.
1225	ResourceType *string `type:"string" enum:"ResourceType"`
1226}
1227
1228// String returns the string representation
1229func (s ResourceNotFoundException) String() string {
1230	return awsutil.Prettify(s)
1231}
1232
1233// GoString returns the string representation
1234func (s ResourceNotFoundException) GoString() string {
1235	return s.String()
1236}
1237
1238func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
1239	return &ResourceNotFoundException{
1240		RespMetadata: v,
1241	}
1242}
1243
1244// Code returns the exception type name.
1245func (s *ResourceNotFoundException) Code() string {
1246	return "ResourceNotFoundException"
1247}
1248
1249// Message returns the exception's message.
1250func (s *ResourceNotFoundException) Message() string {
1251	if s.Message_ != nil {
1252		return *s.Message_
1253	}
1254	return ""
1255}
1256
1257// OrigErr always returns nil, satisfies awserr.Error interface.
1258func (s *ResourceNotFoundException) OrigErr() error {
1259	return nil
1260}
1261
1262func (s *ResourceNotFoundException) Error() string {
1263	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
1264}
1265
1266// Status code returns the HTTP status code for the request's response error.
1267func (s *ResourceNotFoundException) StatusCode() int {
1268	return s.RespMetadata.StatusCode
1269}
1270
1271// RequestID returns the service's response RequestID for request.
1272func (s *ResourceNotFoundException) RequestID() string {
1273	return s.RespMetadata.RequestID
1274}
1275
1276// Indicates that the principal has crossed the throttling limits of the API
1277// operations.
1278type ThrottlingException struct {
1279	_            struct{}                  `type:"structure"`
1280	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1281
1282	Message_ *string `locationName:"Message" min:"1" type:"string"`
1283
1284	// The identifier for each request. This value is a globally unique ID that
1285	// is generated by the Identity Store service for each sent request, and is
1286	// then returned inside the exception if the request fails.
1287	RequestId *string `type:"string"`
1288}
1289
1290// String returns the string representation
1291func (s ThrottlingException) String() string {
1292	return awsutil.Prettify(s)
1293}
1294
1295// GoString returns the string representation
1296func (s ThrottlingException) GoString() string {
1297	return s.String()
1298}
1299
1300func newErrorThrottlingException(v protocol.ResponseMetadata) error {
1301	return &ThrottlingException{
1302		RespMetadata: v,
1303	}
1304}
1305
1306// Code returns the exception type name.
1307func (s *ThrottlingException) Code() string {
1308	return "ThrottlingException"
1309}
1310
1311// Message returns the exception's message.
1312func (s *ThrottlingException) Message() string {
1313	if s.Message_ != nil {
1314		return *s.Message_
1315	}
1316	return ""
1317}
1318
1319// OrigErr always returns nil, satisfies awserr.Error interface.
1320func (s *ThrottlingException) OrigErr() error {
1321	return nil
1322}
1323
1324func (s *ThrottlingException) Error() string {
1325	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
1326}
1327
1328// Status code returns the HTTP status code for the request's response error.
1329func (s *ThrottlingException) StatusCode() int {
1330	return s.RespMetadata.StatusCode
1331}
1332
1333// RequestID returns the service's response RequestID for request.
1334func (s *ThrottlingException) RequestID() string {
1335	return s.RespMetadata.RequestID
1336}
1337
1338// A user object, which contains a specified user’s metadata and attributes.
1339type User struct {
1340	_ struct{} `type:"structure"`
1341
1342	// The identifier for a user in the identity store.
1343	//
1344	// UserId is a required field
1345	UserId *string `min:"1" type:"string" required:"true"`
1346
1347	// Contains the user’s user name value. The length limit is 128 characters.
1348	// This value can consist of letters, accented characters, symbols, numbers,
1349	// and punctuation. The characters <>;:% are excluded. This value is specified
1350	// at the time the user is created and stored as an attribute of the user object
1351	// in the identity store.
1352	//
1353	// UserName is a required field
1354	UserName *string `min:"1" type:"string" required:"true" sensitive:"true"`
1355}
1356
1357// String returns the string representation
1358func (s User) String() string {
1359	return awsutil.Prettify(s)
1360}
1361
1362// GoString returns the string representation
1363func (s User) GoString() string {
1364	return s.String()
1365}
1366
1367// SetUserId sets the UserId field's value.
1368func (s *User) SetUserId(v string) *User {
1369	s.UserId = &v
1370	return s
1371}
1372
1373// SetUserName sets the UserName field's value.
1374func (s *User) SetUserName(v string) *User {
1375	s.UserName = &v
1376	return s
1377}
1378
1379// The request failed because it contains a syntax error.
1380type ValidationException struct {
1381	_            struct{}                  `type:"structure"`
1382	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1383
1384	Message_ *string `locationName:"Message" min:"1" type:"string"`
1385
1386	// The identifier for each request. This value is a globally unique ID that
1387	// is generated by the Identity Store service for each sent request, and is
1388	// then returned inside the exception if the request fails.
1389	RequestId *string `type:"string"`
1390}
1391
1392// String returns the string representation
1393func (s ValidationException) String() string {
1394	return awsutil.Prettify(s)
1395}
1396
1397// GoString returns the string representation
1398func (s ValidationException) GoString() string {
1399	return s.String()
1400}
1401
1402func newErrorValidationException(v protocol.ResponseMetadata) error {
1403	return &ValidationException{
1404		RespMetadata: v,
1405	}
1406}
1407
1408// Code returns the exception type name.
1409func (s *ValidationException) Code() string {
1410	return "ValidationException"
1411}
1412
1413// Message returns the exception's message.
1414func (s *ValidationException) Message() string {
1415	if s.Message_ != nil {
1416		return *s.Message_
1417	}
1418	return ""
1419}
1420
1421// OrigErr always returns nil, satisfies awserr.Error interface.
1422func (s *ValidationException) OrigErr() error {
1423	return nil
1424}
1425
1426func (s *ValidationException) Error() string {
1427	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
1428}
1429
1430// Status code returns the HTTP status code for the request's response error.
1431func (s *ValidationException) StatusCode() int {
1432	return s.RespMetadata.StatusCode
1433}
1434
1435// RequestID returns the service's response RequestID for request.
1436func (s *ValidationException) RequestID() string {
1437	return s.RespMetadata.RequestID
1438}
1439
1440const (
1441	// ResourceTypeGroup is a ResourceType enum value
1442	ResourceTypeGroup = "GROUP"
1443
1444	// ResourceTypeUser is a ResourceType enum value
1445	ResourceTypeUser = "USER"
1446
1447	// ResourceTypeIdentityStore is a ResourceType enum value
1448	ResourceTypeIdentityStore = "IDENTITY_STORE"
1449)
1450
1451// ResourceType_Values returns all elements of the ResourceType enum
1452func ResourceType_Values() []string {
1453	return []string{
1454		ResourceTypeGroup,
1455		ResourceTypeUser,
1456		ResourceTypeIdentityStore,
1457	}
1458}
1459