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

com.pulumi.awsnative.auditmanager.kotlin.outputs.GetAssessmentResult.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: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.auditmanager.kotlin.outputs

import com.pulumi.awsnative.auditmanager.kotlin.enums.AssessmentStatus
import com.pulumi.awsnative.kotlin.outputs.Tag
import kotlin.Double
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List

/**
 *
 * @property arn The Amazon Resource Name (ARN) of the assessment.
 * @property assessmentId The unique identifier for the assessment.
 * @property assessmentReportsDestination The destination that evidence reports are stored in for the assessment.
 * @property creationTime Specifies when the assessment was created.
 * @property delegations The list of delegations.
 * @property roles The list of roles for the specified assessment.
 * @property scope The wrapper of AWS accounts and services that are in scope for the assessment.
 * @property status The overall status of the assessment.
 * When you create a new assessment, the initial `Status` value is always `ACTIVE` . When you create an assessment, even if you specify the value as `INACTIVE` , the value overrides to `ACTIVE` .
 * After you create an assessment, you can change the value of the `Status` property at any time. For example, when you want to stop collecting evidence for your assessment, you can change the assessment status to `INACTIVE` .
 * @property tags The tags associated with the assessment.
 */
public data class GetAssessmentResult(
    public val arn: String? = null,
    public val assessmentId: String? = null,
    public val assessmentReportsDestination: AssessmentReportsDestination? = null,
    public val creationTime: Double? = null,
    public val delegations: List? = null,
    public val roles: List? = null,
    public val scope: AssessmentScope? = null,
    public val status: AssessmentStatus? = null,
    public val tags: List? = null,
) {
    public companion object {
        public fun toKotlin(javaType: com.pulumi.awsnative.auditmanager.outputs.GetAssessmentResult): GetAssessmentResult = GetAssessmentResult(
            arn = javaType.arn().map({ args0 -> args0 }).orElse(null),
            assessmentId = javaType.assessmentId().map({ args0 -> args0 }).orElse(null),
            assessmentReportsDestination = javaType.assessmentReportsDestination().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.auditmanager.kotlin.outputs.AssessmentReportsDestination.Companion.toKotlin(args0)
                })
            }).orElse(null),
            creationTime = javaType.creationTime().map({ args0 -> args0 }).orElse(null),
            delegations = javaType.delegations().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.auditmanager.kotlin.outputs.AssessmentDelegation.Companion.toKotlin(args0)
                })
            }),
            roles = javaType.roles().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.auditmanager.kotlin.outputs.AssessmentRole.Companion.toKotlin(args0)
                })
            }),
            scope = javaType.scope().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.auditmanager.kotlin.outputs.AssessmentScope.Companion.toKotlin(args0)
                })
            }).orElse(null),
            status = javaType.status().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.auditmanager.kotlin.enums.AssessmentStatus.Companion.toKotlin(args0)
                })
            }).orElse(null),
            tags = javaType.tags().map({ args0 ->
                args0.let({ args0 ->
                    com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin(args0)
                })
            }),
        )
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy