com.pulumi.awsnative.datasync.kotlin.LocationFSxWindows.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.datasync.kotlin
import com.pulumi.awsnative.kotlin.outputs.Tag
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin
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
/**
* Builder for [LocationFSxWindows].
*/
@PulumiTagMarker
public class LocationFSxWindowsResourceBuilder internal constructor() {
public var name: String? = null
public var args: LocationFSxWindowsArgs = LocationFSxWindowsArgs()
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 LocationFSxWindowsArgsBuilder.() -> Unit) {
val builder = LocationFSxWindowsArgsBuilder()
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(): LocationFSxWindows {
val builtJavaResource =
com.pulumi.awsnative.datasync.LocationFSxWindows(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return LocationFSxWindows(builtJavaResource)
}
}
/**
* Resource schema for AWS::DataSync::LocationFSxWindows.
*/
public class LocationFSxWindows internal constructor(
override val javaResource: com.pulumi.awsnative.datasync.LocationFSxWindows,
) : KotlinCustomResource(javaResource, LocationFSxWindowsMapper) {
/**
* The name of the Windows domain that the FSx for Windows server belongs to.
*/
public val domain: Output?
get() = javaResource.domain().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The Amazon Resource Name (ARN) for the FSx for Windows file system.
*/
public val fsxFilesystemArn: Output?
get() = javaResource.fsxFilesystemArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the Amazon FSx for Windows file system location that is created.
*/
public val locationArn: Output
get() = javaResource.locationArn().applyValue({ args0 -> args0 })
/**
* The URL of the FSx for Windows location that was described.
*/
public val locationUri: Output
get() = javaResource.locationUri().applyValue({ args0 -> args0 })
/**
* The password of the user who has the permissions to access files and folders in the FSx for Windows file system.
*/
public val password: Output?
get() = javaResource.password().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The ARNs of the security groups that are to use to configure the FSx for Windows file system.
*/
public val securityGroupArns: Output>
get() = javaResource.securityGroupArns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })
/**
* A subdirectory in the location's path.
*/
public val subdirectory: Output?
get() = javaResource.subdirectory().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An array of key-value pairs to apply to this resource.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
/**
* The user who has the permissions to access files and folders in the FSx for Windows file system.
*/
public val user: Output
get() = javaResource.user().applyValue({ args0 -> args0 })
}
public object LocationFSxWindowsMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.datasync.LocationFSxWindows::class == javaResource::class
override fun map(javaResource: Resource): LocationFSxWindows = LocationFSxWindows(
javaResource as
com.pulumi.awsnative.datasync.LocationFSxWindows,
)
}
/**
* @see [LocationFSxWindows].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [LocationFSxWindows].
*/
public suspend fun locationFSxWindows(
name: String,
block: suspend LocationFSxWindowsResourceBuilder.() -> Unit,
): LocationFSxWindows {
val builder = LocationFSxWindowsResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [LocationFSxWindows].
* @param name The _unique_ name of the resulting resource.
*/
public fun locationFSxWindows(name: String): LocationFSxWindows {
val builder = LocationFSxWindowsResourceBuilder()
builder.name(name)
return builder.build()
}