libZSservicesZSamazonka-iotZSamazonka-iot
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.IoT.CreateAuthorizer

Description

Creates an authorizer.

Requires permission to access the CreateAuthorizer action.

Synopsis

Creating a Request

data CreateAuthorizer Source #

See: newCreateAuthorizer smart constructor.

Constructors

CreateAuthorizer' 

Fields

  • status :: Maybe AuthorizerStatus

    The status of the create authorizer request.

  • signingDisabled :: Maybe Bool

    Specifies whether IoT validates the token signature in an authorization request.

  • tokenSigningPublicKeys :: Maybe (HashMap Text Text)

    The public keys used to verify the digital signature returned by your custom authentication service.

  • tokenKeyName :: Maybe Text

    The name of the token key used to extract the token from the HTTP headers.

  • tags :: Maybe [Tag]

    Metadata which can be used to manage the custom authorizer.

    For URI Request parameters use format: ...key1=value1&key2=value2...

    For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

    For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

  • authorizerName :: Text

    The authorizer name.

  • authorizerFunctionArn :: Text

    The ARN of the authorizer's Lambda function.

Instances

Instances details
Eq CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Read CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Show CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Generic CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Associated Types

type Rep CreateAuthorizer :: Type -> Type #

NFData CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Methods

rnf :: CreateAuthorizer -> () #

Hashable CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

ToJSON CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

AWSRequest CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Associated Types

type AWSResponse CreateAuthorizer #

ToHeaders CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

ToPath CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

ToQuery CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

type Rep CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

type Rep CreateAuthorizer = D1 ('MetaData "CreateAuthorizer" "Amazonka.IoT.CreateAuthorizer" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateAuthorizer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe AuthorizerStatus)) :*: (S1 ('MetaSel ('Just "signingDisabled") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "tokenSigningPublicKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))) :*: ((S1 ('MetaSel ('Just "tokenKeyName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "tags") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Tag]))) :*: (S1 ('MetaSel ('Just "authorizerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "authorizerFunctionArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse CreateAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

newCreateAuthorizer Source #

Create a value of CreateAuthorizer 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:status:CreateAuthorizer', createAuthorizer_status - The status of the create authorizer request.

$sel:signingDisabled:CreateAuthorizer', createAuthorizer_signingDisabled - Specifies whether IoT validates the token signature in an authorization request.

$sel:tokenSigningPublicKeys:CreateAuthorizer', createAuthorizer_tokenSigningPublicKeys - The public keys used to verify the digital signature returned by your custom authentication service.

$sel:tokenKeyName:CreateAuthorizer', createAuthorizer_tokenKeyName - The name of the token key used to extract the token from the HTTP headers.

$sel:tags:CreateAuthorizer', createAuthorizer_tags - Metadata which can be used to manage the custom authorizer.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

$sel:authorizerName:CreateAuthorizer', createAuthorizer_authorizerName - The authorizer name.

$sel:authorizerFunctionArn:CreateAuthorizer', createAuthorizer_authorizerFunctionArn - The ARN of the authorizer's Lambda function.

Request Lenses

createAuthorizer_status :: Lens' CreateAuthorizer (Maybe AuthorizerStatus) Source #

The status of the create authorizer request.

createAuthorizer_signingDisabled :: Lens' CreateAuthorizer (Maybe Bool) Source #

Specifies whether IoT validates the token signature in an authorization request.

createAuthorizer_tokenSigningPublicKeys :: Lens' CreateAuthorizer (Maybe (HashMap Text Text)) Source #

The public keys used to verify the digital signature returned by your custom authentication service.

createAuthorizer_tokenKeyName :: Lens' CreateAuthorizer (Maybe Text) Source #

The name of the token key used to extract the token from the HTTP headers.

createAuthorizer_tags :: Lens' CreateAuthorizer (Maybe [Tag]) Source #

Metadata which can be used to manage the custom authorizer.

For URI Request parameters use format: ...key1=value1&key2=value2...

For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."

For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."

createAuthorizer_authorizerFunctionArn :: Lens' CreateAuthorizer Text Source #

The ARN of the authorizer's Lambda function.

Destructuring the Response

data CreateAuthorizerResponse Source #

See: newCreateAuthorizerResponse smart constructor.

Constructors

CreateAuthorizerResponse' 

Fields

Instances

Instances details
Eq CreateAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Read CreateAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Show CreateAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Generic CreateAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

Associated Types

type Rep CreateAuthorizerResponse :: Type -> Type #

NFData CreateAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

type Rep CreateAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.CreateAuthorizer

type Rep CreateAuthorizerResponse = D1 ('MetaData "CreateAuthorizerResponse" "Amazonka.IoT.CreateAuthorizer" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "CreateAuthorizerResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "authorizerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "authorizerArn") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int))))

newCreateAuthorizerResponse Source #

Create a value of CreateAuthorizerResponse 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:authorizerName:CreateAuthorizer', createAuthorizerResponse_authorizerName - The authorizer's name.

$sel:authorizerArn:CreateAuthorizerResponse', createAuthorizerResponse_authorizerArn - The authorizer ARN.

$sel:httpStatus:CreateAuthorizerResponse', createAuthorizerResponse_httpStatus - The response's http status code.

Response Lenses