| Copyright | (c) 2013-2018 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 |
| Language | Haskell2010 |
Network.AWS.CognitoIdentityProvider.CreateResourceServer
Description
Creates a new OAuth2.0 resource server and defines custom scopes in it.
Synopsis
- createResourceServer :: Text -> Text -> Text -> CreateResourceServer
- data CreateResourceServer
- crsScopes :: Lens' CreateResourceServer [ResourceServerScopeType]
- crsUserPoolId :: Lens' CreateResourceServer Text
- crsIdentifier :: Lens' CreateResourceServer Text
- crsName :: Lens' CreateResourceServer Text
- createResourceServerResponse :: Int -> ResourceServerType -> CreateResourceServerResponse
- data CreateResourceServerResponse
- crsrsResponseStatus :: Lens' CreateResourceServerResponse Int
- crsrsResourceServer :: Lens' CreateResourceServerResponse ResourceServerType
Creating a Request
Arguments
| :: Text | |
| -> Text | |
| -> Text | |
| -> CreateResourceServer |
Creates a value of CreateResourceServer with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsScopes- A list of scopes. Each scope is map, where the keys arenameanddescription.crsUserPoolId- The user pool ID for the user pool.crsIdentifier- 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.crsName- A friendly name for the resource server.
data CreateResourceServer Source #
See: createResourceServer smart constructor.
Instances
Request Lenses
crsScopes :: Lens' CreateResourceServer [ResourceServerScopeType] Source #
A list of scopes. Each scope is map, where the keys are name and description .
crsUserPoolId :: Lens' CreateResourceServer Text Source #
The user pool ID for the user pool.
crsIdentifier :: 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 .
Destructuring the Response
createResourceServerResponse Source #
Arguments
| :: Int | |
| -> ResourceServerType | |
| -> CreateResourceServerResponse |
Creates a value of CreateResourceServerResponse with the minimum fields required to make a request.
Use one of the following lenses to modify other fields as desired:
crsrsResponseStatus- -- | The response status code.crsrsResourceServer- The newly created resource server.
data CreateResourceServerResponse Source #
See: createResourceServerResponse smart constructor.
Instances
Response Lenses
crsrsResponseStatus :: Lens' CreateResourceServerResponse Int Source #
- - | The response status code.
crsrsResourceServer :: Lens' CreateResourceServerResponse ResourceServerType Source #
The newly created resource server.