Class CfnAuthorizerMixinProps.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.iot.CfnAuthorizerMixinProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnAuthorizerMixinProps>
- Enclosing interface:
CfnAuthorizerMixinProps
@Stability(Stable)
public static final class CfnAuthorizerMixinProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnAuthorizerMixinProps>
A builder for
CfnAuthorizerMixinProps-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthorizerFunctionArn(String authorizerFunctionArn) Sets the value ofCfnAuthorizerMixinProps.getAuthorizerFunctionArn()authorizerName(String authorizerName) Sets the value ofCfnAuthorizerMixinProps.getAuthorizerName()build()Builds the configured instance.enableCachingForHttp(Boolean enableCachingForHttp) Sets the value ofCfnAuthorizerMixinProps.getEnableCachingForHttp()enableCachingForHttp(IResolvable enableCachingForHttp) Sets the value ofCfnAuthorizerMixinProps.getEnableCachingForHttp()signingDisabled(Boolean signingDisabled) Sets the value ofCfnAuthorizerMixinProps.getSigningDisabled()signingDisabled(IResolvable signingDisabled) Sets the value ofCfnAuthorizerMixinProps.getSigningDisabled()Sets the value ofCfnAuthorizerMixinProps.getStatus()Sets the value ofCfnAuthorizerMixinProps.getTags()tokenKeyName(String tokenKeyName) Sets the value ofCfnAuthorizerMixinProps.getTokenKeyName()tokenSigningPublicKeys(Map<String, String> tokenSigningPublicKeys) Sets the value ofCfnAuthorizerMixinProps.getTokenSigningPublicKeys()tokenSigningPublicKeys(IResolvable tokenSigningPublicKeys) Sets the value ofCfnAuthorizerMixinProps.getTokenSigningPublicKeys()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
authorizerFunctionArn
@Stability(Stable) public CfnAuthorizerMixinProps.Builder authorizerFunctionArn(String authorizerFunctionArn) Sets the value ofCfnAuthorizerMixinProps.getAuthorizerFunctionArn()- Parameters:
authorizerFunctionArn- The authorizer's Lambda function ARN.- Returns:
this
-
authorizerName
Sets the value ofCfnAuthorizerMixinProps.getAuthorizerName()- Parameters:
authorizerName- The authorizer name.- Returns:
this
-
enableCachingForHttp
@Stability(Stable) public CfnAuthorizerMixinProps.Builder enableCachingForHttp(Boolean enableCachingForHttp) Sets the value ofCfnAuthorizerMixinProps.getEnableCachingForHttp()- Parameters:
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 inrefreshAfterInSeconds. This value doesn't affect authorization of clients that use MQTT connections.- Returns:
this
-
enableCachingForHttp
@Stability(Stable) public CfnAuthorizerMixinProps.Builder enableCachingForHttp(IResolvable enableCachingForHttp) Sets the value ofCfnAuthorizerMixinProps.getEnableCachingForHttp()- Parameters:
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 inrefreshAfterInSeconds. This value doesn't affect authorization of clients that use MQTT connections.- Returns:
this
-
signingDisabled
Sets the value ofCfnAuthorizerMixinProps.getSigningDisabled()- Parameters:
signingDisabled- Specifies whether AWS IoT validates the token signature in an authorization request.- Returns:
this
-
signingDisabled
@Stability(Stable) public CfnAuthorizerMixinProps.Builder signingDisabled(IResolvable signingDisabled) Sets the value ofCfnAuthorizerMixinProps.getSigningDisabled()- Parameters:
signingDisabled- Specifies whether AWS IoT validates the token signature in an authorization request.- Returns:
this
-
status
Sets the value ofCfnAuthorizerMixinProps.getStatus()- Parameters:
status- The status of the authorizer. Valid values:ACTIVE|INACTIVE- Returns:
this
-
tags
Sets the value ofCfnAuthorizerMixinProps.getTags()- Parameters:
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..."
- Returns:
this
-
tokenKeyName
Sets the value ofCfnAuthorizerMixinProps.getTokenKeyName()- Parameters:
tokenKeyName- The key used to extract the token from the HTTP headers.- Returns:
this
-
tokenSigningPublicKeys
@Stability(Stable) public CfnAuthorizerMixinProps.Builder tokenSigningPublicKeys(Map<String, String> tokenSigningPublicKeys) Sets the value ofCfnAuthorizerMixinProps.getTokenSigningPublicKeys()- Parameters:
tokenSigningPublicKeys- The public keys used to validate the token signature returned by your custom authentication service.- Returns:
this
-
tokenSigningPublicKeys
@Stability(Stable) public CfnAuthorizerMixinProps.Builder tokenSigningPublicKeys(IResolvable tokenSigningPublicKeys) Sets the value ofCfnAuthorizerMixinProps.getTokenSigningPublicKeys()- Parameters:
tokenSigningPublicKeys- The public keys used to validate the token signature returned by your custom authentication service.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnAuthorizerMixinProps>- Returns:
- a new instance of
CfnAuthorizerMixinProps - Throws:
NullPointerException- if any required attribute was not provided
-