| Copyright | (c) 2013-2023 Brendan Hay |
|---|---|
| License | Mozilla Public License, v. 2.0. |
| Maintainer | Brendan Hay |
| Stability | auto-generated |
| Portability | non-portable (GHC extensions) |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Amazonka.CognitoIdentityProvider.CreateResourceServer
Description
Creates a new OAuth2.0 resource server and defines custom scopes within it.
Synopsis
- data CreateResourceServer = CreateResourceServer' {
- scopes :: Maybe [ResourceServerScopeType]
- userPoolId :: Text
- identifier :: Text
- name :: Text
- newCreateResourceServer :: Text -> Text -> Text -> CreateResourceServer
- createResourceServer_scopes :: Lens' CreateResourceServer (Maybe [ResourceServerScopeType])
- createResourceServer_userPoolId :: Lens' CreateResourceServer Text
- createResourceServer_identifier :: Lens' CreateResourceServer Text
- createResourceServer_name :: Lens' CreateResourceServer Text
- data CreateResourceServerResponse = CreateResourceServerResponse' {}
- newCreateResourceServerResponse :: Int -> ResourceServerType -> CreateResourceServerResponse
- createResourceServerResponse_httpStatus :: Lens' CreateResourceServerResponse Int
- createResourceServerResponse_resourceServer :: Lens' CreateResourceServerResponse ResourceServerType
Creating a Request
data CreateResourceServer Source #
See: newCreateResourceServer smart constructor.
Constructors
| CreateResourceServer' | |
Fields
| |
Instances
newCreateResourceServer Source #
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateResourceServer |
Create a value of CreateResourceServer with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
CreateResourceServer, createResourceServer_scopes - A list of scopes. Each scope is a key-value map with the keys name and
description.
CreateResourceServer, createResourceServer_userPoolId - The user pool ID for the user pool.
CreateResourceServer, createResourceServer_identifier - A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located, such as
https://my-weather-api.example.com.
CreateResourceServer, createResourceServer_name - A friendly name for the resource server.
Request Lenses
createResourceServer_scopes :: Lens' CreateResourceServer (Maybe [ResourceServerScopeType]) Source #
A list of scopes. Each scope is a key-value map with the keys name and
description.
createResourceServer_userPoolId :: Lens' CreateResourceServer Text Source #
The user pool ID for the user pool.
createResourceServer_identifier :: Lens' CreateResourceServer Text Source #
A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located, such as
https://my-weather-api.example.com.
createResourceServer_name :: Lens' CreateResourceServer Text Source #
A friendly name for the resource server.
Destructuring the Response
data CreateResourceServerResponse Source #
See: newCreateResourceServerResponse smart constructor.
Constructors
| CreateResourceServerResponse' | |
Fields
| |
Instances
newCreateResourceServerResponse Source #
Arguments
| :: Int | |
| -> ResourceServerType | |
| -> CreateResourceServerResponse |
Create a value of CreateResourceServerResponse with all optional fields omitted.
Use generic-lens or optics to modify other optional fields.
The following record fields are available, with the corresponding lenses provided for backwards compatibility:
$sel:httpStatus:CreateResourceServerResponse', createResourceServerResponse_httpStatus - The response's http status code.
$sel:resourceServer:CreateResourceServerResponse', createResourceServerResponse_resourceServer - The newly created resource server.
Response Lenses
createResourceServerResponse_httpStatus :: Lens' CreateResourceServerResponse Int Source #
The response's http status code.
createResourceServerResponse_resourceServer :: Lens' CreateResourceServerResponse ResourceServerType Source #
The newly created resource server.