libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.CognitoIdentityProvider.CreateResourceServer

Description

Creates a new OAuth2.0 resource server and defines custom scopes in it.

Synopsis

Creating a Request

data CreateResourceServer Source #

See: newCreateResourceServer smart constructor.

Constructors

CreateResourceServer' 

Fields

  • scopes :: Maybe [ResourceServerScopeType]

    A list of scopes. Each scope is map, where the keys are name and description.

  • userPoolId :: Text

    The user pool ID for the user pool.

  • identifier :: Text

    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.

  • name :: Text

    A friendly name for the resource server.

Instances

Instances details
Eq CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Read CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Show CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Generic CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Associated Types

type Rep CreateResourceServer :: Type -> Type #

NFData CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Methods

rnf :: CreateResourceServer -> () #

Hashable CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

ToJSON CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

AWSRequest CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Associated Types

type AWSResponse CreateResourceServer #

ToHeaders CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

ToPath CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

ToQuery CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

type Rep CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

type Rep CreateResourceServer = D1 ('MetaData "CreateResourceServer" "Amazonka.CognitoIdentityProvider.CreateResourceServer" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "CreateResourceServer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "scopes") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResourceServerScopeType])) :*: S1 ('MetaSel ('Just "userPoolId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))
type AWSResponse CreateResourceServer Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

newCreateResourceServer Source #

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_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.

Constructors

CreateResourceServerResponse' 

Fields

Instances

Instances details
Eq CreateResourceServerResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Read CreateResourceServerResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Show CreateResourceServerResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Generic CreateResourceServerResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

Associated Types

type Rep CreateResourceServerResponse :: Type -> Type #

NFData CreateResourceServerResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

type Rep CreateResourceServerResponse Source # 
Instance details

Defined in Amazonka.CognitoIdentityProvider.CreateResourceServer

type Rep CreateResourceServerResponse = D1 ('MetaData "CreateResourceServerResponse" "Amazonka.CognitoIdentityProvider.CreateResourceServer" "libZSservicesZSamazonka-cognito-idpZSamazonka-cognito-idp" 'False) (C1 ('MetaCons "CreateResourceServerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int) :*: S1 ('MetaSel ('Just "resourceServer") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ResourceServerType)))

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