Skip to content
v2.278.0

CfnUserProfileProps Struct ​

Properties for defining a CfnUserProfile.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_opsworks as opsworks } from 'aws-cdk-lib';
const cfnUserProfileProps: opsworks.CfnUserProfileProps = {
  iamUserArn: 'iamUserArn',

  // the properties below are optional
  allowSelfManagement: false,
  sshPublicKey: 'sshPublicKey',
  sshUsername: 'sshUsername',
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_opsworks as opsworks

cfn_user_profile_props = opsworks.CfnUserProfileProps(
    iam_user_arn="iamUserArn",

    # the properties below are optional
    allow_self_management=False,
    ssh_public_key="sshPublicKey",
    ssh_username="sshUsername"
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.opsworks.*;

CfnUserProfileProps cfnUserProfileProps = CfnUserProfileProps.builder()
        .iamUserArn("iamUserArn")

        // the properties below are optional
        .allowSelfManagement(false)
        .sshPublicKey("sshPublicKey")
        .sshUsername("sshUsername")
        .build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.OpsWorks;

var cfnUserProfileProps = new CfnUserProfileProps {
    IamUserArn = "iamUserArn",

    // the properties below are optional
    AllowSelfManagement = false,
    SshPublicKey = "sshPublicKey",
    SshUsername = "sshUsername"
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"

cfnUserProfileProps := &CfnUserProfileProps{
	IamUserArn: jsii.String("iamUserArn"),

	// the properties below are optional
	AllowSelfManagement: jsii.Boolean(false),
	SshPublicKey: jsii.String("sshPublicKey"),
	SshUsername: jsii.String("sshUsername"),
}

Properties ​

allowSelfManagementoptionalboolean | IResolvableallow_self_managementoptionaltyping.Union[bool, IResolvable]allowSelfManagementoptionalBooleanAllowSelfManagementoptionalboolAllowSelfManagementoptionalinterface{} #
Whether users can specify their own SSH public key through the My Settings page.

For more information, see Managing User Permissions .

iamUserArnstringiam_user_arnstriamUserArnStringIamUserArnstringIamUserArn*string required #
The user's IAM ARN.
sshPublicKeyoptionalstringssh_public_keyoptionalstrsshPublicKeyoptionalStringSshPublicKeyoptionalstringSshPublicKeyoptional*string #
The user's SSH public key.
sshUsernameoptionalstringssh_usernameoptionalstrsshUsernameoptionalStringSshUsernameoptionalstringSshUsernameoptional*string #
The user's SSH user name.