Interface CfnAuthorizerProps
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnAuthorizerProps.Jsii$Proxy
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-24T13:34:40.053Z")
@Stability(Stable)
public interface CfnAuthorizerProps
extends software.amazon.jsii.JsiiSerializable
Properties for defining a
CfnAuthorizer.
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.iot.*;
CfnAuthorizerProps cfnAuthorizerProps = CfnAuthorizerProps.builder()
.authorizerFunctionArn("authorizerFunctionArn")
// the properties below are optional
.authorizerName("authorizerName")
.enableCachingForHttp(false)
.signingDisabled(false)
.status("status")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.tokenKeyName("tokenKeyName")
.tokenSigningPublicKeys(Map.of(
"tokenSigningPublicKeysKey", "tokenSigningPublicKeys"))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnAuthorizerPropsstatic final classAn implementation forCfnAuthorizerProps -
Method Summary
Modifier and TypeMethodDescriptionstatic CfnAuthorizerProps.Builderbuilder()The authorizer's Lambda function ARN.default StringThe authorizer name.default ObjectWhentrue, the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.default ObjectSpecifies whether AWS IoT validates the token signature in an authorization request.default StringThe status of the authorizer.getTags()Metadata which can be used to manage the custom authorizer.default StringThe key used to extract the token from the HTTP headers.default ObjectThe public keys used to validate the token signature returned by your custom authentication service.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getAuthorizerFunctionArn
The authorizer's Lambda function ARN.- See Also:
-
getAuthorizerName
The authorizer name.- See Also:
-
getEnableCachingForHttp
Whentrue, the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.The results are cached for the time specified by the Lambda function in
refreshAfterInSeconds. This value doesn't affect authorization of clients that use MQTT connections.Returns union: either
BooleanorIResolvable- See Also:
-
getSigningDisabled
Specifies whether AWS IoT validates the token signature in an authorization request.Returns union: either
BooleanorIResolvable- See Also:
-
getStatus
The status of the authorizer.Valid values:
ACTIVE|INACTIVE- See Also:
-
getTags
Metadata which can be used to manage the custom authorizer.For URI Request parameters use format: ...key1=value1&key2=value2...
For the CLI command-line parameter use format: &&tags "key1=value1&key2=value2..."
For the cli-input-json file use format: "tags": "key1=value1&key2=value2..."
- See Also:
-
getTokenKeyName
The key used to extract the token from the HTTP headers.- See Also:
-
getTokenSigningPublicKeys
The public keys used to validate the token signature returned by your custom authentication service.Returns union: either Mapinvalid input: '<'String,
String> orIResolvable- See Also:
-
builder
- Returns:
- a
CfnAuthorizerProps.BuilderofCfnAuthorizerProps
-