Package com.helixframework.aws.sts
Class Identity
java.lang.Object
com.helixframework.aws.sts.Identity
Utility for retrieving info about the current account and caller entity within AWS.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the AWS account id.Gets the ARN of the calling entity.Gets the id of the calling entity.
-
Constructor Details
-
Identity
public Identity()Creates a new instance ofIdentitywith default token service. -
Identity
public Identity(com.amazonaws.services.securitytoken.AWSSecurityTokenService awsSecurityTokenService) Creates a new instance ofIdentitywith custom token service.- Parameters:
awsSecurityTokenService- aws security token service
-
-
Method Details
-
getAccountId
Gets the AWS account id.- Returns:
- aws account id
-
getCallerId
Gets the id of the calling entity.- Returns:
- calling entity id
-
getCallerArn
Gets the ARN of the calling entity.- Returns:
- calling entity arn
-