@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:39.849Z") @Stability(value=Stable) public class CfnAuthorizer extends CfnResource implements IInspectable
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();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnAuthorizer.Builder
A fluent builder for
CfnAuthorizer. |
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnAuthorizer(software.constructs.Construct scope,
String id,
CfnAuthorizerProps props)
Create a new `AWS::IoT::Authorizer`.
|
protected |
CfnAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnAuthorizer(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAttrArn()
The Amazon Resource Name (ARN) of the authorizer.
|
String |
getAuthorizerFunctionArn()
The authorizer's Lambda function ARN.
|
String |
getAuthorizerName()
The authorizer name.
|
protected Map<String,Object> |
getCfnProperties() |
Object |
getEnableCachingForHttp()
`AWS::IoT::Authorizer.EnableCachingForHttp`.
|
Object |
getSigningDisabled()
Specifies whether AWS IoT validates the token signature in an authorization request.
|
String |
getStatus()
The status of the authorizer.
|
TagManager |
getTags()
Metadata which can be used to manage the custom authorizer.
|
String |
getTokenKeyName()
The key used to extract the token from the HTTP headers.
|
Object |
getTokenSigningPublicKeys()
The public keys used to validate the token signature returned by your custom authentication service.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setAuthorizerFunctionArn(String value)
The authorizer's Lambda function ARN.
|
void |
setAuthorizerName(String value)
The authorizer name.
|
void |
setEnableCachingForHttp(Boolean value)
`AWS::IoT::Authorizer.EnableCachingForHttp`.
|
void |
setEnableCachingForHttp(IResolvable value)
`AWS::IoT::Authorizer.EnableCachingForHttp`.
|
void |
setSigningDisabled(Boolean value)
Specifies whether AWS IoT validates the token signature in an authorization request.
|
void |
setSigningDisabled(IResolvable value)
Specifies whether AWS IoT validates the token signature in an authorization request.
|
void |
setStatus(String value)
The status of the authorizer.
|
void |
setTokenKeyName(String value)
The key used to extract the token from the HTTP headers.
|
void |
setTokenSigningPublicKeys(IResolvable value)
The public keys used to validate the token signature returned by your custom authentication service.
|
void |
setTokenSigningPublicKeys(Map<String,String> value)
The public keys used to validate the token signature returned by your custom authentication service.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnAuthorizer(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnAuthorizer(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnAuthorizer(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnAuthorizerProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull public String getAttrArn()
@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
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..."
@Stability(value=Stable) @NotNull public String getAuthorizerFunctionArn()
@Stability(value=Stable)
public void setAuthorizerFunctionArn(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getAuthorizerName()
@Stability(value=Stable)
public void setAuthorizerName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getEnableCachingForHttp()
@Stability(value=Stable)
public void setEnableCachingForHttp(@Nullable
Boolean value)
@Stability(value=Stable)
public void setEnableCachingForHttp(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getSigningDisabled()
@Stability(value=Stable)
public void setSigningDisabled(@Nullable
Boolean value)
@Stability(value=Stable)
public void setSigningDisabled(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public String getStatus()
Valid values: ACTIVE | INACTIVE
@Stability(value=Stable)
public void setStatus(@Nullable
String value)
Valid values: ACTIVE | INACTIVE
@Stability(value=Stable) @Nullable public String getTokenKeyName()
@Stability(value=Stable)
public void setTokenKeyName(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getTokenSigningPublicKeys()
@Stability(value=Stable)
public void setTokenSigningPublicKeys(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.