Authorizer

class Authorizer : KotlinCustomResource

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());
}
}

Import

IOT Authorizers can be imported using the name, e.g.,

$ pulumi import aws:iot/authorizer:Authorizer example example

Properties

Link copied to clipboard
val arn: Output<String>

The ARN of the authorizer.

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
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the authorizer.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val signingDisabled: Output<Boolean>?

Specifies whether AWS IoT validates the token signature in an authorization request. Default: false.

Link copied to clipboard
val status: Output<String>?

The status of Authorizer request at creation. Valid values: ACTIVE, INACTIVE. Default: ACTIVE.

Link copied to clipboard
val tokenKeyName: Output<String>?

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.

Link copied to clipboard
val urn: Output<String>