![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.backup.kotlin.BackupSelectionArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.backup.kotlin
import com.pulumi.awsnative.backup.BackupSelectionArgs.builder
import com.pulumi.awsnative.backup.kotlin.inputs.BackupSelectionResourceTypeArgs
import com.pulumi.awsnative.backup.kotlin.inputs.BackupSelectionResourceTypeArgsBuilder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::Backup::BackupSelection
* @property backupPlanId Uniquely identifies a backup plan.
* @property backupSelection Specifies the body of a request to assign a set of resources to a backup plan.
* It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
*/
public data class BackupSelectionArgs(
public val backupPlanId: Output? = null,
public val backupSelection: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.backup.BackupSelectionArgs =
com.pulumi.awsnative.backup.BackupSelectionArgs.builder()
.backupPlanId(backupPlanId?.applyValue({ args0 -> args0 }))
.backupSelection(
backupSelection?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [BackupSelectionArgs].
*/
@PulumiTagMarker
public class BackupSelectionArgsBuilder internal constructor() {
private var backupPlanId: Output? = null
private var backupSelection: Output? = null
/**
* @param value Uniquely identifies a backup plan.
*/
@JvmName("ieulkmvbuwkkdhuv")
public suspend fun backupPlanId(`value`: Output) {
this.backupPlanId = value
}
/**
* @param value Specifies the body of a request to assign a set of resources to a backup plan.
* It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
*/
@JvmName("lssrqnndslohvenx")
public suspend fun backupSelection(`value`: Output) {
this.backupSelection = value
}
/**
* @param value Uniquely identifies a backup plan.
*/
@JvmName("pjdmidgcludnliaa")
public suspend fun backupPlanId(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupPlanId = mapped
}
/**
* @param value Specifies the body of a request to assign a set of resources to a backup plan.
* It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
*/
@JvmName("rkdebsbqxwkmmuxx")
public suspend fun backupSelection(`value`: BackupSelectionResourceTypeArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.backupSelection = mapped
}
/**
* @param argument Specifies the body of a request to assign a set of resources to a backup plan.
* It includes an array of resources, an optional array of patterns to exclude resources, an optional role to provide access to the AWS service the resource belongs to, and an optional array of tags used to identify a set of resources.
*/
@JvmName("wdkcuyxjibajpswb")
public suspend fun backupSelection(argument: suspend BackupSelectionResourceTypeArgsBuilder.() -> Unit) {
val toBeMapped = BackupSelectionResourceTypeArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.backupSelection = mapped
}
internal fun build(): BackupSelectionArgs = BackupSelectionArgs(
backupPlanId = backupPlanId,
backupSelection = backupSelection,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy