
commonMain.aws.sdk.kotlin.services.auditmanager.model.Scope.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.auditmanager.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The wrapper that contains the Amazon Web Services accounts that are in scope for the assessment.
*
* You no longer need to specify which Amazon Web Services are in scope when you create or update an assessment. Audit Manager infers the services in scope by examining your assessment controls and their data sources, and then mapping this information to the relevant Amazon Web Services.
*
* If an underlying data source changes for your assessment, we automatically update the services scope as needed to reflect the correct Amazon Web Services. This ensures that your assessment collects accurate and comprehensive evidence about all of the relevant services in your AWS environment.
*/
public class Scope private constructor(builder: Builder) {
/**
* The Amazon Web Services accounts that are included in the scope of the assessment.
*/
public val awsAccounts: List? = builder.awsAccounts
/**
* The Amazon Web Services services that are included in the scope of the assessment.
*
* This API parameter is no longer supported. If you use this parameter to specify one or more Amazon Web Services, Audit Manager ignores this input. Instead, the value for `awsServices` will show as empty.
*/
@Deprecated("You can't specify services in scope when creating/updating an assessment. If you use the parameter to specify one or more AWS services, Audit Manager ignores the input. Instead the value of the parameter will show as empty indicating that the services are defined and managed by Audit Manager.")
public val awsServices: List? = builder.awsServices
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.auditmanager.model.Scope = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Scope(")
append("*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = awsAccounts?.hashCode() ?: 0
result = 31 * result + (awsServices?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (other == null || this::class != other::class) return false
other as Scope
if (awsAccounts != other.awsAccounts) return false
if (awsServices != other.awsServices) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.Scope = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Amazon Web Services accounts that are included in the scope of the assessment.
*/
public var awsAccounts: List? = null
/**
* The Amazon Web Services services that are included in the scope of the assessment.
*
* This API parameter is no longer supported. If you use this parameter to specify one or more Amazon Web Services, Audit Manager ignores this input. Instead, the value for `awsServices` will show as empty.
*/
@Deprecated("You can't specify services in scope when creating/updating an assessment. If you use the parameter to specify one or more AWS services, Audit Manager ignores the input. Instead the value of the parameter will show as empty indicating that the services are defined and managed by Audit Manager.")
public var awsServices: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.Scope) : this() {
this.awsAccounts = x.awsAccounts
this.awsServices = x.awsServices
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.auditmanager.model.Scope = Scope(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy