
com.pulumi.awsnative.configuration.kotlin.OrganizationConformancePack.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.configuration.kotlin
import com.pulumi.awsnative.configuration.kotlin.outputs.OrganizationConformancePackConformancePackInputParameter
import com.pulumi.awsnative.configuration.kotlin.outputs.OrganizationConformancePackConformancePackInputParameter.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.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
/**
* Builder for [OrganizationConformancePack].
*/
@PulumiTagMarker
public class OrganizationConformancePackResourceBuilder internal constructor() {
public var name: String? = null
public var args: OrganizationConformancePackArgs = OrganizationConformancePackArgs()
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 OrganizationConformancePackArgsBuilder.() -> Unit) {
val builder = OrganizationConformancePackArgsBuilder()
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(): OrganizationConformancePack {
val builtJavaResource =
com.pulumi.awsnative.configuration.OrganizationConformancePack(
this.name,
this.args.toJava(),
this.opts.toJava(),
)
return OrganizationConformancePack(builtJavaResource)
}
}
/**
* Resource schema for AWS::Config::OrganizationConformancePack.
* ## Example Usage
* ### Example
* No Java example available.
* ### Example
* No Java example available.
*/
public class OrganizationConformancePack internal constructor(
override val javaResource: com.pulumi.awsnative.configuration.OrganizationConformancePack,
) : KotlinCustomResource(javaResource, OrganizationConformancePackMapper) {
/**
* A list of ConformancePackInputParameter objects.
*/
public val conformancePackInputParameters:
Output>?
get() = javaResource.conformancePackInputParameters().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0.let({ args0 -> toKotlin(args0) }) })
}).orElse(null)
})
/**
* AWS Config stores intermediate files while processing conformance pack template.
*/
public val deliveryS3Bucket: Output?
get() = javaResource.deliveryS3Bucket().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* The prefix for the delivery S3 bucket.
*/
public val deliveryS3KeyPrefix: Output?
get() = javaResource.deliveryS3KeyPrefix().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* A list of AWS accounts to be excluded from an organization conformance pack while deploying a conformance pack.
*/
public val excludedAccounts: Output>?
get() = javaResource.excludedAccounts().applyValue({ args0 ->
args0.map({ args0 ->
args0.map({ args0 -> args0 })
}).orElse(null)
})
/**
* The name of the organization conformance pack.
*/
public val organizationConformancePackName: Output
get() = javaResource.organizationConformancePackName().applyValue({ args0 -> args0 })
/**
* A string containing full conformance pack template body.
*/
public val templateBody: Output?
get() = javaResource.templateBody().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
/**
* Location of file containing the template body.
*/
public val templateS3Uri: Output?
get() = javaResource.templateS3Uri().applyValue({ args0 ->
args0.map({ args0 ->
args0
}).orElse(null)
})
}
public object OrganizationConformancePackMapper : ResourceMapper {
override fun supportsMappingOfType(javaResource: Resource): Boolean =
com.pulumi.awsnative.configuration.OrganizationConformancePack::class == javaResource::class
override fun map(javaResource: Resource): OrganizationConformancePack =
OrganizationConformancePack(
javaResource as
com.pulumi.awsnative.configuration.OrganizationConformancePack,
)
}
/**
* @see [OrganizationConformancePack].
* @param name The _unique_ name of the resulting resource.
* @param block Builder for [OrganizationConformancePack].
*/
public suspend fun organizationConformancePack(
name: String,
block: suspend OrganizationConformancePackResourceBuilder.() -> Unit,
): OrganizationConformancePack {
val builder = OrganizationConformancePackResourceBuilder()
builder.name(name)
block(builder)
return builder.build()
}
/**
* @see [OrganizationConformancePack].
* @param name The _unique_ name of the resulting resource.
*/
public fun organizationConformancePack(name: String): OrganizationConformancePack {
val builder = OrganizationConformancePackResourceBuilder()
builder.name(name)
return builder.build()
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy