com.pulumi.aws.imagebuilder.kotlin.ImagePipeline.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.imagebuilder.kotlin
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineImageScanningConfiguration
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineImageTestsConfiguration
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineSchedule
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineWorkflow
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.Deprecated
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.collections.Map
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineImageScanningConfiguration.Companion.toKotlin as imagePipelineImageScanningConfigurationToKotlin
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineImageTestsConfiguration.Companion.toKotlin as imagePipelineImageTestsConfigurationToKotlin
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineSchedule.Companion.toKotlin as imagePipelineScheduleToKotlin
import com.pulumi.aws.imagebuilder.kotlin.outputs.ImagePipelineWorkflow.Companion.toKotlin as imagePipelineWorkflowToKotlin
/**
* Builder for [ImagePipeline].
*/
@PulumiTagMarker
public class ImagePipelineResourceBuilder internal constructor() {
public var name: String? = null
public var args: ImagePipelineArgs = ImagePipelineArgs()
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 ImagePipelineArgsBuilder.() -> Unit) {
val builder = ImagePipelineArgsBuilder()
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(): ImagePipeline {
val builtJavaResource = com.pulumi.aws.imagebuilder.ImagePipeline(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ImagePipeline(builtJavaResource)
}
}
/**
* Manages an Image Builder Image Pipeline.
* > **NOTE:** Starting with version `5.74.0`, lifecycle meta-argument `replace_triggered_by` must be used in order to prevent a dependency error on destroy.
* ## Import
* Using `pulumi import`, import `aws_imagebuilder_image_pipeline` resources using the Amazon Resource Name (ARN). For example:
* ```sh
* $ pulumi import aws:imagebuilder/imagePipeline:ImagePipeline example arn:aws:imagebuilder:us-east-1:123456789012:image-pipeline/example
* ```
*/
public class ImagePipeline internal constructor(
override val javaResource: com.pulumi.aws.imagebuilder.ImagePipeline,
) : KotlinCustomResource(javaResource, ImagePipelineMapper) {
/**
* Amazon Resource Name (ARN) of the image pipeline.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* Amazon Resource Name (ARN) of the container recipe.
*/
public val containerRecipeArn: Output?
get() = javaResource.containerRecipeArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Date the image pipeline was created.
*/
public val dateCreated: Output
get() = javaResource.dateCreated().applyValue({ args0 -> args0 })
/**
* Date the image pipeline was last run.
*/
public val dateLastRun: Output
get() = javaResource.dateLastRun().applyValue({ args0 -> args0 })
/**
* Date the image pipeline will run next.
*/
public val dateNextRun: Output
get() = javaResource.dateNextRun().applyValue({ args0 -> args0 })
/**
* Date the image pipeline was updated.
*/
public val dateUpdated: Output
get() = javaResource.dateUpdated().applyValue({ args0 -> args0 })
/**
* Description of the image pipeline.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Amazon Resource Name (ARN) of the Image Builder Distribution Configuration.
*/
public val distributionConfigurationArn: Output?
get() = javaResource.distributionConfigurationArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Whether additional information about the image being created is collected. Defaults to `true`.
*/
public val enhancedImageMetadataEnabled: Output?
get() = javaResource.enhancedImageMetadataEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Amazon Resource Name (ARN) of the service-linked role to be used by Image Builder to [execute workflows](https://docs.aws.amazon.com/imagebuilder/latest/userguide/manage-image-workflows.html).
*/
public val executionRole: Output?
get() = javaResource.executionRole().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Amazon Resource Name (ARN) of the image recipe.
*/
public val imageRecipeArn: Output?
get() = javaResource.imageRecipeArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Configuration block with image scanning configuration. Detailed below.
*/
public val imageScanningConfiguration: Output
get() = javaResource.imageScanningConfiguration().applyValue({ args0 ->
args0.let({ args0 ->
imagePipelineImageScanningConfigurationToKotlin(args0)
})
})
/**
* Configuration block with image tests configuration. Detailed below.
*/
public val imageTestsConfiguration: Output
get() = javaResource.imageTestsConfiguration().applyValue({ args0 ->
args0.let({ args0 ->
imagePipelineImageTestsConfigurationToKotlin(args0)
})
})
/**
* Amazon Resource Name (ARN) of the Image Builder Infrastructure Configuration.
*/
public val infrastructureConfigurationArn: Output
get() = javaResource.infrastructureConfigurationArn().applyValue({ args0 -> args0 })
/**
* Name of the image pipeline.
* The following arguments are optional:
*/
public val name: Output
get() = javaResource.name().applyValue({ args0 -> args0 })
/**
* Platform of the image pipeline.
*/
public val platform: Output
get() = javaResource.platform().applyValue({ args0 -> args0 })
/**
* Configuration block with schedule settings. Detailed below.
*/
public val schedule: Output?
get() = javaResource.schedule().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
imagePipelineScheduleToKotlin(args0)
})
}).orElse(null)
})
/**
* Status of the image pipeline. Valid values are `DISABLED` and `ENABLED`. Defaults to `ENABLED`.
*/
public val status: Output?
get() = javaResource.status().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* Key-value map of resource tags for the image pipeline. If configured with a provider `default_tags` configuration block present, tags with matching keys will overwrite those defined at the provider-level.
*/
public val tags: Output
© 2015 - 2024 Weber Informatics LLC | Privacy Policy