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

Description

Tests a custom authorization behavior by invoking a specified custom authorizer. Use this to test and debug the custom authorization behavior of devices that connect to the IoT device gateway.

Requires permission to access the TestInvokeAuthorizer action.

Synopsis

Creating a Request

data TestInvokeAuthorizer Source #

See: newTestInvokeAuthorizer smart constructor.

Constructors

TestInvokeAuthorizer' 

Fields

Instances

Instances details
Eq TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Read TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Show TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Generic TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Associated Types

type Rep TestInvokeAuthorizer :: Type -> Type #

NFData TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Methods

rnf :: TestInvokeAuthorizer -> () #

Hashable TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

ToJSON TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

AWSRequest TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Associated Types

type AWSResponse TestInvokeAuthorizer #

ToHeaders TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

ToPath TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

ToQuery TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

type Rep TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

type Rep TestInvokeAuthorizer = D1 ('MetaData "TestInvokeAuthorizer" "Amazonka.IoT.TestInvokeAuthorizer" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "TestInvokeAuthorizer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tlsContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TlsContext)) :*: S1 ('MetaSel ('Just "tokenSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))) :*: (S1 ('MetaSel ('Just "httpContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HttpContext)) :*: (S1 ('MetaSel ('Just "mqttContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MqttContext)) :*: S1 ('MetaSel ('Just "authorizerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

newTestInvokeAuthorizer Source #

Create a value of TestInvokeAuthorizer 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:token:TestInvokeAuthorizer', testInvokeAuthorizer_token - The token returned by your custom authentication service.

$sel:tlsContext:TestInvokeAuthorizer', testInvokeAuthorizer_tlsContext - Specifies a test TLS authorization request.

$sel:tokenSignature:TestInvokeAuthorizer', testInvokeAuthorizer_tokenSignature - The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.

$sel:httpContext:TestInvokeAuthorizer', testInvokeAuthorizer_httpContext - Specifies a test HTTP authorization request.

$sel:mqttContext:TestInvokeAuthorizer', testInvokeAuthorizer_mqttContext - Specifies a test MQTT authorization request.

$sel:authorizerName:TestInvokeAuthorizer', testInvokeAuthorizer_authorizerName - The custom authorizer name.

Request Lenses

testInvokeAuthorizer_token :: Lens' TestInvokeAuthorizer (Maybe Text) Source #

The token returned by your custom authentication service.

testInvokeAuthorizer_tlsContext :: Lens' TestInvokeAuthorizer (Maybe TlsContext) Source #

Specifies a test TLS authorization request.

testInvokeAuthorizer_tokenSignature :: Lens' TestInvokeAuthorizer (Maybe Text) Source #

The signature made with the token and your custom authentication service's private key. This value must be Base-64-encoded.

testInvokeAuthorizer_httpContext :: Lens' TestInvokeAuthorizer (Maybe HttpContext) Source #

Specifies a test HTTP authorization request.

testInvokeAuthorizer_mqttContext :: Lens' TestInvokeAuthorizer (Maybe MqttContext) Source #

Specifies a test MQTT authorization request.

Destructuring the Response

data TestInvokeAuthorizerResponse Source #

See: newTestInvokeAuthorizerResponse smart constructor.

Constructors

TestInvokeAuthorizerResponse' 

Fields

Instances

Instances details
Eq TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Read TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Show TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Generic TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Associated Types

type Rep TestInvokeAuthorizerResponse :: Type -> Type #

NFData TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

type Rep TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

type Rep TestInvokeAuthorizerResponse = D1 ('MetaData "TestInvokeAuthorizerResponse" "Amazonka.IoT.TestInvokeAuthorizer" "libZSservicesZSamazonka-iotZSamazonka-iot" 'False) (C1 ('MetaCons "TestInvokeAuthorizerResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "policyDocuments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])) :*: (S1 ('MetaSel ('Just "principalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "disconnectAfterInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)))) :*: (S1 ('MetaSel ('Just "isAuthenticated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: (S1 ('MetaSel ('Just "refreshAfterInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newTestInvokeAuthorizerResponse Source #

Create a value of TestInvokeAuthorizerResponse 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:policyDocuments:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_policyDocuments - IAM policy documents.

$sel:principalId:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_principalId - The principal ID.

$sel:disconnectAfterInSeconds:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_disconnectAfterInSeconds - The number of seconds after which the connection is terminated.

$sel:isAuthenticated:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_isAuthenticated - True if the token is authenticated, otherwise false.

$sel:refreshAfterInSeconds:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_refreshAfterInSeconds - The number of seconds after which the temporary credentials are refreshed.

$sel:httpStatus:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_httpStatus - The response's http status code.

Response Lenses

testInvokeAuthorizerResponse_disconnectAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int) Source #

The number of seconds after which the connection is terminated.

testInvokeAuthorizerResponse_isAuthenticated :: Lens' TestInvokeAuthorizerResponse (Maybe Bool) Source #

True if the token is authenticated, otherwise false.

testInvokeAuthorizerResponse_refreshAfterInSeconds :: Lens' TestInvokeAuthorizerResponse (Maybe Int) Source #

The number of seconds after which the temporary credentials are refreshed.