
com.pulumi.awsnative.elasticbeanstalk.kotlin.ConfigurationTemplate.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-native-kotlin Show documentation
Show all versions of pulumi-aws-native-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.elasticbeanstalk.kotlin
import com.pulumi.awsnative.elasticbeanstalk.kotlin.outputs.ConfigurationTemplateConfigurationOptionSetting
import com.pulumi.awsnative.elasticbeanstalk.kotlin.outputs.ConfigurationTemplateSourceConfiguration
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.elasticbeanstalk.kotlin.outputs.ConfigurationTemplateConfigurationOptionSetting.Companion.toKotlin as configurationTemplateConfigurationOptionSettingToKotlin
import com.pulumi.awsnative.elasticbeanstalk.kotlin.outputs.ConfigurationTemplateSourceConfiguration.Companion.toKotlin as configurationTemplateSourceConfigurationToKotlin
/**
* Builder for [ConfigurationTemplate].
*/
@PulumiTagMarker
public class ConfigurationTemplateResourceBuilder internal constructor() {
public var name: String? = null
public var args: ConfigurationTemplateArgs = ConfigurationTemplateArgs()
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 ConfigurationTemplateArgsBuilder.() -> Unit) {
val builder = ConfigurationTemplateArgsBuilder()
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(): ConfigurationTemplate {
val builtJavaResource =
com.pulumi.awsnative.elasticbeanstalk.ConfigurationTemplate(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ConfigurationTemplate(builtJavaResource)
}
}
/**
* Resource Type definition for AWS::ElasticBeanstalk::ConfigurationTemplate
*/
public class ConfigurationTemplate internal constructor(
override val javaResource: com.pulumi.awsnative.elasticbeanstalk.ConfigurationTemplate,
) : KotlinCustomResource(javaResource, ConfigurationTemplateMapper) {
/**
* The name of the Elastic Beanstalk application to associate with this configuration template.
*/
public val applicationName: Output
get() = javaResource.applicationName().applyValue({ args0 -> args0 })
/**
* An optional description for this configuration.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The ID of an environment whose settings you want to use to create the configuration template. You must specify EnvironmentId if you don't specify PlatformArn, SolutionStackName, or SourceConfiguration.
*/
public val environmentId: Output?
get() = javaResource.environmentId().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Option values for the Elastic Beanstalk configuration, such as the instance type. If specified, these values override the values obtained from the solution stack or the source configuration template. For a complete list of Elastic Beanstalk configuration options, see [Option Values](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/command-options.html) in the AWS Elastic Beanstalk Developer Guide.
*/
public val optionSettings: Output>?
get() = javaResource.optionSettings().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
configurationTemplateConfigurationOptionSettingToKotlin(args0)
})
})
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the custom platform. For more information, see [Custom Platforms](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/custom-platforms.html) in the AWS Elastic Beanstalk Developer Guide.
*/
public val platformArn: Output?
get() = javaResource.platformArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of an Elastic Beanstalk solution stack (platform version) that this configuration uses. For example, 64bit Amazon Linux 2013.09 running Tomcat 7 Java 7. A solution stack specifies the operating system, runtime, and application server for a configuration template. It also determines the set of configuration options as well as the possible and default values. For more information, see [Supported Platforms](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/concepts.platforms.html) in the AWS Elastic Beanstalk Developer Guide.
* You must specify SolutionStackName if you don't specify PlatformArn, EnvironmentId, or SourceConfiguration.
* Use the ListAvailableSolutionStacks API to obtain a list of available solution stacks.
*/
public val solutionStackName: Output?
get() = javaResource.solutionStackName().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* An Elastic Beanstalk configuration template to base this one on. If specified, Elastic Beanstalk uses the configuration values from the specified configuration template to create a new configuration.
* Values specified in OptionSettings override any values obtained from the SourceConfiguration.
* You must specify SourceConfiguration if you don't specify PlatformArn, EnvironmentId, or SolutionStackName.
* Constraint: If both solution stack name and source configuration are specified, the solution stack of the source configuration template must match the specified solution stack name.
*/
public val sourceConfiguration: Output?
get() = javaResource.sourceConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
configurationTemplateSourceConfigurationToKotlin(args0)
})
}).orElse(null)
})
/**
* The name of the configuration template
*/
public val templateName: Output
get() = javaResource.templateName().applyValue({ args0 -> args0 })
}
public object ConfigurationTemplateMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.elasticbeanstalk.ConfigurationTemplate::class == javaResource::class
override fun map(javaResource: Resource): ConfigurationTemplate =
ConfigurationTemplate(
javaResource as
com.pulumi.awsnative.elasticbeanstalk.ConfigurationTemplate,
)
}
/**
* @see [ConfigurationTemplate].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [ConfigurationTemplate].
*/
public suspend fun configurationTemplate(
name: String,
block: suspend ConfigurationTemplateResourceBuilder.() -> Unit,
): ConfigurationTemplate {
val builder = ConfigurationTemplateResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [ConfigurationTemplate].
* @param name The _unique_ name of the resulting resource.
*/
public fun configurationTemplate(name: String): ConfigurationTemplate {
val builder = ConfigurationTemplateResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy