Class WafwebaclToApiGateway.Builder
java.lang.Object
software.amazon.awsconstructs.services.wafwebaclapigateway.WafwebaclToApiGateway.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<WafwebaclToApiGateway>
- Enclosing class:
WafwebaclToApiGateway
public static final class WafwebaclToApiGateway.Builder
extends Object
implements software.amazon.jsii.Builder<WafwebaclToApiGateway>
A fluent builder for
WafwebaclToApiGateway.-
Method Summary
Modifier and TypeMethodDescriptionbuild()existingApiGatewayInterface(software.amazon.awscdk.services.apigateway.IRestApi existingApiGatewayInterface) The existing API Gateway instance that will be protected with the WAF web ACL.existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Existing instance of a WAF web ACL, an error will occur if this and props is set.webaclProps(Object webaclProps) Optional user-provided props to override the default props for the AWS WAF web ACL.
-
Method Details
-
create
- Parameters:
scope-- represents the scope for all the resources.
id-- this is a a scope-unique id.
- Returns:
- a new instance of
WafwebaclToApiGateway.Builder.
-
existingApiGatewayInterface
public WafwebaclToApiGateway.Builder existingApiGatewayInterface(software.amazon.awscdk.services.apigateway.IRestApi existingApiGatewayInterface) The existing API Gateway instance that will be protected with the WAF web ACL.- Parameters:
existingApiGatewayInterface- The existing API Gateway instance that will be protected with the WAF web ACL. This parameter is required.- Returns:
this
-
existingWebaclObj
public WafwebaclToApiGateway.Builder existingWebaclObj(software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) Existing instance of a WAF web ACL, an error will occur if this and props is set.- Parameters:
existingWebaclObj- Existing instance of a WAF web ACL, an error will occur if this and props is set. This parameter is required.- Returns:
this
-
webaclProps
Optional user-provided props to override the default props for the AWS WAF web ACL.Default: - Default properties are used.
- Parameters:
webaclProps- Optional user-provided props to override the default props for the AWS WAF web ACL. This parameter is required.- Returns:
this
-
build
- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<WafwebaclToApiGateway>- Returns:
- a newly built instance of
WafwebaclToApiGateway.
-