aws-cdk-lib.aws_iam.UserAttributes

interface UserAttributes

LanguageType name
.NETAmazon.CDK.AWS.IAM.UserAttributes
Gogithub.com/aws/aws-cdk-go/awscdk/v2/awsiam#UserAttributes
Javasoftware.amazon.awscdk.services.iam.UserAttributes
Pythonaws_cdk.aws_iam.UserAttributes
TypeScript (source)aws-cdk-lib » aws_iam » UserAttributes

Represents a user defined outside of this stack.

Example

const user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {
  userArn: 'arn:aws:iam::123456789012:user/johnsmith',
});

Properties

NameTypeDescription
userArnstringThe ARN of the user.

userArn

Type: string

The ARN of the user.

Format: arn::iam::<account-id>:user/<user-name-with-path>