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

com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudStorageTarget.kt Maven / Gradle / Ivy

@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.dataloss.kotlin.outputs

import kotlin.Suppress

/**
 *
 * @property conditions In addition to matching the filter, these conditions must be true before a profile is generated.
 * Structure is documented below.
 * @property disabled Disable profiling for buckets that match this filter.
 * @property filter The buckets the generation_cadence applies to. The first target with a matching filter will be the one to apply to a bucket.
 * Structure is documented below.
 * @property generationCadence How often and when to update profiles. New buckets that match both the filter and conditions are scanned as quickly as possible depending on system capacity.
 * Structure is documented below.
 */
public data class PreventionDiscoveryConfigTargetCloudStorageTarget(
    public val conditions: PreventionDiscoveryConfigTargetCloudStorageTargetConditions? = null,
    public val disabled: PreventionDiscoveryConfigTargetCloudStorageTargetDisabled? = null,
    public val filter: PreventionDiscoveryConfigTargetCloudStorageTargetFilter,
    public val generationCadence: PreventionDiscoveryConfigTargetCloudStorageTargetGenerationCadence? =
        null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.gcp.dataloss.outputs.PreventionDiscoveryConfigTargetCloudStorageTarget): PreventionDiscoveryConfigTargetCloudStorageTarget =
            PreventionDiscoveryConfigTargetCloudStorageTarget(
                conditions = javaType.conditions().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudStorageTargetConditions.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                disabled = javaType.disabled().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudStorageTargetDisabled.Companion.toKotlin(args0)
                    })
                }).orElse(null),
                filter = javaType.filter().let({ args0 ->
                    com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudStorageTargetFilter.Companion.toKotlin(args0)
                }),
                generationCadence = javaType.generationCadence().map({ args0 ->
                    args0.let({ args0 ->
                        com.pulumi.gcp.dataloss.kotlin.outputs.PreventionDiscoveryConfigTargetCloudStorageTargetGenerationCadence.Companion.toKotlin(args0)
                    })
                }).orElse(null),
            )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy