com.pulumi.azurenative.web.kotlin.WebAppSiteExtension.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.web.kotlin
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
/**
* Builder for [WebAppSiteExtension].
*/
@PulumiTagMarker
public class WebAppSiteExtensionResourceBuilder internal constructor() {
public var name: String? = null
public var args: WebAppSiteExtensionArgs = WebAppSiteExtensionArgs()
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 WebAppSiteExtensionArgsBuilder.() -> Unit) {
val builder = WebAppSiteExtensionArgsBuilder()
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(): WebAppSiteExtension {
val builtJavaResource = com.pulumi.azurenative.web.WebAppSiteExtension(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return WebAppSiteExtension(builtJavaResource)
}
}
/**
* Site Extension Information.
* Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.
* Other available API versions: 2016-08-01, 2020-10-01, 2023-01-01, 2023-12-01.
* ## Import
* An existing resource can be imported using its type token, name, and identifier, e.g.
* ```sh
* $ pulumi import azure-native:web:WebAppSiteExtension myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/siteextensions/{siteExtensionId}
* ```
*/
public class WebAppSiteExtension internal constructor(
override val javaResource: com.pulumi.azurenative.web.WebAppSiteExtension,
) : KotlinCustomResource(javaResource, WebAppSiteExtensionMapper) {
/**
* List of authors.
*/
public val authors: Output>?
get() = javaResource.authors().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0
})
}).orElse(null)
})
/**
* Site Extension comment.
*/
public val comment: Output?
get() = javaResource.comment().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Detailed description.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Count of downloads.
*/
public val downloadCount: Output?
get() = javaResource.downloadCount().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Site extension ID.
*/
public val extensionId: Output?
get() = javaResource.extensionId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Site extension type.
*/
public val extensionType: Output?
get() = javaResource.extensionType().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Extension URL.
*/
public val extensionUrl: Output?
get() = javaResource.extensionUrl().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Feed URL.
*/
public val feedUrl: Output?
get() = javaResource.feedUrl().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Icon URL.
*/
public val iconUrl: Output?
get() = javaResource.iconUrl().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Installed timestamp.
*/
public val installedDateTime: Output?
get() = javaResource.installedDateTime().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Installer command line parameters.
*/
public val installerCommandLineParams: Output?
get() = javaResource.installerCommandLineParams().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Kind of resource.
*/
public val kind: Output?
get() = javaResource.kind().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* License URL.
*/
public val licenseUrl: Output?
get() = javaResource.licenseUrl().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* true
if the local version is the latest version; false
otherwise.
*/
public val localIsLatestVersion: Output?
get() = javaResource.localIsLatestVersion().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Local path.
*/
public val localPath: Output?
get() = javaResource.localPath().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Resource Name.
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Project URL.
*/
public val projectUrl: Output?
get() = javaResource.projectUrl().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Provisioning state.
*/
public val provisioningState: Output?
get() = javaResource.provisioningState().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Published timestamp.
*/
public val publishedDateTime: Output?
get() = javaResource.publishedDateTime().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Summary description.
*/
public val summary: Output?
get() = javaResource.summary().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
public val title: Output?
get() = javaResource.title().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Resource type.
*/
public val type: Output
get() = javaResource.type().applyValue({ args0 -> args0 })
/**
* Version information.
*/
public val version: Output?
get() = javaResource.version().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
}
public object WebAppSiteExtensionMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.azurenative.web.WebAppSiteExtension::class == javaResource::class
override fun map(javaResource: Resource): WebAppSiteExtension = WebAppSiteExtension(
javaResource
as com.pulumi.azurenative.web.WebAppSiteExtension,
)
}
/**
* @see [WebAppSiteExtension].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [WebAppSiteExtension].
*/
public suspend fun webAppSiteExtension(
name: String,
block: suspend WebAppSiteExtensionResourceBuilder.() -> Unit,
): WebAppSiteExtension {
val builder = WebAppSiteExtensionResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [WebAppSiteExtension].
* @param name The _unique_ name of the resulting resource.
*/
public fun webAppSiteExtension(name: String): WebAppSiteExtension {
val builder = WebAppSiteExtensionResourceBuilder()
builder.name(name)
return builder.build()
}