All Downloads are FREE. Search and download functionalities are using the official Maven repository.

software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlb Maven / Gradle / Ivy

Go to download

CDK constructs for defining an AWS web WAF connected to an Application Load Balancer.

There is a newer version: 2.69.0
Show newest version
package software.amazon.awsconstructs.services.wafwebaclalb;

/**
 */
@javax.annotation.Generated(value = "jsii-pacmak/1.103.0 (build 3b9adc4)", date = "2024-08-28T18:06:42.532Z")
@software.amazon.jsii.Jsii(module = software.amazon.awsconstructs.services.wafwebaclalb.$Module.class, fqn = "@aws-solutions-constructs/aws-wafwebacl-alb.WafwebaclToAlb")
public class WafwebaclToAlb extends software.constructs.Construct {

    protected WafwebaclToAlb(final software.amazon.jsii.JsiiObjectRef objRef) {
        super(objRef);
    }

    protected WafwebaclToAlb(final software.amazon.jsii.JsiiObject.InitializationMode initializationMode) {
        super(initializationMode);
    }

    /**
     * @param scope 
  • represents the scope for all the resources.
This parameter is required. * @param id
  • this is a a scope-unique id.
This parameter is required. * @param props
  • user provided props for the construct.
This parameter is required. */ public WafwebaclToAlb(final @org.jetbrains.annotations.NotNull software.constructs.Construct scope, final @org.jetbrains.annotations.NotNull java.lang.String id, final @org.jetbrains.annotations.NotNull software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlbProps props) { super(software.amazon.jsii.JsiiObject.InitializationMode.JSII); software.amazon.jsii.JsiiEngine.getInstance().createNewObject(this, new Object[] { java.util.Objects.requireNonNull(scope, "scope is required"), java.util.Objects.requireNonNull(id, "id is required"), java.util.Objects.requireNonNull(props, "props is required") }); } public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancer getLoadBalancer() { return software.amazon.jsii.Kernel.get(this, "loadBalancer", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancer.class)); } public @org.jetbrains.annotations.NotNull software.amazon.awscdk.services.wafv2.CfnWebACL getWebacl() { return software.amazon.jsii.Kernel.get(this, "webacl", software.amazon.jsii.NativeType.forClass(software.amazon.awscdk.services.wafv2.CfnWebACL.class)); } /** * A fluent builder for {@link software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlb}. */ public static final class Builder implements software.amazon.jsii.Builder { /** * @return a new instance of {@link Builder}. * @param scope
  • represents the scope for all the resources.
This parameter is required. * @param id
  • this is a a scope-unique id.
This parameter is required. */ public static Builder create(final software.constructs.Construct scope, final java.lang.String id) { return new Builder(scope, id); } private final software.constructs.Construct scope; private final java.lang.String id; private final software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlbProps.Builder props; private Builder(final software.constructs.Construct scope, final java.lang.String id) { this.scope = scope; this.id = id; this.props = new software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlbProps.Builder(); } /** * The existing Application Load Balancer instance that will be protected with the WAF web ACL. *

* @return {@code this} * @param existingLoadBalancerObj The existing Application Load Balancer instance that will be protected with the WAF web ACL. This parameter is required. */ public Builder existingLoadBalancerObj(final software.amazon.awscdk.services.elasticloadbalancingv2.ApplicationLoadBalancer existingLoadBalancerObj) { this.props.existingLoadBalancerObj(existingLoadBalancerObj); return this; } /** * Existing instance of a WAF web ACL, an error will occur if this and props is set. *

* @return {@code this} * @param existingWebaclObj Existing instance of a WAF web ACL, an error will occur if this and props is set. This parameter is required. */ public Builder existingWebaclObj(final software.amazon.awscdk.services.wafv2.CfnWebACL existingWebaclObj) { this.props.existingWebaclObj(existingWebaclObj); return this; } /** * Optional user-provided props to override the default props for the AWS WAF web ACL. *

* Default: - Default properties are used. *

* @return {@code this} * @param webaclProps Optional user-provided props to override the default props for the AWS WAF web ACL. This parameter is required. */ public Builder webaclProps(final software.amazon.awscdk.services.wafv2.CfnWebACLProps webaclProps) { this.props.webaclProps(webaclProps); return this; } /** * @return a newly built instance of {@link software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlb}. */ @Override public software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlb build() { return new software.amazon.awsconstructs.services.wafwebaclalb.WafwebaclToAlb( this.scope, this.id, this.props.build() ); } } }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy