![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.awsnative.imagebuilder.kotlin.ImagePipeline.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.awsnative.imagebuilder.kotlin
import com.pulumi.awsnative.imagebuilder.kotlin.enums.ImagePipelineStatus
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineImageScanningConfiguration
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineImageTestsConfiguration
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineSchedule
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineWorkflowConfiguration
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 kotlin.collections.Map
import com.pulumi.awsnative.imagebuilder.kotlin.enums.ImagePipelineStatus.Companion.toKotlin as imagePipelineStatusToKotlin
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineImageScanningConfiguration.Companion.toKotlin as imagePipelineImageScanningConfigurationToKotlin
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineImageTestsConfiguration.Companion.toKotlin as imagePipelineImageTestsConfigurationToKotlin
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineSchedule.Companion.toKotlin as imagePipelineScheduleToKotlin
import com.pulumi.awsnative.imagebuilder.kotlin.outputs.ImagePipelineWorkflowConfiguration.Companion.toKotlin as imagePipelineWorkflowConfigurationToKotlin
/**
* 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.awsnative.imagebuilder.ImagePipeline(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return ImagePipeline(builtJavaResource)
}
}
/**
* Resource schema for AWS::ImageBuilder::ImagePipeline
*/
public class ImagePipeline internal constructor(
override val javaResource: com.pulumi.awsnative.imagebuilder.ImagePipeline,
) : KotlinCustomResource(javaResource, ImagePipelineMapper) {
/**
* The Amazon Resource Name (ARN) of the image pipeline.
*/
public val arn: Output
get() = javaResource.arn().applyValue({ args0 -> args0 })
/**
* The Amazon Resource Name (ARN) of the container recipe that defines how images are configured and tested.
*/
public val containerRecipeArn: Output?
get() = javaResource.containerRecipeArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The description of the image pipeline.
*/
public val description: Output?
get() = javaResource.description().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the distribution configuration associated with this image pipeline.
*/
public val distributionConfigurationArn: Output?
get() = javaResource.distributionConfigurationArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Collects additional information about the image being created, including the operating system (OS) version and package list.
*/
public val enhancedImageMetadataEnabled: Output?
get() = javaResource.enhancedImageMetadataEnabled().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The execution role name/ARN for the image build, if provided
*/
public val executionRole: Output?
get() = javaResource.executionRole().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the image recipe that defines how images are configured, tested, and assessed.
*/
public val imageRecipeArn: Output?
get() = javaResource.imageRecipeArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Contains settings for vulnerability scans.
*/
public val imageScanningConfiguration: Output?
get() = javaResource.imageScanningConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
imagePipelineImageScanningConfigurationToKotlin(args0)
})
}).orElse(null)
})
/**
* The image tests configuration of the image pipeline.
*/
public val imageTestsConfiguration: Output?
get() = javaResource.imageTestsConfiguration().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> imagePipelineImageTestsConfigurationToKotlin(args0) })
}).orElse(null)
})
/**
* The Amazon Resource Name (ARN) of the infrastructure configuration associated with this image pipeline.
*/
public val infrastructureConfigurationArn: Output?
get() = javaResource.infrastructureConfigurationArn().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The name of the image pipeline.
*/
public val name: Output?
get() = javaResource.name().applyValue({ args0 -> args0.map({ args0 -> args0 }).orElse(null) })
/**
* The schedule of the image pipeline.
*/
public val schedule: Output?
get() = javaResource.schedule().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
imagePipelineScheduleToKotlin(args0)
})
}).orElse(null)
})
/**
* The status of the image pipeline.
*/
public val status: Output?
get() = javaResource.status().applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
imagePipelineStatusToKotlin(args0)
})
}).orElse(null)
})
/**
* The tags of this image pipeline.
*/
public val tags: Output
© 2015 - 2025 Weber Informatics LLC | Privacy Policy