Interface CfnFunction.IApiEventProperty
Namespace: Amazon.CDK.AWS.SAM
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public interface IApiEventProperty
Syntax (vb)
Public Interface IApiEventProperty
Remarks
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SAM;
var customStatements;
var apiEventProperty = new ApiEventProperty {
Method = "method",
Path = "path",
// the properties below are optional
Auth = new AuthProperty {
ApiKeyRequired = false,
AuthorizationScopes = new [] { "authorizationScopes" },
Authorizer = "authorizer",
ResourcePolicy = new AuthResourcePolicyProperty {
AwsAccountBlacklist = new [] { "awsAccountBlacklist" },
AwsAccountWhitelist = new [] { "awsAccountWhitelist" },
CustomStatements = new [] { customStatements },
IntrinsicVpcBlacklist = new [] { "intrinsicVpcBlacklist" },
IntrinsicVpceBlacklist = new [] { "intrinsicVpceBlacklist" },
IntrinsicVpceWhitelist = new [] { "intrinsicVpceWhitelist" },
IntrinsicVpcWhitelist = new [] { "intrinsicVpcWhitelist" },
IpRangeBlacklist = new [] { "ipRangeBlacklist" },
IpRangeWhitelist = new [] { "ipRangeWhitelist" },
SourceVpcBlacklist = new [] { "sourceVpcBlacklist" },
SourceVpcWhitelist = new [] { "sourceVpcWhitelist" }
}
},
RequestModel = new RequestModelProperty {
Model = "model",
// the properties below are optional
Required = false,
ValidateBody = false,
ValidateParameters = false
},
RequestParameters = new [] { "requestParameters" },
RestApiId = "restApiId"
};
Synopsis
Properties
Auth | |
Method | |
Path | |
RequestModel | |
RequestParameters | |
RestApiId |
Properties
Auth
virtual object Auth { get; }
Property Value
System.Object
Remarks
Method
string Method { get; }
Property Value
System.String
Remarks
Path
string Path { get; }
Property Value
System.String
Remarks
RequestModel
virtual object RequestModel { get; }
Property Value
System.Object
Remarks
RequestParameters
virtual object RequestParameters { get; }
Property Value
System.Object
Remarks
RestApiId
virtual string RestApiId { get; }
Property Value
System.String