![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.backup.kotlin.BackupVault.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.backup.kotlin
import com.pulumi.awsnative.backup.kotlin.outputs.BackupVaultLockConfigurationType
import com.pulumi.awsnative.backup.kotlin.outputs.BackupVaultNotificationObjectType
import com.pulumi.core.Output
import com.pulumi.kotlin.KotlinCustomResource
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.ResourceMapper
import com.pulumi.kotlin.options.CustomResourceOptions
import com.pulumi.kotlin.options.CustomResourceOptionsBuilder
import com.pulumi.resources.Resource
import kotlin.Any
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import com.pulumi.awsnative.backup.kotlin.outputs.BackupVaultLockConfigurationType.Companion.toKotlin as backupVaultLockConfigurationTypeToKotlin
import com.pulumi.awsnative.backup.kotlin.outputs.BackupVaultNotificationObjectType.Companion.toKotlin as backupVaultNotificationObjectTypeToKotlin
/**
* Builder for [BackupVault].
*/
@PulumiTagMarker
public class BackupVaultResourceBuilder internal constructor() {
public var name: String? = null
public var args: BackupVaultArgs = BackupVaultArgs()
public var opts: CustomResourceOptions = CustomResourceOptions()
/**
* @param name The _unique_ name of the resulting resource.
*/
public fun name(`value`: String) {
this.name = value
}
/**
* @param block The arguments to use to populate this resource's properties.
*/
public suspend fun args(block: suspend BackupVaultArgsBuilder.() -> Unit) {
val builder = BackupVaultArgsBuilder()
block(builder)
this.args = builder.build()
}
/**
* @param block A bag of options that control this resource's behavior.
*/
public suspend fun opts(block: suspend CustomResourceOptionsBuilder.() -> Unit) {
this.opts = com.pulumi.kotlin.options.CustomResourceOptions.opts(block)
}
internal fun build(): BackupVault {
val builtJavaResource = com.pulumi.awsnative.backup.BackupVault(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return BackupVault(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::Backup::BackupVault
*/
public class BackupVault internal constructor(
override val javaResource: com.pulumi.awsnative.backup.BackupVault,
) : KotlinCustomResource(javaResource, BackupVaultMapper) {
/**
* A resource-based policy that is used to manage access permissions on the target backup vault.
* Search the [CloudFormation User Guide](https://docs.aws.amazon.com/cloudformation/) for `AWS::Backup::BackupVault` for more information about the expected schema for this property.
*/
public val accessPolicy: Output?
get() = javaResource.accessPolicy().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example, `arn:aws:backup:us-east-1:123456789012:backup-vault:aBackupVault` .
*/
public val backupVaultArn: Output
get() = javaResource.backupVaultArn().applyValue({ args0 -> args0 })
/**
* The name of a logical container where backups are stored. Backup vaults are identified by names that are unique to the account used to create them and the AWS Region where they are created.
*/
public val backupVaultName: Output
get() = javaResource.backupVaultName().applyValue({ args0 -> args0 })
/**
* The tags to assign to the backup vault.
*/
public val backupVaultTags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy