All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.datasync.kotlin.LocationFSxOntap.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 1.11.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.datasync.kotlin

import com.pulumi.awsnative.datasync.kotlin.outputs.LocationFSxOntapProtocol
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.datasync.kotlin.outputs.LocationFSxOntapProtocol.Companion.toKotlin as locationFSxOntapProtocolToKotlin
import com.pulumi.awsnative.kotlin.outputs.Tag.Companion.toKotlin as tagToKotlin

/**
 * Builder for [LocationFSxOntap].
 */
@PulumiTagMarker
public class LocationFSxOntapResourceBuilder internal constructor() {
    public var name: String? = null

    public var args: LocationFSxOntapArgs = LocationFSxOntapArgs()

    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 LocationFSxOntapArgsBuilder.() -> Unit) {
        val builder = LocationFSxOntapArgsBuilder()
        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(): LocationFSxOntap {
        val builtJavaResource = com.pulumi.awsnative.datasync.LocationFSxOntap(
            this.name,
            this.args.toJava(),
            this.opts.toJava(),
        )
        return LocationFSxOntap(builtJavaResource)
    }
}

/**
 * Resource schema for AWS::DataSync::LocationFSxONTAP.
 */
public class LocationFSxOntap internal constructor(
    override val javaResource: com.pulumi.awsnative.datasync.LocationFSxOntap,
) : KotlinCustomResource(javaResource, LocationFSxOntapMapper) {
    /**
     * The Amazon Resource Name (ARN) for the FSx ONAP file system.
     */
    public val fsxFilesystemArn: Output
        get() = javaResource.fsxFilesystemArn().applyValue({ args0 -> args0 })

    /**
     * The Amazon Resource Name (ARN) of the Amazon FSx ONTAP file system location that is created.
     */
    public val locationArn: Output
        get() = javaResource.locationArn().applyValue({ args0 -> args0 })

    /**
     * The URL of the FSx ONTAP file system that was described.
     */
    public val locationUri: Output
        get() = javaResource.locationUri().applyValue({ args0 -> args0 })

    /**
     * Specifies the data transfer protocol that DataSync uses to access your Amazon FSx file system.
     */
    public val protocol: Output?
        get() = javaResource.protocol().applyValue({ args0 ->
            args0.map({ args0 ->
                args0.let({ args0 ->
                    locationFSxOntapProtocolToKotlin(args0)
                })
            }).orElse(null)
        })

    /**
     * The ARNs of the security groups that are to use to configure the FSx ONTAP file system.
     */
    public val securityGroupArns: Output>
        get() = javaResource.securityGroupArns().applyValue({ args0 -> args0.map({ args0 -> args0 }) })

    /**
     * The Amazon Resource Name (ARN) for the FSx ONTAP SVM.
     */
    public val storageVirtualMachineArn: Output
        get() = javaResource.storageVirtualMachineArn().applyValue({ 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 -> tagToKotlin(args0) })
                })
            }).orElse(null)
        })
}

public object LocationFSxOntapMapper : ResourceMapper {
    override fun supportsMappingOfType(javaResource: Resource): Boolean =
        com.pulumi.awsnative.datasync.LocationFSxOntap::class == javaResource::class

    override fun map(javaResource: Resource): LocationFSxOntap = LocationFSxOntap(
        javaResource as
            com.pulumi.awsnative.datasync.LocationFSxOntap,
    )
}

/**
 * @see [LocationFSxOntap].
 * @param name The _unique_ name of the resulting resource.
 * @param block Builder for [LocationFSxOntap].
 */
public suspend fun locationFSxOntap(
    name: String,
    block: suspend LocationFSxOntapResourceBuilder.() -> Unit,
): LocationFSxOntap {
    val builder = LocationFSxOntapResourceBuilder()
    builder.name(name)
    block(builder)
    return builder.build()
}

/**
 * @see [LocationFSxOntap].
 * @param name The _unique_ name of the resulting resource.
 */
public fun locationFSxOntap(name: String): LocationFSxOntap {
    val builder = LocationFSxOntapResourceBuilder()
    builder.name(name)
    return builder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy