![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.networkmanager.kotlin.VpcAttachment.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.networkmanager.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.networkmanager.kotlin.outputs.VpcAttachmentProposedNetworkFunctionGroupChange
import com.pulumi.awsnative.networkmanager.kotlin.outputs.VpcAttachmentProposedSegmentChange
import com.pulumi.awsnative.networkmanager.kotlin.outputs.VpcAttachmentVpcOptions
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.networkmanager.kotlin.outputs.VpcAttachmentProposedNetworkFunctionGroupChange.Companion.toKotlin as vpcAttachmentProposedNetworkFunctionGroupChangeToKotlin
import com.pulumi.awsnative.networkmanager.kotlin.outputs.VpcAttachmentProposedSegmentChange.Companion.toKotlin as vpcAttachmentProposedSegmentChangeToKotlin
import com.pulumi.awsnative.networkmanager.kotlin.outputs.VpcAttachmentVpcOptions.Companion.toKotlin as vpcAttachmentVpcOptionsToKotlin
/**
* Builder for [VpcAttachment].
*/
@PulumiTagMarker
public class VpcAttachmentResourceBuilder internal constructor() {
public var name: String? = null
public var args: VpcAttachmentArgs = VpcAttachmentArgs()
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 VpcAttachmentArgsBuilder.() -> Unit) {
val builder = VpcAttachmentArgsBuilder()
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(): VpcAttachment {
val builtJavaResource =
com.pulumi.awsnative.networkmanager.VpcAttachment(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return VpcAttachment(builtJavaResource)
}
}
/**
* AWS::NetworkManager::VpcAttachment Resoruce Type
*/
public class VpcAttachment internal constructor(
override val javaResource: com.pulumi.awsnative.networkmanager.VpcAttachment,
) : KotlinCustomResource(javaResource, VpcAttachmentMapper) {
/**
* Id of the attachment.
*/
public val attachmentId: Output
get() = javaResource.attachmentId().applyValue({ args0 -> args0 })
/**
* The policy rule number associated with the attachment.
*/
public val attachmentPolicyRuleNumber: Output
get() = javaResource.attachmentPolicyRuleNumber().applyValue({ args0 -> args0 })
/**
* Attachment type.
*/
public val attachmentType: Output
get() = javaResource.attachmentType().applyValue({ args0 -> args0 })
/**
* The ARN of a core network for the VPC attachment.
*/
public val coreNetworkArn: Output
get() = javaResource.coreNetworkArn().applyValue({ args0 -> args0 })
/**
* The ID of a core network for the VPC attachment.
*/
public val coreNetworkId: Output
get() = javaResource.coreNetworkId().applyValue({ args0 -> args0 })
/**
* Creation time of the attachment.
*/
public val createdAt: Output
get() = javaResource.createdAt().applyValue({ args0 -> args0 })
/**
* The Region where the edge is located.
*/
public val edgeLocation: Output
get() = javaResource.edgeLocation().applyValue({ args0 -> args0 })
/**
* The name of the network function group attachment.
*/
public val networkFunctionGroupName: Output
get() = javaResource.networkFunctionGroupName().applyValue({ args0 -> args0 })
/**
* Vpc options of the attachment.
*/
public val options: Output?
get() = javaResource.options().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
vpcAttachmentVpcOptionsToKotlin(args0)
})
}).orElse(null)
})
/**
* Owner account of the attachment.
*/
public val ownerAccountId: Output
get() = javaResource.ownerAccountId().applyValue({ args0 -> args0 })
/**
* The attachment to move from one network function group to another.
*/
public val proposedNetworkFunctionGroupChange:
Output?
get() = javaResource.proposedNetworkFunctionGroupChange().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
vpcAttachmentProposedNetworkFunctionGroupChangeToKotlin(args0)
})
}).orElse(null)
})
/**
* The attachment to move from one segment to another.
*/
public val proposedSegmentChange: Output?
get() = javaResource.proposedSegmentChange().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> vpcAttachmentProposedSegmentChangeToKotlin(args0) })
}).orElse(null)
})
/**
* The ARN of the Resource.
*/
public val resourceArn: Output
get() = javaResource.resourceArn().applyValue({ args0 -> args0 })
/**
* The name of the segment attachment..
*/
public val segmentName: Output
get() = javaResource.segmentName().applyValue({ args0 -> args0 })
/**
* State of the attachment.
*/
public val state: Output
get() = javaResource.state().applyValue({ args0 -> args0 })
/**
* Subnet Arn list
*/
public val subnetArns: Output>
get() = javaResource.subnetArns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* Tags for the attachment.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> tagToKotlin(args0) })
})
}).orElse(null)
})
/**
* Last update time of the attachment.
*/
public val updatedAt: Output
get() = javaResource.updatedAt().applyValue({ args0 -> args0 })
/**
* The ARN of the VPC.
*/
public val vpcArn: Output
get() = javaResource.vpcArn().applyValue({ args0 -> args0 })
}
public object VpcAttachmentMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.networkmanager.VpcAttachment::class == javaResource::class
override fun map(javaResource: Resource): VpcAttachment = VpcAttachment(
javaResource as
com.pulumi.awsnative.networkmanager.VpcAttachment,
)
}
/**
* @see [VpcAttachment].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [VpcAttachment].
*/
public suspend fun vpcAttachment(
name: String,
block: suspend VpcAttachmentResourceBuilder.() -> Unit,
): VpcAttachment {
val builder = VpcAttachmentResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [VpcAttachment].
* @param name The _unique_ name of the resulting resource.
*/
public fun vpcAttachment(name: String): VpcAttachment {
val builder = VpcAttachmentResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy