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

cloudshift.awscdk.dsl.services.systemsmanagersap.CfnApplicationCredentialPropertyDsl.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.systemsmanagersap

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.services.systemsmanagersap.CfnApplication
import kotlin.String

/**
 * The credentials of your SAP application.
 *
 * Example:
 *
 * ```
 * // The code below shows an example of how to instantiate this type.
 * // The values are placeholders you should change.
 * import software.amazon.awscdk.services.systemsmanagersap.*;
 * CredentialProperty credentialProperty = CredentialProperty.builder()
 * .credentialType("credentialType")
 * .databaseName("databaseName")
 * .secretId("secretId")
 * .build();
 * ```
 *
 * [Documentation](http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-systemsmanagersap-application-credential.html)
 */
@CdkDslMarker
public class CfnApplicationCredentialPropertyDsl {
    private val cdkBuilder: CfnApplication.CredentialProperty.Builder =
        CfnApplication.CredentialProperty.builder()

    /**
     * @param credentialType The type of the application credentials.
     */
    public fun credentialType(credentialType: String) {
        cdkBuilder.credentialType(credentialType)
    }

    /**
     * @param databaseName The name of the SAP HANA database.
     */
    public fun databaseName(databaseName: String) {
        cdkBuilder.databaseName(databaseName)
    }

    /**
     * @param secretId The secret ID created in AWS Secrets Manager to store the credentials of the
     * SAP application.
     */
    public fun secretId(secretId: String) {
        cdkBuilder.secretId(secretId)
    }

    public fun build(): CfnApplication.CredentialProperty = cdkBuilder.build()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy