Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.awsnative.backup.kotlin.RestoreTestingSelectionArgs.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.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.backup.kotlin
import com.pulumi.awsnative.backup.RestoreTestingSelectionArgs.builder
import com.pulumi.awsnative.backup.kotlin.inputs.RestoreTestingSelectionProtectedResourceConditionsArgs
import com.pulumi.awsnative.backup.kotlin.inputs.RestoreTestingSelectionProtectedResourceConditionsArgsBuilder
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.Int
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* Resource Type definition for AWS::Backup::RestoreTestingSelection
* @property iamRoleArn The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; for example: `arn:aws:iam::123456789012:role/S3Access` .
* @property protectedResourceArns You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
* @property protectedResourceConditions In a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .
* @property protectedResourceType The type of AWS resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
* @property restoreMetadataOverrides You can override certain restore metadata keys by including the parameter `RestoreMetadataOverrides` in the body of `RestoreTestingSelection` . Key values are not case sensitive.
* See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) .
* @property restoreTestingPlanName Unique string that is the name of the restore testing plan.
* The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.
* @property restoreTestingSelectionName The unique name of the restore testing selection that belongs to the related restore testing plan.
* @property validationWindowHours This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
*/
public data class RestoreTestingSelectionArgs(
public val iamRoleArn: Output? = null,
public val protectedResourceArns: Output>? = null,
public val protectedResourceConditions: Output? = null,
public val protectedResourceType: Output? = null,
public val restoreMetadataOverrides: Output>? = null,
public val restoreTestingPlanName: Output? = null,
public val restoreTestingSelectionName: Output? = null,
public val validationWindowHours: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.awsnative.backup.RestoreTestingSelectionArgs =
com.pulumi.awsnative.backup.RestoreTestingSelectionArgs.builder()
.iamRoleArn(iamRoleArn?.applyValue({ args0 -> args0 }))
.protectedResourceArns(protectedResourceArns?.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
.protectedResourceConditions(
protectedResourceConditions?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.protectedResourceType(protectedResourceType?.applyValue({ args0 -> args0 }))
.restoreMetadataOverrides(
restoreMetadataOverrides?.applyValue({ args0 ->
args0.map({ args0 ->
args0.key.to(args0.value)
}).toMap()
}),
)
.restoreTestingPlanName(restoreTestingPlanName?.applyValue({ args0 -> args0 }))
.restoreTestingSelectionName(restoreTestingSelectionName?.applyValue({ args0 -> args0 }))
.validationWindowHours(validationWindowHours?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RestoreTestingSelectionArgs].
*/
@PulumiTagMarker
public class RestoreTestingSelectionArgsBuilder internal constructor() {
private var iamRoleArn: Output? = null
private var protectedResourceArns: Output>? = null
private var protectedResourceConditions:
Output? = null
private var protectedResourceType: Output? = null
private var restoreMetadataOverrides: Output>? = null
private var restoreTestingPlanName: Output? = null
private var restoreTestingSelectionName: Output? = null
private var validationWindowHours: Output? = null
/**
* @param value The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; for example: `arn:aws:iam::123456789012:role/S3Access` .
*/
@JvmName("icdyaucrppgixxia")
public suspend fun iamRoleArn(`value`: Output) {
this.iamRoleArn = value
}
/**
* @param value You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
*/
@JvmName("ryxpdfchrkipvega")
public suspend fun protectedResourceArns(`value`: Output>) {
this.protectedResourceArns = value
}
@JvmName("bkxqojkxpppxxynf")
public suspend fun protectedResourceArns(vararg values: Output) {
this.protectedResourceArns = Output.all(values.asList())
}
/**
* @param values You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
*/
@JvmName("efiyiqsilsoiiiac")
public suspend fun protectedResourceArns(values: List>) {
this.protectedResourceArns = Output.all(values)
}
/**
* @param value In a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .
*/
@JvmName("xvitdfdaircnlrcc")
public suspend fun protectedResourceConditions(`value`: Output) {
this.protectedResourceConditions = value
}
/**
* @param value The type of AWS resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
*/
@JvmName("kwyscpmrfavuusyn")
public suspend fun protectedResourceType(`value`: Output) {
this.protectedResourceType = value
}
/**
* @param value You can override certain restore metadata keys by including the parameter `RestoreMetadataOverrides` in the body of `RestoreTestingSelection` . Key values are not case sensitive.
* See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) .
*/
@JvmName("jfkrgmgisissedre")
public suspend fun restoreMetadataOverrides(`value`: Output>) {
this.restoreMetadataOverrides = value
}
/**
* @param value Unique string that is the name of the restore testing plan.
* The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.
*/
@JvmName("qtjnwfmwfudvxbau")
public suspend fun restoreTestingPlanName(`value`: Output) {
this.restoreTestingPlanName = value
}
/**
* @param value The unique name of the restore testing selection that belongs to the related restore testing plan.
*/
@JvmName("gyprqkkhmpgmuwka")
public suspend fun restoreTestingSelectionName(`value`: Output) {
this.restoreTestingSelectionName = value
}
/**
* @param value This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
*/
@JvmName("lyrsobpjblmvywau")
public suspend fun validationWindowHours(`value`: Output) {
this.validationWindowHours = value
}
/**
* @param value The Amazon Resource Name (ARN) of the IAM role that AWS Backup uses to create the target resource; for example: `arn:aws:iam::123456789012:role/S3Access` .
*/
@JvmName("digbxqjcfsekhunk")
public suspend fun iamRoleArn(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.iamRoleArn = mapped
}
/**
* @param value You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
*/
@JvmName("sovgdtphntwmeoyd")
public suspend fun protectedResourceArns(`value`: List?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protectedResourceArns = mapped
}
/**
* @param values You can include specific ARNs, such as `ProtectedResourceArns: ["arn:aws:...", "arn:aws:..."]` or you can include a wildcard: `ProtectedResourceArns: ["*"]` , but not both.
*/
@JvmName("tjfdkjoxjdjqplne")
public suspend fun protectedResourceArns(vararg values: String) {
val toBeMapped = values.toList()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.protectedResourceArns = mapped
}
/**
* @param value In a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .
*/
@JvmName("qsvbjlvmssivjvbs")
public suspend fun protectedResourceConditions(`value`: RestoreTestingSelectionProtectedResourceConditionsArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protectedResourceConditions = mapped
}
/**
* @param argument In a resource testing selection, this parameter filters by specific conditions such as `StringEquals` or `StringNotEquals` .
*/
@JvmName("vwwjqnshdchfttay")
public suspend fun protectedResourceConditions(argument: suspend RestoreTestingSelectionProtectedResourceConditionsArgsBuilder.() -> Unit) {
val toBeMapped = RestoreTestingSelectionProtectedResourceConditionsArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.protectedResourceConditions = mapped
}
/**
* @param value The type of AWS resource included in a resource testing selection; for example, an Amazon EBS volume or an Amazon RDS database.
*/
@JvmName("uqamrdsryxnbowxh")
public suspend fun protectedResourceType(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.protectedResourceType = mapped
}
/**
* @param value You can override certain restore metadata keys by including the parameter `RestoreMetadataOverrides` in the body of `RestoreTestingSelection` . Key values are not case sensitive.
* See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) .
*/
@JvmName("kjurrvneujupekvl")
public suspend fun restoreMetadataOverrides(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.restoreMetadataOverrides = mapped
}
/**
* @param values You can override certain restore metadata keys by including the parameter `RestoreMetadataOverrides` in the body of `RestoreTestingSelection` . Key values are not case sensitive.
* See the complete list of [restore testing inferred metadata](https://docs.aws.amazon.com/aws-backup/latest/devguide/restore-testing-inferred-metadata.html) .
*/
@JvmName("ikpmhnxbsanfbdgr")
public fun restoreMetadataOverrides(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.restoreMetadataOverrides = mapped
}
/**
* @param value Unique string that is the name of the restore testing plan.
* The name cannot be changed after creation. The name must consist of only alphanumeric characters and underscores. Maximum length is 50.
*/
@JvmName("thhdiolebxhsbnpu")
public suspend fun restoreTestingPlanName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.restoreTestingPlanName = mapped
}
/**
* @param value The unique name of the restore testing selection that belongs to the related restore testing plan.
*/
@JvmName("npdtvtgckhoqbpsm")
public suspend fun restoreTestingSelectionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.restoreTestingSelectionName = mapped
}
/**
* @param value This is amount of hours (1 to 168) available to run a validation script on the data. The data will be deleted upon the completion of the validation script or the end of the specified retention period, whichever comes first.
*/
@JvmName("jisbrfnupqvylimy")
public suspend fun validationWindowHours(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.validationWindowHours = mapped
}
internal fun build(): RestoreTestingSelectionArgs = RestoreTestingSelectionArgs(
iamRoleArn = iamRoleArn,
protectedResourceArns = protectedResourceArns,
protectedResourceConditions = protectedResourceConditions,
protectedResourceType = protectedResourceType,
restoreMetadataOverrides = restoreMetadataOverrides,
restoreTestingPlanName = restoreTestingPlanName,
restoreTestingSelectionName = restoreTestingSelectionName,
validationWindowHours = validationWindowHours,
)
}