interface UserAttributes
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.IAM.UserAttributes |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsiam#UserAttributes |
Java | software.amazon.awscdk.services.iam.UserAttributes |
Python | aws_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
| Name | Type | Description |
|---|---|---|
| user | string | The ARN of the user. |
userArn
Type:
string
The ARN of the user.
Format: arn:<partition>:iam::<account-id>:user/<user-name-with-path>

.NET
Go
Java
Python
TypeScript (