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

com.pulumi.aws.opsworks.kotlin.UserProfileArgs.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: 6.57.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.aws.opsworks.kotlin

import com.pulumi.aws.opsworks.UserProfileArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 * Provides an OpsWorks User Profile resource.
 * ## Example Usage
 * 
 * ```typescript
 * import * as pulumi from "@pulumi/pulumi";
 * import * as aws from "@pulumi/aws";
 * const myProfile = new aws.opsworks.UserProfile("my_profile", {
 *     userArn: user.arn,
 *     sshUsername: "my_user",
 * });
 * ```
 * ```python
 * import pulumi
 * import pulumi_aws as aws
 * my_profile = aws.opsworks.UserProfile("my_profile",
 *     user_arn=user["arn"],
 *     ssh_username="my_user")
 * ```
 * ```csharp
 * using System.Collections.Generic;
 * using System.Linq;
 * using Pulumi;
 * using Aws = Pulumi.Aws;
 * return await Deployment.RunAsync(() =>
 * {
 *     var myProfile = new Aws.OpsWorks.UserProfile("my_profile", new()
 *     {
 *         UserArn = user.Arn,
 *         SshUsername = "my_user",
 *     });
 * });
 * ```
 * ```go
 * package main
 * import (
 * 	"github.com/pulumi/pulumi-aws/sdk/v6/go/aws/opsworks"
 * 	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
 * )
 * func main() {
 * 	pulumi.Run(func(ctx *pulumi.Context) error {
 * 		_, err := opsworks.NewUserProfile(ctx, "my_profile", &opsworks.UserProfileArgs{
 * 			UserArn:     pulumi.Any(user.Arn),
 * 			SshUsername: pulumi.String("my_user"),
 * 		})
 * 		if err != nil {
 * 			return err
 * 		}
 * 		return nil
 * 	})
 * }
 * ```
 * ```java
 * package generated_program;
 * import com.pulumi.Context;
 * import com.pulumi.Pulumi;
 * import com.pulumi.core.Output;
 * import com.pulumi.aws.opsworks.UserProfile;
 * import com.pulumi.aws.opsworks.UserProfileArgs;
 * import java.util.List;
 * import java.util.ArrayList;
 * import java.util.Map;
 * import java.io.File;
 * import java.nio.file.Files;
 * import java.nio.file.Paths;
 * public class App {
 *     public static void main(String[] args) {
 *         Pulumi.run(App::stack);
 *     }
 *     public static void stack(Context ctx) {
 *         var myProfile = new UserProfile("myProfile", UserProfileArgs.builder()
 *             .userArn(user.arn())
 *             .sshUsername("my_user")
 *             .build());
 *     }
 * }
 * ```
 * ```yaml
 * resources:
 *   myProfile:
 *     type: aws:opsworks:UserProfile
 *     name: my_profile
 *     properties:
 *       userArn: ${user.arn}
 *       sshUsername: my_user
 * ```
 * 
 * @property allowSelfManagement Whether users can specify their own SSH public key through the My Settings page
 * @property sshPublicKey The users public key
 * @property sshUsername The ssh username, with witch this user wants to log in
 * @property userArn The user's IAM ARN
 */
public data class UserProfileArgs(
    public val allowSelfManagement: Output? = null,
    public val sshPublicKey: Output? = null,
    public val sshUsername: Output? = null,
    public val userArn: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.aws.opsworks.UserProfileArgs =
        com.pulumi.aws.opsworks.UserProfileArgs.builder()
            .allowSelfManagement(allowSelfManagement?.applyValue({ args0 -> args0 }))
            .sshPublicKey(sshPublicKey?.applyValue({ args0 -> args0 }))
            .sshUsername(sshUsername?.applyValue({ args0 -> args0 }))
            .userArn(userArn?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [UserProfileArgs].
 */
@PulumiTagMarker
public class UserProfileArgsBuilder internal constructor() {
    private var allowSelfManagement: Output? = null

    private var sshPublicKey: Output? = null

    private var sshUsername: Output? = null

    private var userArn: Output? = null

    /**
     * @param value Whether users can specify their own SSH public key through the My Settings page
     */
    @JvmName("unmdjsyclntavfxg")
    public suspend fun allowSelfManagement(`value`: Output) {
        this.allowSelfManagement = value
    }

    /**
     * @param value The users public key
     */
    @JvmName("sjbclctfcfdohdtn")
    public suspend fun sshPublicKey(`value`: Output) {
        this.sshPublicKey = value
    }

    /**
     * @param value The ssh username, with witch this user wants to log in
     */
    @JvmName("mkjoaxogqqpdobti")
    public suspend fun sshUsername(`value`: Output) {
        this.sshUsername = value
    }

    /**
     * @param value The user's IAM ARN
     */
    @JvmName("lwmgkudofavhdvep")
    public suspend fun userArn(`value`: Output) {
        this.userArn = value
    }

    /**
     * @param value Whether users can specify their own SSH public key through the My Settings page
     */
    @JvmName("nfmsefkamifxrijs")
    public suspend fun allowSelfManagement(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.allowSelfManagement = mapped
    }

    /**
     * @param value The users public key
     */
    @JvmName("djxhcnqntcptogfu")
    public suspend fun sshPublicKey(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sshPublicKey = mapped
    }

    /**
     * @param value The ssh username, with witch this user wants to log in
     */
    @JvmName("stopxdmlrmydkyia")
    public suspend fun sshUsername(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sshUsername = mapped
    }

    /**
     * @param value The user's IAM ARN
     */
    @JvmName("iojutqyhwrnryaqs")
    public suspend fun userArn(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.userArn = mapped
    }

    internal fun build(): UserProfileArgs = UserProfileArgs(
        allowSelfManagement = allowSelfManagement,
        sshPublicKey = sshPublicKey,
        sshUsername = sshUsername,
        userArn = userArn,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy