![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.iotfleethub.kotlin.Application.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.iotfleethub.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [Application].
*/
@PulumiTagMarker
public class ApplicationResourceBuilder internal constructor() {
public var name: String? = null
public var args: ApplicationArgs = ApplicationArgs()
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 ApplicationArgsBuilder.() -> Unit) {
val builder = ApplicationArgsBuilder()
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(): Application {
val builtJavaResource = com.pulumi.awsnative.iotfleethub.Application(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return Application(builtJavaResource)
}
}
/**
* Resource schema for AWS::IoTFleetHub::Application
*/
public class Application internal constructor(
override val javaResource: com.pulumi.awsnative.iotfleethub.Application,
) : KotlinCustomResource(javaResource, ApplicationMapper) {
/**
* The ARN of the application.
*/
public val applicationArn: Output
get() = javaResource.applicationArn().applyValue({ args0 -> args0 })
/**
* When the Application was created
*/
public val applicationCreationDate: Output
get() = javaResource.applicationCreationDate().applyValue({ args0 -> args0 })
/**
* Application Description, should be between 1 and 2048 characters.
*/
public val applicationDescription: Output?
get() = javaResource.applicationDescription().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of the application.
*/
public val applicationId: Output
get() = javaResource.applicationId().applyValue({ args0 -> args0 })
/**
* When the Application was last updated
*/
public val applicationLastUpdateDate: Output
get() = javaResource.applicationLastUpdateDate().applyValue({ args0 -> args0 })
/**
* Application Name, should be between 1 and 256 characters.
*/
public val applicationName: Output
get() = javaResource.applicationName().applyValue({ args0 -> args0 })
/**
* The current state of the application.
*/
public val applicationState: Output
get() = javaResource.applicationState().applyValue({ args0 -> args0 })
/**
* The URL of the application.
*/
public val applicationUrl: Output
get() = javaResource.applicationUrl().applyValue({ args0 -> args0 })
/**
* A message indicating why Create or Delete Application failed.
*/
public val errorMessage: Output
get() = javaResource.errorMessage().applyValue({ args0 -> args0 })
/**
* The ARN of the role that the web application assumes when it interacts with AWS IoT Core. For more info on configuring this attribute, see https://docs.aws.amazon.com/iot/latest/apireference/API_iotfleethub_CreateApplication.html#API_iotfleethub_CreateApplication_RequestSyntax
*/
public val roleArn: Output
get() = javaResource.roleArn().applyValue({ args0 -> args0 })
/**
* The AWS SSO application generated client ID (used with AWS SSO APIs).
*/
public val ssoClientId: Output
get() = javaResource.ssoClientId().applyValue({ args0 -> args0 })
/**
* A list of key-value pairs that contain metadata for the application.
*/
public val tags: Output>?
get() = javaResource.tags().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> toKotlin(args0) })
})
}).orElse(null)
})
}
public object ApplicationMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.iotfleethub.Application::class == javaResource::class
override fun map(javaResource: Resource): Application = Application(
javaResource as
com.pulumi.awsnative.iotfleethub.Application,
)
}
/**
* @see [Application].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [Application].
*/
public suspend fun application(name: String, block: suspend ApplicationResourceBuilder.() -> Unit): Application {
val builder = ApplicationResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [Application].
* @param name The _unique_ name of the resulting resource.
*/
public fun application(name: String): Application {
val builder = ApplicationResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy