amazonka-iot-2.0: Amazon IoT SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

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
ToJSON TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.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

AWSRequest TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Associated Types

type AWSResponse TestInvokeAuthorizer #

Generic TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Associated Types

type Rep TestInvokeAuthorizer :: Type -> Type #

Read TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Show TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

NFData TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Methods

rnf :: TestInvokeAuthorizer -> () #

Eq TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Hashable TestInvokeAuthorizer Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

type AWSResponse 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "TestInvokeAuthorizer'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "httpContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe HttpContext)) :*: (S1 ('MetaSel ('Just "mqttContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe MqttContext)) :*: S1 ('MetaSel ('Just "tlsContext") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe TlsContext)))) :*: (S1 ('MetaSel ('Just "token") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "tokenSignature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "authorizerName") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))

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:httpContext:TestInvokeAuthorizer', testInvokeAuthorizer_httpContext - Specifies a test HTTP authorization request.

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

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

TestInvokeAuthorizer, testInvokeAuthorizer_token - The token returned by your custom authentication service.

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

TestInvokeAuthorizer, testInvokeAuthorizer_authorizerName - The custom authorizer name.

Request Lenses

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.

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

Specifies a test TLS authorization request.

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

The token returned by your custom authentication service.

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.

Destructuring the Response

data TestInvokeAuthorizerResponse Source #

See: newTestInvokeAuthorizerResponse smart constructor.

Constructors

TestInvokeAuthorizerResponse' 

Fields

Instances

Instances details
Generic TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Associated Types

type Rep TestInvokeAuthorizerResponse :: Type -> Type #

Read TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Show TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

NFData TestInvokeAuthorizerResponse Source # 
Instance details

Defined in Amazonka.IoT.TestInvokeAuthorizer

Eq 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" "amazonka-iot-2.0-6w03vgAfmrM1SG22OsNJXL" 'False) (C1 ('MetaCons "TestInvokeAuthorizerResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "disconnectAfterInSeconds") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Int)) :*: (S1 ('MetaSel ('Just "isAuthenticated") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Bool)) :*: S1 ('MetaSel ('Just "policyDocuments") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Text])))) :*: (S1 ('MetaSel ('Just "principalId") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (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: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:policyDocuments:TestInvokeAuthorizerResponse', testInvokeAuthorizerResponse_policyDocuments - IAM policy documents.

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

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