UserAttributes Struct
Represents a user defined outside of this stack.
Example
ts
const user = iam.User.fromUserAttributes(this, 'MyImportedUserByAttributes', {
userArn: 'arn:aws:iam::123456789012:user/johnsmith',
});
python
user = iam.User.from_user_attributes(self, "MyImportedUserByAttributes",
user_arn="arn:aws:iam::123456789012:user/johnsmith"
)
java
IUser user = User.fromUserAttributes(this, "MyImportedUserByAttributes", UserAttributes.builder()
.userArn("arn:aws:iam::123456789012:user/johnsmith")
.build());
csharp
// Install: dotnet add package Amazon.CDK.Lib
var user = User.FromUserAttributes(this, "MyImportedUserByAttributes", new UserAttributes {
UserArn = "arn:aws:iam::123456789012:user/johnsmith"
});
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
user := iam.User_FromUserAttributes(this, jsii.String("MyImportedUserByAttributes"), &UserAttributes{
UserArn: jsii.String("arn:aws:iam::123456789012:user/johnsmith"),
})
Properties
The ARN of the user.
Format: arn:<partition>:iam::<account-id>:user/<user-name-with-path>