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

com.pulumi.azure.appservice.outputs.GetFunctionAppSiteConfig Maven / Gradle / Ivy

Go to download

A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.

There is a newer version: 6.10.0-alpha.1731737215
Show 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.azure.appservice.outputs;

import com.pulumi.azure.appservice.outputs.GetFunctionAppSiteConfigCors;
import com.pulumi.azure.appservice.outputs.GetFunctionAppSiteConfigIpRestriction;
import com.pulumi.azure.appservice.outputs.GetFunctionAppSiteConfigScmIpRestriction;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;

@CustomType
public final class GetFunctionAppSiteConfig {
    /**
     * @return Is the app loaded at all times?
     * 
     */
    private Boolean alwaysOn;
    /**
     * @return The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.
     * 
     */
    private Integer appScaleLimit;
    private String autoSwapSlotName;
    /**
     * @return A `cors` block as defined above.
     * 
     */
    private GetFunctionAppSiteConfigCors cors;
    /**
     * @return The version of the .NET framework's CLR used in this App Service.
     * 
     */
    private String dotnetFrameworkVersion;
    /**
     * @return The number of minimum instances for this function app. Only applicable to apps on the Premium plan.
     * 
     */
    private Integer elasticInstanceMinimum;
    /**
     * @return State of FTP / FTPS service for this AppService.
     * 
     */
    private String ftpsState;
    private String healthCheckPath;
    /**
     * @return Is HTTP2 Enabled on this App Service?
     * 
     */
    private Boolean http2Enabled;
    /**
     * @return One or more `ip_restriction` blocks as defined above.
     * 
     */
    private List ipRestrictions;
    /**
     * @return Java version hosted by the function app in Azure.
     * 
     */
    private String javaVersion;
    /**
     * @return Linux App Framework and version for the AppService.
     * 
     */
    private String linuxFxVersion;
    /**
     * @return The minimum supported TLS version for this App Service.
     * 
     */
    private String minTlsVersion;
    /**
     * @return The number of pre-warmed instances for this function app. Only applicable to apps on the Premium plan.
     * 
     */
    private Integer preWarmedInstanceCount;
    /**
     * @return Is Runtime Scale Monitoring Enabled on this function app?
     * 
     */
    private Boolean runtimeScaleMonitoringEnabled;
    /**
     * @return One or more `scm_ip_restriction` blocks as defined above.
     * 
     */
    private List scmIpRestrictions;
    /**
     * @return The type of Source Control enabled for this App Service.
     * 
     */
    private String scmType;
    /**
     * @return IP security restrictions for scm to use main.
     * 
     */
    private Boolean scmUseMainIpRestriction;
    /**
     * @return Does the App Service run in 32 bit mode, rather than 64 bit mode?
     * 
     */
    private Boolean use32BitWorkerProcess;
    /**
     * @return (Optional) Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied?
     * 
     */
    private Boolean vnetRouteAllEnabled;
    /**
     * @return Are WebSockets enabled for this App Service?
     * 
     */
    private Boolean websocketsEnabled;

    private GetFunctionAppSiteConfig() {}
    /**
     * @return Is the app loaded at all times?
     * 
     */
    public Boolean alwaysOn() {
        return this.alwaysOn;
    }
    /**
     * @return The number of workers this function app can scale out to. Only applicable to apps on the Consumption and Premium plan.
     * 
     */
    public Integer appScaleLimit() {
        return this.appScaleLimit;
    }
    public String autoSwapSlotName() {
        return this.autoSwapSlotName;
    }
    /**
     * @return A `cors` block as defined above.
     * 
     */
    public GetFunctionAppSiteConfigCors cors() {
        return this.cors;
    }
    /**
     * @return The version of the .NET framework's CLR used in this App Service.
     * 
     */
    public String dotnetFrameworkVersion() {
        return this.dotnetFrameworkVersion;
    }
    /**
     * @return The number of minimum instances for this function app. Only applicable to apps on the Premium plan.
     * 
     */
    public Integer elasticInstanceMinimum() {
        return this.elasticInstanceMinimum;
    }
    /**
     * @return State of FTP / FTPS service for this AppService.
     * 
     */
    public String ftpsState() {
        return this.ftpsState;
    }
    public String healthCheckPath() {
        return this.healthCheckPath;
    }
    /**
     * @return Is HTTP2 Enabled on this App Service?
     * 
     */
    public Boolean http2Enabled() {
        return this.http2Enabled;
    }
    /**
     * @return One or more `ip_restriction` blocks as defined above.
     * 
     */
    public List ipRestrictions() {
        return this.ipRestrictions;
    }
    /**
     * @return Java version hosted by the function app in Azure.
     * 
     */
    public String javaVersion() {
        return this.javaVersion;
    }
    /**
     * @return Linux App Framework and version for the AppService.
     * 
     */
    public String linuxFxVersion() {
        return this.linuxFxVersion;
    }
    /**
     * @return The minimum supported TLS version for this App Service.
     * 
     */
    public String minTlsVersion() {
        return this.minTlsVersion;
    }
    /**
     * @return The number of pre-warmed instances for this function app. Only applicable to apps on the Premium plan.
     * 
     */
    public Integer preWarmedInstanceCount() {
        return this.preWarmedInstanceCount;
    }
    /**
     * @return Is Runtime Scale Monitoring Enabled on this function app?
     * 
     */
    public Boolean runtimeScaleMonitoringEnabled() {
        return this.runtimeScaleMonitoringEnabled;
    }
    /**
     * @return One or more `scm_ip_restriction` blocks as defined above.
     * 
     */
    public List scmIpRestrictions() {
        return this.scmIpRestrictions;
    }
    /**
     * @return The type of Source Control enabled for this App Service.
     * 
     */
    public String scmType() {
        return this.scmType;
    }
    /**
     * @return IP security restrictions for scm to use main.
     * 
     */
    public Boolean scmUseMainIpRestriction() {
        return this.scmUseMainIpRestriction;
    }
    /**
     * @return Does the App Service run in 32 bit mode, rather than 64 bit mode?
     * 
     */
    public Boolean use32BitWorkerProcess() {
        return this.use32BitWorkerProcess;
    }
    /**
     * @return (Optional) Should all outbound traffic to have Virtual Network Security Groups and User Defined Routes applied?
     * 
     */
    public Boolean vnetRouteAllEnabled() {
        return this.vnetRouteAllEnabled;
    }
    /**
     * @return Are WebSockets enabled for this App Service?
     * 
     */
    public Boolean websocketsEnabled() {
        return this.websocketsEnabled;
    }

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

    public static Builder builder(GetFunctionAppSiteConfig defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private Boolean alwaysOn;
        private Integer appScaleLimit;
        private String autoSwapSlotName;
        private GetFunctionAppSiteConfigCors cors;
        private String dotnetFrameworkVersion;
        private Integer elasticInstanceMinimum;
        private String ftpsState;
        private String healthCheckPath;
        private Boolean http2Enabled;
        private List ipRestrictions;
        private String javaVersion;
        private String linuxFxVersion;
        private String minTlsVersion;
        private Integer preWarmedInstanceCount;
        private Boolean runtimeScaleMonitoringEnabled;
        private List scmIpRestrictions;
        private String scmType;
        private Boolean scmUseMainIpRestriction;
        private Boolean use32BitWorkerProcess;
        private Boolean vnetRouteAllEnabled;
        private Boolean websocketsEnabled;
        public Builder() {}
        public Builder(GetFunctionAppSiteConfig defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.alwaysOn = defaults.alwaysOn;
    	      this.appScaleLimit = defaults.appScaleLimit;
    	      this.autoSwapSlotName = defaults.autoSwapSlotName;
    	      this.cors = defaults.cors;
    	      this.dotnetFrameworkVersion = defaults.dotnetFrameworkVersion;
    	      this.elasticInstanceMinimum = defaults.elasticInstanceMinimum;
    	      this.ftpsState = defaults.ftpsState;
    	      this.healthCheckPath = defaults.healthCheckPath;
    	      this.http2Enabled = defaults.http2Enabled;
    	      this.ipRestrictions = defaults.ipRestrictions;
    	      this.javaVersion = defaults.javaVersion;
    	      this.linuxFxVersion = defaults.linuxFxVersion;
    	      this.minTlsVersion = defaults.minTlsVersion;
    	      this.preWarmedInstanceCount = defaults.preWarmedInstanceCount;
    	      this.runtimeScaleMonitoringEnabled = defaults.runtimeScaleMonitoringEnabled;
    	      this.scmIpRestrictions = defaults.scmIpRestrictions;
    	      this.scmType = defaults.scmType;
    	      this.scmUseMainIpRestriction = defaults.scmUseMainIpRestriction;
    	      this.use32BitWorkerProcess = defaults.use32BitWorkerProcess;
    	      this.vnetRouteAllEnabled = defaults.vnetRouteAllEnabled;
    	      this.websocketsEnabled = defaults.websocketsEnabled;
        }

        @CustomType.Setter
        public Builder alwaysOn(Boolean alwaysOn) {
            if (alwaysOn == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "alwaysOn");
            }
            this.alwaysOn = alwaysOn;
            return this;
        }
        @CustomType.Setter
        public Builder appScaleLimit(Integer appScaleLimit) {
            if (appScaleLimit == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "appScaleLimit");
            }
            this.appScaleLimit = appScaleLimit;
            return this;
        }
        @CustomType.Setter
        public Builder autoSwapSlotName(String autoSwapSlotName) {
            if (autoSwapSlotName == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "autoSwapSlotName");
            }
            this.autoSwapSlotName = autoSwapSlotName;
            return this;
        }
        @CustomType.Setter
        public Builder cors(GetFunctionAppSiteConfigCors cors) {
            if (cors == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "cors");
            }
            this.cors = cors;
            return this;
        }
        @CustomType.Setter
        public Builder dotnetFrameworkVersion(String dotnetFrameworkVersion) {
            if (dotnetFrameworkVersion == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "dotnetFrameworkVersion");
            }
            this.dotnetFrameworkVersion = dotnetFrameworkVersion;
            return this;
        }
        @CustomType.Setter
        public Builder elasticInstanceMinimum(Integer elasticInstanceMinimum) {
            if (elasticInstanceMinimum == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "elasticInstanceMinimum");
            }
            this.elasticInstanceMinimum = elasticInstanceMinimum;
            return this;
        }
        @CustomType.Setter
        public Builder ftpsState(String ftpsState) {
            if (ftpsState == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "ftpsState");
            }
            this.ftpsState = ftpsState;
            return this;
        }
        @CustomType.Setter
        public Builder healthCheckPath(String healthCheckPath) {
            if (healthCheckPath == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "healthCheckPath");
            }
            this.healthCheckPath = healthCheckPath;
            return this;
        }
        @CustomType.Setter
        public Builder http2Enabled(Boolean http2Enabled) {
            if (http2Enabled == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "http2Enabled");
            }
            this.http2Enabled = http2Enabled;
            return this;
        }
        @CustomType.Setter
        public Builder ipRestrictions(List ipRestrictions) {
            if (ipRestrictions == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "ipRestrictions");
            }
            this.ipRestrictions = ipRestrictions;
            return this;
        }
        public Builder ipRestrictions(GetFunctionAppSiteConfigIpRestriction... ipRestrictions) {
            return ipRestrictions(List.of(ipRestrictions));
        }
        @CustomType.Setter
        public Builder javaVersion(String javaVersion) {
            if (javaVersion == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "javaVersion");
            }
            this.javaVersion = javaVersion;
            return this;
        }
        @CustomType.Setter
        public Builder linuxFxVersion(String linuxFxVersion) {
            if (linuxFxVersion == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "linuxFxVersion");
            }
            this.linuxFxVersion = linuxFxVersion;
            return this;
        }
        @CustomType.Setter
        public Builder minTlsVersion(String minTlsVersion) {
            if (minTlsVersion == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "minTlsVersion");
            }
            this.minTlsVersion = minTlsVersion;
            return this;
        }
        @CustomType.Setter
        public Builder preWarmedInstanceCount(Integer preWarmedInstanceCount) {
            if (preWarmedInstanceCount == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "preWarmedInstanceCount");
            }
            this.preWarmedInstanceCount = preWarmedInstanceCount;
            return this;
        }
        @CustomType.Setter
        public Builder runtimeScaleMonitoringEnabled(Boolean runtimeScaleMonitoringEnabled) {
            if (runtimeScaleMonitoringEnabled == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "runtimeScaleMonitoringEnabled");
            }
            this.runtimeScaleMonitoringEnabled = runtimeScaleMonitoringEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder scmIpRestrictions(List scmIpRestrictions) {
            if (scmIpRestrictions == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "scmIpRestrictions");
            }
            this.scmIpRestrictions = scmIpRestrictions;
            return this;
        }
        public Builder scmIpRestrictions(GetFunctionAppSiteConfigScmIpRestriction... scmIpRestrictions) {
            return scmIpRestrictions(List.of(scmIpRestrictions));
        }
        @CustomType.Setter
        public Builder scmType(String scmType) {
            if (scmType == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "scmType");
            }
            this.scmType = scmType;
            return this;
        }
        @CustomType.Setter
        public Builder scmUseMainIpRestriction(Boolean scmUseMainIpRestriction) {
            if (scmUseMainIpRestriction == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "scmUseMainIpRestriction");
            }
            this.scmUseMainIpRestriction = scmUseMainIpRestriction;
            return this;
        }
        @CustomType.Setter
        public Builder use32BitWorkerProcess(Boolean use32BitWorkerProcess) {
            if (use32BitWorkerProcess == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "use32BitWorkerProcess");
            }
            this.use32BitWorkerProcess = use32BitWorkerProcess;
            return this;
        }
        @CustomType.Setter
        public Builder vnetRouteAllEnabled(Boolean vnetRouteAllEnabled) {
            if (vnetRouteAllEnabled == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "vnetRouteAllEnabled");
            }
            this.vnetRouteAllEnabled = vnetRouteAllEnabled;
            return this;
        }
        @CustomType.Setter
        public Builder websocketsEnabled(Boolean websocketsEnabled) {
            if (websocketsEnabled == null) {
              throw new MissingRequiredPropertyException("GetFunctionAppSiteConfig", "websocketsEnabled");
            }
            this.websocketsEnabled = websocketsEnabled;
            return this;
        }
        public GetFunctionAppSiteConfig build() {
            final var _resultValue = new GetFunctionAppSiteConfig();
            _resultValue.alwaysOn = alwaysOn;
            _resultValue.appScaleLimit = appScaleLimit;
            _resultValue.autoSwapSlotName = autoSwapSlotName;
            _resultValue.cors = cors;
            _resultValue.dotnetFrameworkVersion = dotnetFrameworkVersion;
            _resultValue.elasticInstanceMinimum = elasticInstanceMinimum;
            _resultValue.ftpsState = ftpsState;
            _resultValue.healthCheckPath = healthCheckPath;
            _resultValue.http2Enabled = http2Enabled;
            _resultValue.ipRestrictions = ipRestrictions;
            _resultValue.javaVersion = javaVersion;
            _resultValue.linuxFxVersion = linuxFxVersion;
            _resultValue.minTlsVersion = minTlsVersion;
            _resultValue.preWarmedInstanceCount = preWarmedInstanceCount;
            _resultValue.runtimeScaleMonitoringEnabled = runtimeScaleMonitoringEnabled;
            _resultValue.scmIpRestrictions = scmIpRestrictions;
            _resultValue.scmType = scmType;
            _resultValue.scmUseMainIpRestriction = scmUseMainIpRestriction;
            _resultValue.use32BitWorkerProcess = use32BitWorkerProcess;
            _resultValue.vnetRouteAllEnabled = vnetRouteAllEnabled;
            _resultValue.websocketsEnabled = websocketsEnabled;
            return _resultValue;
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy