Class CfnAuthorizer

java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
All Implemented Interfaces:
IInspectable, ITaggable, software.amazon.jsii.JsiiSerializable, software.constructs.IConstruct, software.constructs.IDependable

@Generated(value="jsii-pacmak/1.97.0 (build 729de35)", date="2024-04-18T17:54:18.246Z") @Stability(Stable) public class CfnAuthorizer extends CfnResource implements IInspectable, ITaggable
Specifies an authorizer.

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.*;
 CfnAuthorizer cfnAuthorizer = CfnAuthorizer.Builder.create(this, "MyCfnAuthorizer")
         .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:
  • Field Details

    • CFN_RESOURCE_TYPE_NAME

      @Stability(Stable) public static final String CFN_RESOURCE_TYPE_NAME
      The CloudFormation resource type name for this resource class.
  • Constructor Details

    • CfnAuthorizer

      protected CfnAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
    • CfnAuthorizer

      protected CfnAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
    • CfnAuthorizer

      @Stability(Stable) public CfnAuthorizer(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnAuthorizerProps props)
      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.
      props - Resource properties. This parameter is required.
  • Method Details

    • inspect

      @Stability(Stable) public void inspect(@NotNull TreeInspector inspector)
      Examines the CloudFormation resource and discloses attributes.

      Specified by:
      inspect in interface IInspectable
      Parameters:
      inspector - tree inspector to collect and process attributes. This parameter is required.
    • renderProperties

      @Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
      Overrides:
      renderProperties in class CfnResource
      Parameters:
      props - This parameter is required.
    • getAttrArn

      @Stability(Stable) @NotNull public String getAttrArn()
      The Amazon Resource Name (ARN) of the authorizer.
    • getCfnProperties

      @Stability(Stable) @NotNull protected Map<String,Object> getCfnProperties()
      Overrides:
      getCfnProperties in class CfnResource
    • getTags

      @Stability(Stable) @NotNull public TagManager getTags()
      Tag Manager which manages the tags for this resource.
      Specified by:
      getTags in interface ITaggable
    • getAuthorizerFunctionArn

      @Stability(Stable) @NotNull public String getAuthorizerFunctionArn()
      The authorizer's Lambda function ARN.
    • setAuthorizerFunctionArn

      @Stability(Stable) public void setAuthorizerFunctionArn(@NotNull String value)
      The authorizer's Lambda function ARN.
    • getAuthorizerName

      @Stability(Stable) @Nullable public String getAuthorizerName()
      The authorizer name.
    • setAuthorizerName

      @Stability(Stable) public void setAuthorizerName(@Nullable String value)
      The authorizer name.
    • getEnableCachingForHttp

      @Stability(Stable) @Nullable public Object getEnableCachingForHttp()
      When true , the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.
    • setEnableCachingForHttp

      @Stability(Stable) public void setEnableCachingForHttp(@Nullable Boolean value)
      When true , the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.
    • setEnableCachingForHttp

      @Stability(Stable) public void setEnableCachingForHttp(@Nullable IResolvable value)
      When true , the result from the authorizer's Lambda function is cached for clients that use persistent HTTP connections.
    • getSigningDisabled

      @Stability(Stable) @Nullable public Object getSigningDisabled()
      Specifies whether AWS IoT validates the token signature in an authorization request.
    • setSigningDisabled

      @Stability(Stable) public void setSigningDisabled(@Nullable Boolean value)
      Specifies whether AWS IoT validates the token signature in an authorization request.
    • setSigningDisabled

      @Stability(Stable) public void setSigningDisabled(@Nullable IResolvable value)
      Specifies whether AWS IoT validates the token signature in an authorization request.
    • getStatus

      @Stability(Stable) @Nullable public String getStatus()
      The status of the authorizer.
    • setStatus

      @Stability(Stable) public void setStatus(@Nullable String value)
      The status of the authorizer.
    • getTagsRaw

      @Stability(Stable) @Nullable public List<CfnTag> getTagsRaw()
      Metadata which can be used to manage the custom authorizer.
    • setTagsRaw

      @Stability(Stable) public void setTagsRaw(@Nullable List<CfnTag> value)
      Metadata which can be used to manage the custom authorizer.
    • getTokenKeyName

      @Stability(Stable) @Nullable public String getTokenKeyName()
      The key used to extract the token from the HTTP headers.
    • setTokenKeyName

      @Stability(Stable) public void setTokenKeyName(@Nullable String value)
      The key used to extract the token from the HTTP headers.
    • getTokenSigningPublicKeys

      @Stability(Stable) @Nullable public Object getTokenSigningPublicKeys()
      The public keys used to validate the token signature returned by your custom authentication service.
    • setTokenSigningPublicKeys

      @Stability(Stable) public void setTokenSigningPublicKeys(@Nullable IResolvable value)
      The public keys used to validate the token signature returned by your custom authentication service.
    • setTokenSigningPublicKeys

      @Stability(Stable) public void setTokenSigningPublicKeys(@Nullable Map<String,String> value)
      The public keys used to validate the token signature returned by your custom authentication service.