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

cloudshift.awscdk.dsl.services.secretsmanager.SecretAttachmentTargetPropsDsl.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.secretsmanager

import cloudshift.awscdk.common.CdkDslMarker
import software.amazon.awscdk.services.secretsmanager.AttachmentTargetType
import software.amazon.awscdk.services.secretsmanager.SecretAttachmentTargetProps
import kotlin.String

/**
 * Attachment target specifications.
 *
 * 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.secretsmanager.*;
 * SecretAttachmentTargetProps secretAttachmentTargetProps = SecretAttachmentTargetProps.builder()
 * .targetId("targetId")
 * .targetType(AttachmentTargetType.RDS_DB_INSTANCE)
 * .build();
 * ```
 */
@CdkDslMarker
public class SecretAttachmentTargetPropsDsl {
    private val cdkBuilder: SecretAttachmentTargetProps.Builder =
        SecretAttachmentTargetProps.builder()

    /**
     * @param targetId The id of the target to attach the secret to.
     */
    public fun targetId(targetId: String) {
        cdkBuilder.targetId(targetId)
    }

    /**
     * @param targetType The type of the target to attach the secret to.
     */
    public fun targetType(targetType: AttachmentTargetType) {
        cdkBuilder.targetType(targetType)
    }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy