interface AuthProperty
Language | Type name |
---|---|
.NET | Amazon.CDK.AWS.SAM.CfnApi.AuthProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssam#CfnApi_AuthProperty |
Java | software.amazon.awscdk.services.sam.CfnApi.AuthProperty |
Python | aws_cdk.aws_sam.CfnApi.AuthProperty |
TypeScript | aws-cdk-lib » aws_sam » CfnApi » AuthProperty |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sam as sam } from 'aws-cdk-lib';
declare const authorizers: any;
const authProperty: sam.CfnApi.AuthProperty = {
addDefaultAuthorizerToCorsPreflight: false,
authorizers: authorizers,
defaultAuthorizer: 'defaultAuthorizer',
};
Properties
Name | Type | Description |
---|---|---|
add | boolean | IResolvable | |
authorizers? | any | |
default | string |
addDefaultAuthorizerToCorsPreflight?
Type:
boolean |
IResolvable
(optional)
authorizers?
Type:
any
(optional)
defaultAuthorizer?
Type:
string
(optional)