Class CfnAuthorizer.Builder
java.lang.Object
software.amazon.awscdk.services.iot.CfnAuthorizer.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAuthorizer>
- Enclosing class:
CfnAuthorizer
@Stability(Stable)
public static final class CfnAuthorizer.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAuthorizer>
A fluent builder for
CfnAuthorizer
.-
Method Summary
Modifier and TypeMethodDescriptionauthorizerFunctionArn
(String authorizerFunctionArn) The authorizer's Lambda function ARN.authorizerName
(String authorizerName) The authorizer name.build()
static CfnAuthorizer.Builder
enableCachingForHttp
(Boolean enableCachingForHttp) Whentrue
, the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.enableCachingForHttp
(IResolvable enableCachingForHttp) Whentrue
, the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.signingDisabled
(Boolean signingDisabled) Specifies whether AWS IoT validates the token signature in an authorization request.signingDisabled
(IResolvable signingDisabled) Specifies whether AWS IoT validates the token signature in an authorization request.The status of the authorizer.Metadata which can be used to manage the custom authorizer.tokenKeyName
(String tokenKeyName) The key used to extract the token from the HTTP headers.tokenSigningPublicKeys
(Map<String, String> tokenSigningPublicKeys) The public keys used to validate the token signature returned by your custom authentication service.tokenSigningPublicKeys
(IResolvable tokenSigningPublicKeys) The public keys used to validate the token signature returned by your custom authentication service.
-
Method Details
-
create
@Stability(Stable) public static CfnAuthorizer.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnAuthorizer.Builder
.
-
authorizerFunctionArn
The authorizer's Lambda function ARN.- Parameters:
authorizerFunctionArn
- The authorizer's Lambda function ARN. This parameter is required.- Returns:
this
- See Also:
-
authorizerName
The authorizer name.- Parameters:
authorizerName
- The authorizer name. This parameter is required.- Returns:
this
- See Also:
-
enableCachingForHttp
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.- Parameters:
enableCachingForHttp
- Whentrue
, the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections. This parameter is required.- Returns:
this
- See Also:
-
enableCachingForHttp
@Stability(Stable) public CfnAuthorizer.Builder enableCachingForHttp(IResolvable enableCachingForHttp) 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.- Parameters:
enableCachingForHttp
- Whentrue
, the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections. This parameter is required.- Returns:
this
- See Also:
-
signingDisabled
Specifies whether AWS IoT validates the token signature in an authorization request.- Parameters:
signingDisabled
- Specifies whether AWS IoT validates the token signature in an authorization request. This parameter is required.- Returns:
this
- See Also:
-
signingDisabled
Specifies whether AWS IoT validates the token signature in an authorization request.- Parameters:
signingDisabled
- Specifies whether AWS IoT validates the token signature in an authorization request. This parameter is required.- Returns:
this
- See Also:
-
status
The status of the authorizer.Valid values:
ACTIVE
|INACTIVE
- Parameters:
status
- The status of the authorizer. This parameter is required.- Returns:
this
- See Also:
-
tags
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..."
- Parameters:
tags
- Metadata which can be used to manage the custom authorizer. This parameter is required.- Returns:
this
- See Also:
-
tokenKeyName
The key used to extract the token from the HTTP headers.- Parameters:
tokenKeyName
- The key used to extract the token from the HTTP headers. This parameter is required.- Returns:
this
- See Also:
-
tokenSigningPublicKeys
@Stability(Stable) public CfnAuthorizer.Builder tokenSigningPublicKeys(IResolvable tokenSigningPublicKeys) The public keys used to validate the token signature returned by your custom authentication service.- Parameters:
tokenSigningPublicKeys
- The public keys used to validate the token signature returned by your custom authentication service. This parameter is required.- Returns:
this
- See Also:
-
tokenSigningPublicKeys
@Stability(Stable) public CfnAuthorizer.Builder tokenSigningPublicKeys(Map<String, String> tokenSigningPublicKeys) The public keys used to validate the token signature returned by your custom authentication service.- Parameters:
tokenSigningPublicKeys
- The public keys used to validate the token signature returned by your custom authentication service. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAuthorizer>
- Returns:
- a newly built instance of
CfnAuthorizer
.
-