Describes the default authorizer.
Requires permission to access the DescribeDefaultAuthorizer action.
See also: AWS API Documentation
Request Syntax
response = client.describe_default_authorizer()
{
'authorizerDescription': {
'authorizerName': 'string',
'authorizerArn': 'string',
'authorizerFunctionArn': 'string',
'tokenKeyName': 'string',
'tokenSigningPublicKeys': {
'string': 'string'
},
'status': 'ACTIVE'|'INACTIVE',
'creationDate': datetime(2015, 1, 1),
'lastModifiedDate': datetime(2015, 1, 1),
'signingDisabled': True|False,
'enableCachingForHttp': True|False
}
}
Response Structure
The default authorizer's description.
The authorizer name.
The authorizer ARN.
The authorizer's Lambda function ARN.
The key used to extract the token from the HTTP headers.
The public keys used to validate the token signature returned by your custom authentication service.
The status of the authorizer.
The UNIX timestamp of when the authorizer was created.
The UNIX timestamp of when the authorizer was last updated.
Specifies whether IoT validates the token signature in an authorization request.
When true
, the result from the authorizer’s Lambda function is cached for the time specified in refreshAfterInSeconds
. The cached result is used while the device reuses the same HTTP connection.
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