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

cloudshift.awscdk.dsl.services.codebuild.BitBucketSourceCredentialsPropsDsl.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.services.codebuild

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.SecretValue
import software.amazon.awscdk.services.codebuild.BitBucketSourceCredentialsProps

/**
 * Construction properties of `BitBucketSourceCredentials`.
 *
 * Example:
 *
 * ```
 * BitBucketSourceCredentials.Builder.create(this, "CodeBuildBitBucketCreds")
 * .username(SecretValue.secretsManager("my-bitbucket-creds",
 * SecretsManagerSecretOptions.builder().jsonField("username").build()))
 * .password(SecretValue.secretsManager("my-bitbucket-creds",
 * SecretsManagerSecretOptions.builder().jsonField("password").build()))
 * .build();
 * ```
 */
@CdkDslMarker
public class BitBucketSourceCredentialsPropsDsl {
    private val cdkBuilder: BitBucketSourceCredentialsProps.Builder =
        BitBucketSourceCredentialsProps.builder()

    /**
     * @param password Your BitBucket application password.
     */
    public fun password(password: SecretValue) {
        cdkBuilder.password(password)
    }

    /**
     * @param username Your BitBucket username.
     */
    public fun username(username: SecretValue) {
        cdkBuilder.username(username)
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy