Copyright | (c) 2013-2021 Brendan Hay |
---|---|
License | Mozilla Public License, v. 2.0. |
Maintainer | Brendan Hay <brendan.g.hay+amazonka@gmail.com> |
Stability | auto-generated |
Portability | non-portable (GHC extensions) |
Safe Haskell | None |
Creates a new OAuth2.0 resource server and defines custom scopes in 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.
CreateResourceServer' | |
|
Instances
newCreateResourceServer Source #
:: 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:
$sel:scopes:CreateResourceServer'
, createResourceServer_scopes
- A list of scopes. Each scope is map, where the keys are name
and
description
.
$sel:userPoolId:CreateResourceServer'
, createResourceServer_userPoolId
- The user pool ID for the user pool.
$sel:identifier:CreateResourceServer'
, createResourceServer_identifier
- A unique resource server identifier for the resource server. This could
be an HTTPS endpoint where the resource server is located. For example,
https://my-weather-api.example.com
.
$sel:name: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 map, where the keys are 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. For example,
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.
CreateResourceServerResponse' | |
|
Instances
newCreateResourceServerResponse Source #
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.