Interface CfnFunction.ApiEventProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnFunction.ApiEventProperty.Jsii$Proxy
- Enclosing class:
CfnFunction
@Stability(Stable)
public static interface CfnFunction.ApiEventProperty
extends software.amazon.jsii.JsiiSerializable
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.sam.*;
Object customStatements;
ApiEventProperty apiEventProperty = ApiEventProperty.builder()
.method("method")
.path("path")
// the properties below are optional
.auth(AuthProperty.builder()
.apiKeyRequired(false)
.authorizationScopes(List.of("authorizationScopes"))
.authorizer("authorizer")
.resourcePolicy(AuthResourcePolicyProperty.builder()
.awsAccountBlacklist(List.of("awsAccountBlacklist"))
.awsAccountWhitelist(List.of("awsAccountWhitelist"))
.customStatements(List.of(customStatements))
.intrinsicVpcBlacklist(List.of("intrinsicVpcBlacklist"))
.intrinsicVpceBlacklist(List.of("intrinsicVpceBlacklist"))
.intrinsicVpceWhitelist(List.of("intrinsicVpceWhitelist"))
.intrinsicVpcWhitelist(List.of("intrinsicVpcWhitelist"))
.ipRangeBlacklist(List.of("ipRangeBlacklist"))
.ipRangeWhitelist(List.of("ipRangeWhitelist"))
.sourceVpcBlacklist(List.of("sourceVpcBlacklist"))
.sourceVpcWhitelist(List.of("sourceVpcWhitelist"))
.build())
.build())
.requestModel(RequestModelProperty.builder()
.model("model")
// the properties below are optional
.required(false)
.validateBody(false)
.validateParameters(false)
.build())
.requestParameters(List.of("requestParameters"))
.restApiId("restApiId")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnFunction.ApiEventPropertystatic final classAn implementation forCfnFunction.ApiEventProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default ObjectgetAuth()Returns union: eitherIResolvableorCfnFunction.AuthPropertygetPath()default ObjectReturns union: eitherIResolvableorCfnFunction.RequestModelPropertydefault ObjectReturns union: eitherIResolvableor Listinvalid input: '<'eitherStringorIResolvableorCfnFunction.RequestParameterProperty>default StringMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getMethod
- See Also:
-
getPath
- See Also:
-
getAuth
Returns union: eitherIResolvableorCfnFunction.AuthProperty- See Also:
-
getRequestModel
Returns union: eitherIResolvableorCfnFunction.RequestModelProperty- See Also:
-
getRequestParameters
Returns union: eitherIResolvableor Listinvalid input: '<'eitherStringorIResolvableorCfnFunction.RequestParameterProperty>- See Also:
-
getRestApiId
- See Also:
-
builder
-