
com.pulumi.awsnative.route53resolver.kotlin.FirewallRuleGroupAssociation.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.route53resolver.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupAssociationMutationProtection
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupAssociationStatus
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.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupAssociationMutationProtection.Companion.toKotlin as firewallRuleGroupAssociationMutationProtectionToKotlin
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupAssociationStatus.Companion.toKotlin as firewallRuleGroupAssociationStatusToKotlin
/**
* Builder for [FirewallRuleGroupAssociation].
*/
@PulumiTagMarker
public class FirewallRuleGroupAssociationResourceBuilder internal constructor() {
public var name: String? = null
public var args: FirewallRuleGroupAssociationArgs = FirewallRuleGroupAssociationArgs()
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 FirewallRuleGroupAssociationArgsBuilder.() -> Unit) {
val builder = FirewallRuleGroupAssociationArgsBuilder()
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(): FirewallRuleGroupAssociation {
val builtJavaResource =
com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociation(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return FirewallRuleGroupAssociation(builtJavaResource)
}
}
/**
* Resource schema for AWS::Route53Resolver::FirewallRuleGroupAssociation.
*/
public class FirewallRuleGroupAssociation internal constructor(
override val javaResource: com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociation,
) : KotlinCustomResource(javaResource, FirewallRuleGroupAssociationMapper) {
/**
* Arn
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Id
*/
public val awsId: Output
get() = javaResource.awsId().applyValue({ args0 -> args0 })
/**
* Rfc3339TimeString
*/
public val creationTime: Output
get() = javaResource.creationTime().applyValue({ args0 -> args0 })
/**
* The id of the creator request.
*/
public val creatorRequestId: Output
get() = javaResource.creatorRequestId().applyValue({ args0 -> args0 })
/**
* FirewallRuleGroupId
*/
public val firewallRuleGroupId: Output
get() = javaResource.firewallRuleGroupId().applyValue({ args0 -> args0 })
/**
* ServicePrincipal
*/
public val managedOwnerName: Output
get() = javaResource.managedOwnerName().applyValue({ args0 -> args0 })
/**
* Rfc3339TimeString
*/
public val modificationTime: Output
get() = javaResource.modificationTime().applyValue({ args0 -> args0 })
/**
* MutationProtectionStatus
*/
public val mutationProtection: Output?
get() = javaResource.mutationProtection().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
firewallRuleGroupAssociationMutationProtectionToKotlin(args0)
})
}).orElse(null)
})
/**
* FirewallRuleGroupAssociationName
*/
public val name: Output?
get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Priority
*/
public val priority: Output
get() = javaResource.priority().applyValue({ args0 -> args0 })
/**
* ResolverFirewallRuleGroupAssociation, possible values are COMPLETE, DELETING, UPDATING, and INACTIVE_OWNER_ACCOUNT_CLOSED.
*/
public val status: Output
get() = javaResource.status().applyValue({ args0 ->
args0.let({ args0 ->
firewallRuleGroupAssociationStatusToKotlin(args0)
})
})
/**
* FirewallDomainListAssociationStatus
*/
public val statusMessage: Output
get() = javaResource.statusMessage().applyValue({ args0 -> args0 })
/**
* Tags
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* VpcId
*/
public val vpcId: Output
get() = javaResource.vpcId().applyValue({ args0 -> args0 })
}
public object FirewallRuleGroupAssociationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociation::class == javaResource::class
override fun map(javaResource: Resource): FirewallRuleGroupAssociation =
FirewallRuleGroupAssociation(
javaResource as
com.pulumi.awsnative.route53resolver.FirewallRuleGroupAssociation,
)
}
/**
* @see [FirewallRuleGroupAssociation].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [FirewallRuleGroupAssociation].
*/
public suspend fun firewallRuleGroupAssociation(
name: String,
block: suspend FirewallRuleGroupAssociationResourceBuilder.() -> Unit,
): FirewallRuleGroupAssociation {
val builder = FirewallRuleGroupAssociationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [FirewallRuleGroupAssociation].
* @param name The _unique_ name of the resulting resource.
*/
public fun firewallRuleGroupAssociation(name: String): FirewallRuleGroupAssociation {
val builder = FirewallRuleGroupAssociationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy