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

com.pulumi.awsnative.entityresolution.kotlin.outputs.GetPolicyStatementResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.entityresolution.kotlin.outputs

import com.pulumi.awsnative.entityresolution.kotlin.enums.PolicyStatementStatementEffect
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property action The action that the principal can use on the resource.
 * For example, `entityresolution:GetIdMappingJob` , `entityresolution:GetMatchingJob` .
 * @property condition A set of condition keys that you can use in key policies.
 * @property effect Determines whether the permissions specified in the policy are to be allowed ( `Allow` ) or denied ( `Deny` ).
 * > If you set the value of the `effect` parameter to `Deny` for the `AddPolicyStatement` operation, you must also set the value of the `effect` parameter in the `policy` to `Deny` for the `PutPolicy` operation.
 * @property principal The AWS service or AWS account that can access the resource defined as ARN.
 */
public data class GetPolicyStatementResult(
    public val action: List? = null,
    public val condition: String? = null,
    public val effect: PolicyStatementStatementEffect? = null,
    public val principal: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.entityresolution.outputs.GetPolicyStatementResult): GetPolicyStatementResult = GetPolicyStatementResult(
            action = javaType.action().map({ args0 -> args0 }),
            condition = javaType.condition().map({ args0 -> args0 }).orElse(null),
            effect = javaType.effect().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.entityresolution.kotlin.enums.PolicyStatementStatementEffect.Companion.toKotlin(args0)
                })
            }).orElse(null),
            principal = javaType.principal().map({ args0 -> args0 }),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy