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

com.pulumi.gcp.binaryauthorization.kotlin.outputs.PolicyClusterAdmissionRule.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.binaryauthorization.kotlin.outputs

import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property cluster The identifier for this object. Format specified above.
 * @property enforcementMode The action when a pod creation is denied by the admission rule.
 * Possible values are: `ENFORCED_BLOCK_AND_AUDIT_LOG`, `DRYRUN_AUDIT_LOG_ONLY`.
 * @property evaluationMode How this admission rule will be evaluated.
 * Possible values are: `ALWAYS_ALLOW`, `REQUIRE_ATTESTATION`, `ALWAYS_DENY`.
 * @property requireAttestationsBies The resource names of the attestors that must attest to a
 * container image. If the attestor is in a different project from the
 * policy, it should be specified in the format `projects/*/attestors/*`.
 * Each attestor must exist before a policy can reference it. To add an
 * attestor to a policy the principal issuing the policy change
 * request must be able to read the attestor resource.
 * Note: this field must be non-empty when the evaluation_mode field
 * specifies REQUIRE_ATTESTATION, otherwise it must be empty.
 * */*/
 */
public data class PolicyClusterAdmissionRule(
    public val cluster: String,
    public val enforcementMode: String,
    public val evaluationMode: String,
    public val requireAttestationsBies: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.binaryauthorization.outputs.PolicyClusterAdmissionRule): PolicyClusterAdmissionRule = PolicyClusterAdmissionRule(
            cluster = javaType.cluster(),
            enforcementMode = javaType.enforcementMode(),
            evaluationMode = javaType.evaluationMode(),
            requireAttestationsBies = javaType.requireAttestationsBies().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy