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

com.pulumi.aws.wafv2.outputs.WebAclAssociationConfigRequestBody Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.aws.wafv2.outputs;

import com.pulumi.aws.wafv2.outputs.WebAclAssociationConfigRequestBodyApiGateway;
import com.pulumi.aws.wafv2.outputs.WebAclAssociationConfigRequestBodyAppRunnerService;
import com.pulumi.aws.wafv2.outputs.WebAclAssociationConfigRequestBodyCloudfront;
import com.pulumi.aws.wafv2.outputs.WebAclAssociationConfigRequestBodyCognitoUserPool;
import com.pulumi.aws.wafv2.outputs.WebAclAssociationConfigRequestBodyVerifiedAccessInstance;
import com.pulumi.core.annotations.CustomType;
import java.util.List;
import java.util.Objects;
import javax.annotation.Nullable;

@CustomType
public final class WebAclAssociationConfigRequestBody {
    /**
     * @return Customizes the request body that your protected Amazon API Gateway REST APIs forward to AWS WAF for inspection. Applicable only when `scope` is set to `CLOUDFRONT`. See `api_gateway` below for details.
     * 
     */
    private @Nullable List apiGateways;
    /**
     * @return Customizes the request body that your protected Amazon App Runner services forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `app_runner_service` below for details.
     * 
     */
    private @Nullable List appRunnerServices;
    /**
     * @return Customizes the request body that your protected Amazon CloudFront distributions forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `cloudfront` below for details.
     * 
     */
    private @Nullable List cloudfronts;
    /**
     * @return Customizes the request body that your protected Amazon Cognito user pools forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `cognito_user_pool` below for details.
     * 
     */
    private @Nullable List cognitoUserPools;
    /**
     * @return Customizes the request body that your protected AWS Verfied Access instances forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `verified_access_instance` below for details.
     * 
     */
    private @Nullable List verifiedAccessInstances;

    private WebAclAssociationConfigRequestBody() {}
    /**
     * @return Customizes the request body that your protected Amazon API Gateway REST APIs forward to AWS WAF for inspection. Applicable only when `scope` is set to `CLOUDFRONT`. See `api_gateway` below for details.
     * 
     */
    public List apiGateways() {
        return this.apiGateways == null ? List.of() : this.apiGateways;
    }
    /**
     * @return Customizes the request body that your protected Amazon App Runner services forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `app_runner_service` below for details.
     * 
     */
    public List appRunnerServices() {
        return this.appRunnerServices == null ? List.of() : this.appRunnerServices;
    }
    /**
     * @return Customizes the request body that your protected Amazon CloudFront distributions forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `cloudfront` below for details.
     * 
     */
    public List cloudfronts() {
        return this.cloudfronts == null ? List.of() : this.cloudfronts;
    }
    /**
     * @return Customizes the request body that your protected Amazon Cognito user pools forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `cognito_user_pool` below for details.
     * 
     */
    public List cognitoUserPools() {
        return this.cognitoUserPools == null ? List.of() : this.cognitoUserPools;
    }
    /**
     * @return Customizes the request body that your protected AWS Verfied Access instances forward to AWS WAF for inspection. Applicable only when `scope` is set to `REGIONAL`. See `verified_access_instance` below for details.
     * 
     */
    public List verifiedAccessInstances() {
        return this.verifiedAccessInstances == null ? List.of() : this.verifiedAccessInstances;
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(WebAclAssociationConfigRequestBody defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable List apiGateways;
        private @Nullable List appRunnerServices;
        private @Nullable List cloudfronts;
        private @Nullable List cognitoUserPools;
        private @Nullable List verifiedAccessInstances;
        public Builder() {}
        public Builder(WebAclAssociationConfigRequestBody defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.apiGateways = defaults.apiGateways;
    	      this.appRunnerServices = defaults.appRunnerServices;
    	      this.cloudfronts = defaults.cloudfronts;
    	      this.cognitoUserPools = defaults.cognitoUserPools;
    	      this.verifiedAccessInstances = defaults.verifiedAccessInstances;
        }

        @CustomType.Setter
        public Builder apiGateways(@Nullable List apiGateways) {

            this.apiGateways = apiGateways;
            return this;
        }
        public Builder apiGateways(WebAclAssociationConfigRequestBodyApiGateway... apiGateways) {
            return apiGateways(List.of(apiGateways));
        }
        @CustomType.Setter
        public Builder appRunnerServices(@Nullable List appRunnerServices) {

            this.appRunnerServices = appRunnerServices;
            return this;
        }
        public Builder appRunnerServices(WebAclAssociationConfigRequestBodyAppRunnerService... appRunnerServices) {
            return appRunnerServices(List.of(appRunnerServices));
        }
        @CustomType.Setter
        public Builder cloudfronts(@Nullable List cloudfronts) {

            this.cloudfronts = cloudfronts;
            return this;
        }
        public Builder cloudfronts(WebAclAssociationConfigRequestBodyCloudfront... cloudfronts) {
            return cloudfronts(List.of(cloudfronts));
        }
        @CustomType.Setter
        public Builder cognitoUserPools(@Nullable List cognitoUserPools) {

            this.cognitoUserPools = cognitoUserPools;
            return this;
        }
        public Builder cognitoUserPools(WebAclAssociationConfigRequestBodyCognitoUserPool... cognitoUserPools) {
            return cognitoUserPools(List.of(cognitoUserPools));
        }
        @CustomType.Setter
        public Builder verifiedAccessInstances(@Nullable List verifiedAccessInstances) {

            this.verifiedAccessInstances = verifiedAccessInstances;
            return this;
        }
        public Builder verifiedAccessInstances(WebAclAssociationConfigRequestBodyVerifiedAccessInstance... verifiedAccessInstances) {
            return verifiedAccessInstances(List.of(verifiedAccessInstances));
        }
        public WebAclAssociationConfigRequestBody build() {
            final var _resultValue = new WebAclAssociationConfigRequestBody();
            _resultValue.apiGateways = apiGateways;
            _resultValue.appRunnerServices = appRunnerServices;
            _resultValue.cloudfronts = cloudfronts;
            _resultValue.cognitoUserPools = cognitoUserPools;
            _resultValue.verifiedAccessInstances = verifiedAccessInstances;
            return _resultValue;
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy