Module Values.CreateResourceServerResponseSource

Creates a new OAuth2.0 resource server and defines custom scopes within it. Resource servers are associated with custom scopes and machine-to-machine (M2M) authorization. For more information, see Access control with resource servers. Amazon Cognito evaluates Identity and Access Management (IAM) policies in requests for this API operation. For this operation, you must use IAM credentials to authorize requests, and you must grant yourself the corresponding IAM permission in a policy. Learn more Signing Amazon Web Services API Requests Using the Amazon Cognito user pools API and user pool endpoints

Sourcetype nonrec t = {
  1. resourceServer : ResourceServerType.t option;
    (*

    The details of the new resource server.

    *)
}
Sourcetype nonrec error = [
  1. | `InternalErrorException of InternalErrorException.t
  2. | `InvalidParameterException of InvalidParameterException.t
  3. | `LimitExceededException of LimitExceededException.t
  4. | `NotAuthorizedException of NotAuthorizedException.t
  5. | `ResourceNotFoundException of ResourceNotFoundException.t
  6. | `TooManyRequestsException of TooManyRequestsException.t
  7. | `Unknown_operation_error of string * string option
]
Sourceval make : ?resourceServer:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `InternalErrorException of InternalErrorException.t | `InvalidParameterException of InvalidParameterException.t | `LimitExceededException of LimitExceededException.t | `NotAuthorizedException of NotAuthorizedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `InternalErrorException of InternalErrorException.t | `InvalidParameterException of InvalidParameterException.t | `LimitExceededException of LimitExceededException.t | `NotAuthorizedException of NotAuthorizedException.t | `ResourceNotFoundException of ResourceNotFoundException.t | `TooManyRequestsException of TooManyRequestsException.t | `Unknown_operation_error of string * string option ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `Structure of (string * [> `List of [> `Structure of (string * [> `String of ResourceServerScopeNameType.t ]) list ] list | `String of UserPoolIdType.t ]) list ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t