![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.ec2.kotlin.NetworkInsightsAccessScope.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.ec2.kotlin
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAccessScopeAccessScopePathRequest
import com.pulumi.awsnative.kotlin.outputs.Tag
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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import com.pulumi.awsnative.ec2.kotlin.outputs.NetworkInsightsAccessScopeAccessScopePathRequest.Companion.toKotlin as networkInsightsAccessScopeAccessScopePathRequestToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin
/**
* Builder for [NetworkInsightsAccessScope].
*/
@PulumiTagMarker
public class NetworkInsightsAccessScopeResourceBuilder internal constructor() {
public var name: String? = null
public var args: NetworkInsightsAccessScopeArgs = NetworkInsightsAccessScopeArgs()
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 NetworkInsightsAccessScopeArgsBuilder.() -> Unit) {
val builder = NetworkInsightsAccessScopeArgsBuilder()
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(): NetworkInsightsAccessScope {
val builtJavaResource =
com.pulumi.awsnative.ec2.NetworkInsightsAccessScope(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return NetworkInsightsAccessScope(builtJavaResource)
}
}
/**
* Resource schema for AWS::EC2::NetworkInsightsAccessScope
*/
public class NetworkInsightsAccessScope internal constructor(
override val javaResource: com.pulumi.awsnative.ec2.NetworkInsightsAccessScope,
) : KotlinCustomResource(javaResource, NetworkInsightsAccessScopeMapper) {
/**
* The creation date.
*/
public val createdDate: Output
get() = javaResource.createdDate().applyValue({ args0 -> args0 })
/**
* The paths to exclude.
*/
public val excludePaths: Output>?
get() = javaResource.excludePaths().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
networkInsightsAccessScopeAccessScopePathRequestToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The paths to match.
*/
public val matchPaths: Output>?
get() = javaResource.matchPaths().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
networkInsightsAccessScopeAccessScopePathRequestToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The ARN of the Network Access Scope.
*/
public val networkInsightsAccessScopeArn: Output
get() = javaResource.networkInsightsAccessScopeArn().applyValue({ args0 -> args0 })
/**
* The ID of the Network Access Scope.
*/
public val networkInsightsAccessScopeId: Output
get() = javaResource.networkInsightsAccessScopeId().applyValue({ args0 -> args0 })
/**
* The tags.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* The last updated date.
*/
public val updatedDate: Output
get() = javaResource.updatedDate().applyValue({ args0 -> args0 })
}
public object NetworkInsightsAccessScopeMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.ec2.NetworkInsightsAccessScope::class == javaResource::class
override fun map(javaResource: Resource): NetworkInsightsAccessScope =
NetworkInsightsAccessScope(
javaResource as
com.pulumi.awsnative.ec2.NetworkInsightsAccessScope,
)
}
/**
* @see [NetworkInsightsAccessScope].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [NetworkInsightsAccessScope].
*/
public suspend fun networkInsightsAccessScope(
name: String,
block: suspend NetworkInsightsAccessScopeResourceBuilder.() -> Unit,
): NetworkInsightsAccessScope {
val builder = NetworkInsightsAccessScopeResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [NetworkInsightsAccessScope].
* @param name The _unique_ name of the resulting resource.
*/
public fun networkInsightsAccessScope(name: String): NetworkInsightsAccessScope {
val builder = NetworkInsightsAccessScopeResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy