/// <summary> /// Returns a role in AWS by its ARN /// </summary> /// <param name="id"></param> /// <param name="arn"></param> /// <param name="fromRoleArnOptions"></param> /// <returns></returns> public IRole LocateRoleByArn(string id, string arn, IFromRoleArnOptions fromRoleArnOptions = null) { if (string.IsNullOrEmpty(id) || string.IsNullOrEmpty(arn)) { throw new ArgumentException("The identification or arn cannot be null"); } return(Role.FromRoleArn(Scope, id, arn, fromRoleArnOptions)); }
public IRole LocateRoleByArn(string id, string arn, IFromRoleArnOptions fromRoleArnOptions = null) { return(HandlerResources.AwsCdkRoleHandler.LocateRoleByArn(id, arn, fromRoleArnOptions)); }