![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.route53resolver.kotlin.FirewallRuleGroup.kt Maven / Gradle / Ivy
@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.FirewallRuleGroupShareStatus
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupStatus
import com.pulumi.awsnative.route53resolver.kotlin.outputs.FirewallRuleGroupFirewallRule
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.FirewallRuleGroupShareStatus.Companion.toKotlin as firewallRuleGroupShareStatusToKotlin
import com.pulumi.awsnative.route53resolver.kotlin.enums.FirewallRuleGroupStatus.Companion.toKotlin as firewallRuleGroupStatusToKotlin
import com.pulumi.awsnative.route53resolver.kotlin.outputs.FirewallRuleGroupFirewallRule.Companion.toKotlin as firewallRuleGroupFirewallRuleToKotlin
/**
* Builder for [FirewallRuleGroup].
*/
@PulumiTagMarker
public class FirewallRuleGroupResourceBuilder internal constructor() {
public var name: String? = null
public var args: FirewallRuleGroupArgs = FirewallRuleGroupArgs()
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 FirewallRuleGroupArgsBuilder.() -> Unit) {
val builder = FirewallRuleGroupArgsBuilder()
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(): FirewallRuleGroup {
val builtJavaResource =
com.pulumi.awsnative.route53resolver.FirewallRuleGroup(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return FirewallRuleGroup(builtJavaResource)
}
}
/**
* Resource schema for AWS::Route53Resolver::FirewallRuleGroup.
*/
public class FirewallRuleGroup internal constructor(
override val javaResource: com.pulumi.awsnative.route53resolver.FirewallRuleGroup,
) : KotlinCustomResource(javaResource, FirewallRuleGroupMapper) {
/**
* Arn
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* ResourceId
*/
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 })
/**
* FirewallRules
*/
public val firewallRules: Output>?
get() = javaResource.firewallRules().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
firewallRuleGroupFirewallRuleToKotlin(args0)
})
})
}).orElse(null)
})
/**
* Rfc3339TimeString
*/
public val modificationTime: Output
get() = javaResource.modificationTime().applyValue({ args0 -> args0 })
/**
* FirewallRuleGroupName
*/
public val name: Output?
get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* AccountId
*/
public val ownerId: Output
get() = javaResource.ownerId().applyValue({ args0 -> args0 })
/**
* Count
*/
public val ruleCount: Output
get() = javaResource.ruleCount().applyValue({ args0 -> args0 })
/**
* ShareStatus, possible values are NOT_SHARED, SHARED_WITH_ME, SHARED_BY_ME.
*/
public val shareStatus: Output
get() = javaResource.shareStatus().applyValue({ args0 ->
args0.let({ args0 ->
firewallRuleGroupShareStatusToKotlin(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 ->
firewallRuleGroupStatusToKotlin(args0)
})
})
/**
* FirewallRuleGroupStatus
*/
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)
})
}
public object FirewallRuleGroupMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.route53resolver.FirewallRuleGroup::class == javaResource::class
override fun map(javaResource: Resource): FirewallRuleGroup = FirewallRuleGroup(
javaResource as
com.pulumi.awsnative.route53resolver.FirewallRuleGroup,
)
}
/**
* @see [FirewallRuleGroup].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [FirewallRuleGroup].
*/
public suspend fun firewallRuleGroup(
name: String,
block: suspend FirewallRuleGroupResourceBuilder.() -> Unit,
): FirewallRuleGroup {
val builder = FirewallRuleGroupResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [FirewallRuleGroup].
* @param name The _unique_ name of the resulting resource.
*/
public fun firewallRuleGroup(name: String): FirewallRuleGroup {
val builder = FirewallRuleGroupResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy