UserProfileArgs

data class UserProfileArgs(val allowSelfManagement: Output<Boolean>? = null, val sshPublicKey: Output<String>? = null, val sshUsername: Output<String>? = null, val userArn: Output<String>? = null) : ConvertibleToJava<UserProfileArgs>

Example Usage

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",
});
import pulumi
import pulumi_aws as aws
my_profile = aws.opsworks.UserProfile("my_profile",
user_arn=user["arn"],
ssh_username="my_user")
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",
});
});
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
})
}
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());
}
}
resources:
myProfile:
type: aws:opsworks:UserProfile
name: my_profile
properties:
userArn: ${user.arn}
sshUsername: my_user

Constructors

Link copied to clipboard
constructor(allowSelfManagement: Output<Boolean>? = null, sshPublicKey: Output<String>? = null, sshUsername: Output<String>? = null, userArn: Output<String>? = null)

Properties

Link copied to clipboard
val allowSelfManagement: Output<Boolean>? = null

Whether users can specify their own SSH public key through the My Settings page

Link copied to clipboard
val sshPublicKey: Output<String>? = null

The users public key

Link copied to clipboard
val sshUsername: Output<String>? = null

The ssh username, with witch this user wants to log in

Link copied to clipboard
val userArn: Output<String>? = null

The user's IAM ARN

Functions

Link copied to clipboard
open override fun toJava(): UserProfileArgs