All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.awsnative.ssm.kotlin.inputs.ResourceDataSyncSyncSourceArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 0.122.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.awsnative.ssm.kotlin.inputs

import com.pulumi.awsnative.ssm.inputs.ResourceDataSyncSyncSourceArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property awsOrganizationsSource Information about the AwsOrganizationsSource resource data sync source. A sync source of this type can synchronize data from AWS Organizations .
 * @property includeFutureRegions Whether to automatically synchronize and aggregate data from new AWS Regions when those Regions come online.
 * @property sourceRegions The `SyncSource` AWS Regions included in the resource data sync.
 * @property sourceType The type of data source for the resource data sync. `SourceType` is either `AwsOrganizations` (if an organization is present in AWS Organizations ) or `SingleAccountMultiRegions` .
 */
public data class ResourceDataSyncSyncSourceArgs(
    public val awsOrganizationsSource: Output? = null,
    public val includeFutureRegions: Output? = null,
    public val sourceRegions: Output>,
    public val sourceType: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.awsnative.ssm.inputs.ResourceDataSyncSyncSourceArgs =
        com.pulumi.awsnative.ssm.inputs.ResourceDataSyncSyncSourceArgs.builder()
            .awsOrganizationsSource(
                awsOrganizationsSource?.applyValue({ args0 ->
                    args0.let({ args0 ->
                        args0.toJava()
                    })
                }),
            )
            .includeFutureRegions(includeFutureRegions?.applyValue({ args0 -> args0 }))
            .sourceRegions(sourceRegions.applyValue({ args0 -> args0.map({ args0 -> args0 }) }))
            .sourceType(sourceType.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ResourceDataSyncSyncSourceArgs].
 */
@PulumiTagMarker
public class ResourceDataSyncSyncSourceArgsBuilder internal constructor() {
    private var awsOrganizationsSource: Output? = null

    private var includeFutureRegions: Output? = null

    private var sourceRegions: Output>? = null

    private var sourceType: Output? = null

    /**
     * @param value Information about the AwsOrganizationsSource resource data sync source. A sync source of this type can synchronize data from AWS Organizations .
     */
    @JvmName("scglphqhmgcywrjf")
    public suspend fun awsOrganizationsSource(`value`: Output) {
        this.awsOrganizationsSource = value
    }

    /**
     * @param value Whether to automatically synchronize and aggregate data from new AWS Regions when those Regions come online.
     */
    @JvmName("enhwqifinhkvxavf")
    public suspend fun includeFutureRegions(`value`: Output) {
        this.includeFutureRegions = value
    }

    /**
     * @param value The `SyncSource` AWS Regions included in the resource data sync.
     */
    @JvmName("juojluwbooseldaf")
    public suspend fun sourceRegions(`value`: Output>) {
        this.sourceRegions = value
    }

    @JvmName("lbqoallewhaftmnw")
    public suspend fun sourceRegions(vararg values: Output) {
        this.sourceRegions = Output.all(values.asList())
    }

    /**
     * @param values The `SyncSource` AWS Regions included in the resource data sync.
     */
    @JvmName("ysicdihhbxydnxlo")
    public suspend fun sourceRegions(values: List>) {
        this.sourceRegions = Output.all(values)
    }

    /**
     * @param value The type of data source for the resource data sync. `SourceType` is either `AwsOrganizations` (if an organization is present in AWS Organizations ) or `SingleAccountMultiRegions` .
     */
    @JvmName("mwrdqiffbxqbkfgs")
    public suspend fun sourceType(`value`: Output) {
        this.sourceType = value
    }

    /**
     * @param value Information about the AwsOrganizationsSource resource data sync source. A sync source of this type can synchronize data from AWS Organizations .
     */
    @JvmName("upvcdrlquycsxkji")
    public suspend fun awsOrganizationsSource(`value`: ResourceDataSyncAwsOrganizationsSourceArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.awsOrganizationsSource = mapped
    }

    /**
     * @param argument Information about the AwsOrganizationsSource resource data sync source. A sync source of this type can synchronize data from AWS Organizations .
     */
    @JvmName("gxcmpqyxpdodjepk")
    public suspend fun awsOrganizationsSource(argument: suspend ResourceDataSyncAwsOrganizationsSourceArgsBuilder.() -> Unit) {
        val toBeMapped = ResourceDataSyncAwsOrganizationsSourceArgsBuilder().applySuspend {
            argument()
        }.build()
        val mapped = of(toBeMapped)
        this.awsOrganizationsSource = mapped
    }

    /**
     * @param value Whether to automatically synchronize and aggregate data from new AWS Regions when those Regions come online.
     */
    @JvmName("fixptecwyvgeulxf")
    public suspend fun includeFutureRegions(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.includeFutureRegions = mapped
    }

    /**
     * @param value The `SyncSource` AWS Regions included in the resource data sync.
     */
    @JvmName("rwbtclydpgxrealh")
    public suspend fun sourceRegions(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceRegions = mapped
    }

    /**
     * @param values The `SyncSource` AWS Regions included in the resource data sync.
     */
    @JvmName("oekmtlsuifheeyfg")
    public suspend fun sourceRegions(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceRegions = mapped
    }

    /**
     * @param value The type of data source for the resource data sync. `SourceType` is either `AwsOrganizations` (if an organization is present in AWS Organizations ) or `SingleAccountMultiRegions` .
     */
    @JvmName("xhjksvlxffhkrptu")
    public suspend fun sourceType(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.sourceType = mapped
    }

    internal fun build(): ResourceDataSyncSyncSourceArgs = ResourceDataSyncSyncSourceArgs(
        awsOrganizationsSource = awsOrganizationsSource,
        includeFutureRegions = includeFutureRegions,
        sourceRegions = sourceRegions ?: throw PulumiNullFieldException("sourceRegions"),
        sourceType = sourceType ?: throw PulumiNullFieldException("sourceType"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy