
commonMain.aws.sdk.kotlin.services.eks.model.CreateAccessConfigRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eks.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The access configuration information for the cluster.
*/
public class CreateAccessConfigRequest private constructor(builder: Builder) {
/**
* The desired authentication mode for the cluster. If you create a cluster by using the EKS API, Amazon Web Services SDKs, or CloudFormation, the default is `CONFIG_MAP`. If you create the cluster by using the Amazon Web Services Management Console, the default value is `API_AND_CONFIG_MAP`.
*/
public val authenticationMode: aws.sdk.kotlin.services.eks.model.AuthenticationMode? = builder.authenticationMode
/**
* Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time. The default value is `true`.
*/
public val bootstrapClusterCreatorAdminPermissions: kotlin.Boolean? = builder.bootstrapClusterCreatorAdminPermissions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.CreateAccessConfigRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateAccessConfigRequest(")
append("authenticationMode=$authenticationMode,")
append("bootstrapClusterCreatorAdminPermissions=$bootstrapClusterCreatorAdminPermissions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = authenticationMode?.hashCode() ?: 0
result = 31 * result + (bootstrapClusterCreatorAdminPermissions?.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 CreateAccessConfigRequest
if (authenticationMode != other.authenticationMode) return false
if (bootstrapClusterCreatorAdminPermissions != other.bootstrapClusterCreatorAdminPermissions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.CreateAccessConfigRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The desired authentication mode for the cluster. If you create a cluster by using the EKS API, Amazon Web Services SDKs, or CloudFormation, the default is `CONFIG_MAP`. If you create the cluster by using the Amazon Web Services Management Console, the default value is `API_AND_CONFIG_MAP`.
*/
public var authenticationMode: aws.sdk.kotlin.services.eks.model.AuthenticationMode? = null
/**
* Specifies whether or not the cluster creator IAM principal was set as a cluster admin access entry during cluster creation time. The default value is `true`.
*/
public var bootstrapClusterCreatorAdminPermissions: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.CreateAccessConfigRequest) : this() {
this.authenticationMode = x.authenticationMode
this.bootstrapClusterCreatorAdminPermissions = x.bootstrapClusterCreatorAdminPermissions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.CreateAccessConfigRequest = CreateAccessConfigRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy