Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.googlenative.websecurityscanner.v1.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.googlenative.websecurityscanner.v1.ScanConfigArgs.builder
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.enums.ScanConfigExportToSecurityCommandCenter
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.enums.ScanConfigRiskLevel
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.enums.ScanConfigUserAgent
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.inputs.AuthenticationArgs
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.inputs.AuthenticationArgsBuilder
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.inputs.ScheduleArgs
import com.pulumi.googlenative.websecurityscanner.v1.kotlin.inputs.ScheduleArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* Creates a new ScanConfig.
* @property authentication The authentication configuration. If specified, service will use the authentication configuration during scanning.
* @property blacklistPatterns The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
* @property displayName The user provided display name of the ScanConfig.
* @property exportToSecurityCommandCenter Controls export of scan configurations and results to Security Command Center.
* @property ignoreHttpStatusErrors Whether to keep scanning even if most requests return HTTP error codes.
* @property managedScan Whether the scan config is managed by Web Security Scanner, output only.
* @property maxQps The maximum QPS during scanning. A valid value ranges from 5 to 20 inclusively. If the field is unspecified or its value is set 0, server will default to 15. Other values outside of [5, 20] range will be rejected with INVALID_ARGUMENT error.
* @property name The resource name of the ScanConfig. The name follows the format of 'projects/{projectId}/scanConfigs/{scanConfigId}'. The ScanConfig IDs are generated by the system.
* @property project
* @property riskLevel The risk level selected for the scan
* @property schedule The schedule of the ScanConfig.
* @property startingUrls The starting URLs from which the scanner finds site pages.
* @property staticIpScan Whether the scan configuration has enabled static IP address scan feature. If enabled, the scanner will access applications from static IP addresses.
* @property userAgent The user agent used during scanning.
*/
public data class ScanConfigArgs(
public val authentication: Output? = null,
public val blacklistPatterns: Output>? = null,
public val displayName: Output? = null,
public val exportToSecurityCommandCenter: Output? = null,
public val ignoreHttpStatusErrors: Output? = null,
public val managedScan: Output? = null,
public val maxQps: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val riskLevel: Output? = null,
public val schedule: Output? = null,
public val startingUrls: Output>? = null,
public val staticIpScan: Output? = null,
public val userAgent: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.googlenative.websecurityscanner.v1.ScanConfigArgs =
com.pulumi.googlenative.websecurityscanner.v1.ScanConfigArgs.builder()
.authentication(authentication?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.blacklistPatterns(blacklistPatterns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.displayName(displayName?.applyValue({ args0 -> args0 }))
.exportToSecurityCommandCenter(
exportToSecurityCommandCenter?.applyValue({ args0 ->
args0.let({ args0 -> args0.toJava() })
}),
)
.ignoreHttpStatusErrors(ignoreHttpStatusErrors?.applyValue({ args0 -> args0 }))
.managedScan(managedScan?.applyValue({ args0 -> args0 }))
.maxQps(maxQps?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.riskLevel(riskLevel?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.schedule(schedule?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.startingUrls(startingUrls?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.staticIpScan(staticIpScan?.applyValue({ args0 -> args0 }))
.userAgent(userAgent?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [ScanConfigArgs].
*/
@PulumiTagMarker
public class ScanConfigArgsBuilder internal constructor() {
private var authentication: Output? = null
private var blacklistPatterns: Output>? = null
private var displayName: Output? = null
private var exportToSecurityCommandCenter: Output? = null
private var ignoreHttpStatusErrors: Output? = null
private var managedScan: Output? = null
private var maxQps: Output? = null
private var name: Output? = null
private var project: Output? = null
private var riskLevel: Output? = null
private var schedule: Output? = null
private var startingUrls: Output>? = null
private var staticIpScan: Output? = null
private var userAgent: Output? = null
/**
* @param value The authentication configuration. If specified, service will use the authentication configuration during scanning.
*/
@JvmName("hxrvoyrpojgytsxv")
public suspend fun authentication(`value`: Output) {
this.authentication = value
}
/**
* @param value The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
*/
@JvmName("sjrxamxpmajhqexu")
public suspend fun blacklistPatterns(`value`: Output>) {
this.blacklistPatterns = value
}
@JvmName("ylfxdodxccvqtlhc")
public suspend fun blacklistPatterns(vararg values: Output) {
this.blacklistPatterns = Output.all(values.asList())
}
/**
* @param values The excluded URL patterns as described in https://cloud.google.com/security-command-center/docs/how-to-use-web-security-scanner#excluding_urls
*/
@JvmName("ssykndeyjbbgongg")
public suspend fun blacklistPatterns(values: List