UserProfile

Provides an OpsWorks User Profile resource.

Example Usage

using Pulumi;
using Aws = Pulumi.Aws;

class MyStack : Stack
{
    public MyStack()
    {
        var myProfile = new Aws.OpsWorks.UserProfile("myProfile", new Aws.OpsWorks.UserProfileArgs
        {
            SshUsername = "my_user",
            UserArn = aws_iam_user.User.Arn,
        });
    }

}
package main

import (
    "github.com/pulumi/pulumi-aws/sdk/v2/go/aws/opsworks"
    "github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)

func main() {
    pulumi.Run(func(ctx *pulumi.Context) error {
        _, err := opsworks.NewUserProfile(ctx, "myProfile", &opsworks.UserProfileArgs{
            SshUsername: pulumi.String("my_user"),
            UserArn:     pulumi.String(aws_iam_user.User.Arn),
        })
        if err != nil {
            return err
        }
        return nil
    })
}
import pulumi
import pulumi_aws as aws

my_profile = aws.opsworks.UserProfile("myProfile",
    ssh_username="my_user",
    user_arn=aws_iam_user["user"]["arn"])
import * as pulumi from "@pulumi/pulumi";
import * as aws from "@pulumi/aws";

const myProfile = new aws.opsworks.UserProfile("my_profile", {
    sshUsername: "my_user",
    userArn: aws_iam_user_user.arn,
});

Create a UserProfile Resource

def UserProfile(resource_name, opts=None, allow_self_management=None, ssh_public_key=None, ssh_username=None, user_arn=None, __props__=None);
func NewUserProfile(ctx *Context, name string, args UserProfileArgs, opts ...ResourceOption) (*UserProfile, error)
public UserProfile(string name, UserProfileArgs args, CustomResourceOptions? opts = null)
name string
The unique name of the resource.
args UserProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name str
The unique name of the resource.
opts ResourceOptions
A bag of options that control this resource's behavior.
ctx Context
Context object for the current deployment.
name string
The unique name of the resource.
args UserProfileArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args UserProfileArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.

UserProfile Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.

Inputs

The UserProfile resource accepts the following input properties:

SshUsername string

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

UserArn string

The user’s IAM ARN

AllowSelfManagement bool

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

SshPublicKey string

The users public key

SshUsername string

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

UserArn string

The user’s IAM ARN

AllowSelfManagement bool

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

SshPublicKey string

The users public key

sshUsername string

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

userArn string

The user’s IAM ARN

allowSelfManagement boolean

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

sshPublicKey string

The users public key

ssh_username str

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

user_arn str

The user’s IAM ARN

allow_self_management bool

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

ssh_public_key str

The users public key

Outputs

All input properties are implicitly available as output properties. Additionally, the UserProfile resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.

Look up an Existing UserProfile Resource

Get an existing UserProfile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: UserProfileState, opts?: CustomResourceOptions): UserProfile
static get(resource_name, id, opts=None, allow_self_management=None, ssh_public_key=None, ssh_username=None, user_arn=None, __props__=None);
func GetUserProfile(ctx *Context, name string, id IDInput, state *UserProfileState, opts ...ResourceOption) (*UserProfile, error)
public static UserProfile Get(string name, Input<string> id, UserProfileState? state, CustomResourceOptions? opts = null)
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.

The following state arguments are supported:

AllowSelfManagement bool

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

SshPublicKey string

The users public key

SshUsername string

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

UserArn string

The user’s IAM ARN

AllowSelfManagement bool

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

SshPublicKey string

The users public key

SshUsername string

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

UserArn string

The user’s IAM ARN

allowSelfManagement boolean

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

sshPublicKey string

The users public key

sshUsername string

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

userArn string

The user’s IAM ARN

allow_self_management bool

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

ssh_public_key str

The users public key

ssh_username str

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

user_arn str

The user’s IAM ARN

Package Details

Repository
https://github.com/pulumi/pulumi-aws
License
Apache-2.0
Notes
This Pulumi package is based on the aws Terraform Provider.