interface ApiEventProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.SAM.CfnFunction.ApiEventProperty |
![]() | software.amazon.awscdk.services.sam.CfnFunction.ApiEventProperty |
![]() | aws_cdk.aws_sam.CfnFunction.ApiEventProperty |
![]() | @aws-cdk/aws-sam » CfnFunction » ApiEventProperty |
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as sam from '@aws-cdk/aws-sam';
declare const customStatements: any;
const apiEventProperty: sam.CfnFunction.ApiEventProperty = {
method: 'method',
path: 'path',
// the properties below are optional
auth: {
apiKeyRequired: false,
authorizationScopes: ['authorizationScopes'],
authorizer: 'authorizer',
resourcePolicy: {
awsAccountBlacklist: ['awsAccountBlacklist'],
awsAccountWhitelist: ['awsAccountWhitelist'],
customStatements: [customStatements],
intrinsicVpcBlacklist: ['intrinsicVpcBlacklist'],
intrinsicVpceBlacklist: ['intrinsicVpceBlacklist'],
intrinsicVpceWhitelist: ['intrinsicVpceWhitelist'],
intrinsicVpcWhitelist: ['intrinsicVpcWhitelist'],
ipRangeBlacklist: ['ipRangeBlacklist'],
ipRangeWhitelist: ['ipRangeWhitelist'],
sourceVpcBlacklist: ['sourceVpcBlacklist'],
sourceVpcWhitelist: ['sourceVpcWhitelist'],
},
},
requestModel: {
model: 'model',
// the properties below are optional
required: false,
validateBody: false,
validateParameters: false,
},
requestParameters: ['requestParameters'],
restApiId: 'restApiId',
};
Properties
Name | Type | Description |
---|---|---|
method | string | CfnFunction.ApiEventProperty.Method . |
path | string | CfnFunction.ApiEventProperty.Path . |
auth? | IResolvable | Auth | CfnFunction.ApiEventProperty.Auth . |
request | IResolvable | Request | CfnFunction.ApiEventProperty.RequestModel . |
request | IResolvable | string | IResolvable | Request [] | CfnFunction.ApiEventProperty.RequestParameters . |
rest | string | CfnFunction.ApiEventProperty.RestApiId . |
method
Type:
string
CfnFunction.ApiEventProperty.Method
.
path
Type:
string
CfnFunction.ApiEventProperty.Path
.
auth?
Type:
IResolvable
|
Auth
(optional)
CfnFunction.ApiEventProperty.Auth
.
requestModel?
Type:
IResolvable
|
Request
(optional)
CfnFunction.ApiEventProperty.RequestModel
.
requestParameters?
Type:
IResolvable
| string |
IResolvable
|
Request
[]
(optional)
CfnFunction.ApiEventProperty.RequestParameters
.
restApiId?
Type:
string
(optional)
CfnFunction.ApiEventProperty.RestApiId
.