com.pulumi.awsnative.guardduty.kotlin.MemberArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.guardduty.kotlin
import com.pulumi.awsnative.guardduty.MemberArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::GuardDuty::Member
* @property detectorId The ID of the detector associated with the GuardDuty service to add the member to.
* @property disableEmailNotification Specifies whether or not to disable email notification for the member account that you invite.
* @property email The email address associated with the member account.
* @property memberId The AWS account ID of the account to designate as a member.
* @property message The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
* @property status You can use the `Status` property to update the status of the relationship between the member account and its administrator account. Valid values are `Created` and `Invited` when using an `AWS::GuardDuty::Member` resource. If the value for this property is not provided or set to `Created` , a member account is created but not invited. If the value of this property is set to `Invited` , a member account is created and invited.
*/
public data class MemberArgs(
public val detectorId: Output? = null,
public val disableEmailNotification: Output? = null,
public val email: Output? = null,
public val memberId: Output? = null,
public val message: Output? = null,
public val status: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.guardduty.MemberArgs =
com.pulumi.awsnative.guardduty.MemberArgs.builder()
.detectorId(detectorId?.applyValue({ args0 -> args0 }))
.disableEmailNotification(disableEmailNotification?.applyValue({ args0 -> args0 }))
.email(email?.applyValue({ args0 -> args0 }))
.memberId(memberId?.applyValue({ args0 -> args0 }))
.message(message?.applyValue({ args0 -> args0 }))
.status(status?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [MemberArgs].
*/
@PulumiTagMarker
public class MemberArgsBuilder internal constructor() {
private var detectorId: Output? = null
private var disableEmailNotification: Output? = null
private var email: Output? = null
private var memberId: Output? = null
private var message: Output? = null
private var status: Output? = null
/**
* @param value The ID of the detector associated with the GuardDuty service to add the member to.
*/
@JvmName("ywqwjwxmeigtiigo")
public suspend fun detectorId(`value`: Output) {
this.detectorId = value
}
/**
* @param value Specifies whether or not to disable email notification for the member account that you invite.
*/
@JvmName("urclblrulrsrsqrc")
public suspend fun disableEmailNotification(`value`: Output) {
this.disableEmailNotification = value
}
/**
* @param value The email address associated with the member account.
*/
@JvmName("cwnwjspcshaatenl")
public suspend fun email(`value`: Output) {
this.email = value
}
/**
* @param value The AWS account ID of the account to designate as a member.
*/
@JvmName("mqfxpijihakynotc")
public suspend fun memberId(`value`: Output) {
this.memberId = value
}
/**
* @param value The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
*/
@JvmName("sgbvqkiisrireclc")
public suspend fun message(`value`: Output) {
this.message = value
}
/**
* @param value You can use the `Status` property to update the status of the relationship between the member account and its administrator account. Valid values are `Created` and `Invited` when using an `AWS::GuardDuty::Member` resource. If the value for this property is not provided or set to `Created` , a member account is created but not invited. If the value of this property is set to `Invited` , a member account is created and invited.
*/
@JvmName("ffakylktkunartyg")
public suspend fun status(`value`: Output) {
this.status = value
}
/**
* @param value The ID of the detector associated with the GuardDuty service to add the member to.
*/
@JvmName("bgyaeljfmidlglgj")
public suspend fun detectorId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.detectorId = mapped
}
/**
* @param value Specifies whether or not to disable email notification for the member account that you invite.
*/
@JvmName("wuiysasfxgpiphck")
public suspend fun disableEmailNotification(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.disableEmailNotification = mapped
}
/**
* @param value The email address associated with the member account.
*/
@JvmName("qmjfrxpvmubtsbkj")
public suspend fun email(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.email = mapped
}
/**
* @param value The AWS account ID of the account to designate as a member.
*/
@JvmName("xtnvnlketfnxmtup")
public suspend fun memberId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.memberId = mapped
}
/**
* @param value The invitation message that you want to send to the accounts that you're inviting to GuardDuty as members.
*/
@JvmName("kgowiptxbbyueeec")
public suspend fun message(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.message = mapped
}
/**
* @param value You can use the `Status` property to update the status of the relationship between the member account and its administrator account. Valid values are `Created` and `Invited` when using an `AWS::GuardDuty::Member` resource. If the value for this property is not provided or set to `Created` , a member account is created but not invited. If the value of this property is set to `Invited` , a member account is created and invited.
*/
@JvmName("ltllyatirkonucwb")
public suspend fun status(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.status = mapped
}
internal fun build(): MemberArgs = MemberArgs(
detectorId = detectorId,
disableEmailNotification = disableEmailNotification,
email = email,
memberId = memberId,
message = message,
status = status,
)
}