Authorizer
Creates and manages an AWS IoT Authorizer.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aws.iot.Authorizer;
import com.pulumi.aws.iot.AuthorizerArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var example = new Authorizer("example", AuthorizerArgs.builder()
.authorizerFunctionArn(aws_lambda_function.example().arn())
.signingDisabled(false)
.status("ACTIVE")
.tokenKeyName("Token-Header")
.tokenSigningPublicKeys(Map.of("Key1", Files.readString(Paths.get("test-fixtures/iot-authorizer-signing-key.pem"))))
.build());
}
}
Content copied to clipboard
Import
IOT Authorizers can be imported using the name, e.g.,
$ pulumi import aws:iot/authorizer:Authorizer example example
Content copied to clipboard
Properties
Link copied to clipboard
The ARN of the authorizer's Lambda function.
Link copied to clipboard
Specifies whether the HTTP caching is enabled or not. Default: false
.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Specifies whether AWS IoT validates the token signature in an authorization request. Default: false
.
Link copied to clipboard
The name of the token key used to extract the token from the HTTP headers. This value is required if signing is enabled in your authorizer.
Link copied to clipboard
The public keys used to verify the digital signature returned by your custom authentication service. This value is required if signing is enabled in your authorizer.