Class 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,
});
}
}
Inherited Members
Namespace: Pulumi.Aws.OpsWorks
Assembly: Pulumi.Aws.dll
Syntax
public class UserProfile : CustomResource
Constructors
View SourceUserProfile(String, UserProfileArgs, CustomResourceOptions)
Create a UserProfile resource with the given unique name, arguments, and options.
Declaration
public UserProfile(string name, UserProfileArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| UserProfileArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAllowSelfManagement
Whether users can specify their own SSH public key through the My Settings page
Declaration
public Output<bool?> AllowSelfManagement { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
SshPublicKey
The users public key
Declaration
public Output<string> SshPublicKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SshUsername
The ssh username, with witch this user wants to log in
Declaration
public Output<string> SshUsername { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
UserArn
The user's IAM ARN
Declaration
public Output<string> UserArn { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, UserProfileState, CustomResourceOptions)
Get an existing UserProfile resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static UserProfile Get(string name, Input<string> id, UserProfileState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| UserProfileState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| UserProfile |