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) AWS::IoT::Authorizer.EnableCachingForHttp
.enableCachingForHttp
(IResolvable enableCachingForHttp) AWS::IoT::Authorizer.EnableCachingForHttp
.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
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- 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
-
authorizerName
The authorizer name.- Parameters:
authorizerName
- The authorizer name. This parameter is required.- Returns:
this
-
enableCachingForHttp
AWS::IoT::Authorizer.EnableCachingForHttp
.- Parameters:
enableCachingForHttp
-AWS::IoT::Authorizer.EnableCachingForHttp
. This parameter is required.- Returns:
this
-
enableCachingForHttp
@Stability(Stable) public CfnAuthorizer.Builder enableCachingForHttp(IResolvable enableCachingForHttp) AWS::IoT::Authorizer.EnableCachingForHttp
.- Parameters:
enableCachingForHttp
-AWS::IoT::Authorizer.EnableCachingForHttp
. This parameter is required.- Returns:
this
-
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
-
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
-
status
The status of the authorizer.Valid values:
ACTIVE
|INACTIVE
- Parameters:
status
- The status of the authorizer. This parameter is required.- Returns:
this
-
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
-
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
-
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
-
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
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnAuthorizer>
- Returns:
- a newly built instance of
CfnAuthorizer
.
-