Select your cookie preferences

We use cookies and similar tools to enhance your experience, provide our services, deliver relevant advertising, and make improvements. Approved third parties also use these tools to help us deliver advertising and provide certain site features.

set_default_authorizer

set_default_authorizer(**kwargs)

Sets the default authorizer. This will be used if a websocket connection is made without specifying an authorizer.

Requires permission to access the SetDefaultAuthorizer action.

See also: AWS API Documentation

Request Syntax

response = client.set_default_authorizer(
    authorizerName='string'
)
Parameters
authorizerName (string) --

[REQUIRED]

The authorizer name.

Return type
dict
Returns
Response Syntax
{
    'authorizerName': 'string',
    'authorizerArn': 'string'
}

Response Structure

  • (dict) --
    • authorizerName (string) --

      The authorizer name.

    • authorizerArn (string) --

      The authorizer ARN.

Exceptions

  • IoT.Client.exceptions.ResourceNotFoundException
  • IoT.Client.exceptions.InvalidRequestException
  • IoT.Client.exceptions.ThrottlingException
  • IoT.Client.exceptions.UnauthorizedException
  • IoT.Client.exceptions.ServiceUnavailableException
  • IoT.Client.exceptions.InternalFailureException
  • IoT.Client.exceptions.ResourceAlreadyExistsException