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
new UserProfile(name: string, args: UserProfileArgs, opts?: CustomResourceOptions);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:
- Ssh
Username string The ssh username, with witch this user wants to log in
- User
Arn string The user’s IAM ARN
- Allow
Self boolManagement Whether users can specify their own SSH public key through the My Settings page
- Ssh
Public stringKey The users public key
- Ssh
Username string The ssh username, with witch this user wants to log in
- User
Arn string The user’s IAM ARN
- Allow
Self boolManagement Whether users can specify their own SSH public key through the My Settings page
- Ssh
Public stringKey The users public key
- ssh
Username string The ssh username, with witch this user wants to log in
- user
Arn string The user’s IAM ARN
- allow
Self booleanManagement Whether users can specify their own SSH public key through the My Settings page
- ssh
Public stringKey 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_ boolmanagement Whether users can specify their own SSH public key through the My Settings page
- ssh_
public_ strkey The users public key
Outputs
All input properties are implicitly available as output properties. Additionally, the UserProfile resource produces the following output properties:
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): UserProfilestatic 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:
- Allow
Self boolManagement Whether users can specify their own SSH public key through the My Settings page
- Ssh
Public stringKey The users public key
- Ssh
Username string The ssh username, with witch this user wants to log in
- User
Arn string The user’s IAM ARN
- Allow
Self boolManagement Whether users can specify their own SSH public key through the My Settings page
- Ssh
Public stringKey The users public key
- Ssh
Username string The ssh username, with witch this user wants to log in
- User
Arn string The user’s IAM ARN
- allow
Self booleanManagement Whether users can specify their own SSH public key through the My Settings page
- ssh
Public stringKey The users public key
- ssh
Username string The ssh username, with witch this user wants to log in
- user
Arn string The user’s IAM ARN
- allow_
self_ boolmanagement Whether users can specify their own SSH public key through the My Settings page
- ssh_
public_ strkey 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
awsTerraform Provider.