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

cloudshift.awscdk.dsl.cxapi.EnvironmentPlaceholderValuesDsl.kt Maven / Gradle / Ivy

There is a newer version: 0.7.0
Show newest version
@file:Suppress("RedundantVisibilityModifier", "RedundantUnitReturnType", "RemoveRedundantQualifierName", "unused", "UnusedImport", "ClassName", "REDUNDANT_PROJECTION", "DEPRECATION")

package cloudshift.awscdk.dsl.cxapi

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.cxapi.EnvironmentPlaceholderValues
import kotlin.String

/**
 * Return the appropriate values for the environment placeholders.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.cxapi.*;
 * EnvironmentPlaceholderValues environmentPlaceholderValues =
 * EnvironmentPlaceholderValues.builder()
 * .accountId("accountId")
 * .partition("partition")
 * .region("region")
 * .build();
 * ```
 */
@CdkDslMarker
public class EnvironmentPlaceholderValuesDsl {
    private val cdkBuilder: EnvironmentPlaceholderValues.Builder =
        EnvironmentPlaceholderValues.builder()

    /**
     * @param accountId Return the account.
     */
    public fun accountId(accountId: String) {
        cdkBuilder.accountId(accountId)
    }

    /**
     * @param partition Return the partition.
     */
    public fun partition(partition: String) {
        cdkBuilder.partition(partition)
    }

    /**
     * @param region Return the region.
     */
    public fun region(region: String) {
        cdkBuilder.region(region)
    }

    public fun build(): EnvironmentPlaceholderValues = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy