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

com.pulumi.awsnative.logs.kotlin.outputs.GetAccountPolicyResult.kt Maven / Gradle / Ivy

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

package com.pulumi.awsnative.logs.kotlin.outputs

import com.pulumi.awsnative.logs.kotlin.enums.AccountPolicyScope
import kotlin.String
import kotlin.Suppress

/**
 *
 * @property accountId User account id
 * @property policyDocument The body of the policy document you want to use for this topic.
 * You can only add one policy per PolicyType.
 * The policy must be in JSON string format.
 * Length Constraints: Maximum length of 30720
 * @property scope Scope for policy application
 * @property selectionCriteria Log group  selection criteria to apply policy only to a subset of log groups. SelectionCriteria string can be up to 25KB and cloudwatchlogs determines the length of selectionCriteria by using its UTF-8 bytes
 */
public data class GetAccountPolicyResult(
    public val accountId: String? = null,
    public val policyDocument: String? = null,
    public val scope: AccountPolicyScope? = null,
    public val selectionCriteria: String? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.logs.outputs.GetAccountPolicyResult): GetAccountPolicyResult = GetAccountPolicyResult(
            accountId = javaType.accountId().map({ args0 -> args0 }).orElse(null),
            policyDocument = javaType.policyDocument().map({ args0 -> args0 }).orElse(null),
            scope = javaType.scope().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.logs.kotlin.enums.AccountPolicyScope.Companion.toKotlin(args0)
                })
            }).orElse(null),
            selectionCriteria = javaType.selectionCriteria().map({ args0 -> args0 }).orElse(null),
        )
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy