| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367 |
- // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
- package sso
- import (
- "fmt"
- "github.com/aws/aws-sdk-go/aws"
- "github.com/aws/aws-sdk-go/aws/awsutil"
- "github.com/aws/aws-sdk-go/aws/credentials"
- "github.com/aws/aws-sdk-go/aws/request"
- "github.com/aws/aws-sdk-go/private/protocol"
- "github.com/aws/aws-sdk-go/private/protocol/restjson"
- )
- const opGetRoleCredentials = "GetRoleCredentials"
- // GetRoleCredentialsRequest generates a "aws/request.Request" representing the
- // client's request for the GetRoleCredentials operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See GetRoleCredentials for more information on using the GetRoleCredentials
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- // // Example sending a request using the GetRoleCredentialsRequest method.
- // req, resp := client.GetRoleCredentialsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials
- func (c *SSO) GetRoleCredentialsRequest(input *GetRoleCredentialsInput) (req *request.Request, output *GetRoleCredentialsOutput) {
- op := &request.Operation{
- Name: opGetRoleCredentials,
- HTTPMethod: "GET",
- HTTPPath: "/federation/credentials",
- }
- if input == nil {
- input = &GetRoleCredentialsInput{}
- }
- output = &GetRoleCredentialsOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
- }
- // GetRoleCredentials API operation for AWS Single Sign-On.
- //
- // Returns the STS short-term credentials for a given role name that is assigned
- // to the user.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Single Sign-On's
- // API operation GetRoleCredentials for usage and error information.
- //
- // Returned Error Types:
- //
- // - InvalidRequestException
- // Indicates that a problem occurred with the input to the request. For example,
- // a required parameter might be missing or out of range.
- //
- // - UnauthorizedException
- // Indicates that the request is not authorized. This can happen due to an invalid
- // access token in the request.
- //
- // - TooManyRequestsException
- // Indicates that the request is being made too frequently and is more than
- // what the server can handle.
- //
- // - ResourceNotFoundException
- // The specified resource doesn't exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/GetRoleCredentials
- func (c *SSO) GetRoleCredentials(input *GetRoleCredentialsInput) (*GetRoleCredentialsOutput, error) {
- req, out := c.GetRoleCredentialsRequest(input)
- return out, req.Send()
- }
- // GetRoleCredentialsWithContext is the same as GetRoleCredentials with the addition of
- // the ability to pass a context and additional request options.
- //
- // See GetRoleCredentials for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SSO) GetRoleCredentialsWithContext(ctx aws.Context, input *GetRoleCredentialsInput, opts ...request.Option) (*GetRoleCredentialsOutput, error) {
- req, out := c.GetRoleCredentialsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- const opListAccountRoles = "ListAccountRoles"
- // ListAccountRolesRequest generates a "aws/request.Request" representing the
- // client's request for the ListAccountRoles operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListAccountRoles for more information on using the ListAccountRoles
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- // // Example sending a request using the ListAccountRolesRequest method.
- // req, resp := client.ListAccountRolesRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles
- func (c *SSO) ListAccountRolesRequest(input *ListAccountRolesInput) (req *request.Request, output *ListAccountRolesOutput) {
- op := &request.Operation{
- Name: opListAccountRoles,
- HTTPMethod: "GET",
- HTTPPath: "/assignment/roles",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListAccountRolesInput{}
- }
- output = &ListAccountRolesOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
- }
- // ListAccountRoles API operation for AWS Single Sign-On.
- //
- // Lists all roles that are assigned to the user for a given AWS account.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Single Sign-On's
- // API operation ListAccountRoles for usage and error information.
- //
- // Returned Error Types:
- //
- // - InvalidRequestException
- // Indicates that a problem occurred with the input to the request. For example,
- // a required parameter might be missing or out of range.
- //
- // - UnauthorizedException
- // Indicates that the request is not authorized. This can happen due to an invalid
- // access token in the request.
- //
- // - TooManyRequestsException
- // Indicates that the request is being made too frequently and is more than
- // what the server can handle.
- //
- // - ResourceNotFoundException
- // The specified resource doesn't exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccountRoles
- func (c *SSO) ListAccountRoles(input *ListAccountRolesInput) (*ListAccountRolesOutput, error) {
- req, out := c.ListAccountRolesRequest(input)
- return out, req.Send()
- }
- // ListAccountRolesWithContext is the same as ListAccountRoles with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAccountRoles for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SSO) ListAccountRolesWithContext(ctx aws.Context, input *ListAccountRolesInput, opts ...request.Option) (*ListAccountRolesOutput, error) {
- req, out := c.ListAccountRolesRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListAccountRolesPages iterates over the pages of a ListAccountRoles operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListAccountRoles method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListAccountRoles operation.
- // pageNum := 0
- // err := client.ListAccountRolesPages(params,
- // func(page *sso.ListAccountRolesOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- func (c *SSO) ListAccountRolesPages(input *ListAccountRolesInput, fn func(*ListAccountRolesOutput, bool) bool) error {
- return c.ListAccountRolesPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListAccountRolesPagesWithContext same as ListAccountRolesPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SSO) ListAccountRolesPagesWithContext(ctx aws.Context, input *ListAccountRolesInput, fn func(*ListAccountRolesOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListAccountRolesInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListAccountRolesRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- for p.Next() {
- if !fn(p.Page().(*ListAccountRolesOutput), !p.HasNextPage()) {
- break
- }
- }
- return p.Err()
- }
- const opListAccounts = "ListAccounts"
- // ListAccountsRequest generates a "aws/request.Request" representing the
- // client's request for the ListAccounts operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See ListAccounts for more information on using the ListAccounts
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- // // Example sending a request using the ListAccountsRequest method.
- // req, resp := client.ListAccountsRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts
- func (c *SSO) ListAccountsRequest(input *ListAccountsInput) (req *request.Request, output *ListAccountsOutput) {
- op := &request.Operation{
- Name: opListAccounts,
- HTTPMethod: "GET",
- HTTPPath: "/assignment/accounts",
- Paginator: &request.Paginator{
- InputTokens: []string{"nextToken"},
- OutputTokens: []string{"nextToken"},
- LimitToken: "maxResults",
- TruncationToken: "",
- },
- }
- if input == nil {
- input = &ListAccountsInput{}
- }
- output = &ListAccountsOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- return
- }
- // ListAccounts API operation for AWS Single Sign-On.
- //
- // Lists all AWS accounts assigned to the user. These AWS accounts are assigned
- // by the administrator of the account. For more information, see Assign User
- // Access (https://docs.aws.amazon.com/singlesignon/latest/userguide/useraccess.html#assignusers)
- // in the IAM Identity Center User Guide. This operation returns a paginated
- // response.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Single Sign-On's
- // API operation ListAccounts for usage and error information.
- //
- // Returned Error Types:
- //
- // - InvalidRequestException
- // Indicates that a problem occurred with the input to the request. For example,
- // a required parameter might be missing or out of range.
- //
- // - UnauthorizedException
- // Indicates that the request is not authorized. This can happen due to an invalid
- // access token in the request.
- //
- // - TooManyRequestsException
- // Indicates that the request is being made too frequently and is more than
- // what the server can handle.
- //
- // - ResourceNotFoundException
- // The specified resource doesn't exist.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/ListAccounts
- func (c *SSO) ListAccounts(input *ListAccountsInput) (*ListAccountsOutput, error) {
- req, out := c.ListAccountsRequest(input)
- return out, req.Send()
- }
- // ListAccountsWithContext is the same as ListAccounts with the addition of
- // the ability to pass a context and additional request options.
- //
- // See ListAccounts for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SSO) ListAccountsWithContext(ctx aws.Context, input *ListAccountsInput, opts ...request.Option) (*ListAccountsOutput, error) {
- req, out := c.ListAccountsRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // ListAccountsPages iterates over the pages of a ListAccounts operation,
- // calling the "fn" function with the response data for each page. To stop
- // iterating, return false from the fn function.
- //
- // See ListAccounts method for more information on how to use this operation.
- //
- // Note: This operation can generate multiple requests to a service.
- //
- // // Example iterating over at most 3 pages of a ListAccounts operation.
- // pageNum := 0
- // err := client.ListAccountsPages(params,
- // func(page *sso.ListAccountsOutput, lastPage bool) bool {
- // pageNum++
- // fmt.Println(page)
- // return pageNum <= 3
- // })
- func (c *SSO) ListAccountsPages(input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool) error {
- return c.ListAccountsPagesWithContext(aws.BackgroundContext(), input, fn)
- }
- // ListAccountsPagesWithContext same as ListAccountsPages except
- // it takes a Context and allows setting request options on the pages.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SSO) ListAccountsPagesWithContext(ctx aws.Context, input *ListAccountsInput, fn func(*ListAccountsOutput, bool) bool, opts ...request.Option) error {
- p := request.Pagination{
- NewRequest: func() (*request.Request, error) {
- var inCpy *ListAccountsInput
- if input != nil {
- tmp := *input
- inCpy = &tmp
- }
- req, _ := c.ListAccountsRequest(inCpy)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return req, nil
- },
- }
- for p.Next() {
- if !fn(p.Page().(*ListAccountsOutput), !p.HasNextPage()) {
- break
- }
- }
- return p.Err()
- }
- const opLogout = "Logout"
- // LogoutRequest generates a "aws/request.Request" representing the
- // client's request for the Logout operation. The "output" return
- // value will be populated with the request's response once the request completes
- // successfully.
- //
- // Use "Send" method on the returned Request to send the API call to the service.
- // the "output" return value is not valid until after Send returns without error.
- //
- // See Logout for more information on using the Logout
- // API call, and error handling.
- //
- // This method is useful when you want to inject custom logic or configuration
- // into the SDK's request lifecycle. Such as custom headers, or retry logic.
- //
- // // Example sending a request using the LogoutRequest method.
- // req, resp := client.LogoutRequest(params)
- //
- // err := req.Send()
- // if err == nil { // resp is now filled
- // fmt.Println(resp)
- // }
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/Logout
- func (c *SSO) LogoutRequest(input *LogoutInput) (req *request.Request, output *LogoutOutput) {
- op := &request.Operation{
- Name: opLogout,
- HTTPMethod: "POST",
- HTTPPath: "/logout",
- }
- if input == nil {
- input = &LogoutInput{}
- }
- output = &LogoutOutput{}
- req = c.newRequest(op, input, output)
- req.Config.Credentials = credentials.AnonymousCredentials
- req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
- return
- }
- // Logout API operation for AWS Single Sign-On.
- //
- // Removes the locally stored SSO tokens from the client-side cache and sends
- // an API call to the IAM Identity Center service to invalidate the corresponding
- // server-side IAM Identity Center sign in session.
- //
- // If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM
- // Identity Center sign in session is used to obtain an IAM session, as specified
- // in the corresponding IAM Identity Center permission set. More specifically,
- // IAM Identity Center assumes an IAM role in the target account on behalf of
- // the user, and the corresponding temporary AWS credentials are returned to
- // the client.
- //
- // After user logout, any existing IAM role sessions that were created by using
- // IAM Identity Center permission sets continue based on the duration configured
- // in the permission set. For more information, see User authentications (https://docs.aws.amazon.com/singlesignon/latest/userguide/authconcept.html)
- // in the IAM Identity Center User Guide.
- //
- // Returns awserr.Error for service API and SDK errors. Use runtime type assertions
- // with awserr.Error's Code and Message methods to get detailed information about
- // the error.
- //
- // See the AWS API reference guide for AWS Single Sign-On's
- // API operation Logout for usage and error information.
- //
- // Returned Error Types:
- //
- // - InvalidRequestException
- // Indicates that a problem occurred with the input to the request. For example,
- // a required parameter might be missing or out of range.
- //
- // - UnauthorizedException
- // Indicates that the request is not authorized. This can happen due to an invalid
- // access token in the request.
- //
- // - TooManyRequestsException
- // Indicates that the request is being made too frequently and is more than
- // what the server can handle.
- //
- // See also, https://docs.aws.amazon.com/goto/WebAPI/sso-2019-06-10/Logout
- func (c *SSO) Logout(input *LogoutInput) (*LogoutOutput, error) {
- req, out := c.LogoutRequest(input)
- return out, req.Send()
- }
- // LogoutWithContext is the same as Logout with the addition of
- // the ability to pass a context and additional request options.
- //
- // See Logout for details on how to use this API operation.
- //
- // The context must be non-nil and will be used for request cancellation. If
- // the context is nil a panic will occur. In the future the SDK may create
- // sub-contexts for http.Requests. See https://golang.org/pkg/context/
- // for more information on using Contexts.
- func (c *SSO) LogoutWithContext(ctx aws.Context, input *LogoutInput, opts ...request.Option) (*LogoutOutput, error) {
- req, out := c.LogoutRequest(input)
- req.SetContext(ctx)
- req.ApplyOptions(opts...)
- return out, req.Send()
- }
- // Provides information about your AWS account.
- type AccountInfo struct {
- _ struct{} `type:"structure"`
- // The identifier of the AWS account that is assigned to the user.
- AccountId *string `locationName:"accountId" type:"string"`
- // The display name of the AWS account that is assigned to the user.
- AccountName *string `locationName:"accountName" type:"string"`
- // The email address of the AWS account that is assigned to the user.
- EmailAddress *string `locationName:"emailAddress" min:"1" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s AccountInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s AccountInfo) GoString() string {
- return s.String()
- }
- // SetAccountId sets the AccountId field's value.
- func (s *AccountInfo) SetAccountId(v string) *AccountInfo {
- s.AccountId = &v
- return s
- }
- // SetAccountName sets the AccountName field's value.
- func (s *AccountInfo) SetAccountName(v string) *AccountInfo {
- s.AccountName = &v
- return s
- }
- // SetEmailAddress sets the EmailAddress field's value.
- func (s *AccountInfo) SetEmailAddress(v string) *AccountInfo {
- s.EmailAddress = &v
- return s
- }
- type GetRoleCredentialsInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by GetRoleCredentialsInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
- // The identifier for the AWS account that is assigned to the user.
- //
- // AccountId is a required field
- AccountId *string `location:"querystring" locationName:"account_id" type:"string" required:"true"`
- // The friendly name of the role that is assigned to the user.
- //
- // RoleName is a required field
- RoleName *string `location:"querystring" locationName:"role_name" type:"string" required:"true"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s GetRoleCredentialsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s GetRoleCredentialsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *GetRoleCredentialsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "GetRoleCredentialsInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.RoleName == nil {
- invalidParams.Add(request.NewErrParamRequired("RoleName"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccessToken sets the AccessToken field's value.
- func (s *GetRoleCredentialsInput) SetAccessToken(v string) *GetRoleCredentialsInput {
- s.AccessToken = &v
- return s
- }
- // SetAccountId sets the AccountId field's value.
- func (s *GetRoleCredentialsInput) SetAccountId(v string) *GetRoleCredentialsInput {
- s.AccountId = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *GetRoleCredentialsInput) SetRoleName(v string) *GetRoleCredentialsInput {
- s.RoleName = &v
- return s
- }
- type GetRoleCredentialsOutput struct {
- _ struct{} `type:"structure"`
- // The credentials for the role that is assigned to the user.
- RoleCredentials *RoleCredentials `locationName:"roleCredentials" type:"structure"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s GetRoleCredentialsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s GetRoleCredentialsOutput) GoString() string {
- return s.String()
- }
- // SetRoleCredentials sets the RoleCredentials field's value.
- func (s *GetRoleCredentialsOutput) SetRoleCredentials(v *RoleCredentials) *GetRoleCredentialsOutput {
- s.RoleCredentials = v
- return s
- }
- // Indicates that a problem occurred with the input to the request. For example,
- // a required parameter might be missing or out of range.
- type InvalidRequestException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
- Message_ *string `locationName:"message" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s InvalidRequestException) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s InvalidRequestException) GoString() string {
- return s.String()
- }
- func newErrorInvalidRequestException(v protocol.ResponseMetadata) error {
- return &InvalidRequestException{
- RespMetadata: v,
- }
- }
- // Code returns the exception type name.
- func (s *InvalidRequestException) Code() string {
- return "InvalidRequestException"
- }
- // Message returns the exception's message.
- func (s *InvalidRequestException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
- }
- // OrigErr always returns nil, satisfies awserr.Error interface.
- func (s *InvalidRequestException) OrigErr() error {
- return nil
- }
- func (s *InvalidRequestException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
- }
- // Status code returns the HTTP status code for the request's response error.
- func (s *InvalidRequestException) StatusCode() int {
- return s.RespMetadata.StatusCode
- }
- // RequestID returns the service's response RequestID for request.
- func (s *InvalidRequestException) RequestID() string {
- return s.RespMetadata.RequestID
- }
- type ListAccountRolesInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by ListAccountRolesInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
- // The identifier for the AWS account that is assigned to the user.
- //
- // AccountId is a required field
- AccountId *string `location:"querystring" locationName:"account_id" type:"string" required:"true"`
- // The number of items that clients can request per page.
- MaxResults *int64 `location:"querystring" locationName:"max_result" min:"1" type:"integer"`
- // The page token from the previous response output when you request subsequent
- // pages.
- NextToken *string `location:"querystring" locationName:"next_token" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountRolesInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountRolesInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAccountRolesInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAccountRolesInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.AccountId == nil {
- invalidParams.Add(request.NewErrParamRequired("AccountId"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccessToken sets the AccessToken field's value.
- func (s *ListAccountRolesInput) SetAccessToken(v string) *ListAccountRolesInput {
- s.AccessToken = &v
- return s
- }
- // SetAccountId sets the AccountId field's value.
- func (s *ListAccountRolesInput) SetAccountId(v string) *ListAccountRolesInput {
- s.AccountId = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListAccountRolesInput) SetMaxResults(v int64) *ListAccountRolesInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAccountRolesInput) SetNextToken(v string) *ListAccountRolesInput {
- s.NextToken = &v
- return s
- }
- type ListAccountRolesOutput struct {
- _ struct{} `type:"structure"`
- // The page token client that is used to retrieve the list of accounts.
- NextToken *string `locationName:"nextToken" type:"string"`
- // A paginated response with the list of roles and the next token if more results
- // are available.
- RoleList []*RoleInfo `locationName:"roleList" type:"list"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountRolesOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountRolesOutput) GoString() string {
- return s.String()
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAccountRolesOutput) SetNextToken(v string) *ListAccountRolesOutput {
- s.NextToken = &v
- return s
- }
- // SetRoleList sets the RoleList field's value.
- func (s *ListAccountRolesOutput) SetRoleList(v []*RoleInfo) *ListAccountRolesOutput {
- s.RoleList = v
- return s
- }
- type ListAccountsInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by ListAccountsInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
- // This is the number of items clients can request per page.
- MaxResults *int64 `location:"querystring" locationName:"max_result" min:"1" type:"integer"`
- // (Optional) When requesting subsequent pages, this is the page token from
- // the previous response output.
- NextToken *string `location:"querystring" locationName:"next_token" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountsInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountsInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *ListAccountsInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "ListAccountsInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if s.MaxResults != nil && *s.MaxResults < 1 {
- invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccessToken sets the AccessToken field's value.
- func (s *ListAccountsInput) SetAccessToken(v string) *ListAccountsInput {
- s.AccessToken = &v
- return s
- }
- // SetMaxResults sets the MaxResults field's value.
- func (s *ListAccountsInput) SetMaxResults(v int64) *ListAccountsInput {
- s.MaxResults = &v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAccountsInput) SetNextToken(v string) *ListAccountsInput {
- s.NextToken = &v
- return s
- }
- type ListAccountsOutput struct {
- _ struct{} `type:"structure"`
- // A paginated response with the list of account information and the next token
- // if more results are available.
- AccountList []*AccountInfo `locationName:"accountList" type:"list"`
- // The page token client that is used to retrieve the list of accounts.
- NextToken *string `locationName:"nextToken" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountsOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ListAccountsOutput) GoString() string {
- return s.String()
- }
- // SetAccountList sets the AccountList field's value.
- func (s *ListAccountsOutput) SetAccountList(v []*AccountInfo) *ListAccountsOutput {
- s.AccountList = v
- return s
- }
- // SetNextToken sets the NextToken field's value.
- func (s *ListAccountsOutput) SetNextToken(v string) *ListAccountsOutput {
- s.NextToken = &v
- return s
- }
- type LogoutInput struct {
- _ struct{} `type:"structure" nopayload:"true"`
- // The token issued by the CreateToken API call. For more information, see CreateToken
- // (https://docs.aws.amazon.com/singlesignon/latest/OIDCAPIReference/API_CreateToken.html)
- // in the IAM Identity Center OIDC API Reference Guide.
- //
- // AccessToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by LogoutInput's
- // String and GoString methods.
- //
- // AccessToken is a required field
- AccessToken *string `location:"header" locationName:"x-amz-sso_bearer_token" type:"string" required:"true" sensitive:"true"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s LogoutInput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s LogoutInput) GoString() string {
- return s.String()
- }
- // Validate inspects the fields of the type to determine if they are valid.
- func (s *LogoutInput) Validate() error {
- invalidParams := request.ErrInvalidParams{Context: "LogoutInput"}
- if s.AccessToken == nil {
- invalidParams.Add(request.NewErrParamRequired("AccessToken"))
- }
- if invalidParams.Len() > 0 {
- return invalidParams
- }
- return nil
- }
- // SetAccessToken sets the AccessToken field's value.
- func (s *LogoutInput) SetAccessToken(v string) *LogoutInput {
- s.AccessToken = &v
- return s
- }
- type LogoutOutput struct {
- _ struct{} `type:"structure"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s LogoutOutput) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s LogoutOutput) GoString() string {
- return s.String()
- }
- // The specified resource doesn't exist.
- type ResourceNotFoundException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
- Message_ *string `locationName:"message" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ResourceNotFoundException) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s ResourceNotFoundException) GoString() string {
- return s.String()
- }
- func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
- return &ResourceNotFoundException{
- RespMetadata: v,
- }
- }
- // Code returns the exception type name.
- func (s *ResourceNotFoundException) Code() string {
- return "ResourceNotFoundException"
- }
- // Message returns the exception's message.
- func (s *ResourceNotFoundException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
- }
- // OrigErr always returns nil, satisfies awserr.Error interface.
- func (s *ResourceNotFoundException) OrigErr() error {
- return nil
- }
- func (s *ResourceNotFoundException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
- }
- // Status code returns the HTTP status code for the request's response error.
- func (s *ResourceNotFoundException) StatusCode() int {
- return s.RespMetadata.StatusCode
- }
- // RequestID returns the service's response RequestID for request.
- func (s *ResourceNotFoundException) RequestID() string {
- return s.RespMetadata.RequestID
- }
- // Provides information about the role credentials that are assigned to the
- // user.
- type RoleCredentials struct {
- _ struct{} `type:"structure"`
- // The identifier used for the temporary security credentials. For more information,
- // see Using Temporary Security Credentials to Request Access to AWS Resources
- // (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
- // in the AWS IAM User Guide.
- AccessKeyId *string `locationName:"accessKeyId" type:"string"`
- // The date on which temporary security credentials expire.
- Expiration *int64 `locationName:"expiration" type:"long"`
- // The key that is used to sign the request. For more information, see Using
- // Temporary Security Credentials to Request Access to AWS Resources (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
- // in the AWS IAM User Guide.
- //
- // SecretAccessKey is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by RoleCredentials's
- // String and GoString methods.
- SecretAccessKey *string `locationName:"secretAccessKey" type:"string" sensitive:"true"`
- // The token used for temporary credentials. For more information, see Using
- // Temporary Security Credentials to Request Access to AWS Resources (https://docs.aws.amazon.com/IAM/latest/UserGuide/id_credentials_temp_use-resources.html)
- // in the AWS IAM User Guide.
- //
- // SessionToken is a sensitive parameter and its value will be
- // replaced with "sensitive" in string returned by RoleCredentials's
- // String and GoString methods.
- SessionToken *string `locationName:"sessionToken" type:"string" sensitive:"true"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s RoleCredentials) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s RoleCredentials) GoString() string {
- return s.String()
- }
- // SetAccessKeyId sets the AccessKeyId field's value.
- func (s *RoleCredentials) SetAccessKeyId(v string) *RoleCredentials {
- s.AccessKeyId = &v
- return s
- }
- // SetExpiration sets the Expiration field's value.
- func (s *RoleCredentials) SetExpiration(v int64) *RoleCredentials {
- s.Expiration = &v
- return s
- }
- // SetSecretAccessKey sets the SecretAccessKey field's value.
- func (s *RoleCredentials) SetSecretAccessKey(v string) *RoleCredentials {
- s.SecretAccessKey = &v
- return s
- }
- // SetSessionToken sets the SessionToken field's value.
- func (s *RoleCredentials) SetSessionToken(v string) *RoleCredentials {
- s.SessionToken = &v
- return s
- }
- // Provides information about the role that is assigned to the user.
- type RoleInfo struct {
- _ struct{} `type:"structure"`
- // The identifier of the AWS account assigned to the user.
- AccountId *string `locationName:"accountId" type:"string"`
- // The friendly name of the role that is assigned to the user.
- RoleName *string `locationName:"roleName" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s RoleInfo) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s RoleInfo) GoString() string {
- return s.String()
- }
- // SetAccountId sets the AccountId field's value.
- func (s *RoleInfo) SetAccountId(v string) *RoleInfo {
- s.AccountId = &v
- return s
- }
- // SetRoleName sets the RoleName field's value.
- func (s *RoleInfo) SetRoleName(v string) *RoleInfo {
- s.RoleName = &v
- return s
- }
- // Indicates that the request is being made too frequently and is more than
- // what the server can handle.
- type TooManyRequestsException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
- Message_ *string `locationName:"message" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s TooManyRequestsException) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s TooManyRequestsException) GoString() string {
- return s.String()
- }
- func newErrorTooManyRequestsException(v protocol.ResponseMetadata) error {
- return &TooManyRequestsException{
- RespMetadata: v,
- }
- }
- // Code returns the exception type name.
- func (s *TooManyRequestsException) Code() string {
- return "TooManyRequestsException"
- }
- // Message returns the exception's message.
- func (s *TooManyRequestsException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
- }
- // OrigErr always returns nil, satisfies awserr.Error interface.
- func (s *TooManyRequestsException) OrigErr() error {
- return nil
- }
- func (s *TooManyRequestsException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
- }
- // Status code returns the HTTP status code for the request's response error.
- func (s *TooManyRequestsException) StatusCode() int {
- return s.RespMetadata.StatusCode
- }
- // RequestID returns the service's response RequestID for request.
- func (s *TooManyRequestsException) RequestID() string {
- return s.RespMetadata.RequestID
- }
- // Indicates that the request is not authorized. This can happen due to an invalid
- // access token in the request.
- type UnauthorizedException struct {
- _ struct{} `type:"structure"`
- RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
- Message_ *string `locationName:"message" type:"string"`
- }
- // String returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s UnauthorizedException) String() string {
- return awsutil.Prettify(s)
- }
- // GoString returns the string representation.
- //
- // API parameter values that are decorated as "sensitive" in the API will not
- // be included in the string output. The member name will be present, but the
- // value will be replaced with "sensitive".
- func (s UnauthorizedException) GoString() string {
- return s.String()
- }
- func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
- return &UnauthorizedException{
- RespMetadata: v,
- }
- }
- // Code returns the exception type name.
- func (s *UnauthorizedException) Code() string {
- return "UnauthorizedException"
- }
- // Message returns the exception's message.
- func (s *UnauthorizedException) Message() string {
- if s.Message_ != nil {
- return *s.Message_
- }
- return ""
- }
- // OrigErr always returns nil, satisfies awserr.Error interface.
- func (s *UnauthorizedException) OrigErr() error {
- return nil
- }
- func (s *UnauthorizedException) Error() string {
- return fmt.Sprintf("%s: %s", s.Code(), s.Message())
- }
- // Status code returns the HTTP status code for the request's response error.
- func (s *UnauthorizedException) StatusCode() int {
- return s.RespMetadata.StatusCode
- }
- // RequestID returns the service's response RequestID for request.
- func (s *UnauthorizedException) RequestID() string {
- return s.RespMetadata.RequestID
- }
|